Project

General

Profile

Actions

Bug #5476

closed

ruby 1.9.3_rc1 segfaults in test_fork.rb on HPPA

Added by hansdegraaff (Hans de Graaff) about 13 years ago. Updated about 12 years ago.

Status:
Closed
Assignee:
-
Target version:
ruby -v:
1.9.3_rc1
Backport:
[ruby-core:40306]

Description

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 '
| bootstraptest.tmp.rb:3:in `fork'

[...]

Updated by kosaki (Motohiro KOSAKI) about 13 years ago

Please give me C level backtrace.

Updated by lucas (Lucas Nussbaum) about 13 years ago

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.

Updated by sorah (Sorah Fukumori) almost 13 years ago

  • Status changed from Open to Feedback
Actions #4

Updated by hansdegraaff (Hans de Graaff) almost 13 years ago

Lucas Nussbaum wrote:

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

Not true at least on Gentoo/HPPA which has been using NPTL. So at least that is not a hurdle. I'll have to check for the backtrace, I can't produce one myself.

Updated by hansdegraaff (Hans de Graaff) about 12 years ago

It looks like this got fixed with http://bugs.ruby-lang.org/issues/5488, we can no longer reproduce this in the latest version of ruby 1.9.3.

Updated by kosaki (Motohiro KOSAKI) about 12 years ago

  • Status changed from Feedback to Closed

OK, thank you.

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0