From: dam@... Date: 2014-07-04T09:30:56+00:00 Subject: [ruby-core:63546] [ruby-trunk - Bug #9681] miniruby Bus Error at 0x3d44c4 Issue #9681 has been updated by Dagobert Michelsen. I can confirm that the error is also present in Ruby 2.1.2 when compiling with gcc 4.9.0: ~~~ In file included from ./include/ruby/ruby.h:24:0, from ./include/ruby.h:33, from ./missing/signbit.c:2: .ext/include/sparc-solaris2.10/ruby/config.h:57:0: warning: "_FILE_OFFSET_BITS" redefined #define _FILE_OFFSET_BITS 64 ^ In file included from /usr/include/limits.h:17:0, from /opt/csw/lib/gcc/sparc-sun-solaris2.10/4.9.0/include-fixed/limits.h:168, from /opt/csw/lib/gcc/sparc-sun-solaris2.10/4.9.0/include-fixed/syslimits.h:7, from /opt/csw/lib/gcc/sparc-sun-solaris2.10/4.9.0/include-fixed/limits.h:34, from ./missing/signbit.c:1: /opt/csw/lib/gcc/sparc-sun-solaris2.10/4.9.0/include-fixed/sys/feature_tests.h:196:0: note: this is the location of the previous definition #define _FILE_OFFSET_BITS 32 ^ compiling dmyext.c processing probes in object files rm -f probes.o linking miniruby ./miniruby: [BUG] Bus Error at 0x418fdc ruby 2.1.2p95 (2014-05-08 revision 45877) [sparc-solaris2.10] -- Control frame information ----------------------------------------------- c:0001 p:0000 s:0002 E:000a14 TOP [FINISH] -- Other runtime information ----------------------------------------------- * Loaded script: ./miniruby * Loaded features: 0 enumerator.so [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 Makefile:1025: recipe for target '.rbconfig.time' failed gmake: *** [.rbconfig.time] Abort (core dumped) zsh: 21205 exit 2 gmake dam@unstable10s [unstable10s]:/home/dam/tmp/ruby-2.1.2 > pstack core core 'core' of 3073: ./miniruby -I./lib -I. -I.ext/common ./tool/mkconfig.rb -timestamp=.rb ----------------- lwp# 1 / thread# 1 -------------------- ff0febd4 _lwp_kill (6, 0, ff177080, ff0de0f0, ffffffff, 6) + 8 ff0729f0 abort (3aa5b8, 1, 2ab614, ffb04, ff175518, 0) + 110 0007d558 rb_bug (24c250, 418fdc, 0, 0, 0, 3aa5b8) + 70 0017a090 sigbus (a, 3b7090, 3b6dd8, 1, 0, 0) + 1c ff0fb00c __sighndlr (a, 3b7090, 3b6dd8, 17a074, 0, 1) + c ff0ef6bc call_user_handler (a, 0, 9, 0, ff312a00, 3b6dd8) + 3b8 ff0ef8a4 sigacthandler (a, 3b7090, 3b6dd8, 418ee0, 0, 0) + 60 --- called from signal handler with signal 10 (SIGBUS) --- 001d3ecc new_insn_send (418dc8, 2, cc8, 0, 0, 100) + 118 001d9394 iseq_compile_each (418dc8, ffbfeeb8, 3aa0b8, 0, ffbfe9d8, 0) + 376c 001d7e24 iseq_compile_each (418dc8, ffbfeeb8, 3aa100, 1, ff1723f0, 418f18) + 21fc 001d5d98 iseq_compile_each (418dc8, ffbfeeb8, 3a9e90, 0, 7f00, 0) + 170 001e324c rb_iseq_compile_node (3a9d40, 3a9e60, 0, ffbfeeb8, 418dc8, 0) + c58 001e8478 rb_iseq_new_with_opt (3a9e60, 3a9d58, 3a9db8, 4, 3, 3a9e00) + 8c 001d73f8 iseq_compile_each (418a08, ffbff150, 3a9e48, 0, 3a9e60, 418b34) + 17d0 001e2f10 rb_iseq_compile_node (3a9e00, 3a9e30, 0, ffbff150, 418a08, 0) + 91c 001e6980 rb_iseq_new_with_bopt_and_opt.isra.7 (3a9e30, 3a9e18, 3aa1c0, 4, 3, 0) + 8c 001e8fb0 rb_iseq_compile_with_option (3aa1d8, 3aa1c0, 4, 3, 0, 3a9e30) + 1f8 00023098 Init_prelude (3aa1f0, 3aa220, 2acddc, 344d, 417900, 3aa1d8) + 50 001789bc process_options (4, ffbff9c8, ffbff7e8, 2b38c8, ff191b30, 347ad8) + 734 001799a8 ruby_process_options (2710, ffbff9b4, 2710, 9, 2b38c8, ffbff7e8) + 13c 00086064 ruby_options (9, ffbff9b4, ffbff840, ffbff8d8, 0, 2c3df8) + d0 002263d8 main (9, ffbff9b4, ffbff9dc, 2c3fe8, ff310100, 0) + 4c 00022d78 _start (0, 0, 0, 0, 0, 0) + 5c ----------------- lwp# 2 / thread# 2 -------------------- ff0fe7b0 __pollsys (ff243f90, 2, 0, 0, 0, 2c40d8) + 8 ff094ccc poll (ff243f90, 2, ffffffff, 0, fee70200, ff0f46a8) + 7c 00214298 thread_timer (2c4060, 2ac748, 2ac750, 2c3e08, 2c3dec, 2c4340) + 370 ff0faee0 _lwp_start (0, 0, 0, 0, 0, 0) dam@unstable10s [unstable10s]:/home/dam/tmp/ruby-2.1.2 > ~~~ ---------------------------------------- Bug #9681: miniruby Bus Error at 0x3d44c4 https://bugs.ruby-lang.org/issues/9681#change-47595 * Author: Genie Sol * Status: Feedback * Priority: Normal * Assignee: Naohisa Goto * Category: * Target version: * ruby -v: ruby-2.1.1 * Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN ---------------------------------------- Dear team, I'm trying to compile ruby 2.1.1 on Solaris Oracle Solaris 11.1 SPARC, with gcc version 4.5.2 (GCC). I wonder that maybe you can help on the issue. Here is the result of the configure : It complains for the conftest.c ~~~ checking for nroff... /usr/bin/nroff .ext/include/sparc-solaris2.11/ruby/config.h updated ruby library version = 2.1.0 configure: creating ./config.status config.status: creating Makefile make: Warning: Illegal dependency list for target `.DEFAULT' config.status: creating ruby-2.1.pc ake: Warning: Illegal dependency list for target `.DEFAULT' config.status: creating ruby-2.1.pc ## bignum.c: In function 'rb_absint_numwords': bignum.c:3372:12: warning: 'nlz_bits' may be used uninitialized in this function ~~~ Here is the result of the gmake test : ~~~ In file included from ./include/ruby/ruby.h:24:0, from ./include/ruby.h:33, from ./missing/signbit.c:2: .ext/include/sparc-solaris2.11/ruby/config.h:55:0: warning: "_FILE_OFFSET_BITS" redefined /usr/include/sys/feature_tests.h:204:0: note: this is the location of the previous definition compiling dmyext.c processing probes in object files rm -f probes.o linking miniruby ./miniruby: [BUG] Bus Error at 0x3d44c4 ruby 2.1.1p76 (2014-02-24 revision 45161) [sparc-solaris2.11] -- Control frame information ----------------------------------------------- c:0001 p:0000 s:0002 E:000e94 TOP [FINISH] -- C level backtrace information ------------------------------------------- /var/tmp/ede/puppet/ruby-2.1.1/miniruby'rb_vm_bugreport+0x100 [0x1e6240] /var/tmp/ede/puppet/ruby-2.1.1/miniruby'report_bug+0x1a0 [0x84064] /var/tmp/ede/puppet/ruby-2.1.1/miniruby'rb_bug+0x68 [0x84bcc] /var/tmp/ede/puppet/ruby-2.1.1/miniruby'sigbus+0x1c [0x162d0c] /lib/libc.so.1'__sighndlr+0xc [0xf0b45950] /lib/libc.so.1'call_user_handler+0x370 [0xf0b38e58] /lib/libc.so.1'sigacthandler+0x58 [0xf0b39048] /var/tmp/ede/puppet/ruby-2.1.1/miniruby'new_insn_send+0x114 [0x1b3aa0] /var/tmp/ede/puppet/ruby-2.1.1/miniruby'iseq_compile_each+0x40f4 [0x1b8c50] /var/tmp/ede/puppet/ruby-2.1.1/miniruby'iseq_compile_each+0x14e8 [0x1b6044] /var/tmp/ede/puppet/ruby-2.1.1/miniruby'iseq_compile_each+0x1b4 [0x1b4d10] /var/tmp/ede/puppet/ruby-2.1.1/miniruby'rb_iseq_compile_node+0xd68 [0x1c17a4] /var/tmp/ede/puppet/ruby-2.1.1/miniruby'rb_iseq_new_with_bopt_and_opt.clone.7+0x8c [0x1c6288] /var/tmp/ede/puppet/ruby-2.1.1/miniruby'iseq_compile_each+0x23e8 [0x1b6f44] /var/tmp/ede/puppet/ruby-2.1.1/miniruby'rb_iseq_compile_node+0x9b0 [0x1c13ec] /var/tmp/ede/puppet/ruby-2.1.1/miniruby'rb_iseq_new_with_bopt_and_opt.clone.7+0x8c [0x1c6288] /var/tmp/ede/puppet/ruby-2.1.1/miniruby'rb_iseq_compile_with_option+0x1f0 [0x1c6ed0] /var/tmp/ede/puppet/ruby-2.1.1/miniruby'Init_prelude+0x50 [0x3f510] /var/tmp/ede/puppet/ruby-2.1.1/miniruby'process_options+0x30c [0x161610] /var/tmp/ede/puppet/ruby-2.1.1/miniruby'ruby_process_options+0x11c [0x1626cc] /var/tmp/ede/puppet/ruby-2.1.1/miniruby'ruby_options+0xd0 [0x8c670] /var/tmp/ede/puppet/ruby-2.1.1/miniruby'main+0x4c [0x3f42c] /var/tmp/ede/puppet/ruby-2.1.1/miniruby'_start+0x5c [0x3f260] -- Other runtime information ----------------------------------------------- * Loaded script: ./miniruby * Loaded features: 0 enumerator.so [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 gmake: *** [.rbconfig.time] Abort (core dumped) ~~~ ---Files-------------------------------- ruby2.1.1Sol11Core.gz (3.09 MB) config.log (912 KB) config.status (32.1 KB) -- https://bugs.ruby-lang.org/