Bug #9597
closedCore dump on Solaris on test case runner.rb
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
Files
Updated by hsbt (Hiroshi SHIBATA) over 10 years ago
- Assignee set to ngoto (Naohisa Goto)
Updated by ngoto (Naohisa Goto) over 10 years ago
- Status changed from Open to Feedback
Please show compiler version, configure option and config.log, and libffi version.
Updated by yann (Yann Rouillard) over 10 years ago
- File config.log config.log added
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.
Updated by yann (Yann Rouillard) over 10 years ago
I recompiled ruby against libffi.so.4 and the problem disappeared, so I confirm this bug is linked somehow to libffi.
Updated by nobu (Nobuyoshi Nakada) over 10 years ago
- Status changed from Feedback to Third Party's Issue