Bug #9597

Core dump on Solaris on test case runner.rb

Added by Yann Rouillard over 1 year ago. Updated over 1 year ago.

[ruby-core:61313]
Status:Third Party's Issue
Priority:Normal
Assignee:Naohisa Goto
ruby -v:ruby 2.0.0p451 (2014-02-24 revision 45167) [i386-solaris2.10] Backport:1.9.3: UNKNOWN, 2.0.0: UNKNOWN, 2.1: UNKNOWN

Description

Hi,

I am currently trying to compile Ruby 2.0 on Solaris and I have a test case that is constantly failing with the following error:

/home/yann/opencsw/ruby20/trunk/work/solaris10-i386/build-isa-pentium_pro/ruby-2.0.0-p451/.ext/common/d
l/func.rb:92: [BUG] Segmentation fault
ruby 2.0.0p451 (2014-02-24 revision 45167) [i386-solaris2.10]

-- Control frame information -----------------------------------------------
c:0024 p:---- s:0116 e:000115 CFUNC :call
c:0023 p:0041 s:0112 e:000111 METHOD /home/yann/opencsw/ruby20/trunk/work/solaris10-i386/build-isa-pentium_pro/ruby-2.0.0-p451/.ext/common/dl/func.rb:92
c:0022 p:0078 s:0104 E:00258c METHOD /home/yann/opencsw/ruby20/trunk/work/solaris10-i386/build-isa-pentium_pro/ruby-2.0.0-p451/test/dl/test_callback.rb:67
c:0021 p:0038 s:0097 e:000096 METHOD /home/yann/opencsw/ruby20/trunk/work/solaris10-i386/build-isa-pentium_pro/ruby-2.0.0-p451/lib/test/unit.rb:858
c:0020 p:0072 s:0092 e:000091 METHOD /home/yann/opencsw/ruby20/trunk/work/solaris10-i386/build-isa-pentium_pro/ruby-2.0.0-p451/lib/minitest/unit.rb:1301
c:0019 p:0019 s:0084 e:000083 METHOD /home/yann/opencsw/ruby20/trunk/work/solaris10-i386/build-isa-pentium_pro/ruby-2.0.0-p451/lib/test/unit/testcase.rb:17
c:0018 p:0068 s:0080 e:000079 BLOCK /home/yann/opencsw/ruby20/trunk/work/solaris10-i386/build-isa-pentium_pro/ruby-2.0.0-p451/lib/minitest/unit.rb:919 [FINISH]
c:0017 p:---- s:0074 e:000073 CFUNC :map
c:0016 p:0092 s:0071 e:000070 METHOD /home/yann/opencsw/ruby20/trunk/work/solaris10-i386/build-isa-pentium_pro/ruby-2.0.0-p451/lib/minitest/unit.rb:912
c:0015 p:0015 s:0063 e:000061 BLOCK /home/yann/opencsw/ruby20/trunk/work/solaris10-i386/build-isa-pentium_pro/ruby-2.0.0-p451/lib/test/unit.rb:657 [FINISH]
c:0014 p:---- s:0058 e:000057 CFUNC :each
c:0013 p:0067 s:0055 e:000054 METHOD /home/yann/opencsw/ruby20/trunk/work/solaris10-i386/build-isa-pentium_pro/ruby-2.0.0-p451/lib/test/unit.rb:655
c:0012 p:0135 s:0049 e:000048 METHOD /home/yann/opencsw/ruby20/trunk/work/solaris10-i386/build-isa-pentium_pro/ruby-2.0.0-p451/lib/minitest/unit.rb:867
c:0011 p:0009 s:0039 e:000038 METHOD /home/yann/opencsw/ruby20/trunk/work/solaris10-i386/build-isa-pentium_pro/ruby-2.0.0-p451/lib/minitest/unit.rb:1060
c:0010 p:0009 s:0036 e:000035 BLOCK /home/yann/opencsw/ruby20/trunk/work/solaris10-i386/build-isa-pentium_pro/ruby-2.0.0-p451/lib/minitest/unit.rb:1047 [FINISH]
c:0009 p:---- s:0033 e:000032 CFUNC :each
c:0008 p:0040 s:0030 e:000029 METHOD /home/yann/opencsw/ruby20/trunk/work/solaris10-i386/build-isa-pentium_pro/ruby-2.0.0-p451/lib/minitest/unit.rb:1046
c:0007 p:0017 s:0026 e:000025 METHOD /home/yann/opencsw/ruby20/trunk/work/solaris10-i386/build-isa-pentium_pro/ruby-2.0.0-p451/lib/minitest/unit.rb:1035
c:0006 p:0019 s:0022 e:000021 METHOD /home/yann/opencsw/ruby20/trunk/work/solaris10-i386/build-isa-pentium_pro/ruby-2.0.0-p451/lib/test/unit.rb:21
c:0005 p:0010 s:0018 e:000017 METHOD /home/yann/opencsw/ruby20/trunk/work/solaris10-i386/build-isa-pentium_pro/ruby-2.0.0-p451/lib/test/unit.rb:774
c:0004 p:0040 s:0013 e:000012 METHOD /home/yann/opencsw/ruby20/trunk/work/solaris10-i386/build-isa-pentium_pro/ruby-2.0.0-p451/lib/test/unit.rb:834
c:0003 p:0011 s:0010 e:000009 METHOD /home/yann/opencsw/ruby20/trunk/work/solaris10-i386/build-isa-pentium_pro/ruby-2.0.0-p451/lib/test/unit.rb:838
c:0002 p:0177 s:0006 E:002190 EVAL ./test/runner.rb:17 [FINISH]
c:0001 p:0000 s:0002 E:00084c TOP [FINISH]

The core is file is very big 88M but I attached a stacktrace.

Thanks in advance for any help on this issue.

Yann

test_case_error.txt Magnifier (153 KB) Yann Rouillard, 03/05/2014 09:35 PM

stacktrace.txt Magnifier (11 KB) Yann Rouillard, 03/05/2014 09:38 PM

config.log Magnifier (748 KB) Yann Rouillard, 03/06/2014 08:35 PM

History

#1 Updated by Hiroshi SHIBATA over 1 year ago

  • Assignee set to Naohisa Goto

#2 Updated by Naohisa Goto over 1 year ago

  • Status changed from Open to Feedback

Please show compiler version, configure option and config.log, and libffi version.

#3 Updated by Yann Rouillard over 1 year ago

Naohisa Goto wrote:

Please show compiler version, configure option and config.log, and libffi version.

Compiled was: gcc version 4.8.2 (GCC)
No configure option was given.

libffi is 3.0.9, soname is libffi.so.5.

There is also a libffi 4.8.9 (soname libffi.so.4) on the build system but without the corresponding .so symlink and header file. How can I know which libffi version was used by ruby ? I see no information about it.

config.log is attached.

#4 Updated by Yann Rouillard over 1 year ago

I recompiled ruby against libffi.so.4 and the problem disappeared, so I confirm this bug is linked somehow to libffi.

#5 Updated by Nobuyoshi Nakada over 1 year ago

  • Status changed from Feedback to Third Party's Issue

Also available in: Atom PDF