From: "M. Edward (Ed) Borasky" Date: 2008-07-05T05:50:01+09:00 Subject: [ruby-core:17598] Re: Crashes and hangups on latest 1_8 branch This is a multi-part message in MIME format. --------------070800060201080805050708 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Vladimir Sizikov wrote: > Hi, > > The revision r17874 on 1_8 branch: > * eval.c (rb_thread_join): new API. > * ext/thread/thread.c (wait_mutex, lock_mutex): wait until the locking > thread exits. [ruby-dev:34856] > > leads to crashes and very hard lock-ups (impossible to kill the script > by Control-C, only by kill -9). > > This leads to rubyspec run hard hangups. > > Here are the minimized examples: > > 1. This crashes: > ruby -ve "t = Thread.new {sleep; 5}; p t.value" > ruby 1.8.7 (2008-07-04 revision 0) [i686-linux] > -e:1: [BUG] Segmentation fault > ruby 1.8.7 (2008-07-04 revision 0) [i686-linux] > > Aborted > > 2. This locks hard: > ruby -ve "t = Thread.new {sleep; 5}; t.run; p t.value" > ruby 1.8.7 (2008-07-04 revision 0) [i686-linux] > > Thanks, > --Vladimir > > Hmmm ... is the "1_8" branch 1.8.7? I thought it was 1.8.8. Meanwhile, what GCC options are you using? -- M. Edward (Ed) Borasky http://ruby-perspectives.blogspot.com/ "A mathematician is a machine for turning coffee into theorems." -- Alfr��d R��nyi via Paul Erd��s --------------070800060201080805050708 Content-Type: text/x-vcard; charset=utf-8; name="znmeb.vcf" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="znmeb.vcf" YmVnaW46dmNhcmQNCmZuOk0uIEVkd2FyZCAoRWQpIEJvcmFza3kNCm46O00uIEVkd2FyZCAo RWQpIEJvcmFza3kNCmVtYWlsO2ludGVybmV0OnpubWViQGNlc21haWwubmV0DQp4LW1vemls bGEtaHRtbDpGQUxTRQ0KdmVyc2lvbjoyLjENCmVuZDp2Y2FyZA0KDQo= --------------070800060201080805050708--