#334 √ resolved
Michael Klishin

Hash with key containing \0 causes a SIGBUS

Reported by Michael Klishin | February 18th, 2008 @ 10:11 AM | in 1.0 preview

Here's what I have on Intel Mac running OS X Leopard:

stormblast:rubinius antares$ shotgun/rubinius -e 'print ({:"\0test\0" =>1}).inspect'

An error has occured: Bus violation (SIGBUS) (10)

Ruby backtrace:

0x1402240 String#to_sexp+56 in kernel/core/string.rb:2174

0x14021b8 Class#compile_string+57 in lib/compiler/compiler.rb:38

0x2565078 Class#compile_string+63 in kernel/core/compile.rb:69

0x25650e4 Kernel#eval+146 in kernel/core/eval.rb:88

0x2565154 Class#execute+16 in kernel/core/compile.rb:73

0x23af180 #__script__+871 in kernel/loader.rb:158

VM Registers:

IP: 0056

SP: 0221

Exception: none

Comments and changes to this ticket

Please Login or create a free account to add a new comment.

You can update this ticket by sending an email to from your email client. (help)

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »