Bug #5882

segfault in miniruby in ruby1.9.3 crosscompile for ARM

Added by stephen gooberman-hill over 2 years ago. Updated over 1 year ago.

[ruby-core:42060]
Status:Rejected
Priority:Normal
Assignee:-
Category:-
Target version:1.9.3
ruby -v:bash: ruby: command not found Backport:

Description

Trying to compile ruby 1.9.3p0 for ARM using scratchbox (v1 using arm-linux-cs2010q1-202 for arm, glibc library)

The build hangs in various places around the encoding library, and then has segfaulted with the following trace:

[sbox-NPE9300v1: ~/ruby-1.9.3-p0] > make
CC = gcc
LD = ld
LDSHARED = gcc -shared
CFLAGS = -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Werror=pointer-arith -Werror=write-strings -Werror=declaration-after-statement -Werror=implicit-function-declaration
XCFLAGS = -include ruby/config.h -include ruby/missing.h -fvisibility=hidden -DRUBY_EXPORT
CPPFLAGS = -I. -I.ext/include/arm-linux-eabi -I./include -I.
DLDFLAGS =

SOLIBS =
generating encdb.h
encdb.h unchanged
[BUG] Segmentation fault
ruby 1.9.3p0 (2011-10-30 revision 33570) [arm-linux-eabi]

-- Control frame information -----------------------------------------------

-- C level backtrace information -------------------------------------------
./miniruby() [0x18db5c] vmdump.c:71733
./miniruby() [0x55334] error.c:221349
./miniruby(rb
bug+0x48) [0x553fc] error.c:226805
./miniruby() [0x111c14] signal.c:19809
/lib/libc.so.6(defaultrtsarestorerv2+0) [0x40985650]
/lib/libc.so.6(+0x7216c) [0x409ca16c]
/lib/libc.so.6(cfree+0x98) [0x409cddb8]
./miniruby() [0x176ab4] vm.c:55557
./miniruby(rubyvmdestruct+0x34) [0x17727c] vm.c:109644
./miniruby(rubycleanup+0x1c0) [0x59cf0] eval.c:286642
./miniruby(ruby
run_node+0x5c) [0x59ef4] eval.c:302044
./miniruby() [0x186ec] main.c:1574
/lib/libc.so.6(
libcstartmain+0x118) [0x4096d4c4]

-- Other runtime information -----------------------------------------------

  • Loaded script: ./tool/generic_erb.rb

  • Loaded features:

    0 enumerator.so
    1 /home/steve/ruby-1.9.3-p0/lib/erb.rb
    2 /home/steve/ruby-1.9.3-p0/lib/optparse.rb
    3 /home/steve/ruby-1.9.3-p0/lib/fileutils.rb

  • Process memory map:

