ibc / AsyncEngine

Ruby asynchronous event driven framework on top of libuv
6 stars 1 forks source link

Segmentfault in exotic multi-thread with Thread#kill #5

Closed ibc closed 12 years ago

ibc commented 12 years ago
loop do
    printf "."
    t = Thread.new { AE.run { AE.add_timer(2) {} } }
    AE.stop
end

Waiting a bit or pressing Ctrl+C (or probably any signal) "sometimes" causes the following different critical error:

Obviously there is a thread problem. The code above is really ugly and dangerous, but it should not crash.

ibc commented 12 years ago

Cannot reproduce it anymore... but I'll let it open for now.

ibc commented 12 years ago

Fixed.