Issue #5476 has been updated by Lucas Nussbaum.


Ruby on hppa is broken because hppa (at least last time I checked) was using a LinuxThreads-based thread implementation instead of NPTL.

Maybe it should not crash, but I don't expect that you will reach a working state anyway.
----------------------------------------
Bug #5476: ruby 1.9.3_rc1 segfaults in test_fork.rb on HPPA
http://redmine.ruby-lang.org/issues/5476

Author: Hans de Graaff
Status: Open
Priority: Normal
Assignee: 
Category: test
Target version: 1.9.3
ruby -v: 1.9.3_rc1


Running tests on HPPA results in a segmentation fault when running test_fork.rb.

The downstream bug report at https://bugs.gentoo.org/show_bug.cgi?id=388123 has all the details and the full build log.

#246 test_fork.rb:24:in `<top (required)>': 
     Process.setrlimit(:NPROC, 1)
     fork {}
  #=> killed by SIGABRT (signal 6)
| bootstraptest.tmp.rb:3: [BUG] Segmentation fault
| ruby 1.9.3dev (2011-09-23 revision 33323) [hppa-linux]
| 
| -- Control frame information -----------------------------------------------
| c:0004 p:---- s:0010 b:0010 l:000009 d:000009 CFUNC  :fork
| c:0003 p:0048 s:0007 b:0006 l:000cd4 d:000d2c EVAL   bootstraptest.tmp.rb:3
| c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH
| c:0001 p:0000 s:0002 b:0002 l:000cd4 d:000cd4 TOP   
| 
| -- Ruby level backtrace information ----------------------------------------
| bootstraptest.tmp.rb:3:in `<main>'
| bootstraptest.tmp.rb:3:in `fork'

[...]


-- 
http://redmine.ruby-lang.org