From: Lucas Nussbaum Date: 2005-07-21T21:28:29+09:00 Subject: [BUG] Segmentation fault with a threads/forks script 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 ? :-) -- | Lucas Nussbaum | lucas@lucas-nussbaum.net http://www.lucas-nussbaum.net/ | | jabber: lucas@nussbaum.fr GPG: 1024D/023B3F4F |