00113000-00114000 r-xp 00000000 00:00 0 [vdso]
00114000-0030e000 r-xp 00000000 08:01 3453131 /home/steve/ruby-1.9.3-p0/miniruby
0030e000-00316000 ---p 00000000 00:00 0
00316000-00317000 rw-p 001fa000 08:01 3453131 /home/steve/ruby-1.9.3-p0/miniruby
00317000-004e2000 rw-p 00000000 00:00 0
4010c000-4010d000 ---p 00000000 00:00 0
4010d000-4090d000 rw-p 00000000 00:00 0
4090d000-4092c000 r-xp 00000000 08:01 3446757 /targets/NPE9300v1/lib/ld-2.11.1.so
4092c000-40933000 ---p 00000000 00:00 0
40933000-40934000 r--p 0001e000 08:01 3446757 /targets/NPE9300v1/lib/ld-2.11.1.so
40934000-40935000 rw-p 0001f000 08:01 3446757 /targets/NPE9300v1/lib/ld-2.11.1.so
40935000-40936000 rw-p 00000000 00:00 0
40936000-4094b000 r-xp 00000000 08:01 3446770 /targets/NPE9300v1/lib/libpthread-2.11.1.so
4094b000-40952000 ---p 00015000 08:01 3446770 /targets/NPE9300v1/lib/libpthread-2.11.1.so
40952000-40953000 r--p 00014000 08:01 3446770 /targets/NPE9300v1/lib/libpthread-2.11.1.so
40953000-40954000 rw-p 00015000 08:01 3446770 /targets/NPE9300v1/lib/libpthread-2.11.1.so
40954000-40956000 rw-p 00000000 00:00 0
40956000-4095d000 r-xp 00000000 08:01 3446783 /targets/NPE9300v1/lib/librt-2.11.1.so
4095d000-40964000 ---p 00007000 08:01 3446783 /targets/NPE9300v1/lib/librt-2.11.1.so
40964000-40965000 r--p 00006000 08:01 3446783 /targets/NPE9300v1/lib/librt-2.11.1.so
40965000-40966000 rw-p 00007000 08:01 3446783 /targets/NPE9300v1/lib/librt-2.11.1.so
40966000-4096a000 r-xp 00000000 08:01 3446771 /targets/NPE9300v1/lib/libdl-2.11.1.so
4096a000-40971000 ---p 00004000 08:01 3446771 /targets/NPE9300v1/lib/libdl-2.11.1.so
40971000-40972000 r--p 00003000 08:01 3446771 /targets/NPE9300v1/lib/libdl-2.11.1.so
40972000-40973000 rw-p 00004000 08:01 3446771 /targets/NPE9300v1/lib/libdl-2.11.1.so
40973000-4097f000 r-xp 00000000 08:01 3446763 /targets/NPE9300v1/lib/libcrypt-2.11.1.so
4097f000-40986000 ---p 0000c000 08:01 3446763 /targets/NPE9300v1/lib/libcrypt-2.11.1.so
40986000-40987000 r--p 0000b000 08:01 3446763 /targets/NPE9300v1/lib/libcrypt-2.11.1.so
40987000-40988000 rw-p 0000c000 08:01 3446763 /targets/NPE9300v1/lib/libcrypt-2.11.1.so
40988000-409af000 rw-p 00000000 00:00 0
409af000-40a47000 r-xp 00000000 08:01 3446781 /targets/NPE9300v1/lib/libm-2.11.1.so
40a47000-40a4e000 ---p 00098000 08:01 3446781 /targets/NPE9300v1/lib/libm-2.11.1.so
40a4e000-40a4f000 r--p 00097000 08:01 3446781 /targets/NPE9300v1/lib/libm-2.11.1.so
40a4f000-40a50000 rw-p 00098000 08:01 3446781 /targets/NPE9300v1/lib/libm-2.11.1.so
40a50000-40a51000 rw-p 00000000 00:00 0
40a51000-40a5c000 r-xp 00000000 08:01 3446767 /targets/NPE9300v1/lib/libgccs.so.1
40a5c000-40a63000 ---p 0000b000 08:01 3446767 /targets/NPE9300v1/lib/libgcc
s.so.1
40a63000-40a64000 rw-p 0000a000 08:01 3446767 /targets/NPE9300v1/lib/libgcc_s.so.1
40a64000-40b9f000 r-xp 00000000 08:01 3446753 /targets/NPE9300v1/lib/libc-2.11.1.so
40b9f000-40ba7000 ---p 0013b000 08:01 3446753 /targets/NPE9300v1/lib/libc-2.11.1.so
40ba7000-40ba9000 r--p 0013b000 08:01 3446753 /targets/NPE9300v1/lib/libc-2.11.1.so
40ba9000-40baa000 rw-p 0013d000 08:01 3446753 /targets/NPE9300v1/lib/libc-2.11.1.so
40baa000-40bae000 rw-p 00000000 00:00 0
40c2f000-40c30000 ---p 00000000 00:00 0
40c30000-40c33000 rw-p 00000000 00:00 0
40d0c000-40d2d000 rw-p 00000000 00:00 0
40d2d000-40e0c000 ---p 00000000 00:00 0
41551000-41552000 rw-p 00000000 00:00 0
60000000-60132000 r-xp 00000000 08:01 3446720 /scratchbox/devkits/qemu/bin/qemu-arm-sb
60231000-60236000 rw-p 00131000 08:01 3446720 /scratchbox/devkits/qemu/bin/qemu-arm-sb
60236000-60238000 rw-p 00000000 00:00 0
60238000-62239000 rwxp 00000000 00:00 0
62239000-6225e000 rw-p 00000000 00:00 0
6225e000-6225f000 rwxp 00000000 00:00 0
6225f000-622ae000 rw-p 00000000 00:00 0
63c32000-63c54000 rw-p 00000000 00:00 0 [heap]
b55f8000-b55fc000 rw-p 00000000 00:00 0
b5614000-b7859000 rw-p 00000000 00:00 0
bfcc0000-bfcd5000 rw-p 00000000 00:00 0 [stack]

[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

unable to dump 00201800
make: *** [encdb.h] Error 126
[sbox-NPE9300v1: ~/ruby-1.9.3-p0] > make
CC = gcc
LD = ld
LDSHARED = gcc -shared
CFLAGS = -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Werror=pointer-arith -Werror=write-strings -Werror=declaration-after-statement -Werror=implicit-function-declaration
XCFLAGS = -include ruby/config.h -include ruby/missing.h -fvisibility=hidden -DRUBY_EXPORT
CPPFLAGS = -I. -I.ext/include/arm-linux-eabi -I./include -I.
DLDFLAGS =

SOLIBS =
generating encdb.h
encdb.h unchanged
[BUG] Segmentation fault
ruby 1.9.3p0 (2011-10-30 revision 33570) [arm-linux-eabi]

-- Control frame information -----------------------------------------------

-- C level backtrace information -------------------------------------------
make: *** [encdb.h] Error 126


Related issues

Related to ruby-trunk - Bug #5780: test/fileutils/test_fileutils.rb:86: [BUG] Segmentation f... Closed 12/20/2011

History

#1 Updated by Koichi Sasada about 2 years ago

  • Assignee set to Yusuke Endoh

Nice "ruby -v".

#2 Updated by Shyouhei Urabe about 2 years ago

  • Status changed from Open to Assigned

#3 Updated by Yusuke Endoh almost 2 years ago

  • Status changed from Assigned to Feedback
  • Assignee deleted (Yusuke Endoh)

See #5780.

Yusuke Endoh mame@tsg.ne.jp

#4 Updated by Yusuke Endoh over 1 year ago

  • Status changed from Feedback to Rejected

No feedback, closing.
Please open a new ticket if anyone creates a patch.

Yusuke Endoh mame@tsg.ne.jp

Also available in: Atom PDF