# Shortest code that throws SIGBUS [duplicate]

We've had challenges for SIGSEGV and SIGILL so why not...

Write the shortest code that results in a Bus Error (SIGBUS) in any programming language.

Your program can't call raise() or kill(getpid(),sig) or pthread_kill(pthread_self(),sig), or any other equivalent.

• @ГригорийПерельман It's not a duplicate, no answer for that challenge can be applied to this one without nontrivial modification. – orlp Mar 21 '17 at 6:25
• @orlp There are Bash, Python, Perl, and C answers that are all essentially raise(11). They can be trivially modified to be raise(7) instead for this challenge. – Mego Mar 21 '17 at 6:55
• Are you riding the SIGBUS, or driving it? – mbomb007 Mar 21 '17 at 19:13
• Java/Groovy is also just System.exit(#); where you only change the # to throw a different exit code... This is a very trivial difference in many languages. – Magic Octopus Urn Mar 21 '17 at 19:29
• @mbomb007 neither. You're throwing it. That seems like the most difficult of the three. – Cyoce Mar 23 '17 at 3:32

   0:   c7 04 24 00 00 04 00    movl   \$0x40000,(%rsp)