From: Lucas Nussbaum Date: 2005-07-21T21:45:55+09:00 Subject: Re: [BUG] Segmentation fault with a threads/forks script On Thu, Jul 21, 2005 at 09:28:29PM +0900, Lucas Nussbaum wrote: > Hi, > > I experience a reproducable crash (each time) with prunner.rb at > http://blop.info/bazaar/prunner.rb. The script starts several commands > at the same time. When running with a large number of commands, it > exits with : > > ./prunner.rb:51: [BUG] Segmentation fault > ruby 1.8.2 (2005-04-11) [i386-linux] > > Aborted > > To reproduce, create a large file with one command per line. > for i in $(seq 1 2000); do echo hostname done > cmds > Then run prunner.rb like this : > cat cmds |head -n 1500 |./prunner.rb > 1500 can be increased if it doesn't crash for you. > > Of course, I expect it to go wrong at some time, but it could probably > do this in a cleaner way. > > Can somebody confirm the bug ? Or better, fix it ? :-) With Ubuntu Breezy's ruby 1.9 package (version 1.9.0+20050623-2), it crashes with : *** glibc detected *** free(): invalid pointer: 0x08a9db38 *** Aborted -- | Lucas Nussbaum | lucas@lucas-nussbaum.net http://www.lucas-nussbaum.net/ | | jabber: lucas@nussbaum.fr GPG: 1024D/023B3F4F |