From: Roger Pack Date: 2009-12-15T02:05:51+09:00 Subject: [ruby-core:27167] Re: [Bug #2394] [BUG] pthread_mutex_lock: 22 revisited > r26061 fixes a bug related this. > Does this still happen? I had hoped so, too. Here's the current. ~$ cat test_fork.rb require 'forkoff' a = File.open('out', 'w') [1].forkoff { |n| a.write n } a.close ~$ ~/installs/ruby_trunk_installed/bin/ruby -v test_fork.rb ruby 1.9.2dev (2009-12-14 trunk 26099) [i686-linux] [BUG] pthread_mutex_lock: Invalid argument (EINVAL) ruby 1.9.2dev (2009-12-14 trunk 26099) [i686-linux] -- control frame ---------- --------------------------- -- C level backtrace information ------------------------------------------- /home/rdp/installs/ruby_trunk_installed//lib/libruby.so.1.9(rb_vm_bugreport+0x72) [0xb7eb7482] /home/rdp/installs/ruby_trunk_installed//lib/libruby.so.1.9 [0xb7d876b1] /home/rdp/installs/ruby_trunk_installed//lib/libruby.so.1.9(rb_bug+0x3a) [0xb7d8776a] /home/rdp/installs/ruby_trunk_installed//lib/libruby.so.1.9(rb_bug_errno+0x7f5) [0xb7d884f5] /home/rdp/installs/ruby_trunk_installed//lib/libruby.so.1.9(rb_thread_blocking_region+0x1fa) [0xb7ebe0ea] /home/rdp/installs/ruby_trunk_installed//lib/libruby.so.1.9 [0xb7daceda] /home/rdp/installs/ruby_trunk_installed//lib/libruby.so.1.9 [0xb7daf3fe] /home/rdp/installs/ruby_trunk_installed//lib/libruby.so.1.9(rb_io_fptr_finalize+0xe4) [0xb7daf614] /home/rdp/installs/ruby_trunk_installed//lib/libruby.so.1.9 [0xb7d9d886] /home/rdp/installs/ruby_trunk_installed//lib/libruby.so.1.9 [0xb7d9e772] /home/rdp/installs/ruby_trunk_installed//lib/libruby.so.1.9(ruby_cleanup+0x12e) [0xb7d8d0ce] /home/rdp/installs/ruby_trunk_installed//lib/libruby.so.1.9 [0xb7ebdd96] /home/rdp/installs/ruby_trunk_installed//lib/libruby.so.1.9 [0xb7ebde31] /lib/libpthread.so.0 [0xb7d13fc0] /lib/libc.so.6(clone+0x5e) [0xb7c32a1e] [NOTE] You may have encountered a bug in the Ruby interpreter or extension libraries. Bug reports are welcome. For details: http://www.ruby-lang.org/bugreport.html Thanks! -r