SIGBUS when exiting threaded code via Ctrl-C
Reported by Wilson Bilkovich | July 11th, 2008 @ 12:36 AM | in 0.10
$queue = []
def produce
$queue << true if rand(10) < 5
end
loop do
produce
while client = $queue.shift do
Thread.new(client) do |c|
raise "bug" if c == false
end
puts Thread.list.size
end
end
3
4
3^C
An error has occured: Bus violation (SIGBUS) (10)
Ruby backtrace:
0x3355b4 <none>#<block>+18 in kernel/core/signal.rb:54
0x335614 <none>#<block>+22 in kernel/core/thread.rb:60
VM Registers:
IP: 0018
SP: -001
Exception: none
Comments and changes to this ticket
-
Wilson Bilkovich July 11th, 2008 @ 12:36 AM
Borrowed from MRI's redmine bug tracker for an unrelated bug
-
Wilson Bilkovich July 11th, 2008 @ 12:37 AM
- → State changed from new to open
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 »
