Project

General

Profile

Actions

Bug #6776

closed

segment fault for 1.9.3 trunk crosscompiled runing on am335x

Added by jinleileiking (lei king) over 12 years ago. Updated about 12 years ago.

Status:
Rejected
Assignee:
-
Target version:
ruby -v:
1.9.3
Backport:
[ruby-core:46623]

Description

version: commit 478d37da053f39608fa505991aa69bcff4ade998

after I copy the file generated to target evm(am335x).

It said:

root@am335x-evm:/# ruby
Segmentation fault

I donot know how to give the further info.

I will give you whatever you ask.

Updated by jinleileiking (lei king) over 12 years ago

some info:

CC=arm-angstrom-linux-gnueabi-gcc ./configure --host=arm-angstrom-linux-gnueabi --prefix=$HOME/work/ruby --enable-shared --disable-install-doc

(({➜ ruby git:(trunk) ✗ arm-angstrom-linux-gnueabi-readelf -a ruby
ELF Header:
Magic: 7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00
Class: ELF32
Data: 2's complement, little endian
Version: 1 (current)
OS/ABI: UNIX - System V
ABI Version: 0
Type: EXEC (Executable file)
Machine: ARM
Version: 0x1
Entry point address: 0x86b8
Start of program headers: 52 (bytes into file)
Start of section headers: 92924 (bytes into file)
Flags: 0x4000002, has entry point, Version4 EABI
Size of this header: 52 (bytes)
Size of program headers: 32 (bytes)
Number of program headers: 8
Size of section headers: 40 (bytes)
Number of section headers: 39
Section header string table index: 36

Section Headers:
[Nr] Name Type Addr Off Size ES Flg Lk Inf Al
[ 0] NULL 00000000 000000 000000 00 0 0 0
[ 1] .interp PROGBITS 00008134 000134 000013 00 A 0 0 1
[ 2] .note.ABI-tag NOTE 00008148 000148 000020 00 A 0 0 4
[ 3] .hash HASH 00008168 000168 0000bc 04 A 4 0 4
[ 4] .dynsym DYNSYM 00008224 000224 0001c0 10 A 5 1 4
[ 5] .dynstr STRTAB 000083e4 0003e4 000196 00 A 0 0 1
[ 6] .gnu.version VERSYM 0000857a 00057a 000038 02 A 4 0 2
[ 7] .gnu.version_r VERNEED 000085b4 0005b4 000020 00 A 5 1 4
[ 8] .rel.dyn REL 000085d4 0005d4 000008 08 A 4 0 4
[ 9] .rel.plt REL 000085dc 0005dc 000048 08 A 4 11 4
[10] .init PROGBITS 00008624 000624 000014 00 AX 0 0 4
[11] .plt PROGBITS 00008638 000638 000080 04 AX 0 0 4
[12] .text PROGBITS 000086b8 0006b8 000190 00 AX 0 0 4
[13] .fini PROGBITS 00008848 000848 000010 00 AX 0 0 4
[14] .rodata PROGBITS 00008858 000858 000008 00 A 0 0 4
[15] .ARM.exidx ARM_EXIDX 00008860 000860 000008 00 AL 12 0 4
[16] .eh_frame PROGBITS 00008868 000868 000004 00 A 0 0 4
[17] .init_array INIT_ARRAY 0001086c 00086c 000004 00 WA 0 0 4
[18] .fini_array FINI_ARRAY 00010870 000870 000004 00 WA 0 0 4
[19] .jcr PROGBITS 00010874 000874 000004 00 WA 0 0 4
[20] .dynamic DYNAMIC 00010878 000878 000120 08 WA 5 0 4
[21] .got PROGBITS 00010998 000998 000034 04 WA 0 0 4
[22] .data PROGBITS 000109cc 0009cc 000008 00 WA 0 0 4
[23] .bss NOBITS 000109d4 0009d4 000004 00 WA 0 0 1
[24] .comment PROGBITS 00000000 0009d4 00007e 00 0 0 1
[25] .debug_aranges PROGBITS 00000000 000a58 000078 00 0 0 8
[26] .debug_pubnames PROGBITS 00000000 000ad0 00001b 00 0 0 1
[27] .debug_info PROGBITS 00000000 000aeb 00064a 00 0 0 1
[28] .debug_abbrev PROGBITS 00000000 001135 000138 00 0 0 1
[29] .debug_line PROGBITS 00000000 00126d 0008c1 00 0 0 1
[30] .debug_frame PROGBITS 00000000 001b30 000028 00 0 0 4
[31] .debug_str PROGBITS 00000000 001b58 000331 01 MS 0 0 1
[32] .debug_loc PROGBITS 00000000 001e89 000069 00 0 0 1
[33] .debug_macinfo PROGBITS 00000000 001ef2 014a12 00 0 0 1
[34] .debug_ranges PROGBITS 00000000 016908 000048 00 0 0 8
[35] .ARM.attributes ARM_ATTRIBUTES 00000000 016950 000031 00 0 0 1
[36] .shstrtab STRTAB 00000000 016981 000178 00 0 0 1
[37] .symtab SYMTAB 00000000 017114 0006e0 10 38 83 4
[38] .strtab STRTAB 00000000 0177f4 00029a 00 0 0 1
Key to Flags:
W (write), A (alloc), X (execute), M (merge), S (strings)
I (info), L (link order), G (group), x (unknown)
O (extra OS processing required) o (OS specific), p (processor specific)

There are no section groups in this file.

Program Headers:
Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align
EXIDX 0x000860 0x00008860 0x00008860 0x00008 0x00008 R 0x4
PHDR 0x000034 0x00008034 0x00008034 0x00100 0x00100 R E 0x4
INTERP 0x000134 0x00008134 0x00008134 0x00013 0x00013 R 0x1
[Requesting program interpreter: /lib/ld-linux.so.3]
LOAD 0x000000 0x00008000 0x00008000 0x0086c 0x0086c R E 0x8000
LOAD 0x00086c 0x0001086c 0x0001086c 0x00168 0x0016c RW 0x8000
DYNAMIC 0x000878 0x00010878 0x00010878 0x00120 0x00120 RW 0x4
NOTE 0x000148 0x00008148 0x00008148 0x00020 0x00020 R 0x4
GNU_STACK 0x000000 0x00000000 0x00000000 0x00000 0x00000 RW 0x4

Section to Segment mapping:
Segment Sections...
00 .ARM.exidx
01
02 .interp
03 .interp .note.ABI-tag .hash .dynsym .dynstr .gnu.version .gnu.version_r .rel.dyn .rel.plt .init .plt .text .fini .rodata .ARM.exidx .eh_frame
04 .init_array .fini_array .jcr .dynamic .got .data .bss
05 .dynamic
06 .note.ABI-tag
07

Dynamic section at offset 0x878 contains 31 entries:
Tag Type Name/Value
0x00000001 (NEEDED) Shared library: [libruby.so.2.0]
0x00000001 (NEEDED) Shared library: [libpthread.so.0]
0x00000001 (NEEDED) Shared library: [librt.so.1]
0x00000001 (NEEDED) Shared library: [libdl.so.2]
0x00000001 (NEEDED) Shared library: [libcrypt.so.1]
0x00000001 (NEEDED) Shared library: [libm.so.6]
0x00000001 (NEEDED) Shared library: [libc.so.6]
0x0000000f (RPATH) Library rpath: [/home/jinleileiking/work/ruby/lib]
0x0000000c (INIT) 0x8624
0x0000000d (FINI) 0x8848
0x00000019 (INIT_ARRAY) 0x1086c
0x0000001b (INIT_ARRAYSZ) 4 (bytes)
0x0000001a (FINI_ARRAY) 0x10870
0x0000001c (FINI_ARRAYSZ) 4 (bytes)
0x00000004 (HASH) 0x8168
0x00000005 (STRTAB) 0x83e4
0x00000006 (SYMTAB) 0x8224
0x0000000a (STRSZ) 406 (bytes)
0x0000000b (SYMENT) 16 (bytes)
0x00000015 (DEBUG) 0x0
0x00000003 (PLTGOT) 0x10998
0x00000002 (PLTRELSZ) 72 (bytes)
0x00000014 (PLTREL) REL
0x00000017 (JMPREL) 0x85dc
0x00000011 (REL) 0x85d4
0x00000012 (RELSZ) 8 (bytes)
0x00000013 (RELENT) 8 (bytes)
0x6ffffffe (VERNEED) 0x85b4
0x6fffffff (VERNEEDNUM) 1
0x6ffffff0 (VERSYM) 0x857a
0x00000000 (NULL) 0x0

Relocation section '.rel.dyn' at offset 0x5d4 contains 1 entries:
Offset Info Type Sym.Value Sym. Name
000109c8 00000715 R_ARM_GLOB_DAT 00000000 gmon_start

Relocation section '.rel.plt' at offset 0x5dc contains 9 entries:
Offset Info Type Sym.Value Sym. Name
000109a4 00000216 R_ARM_JUMP_SLOT 0000864c ruby_run_node
000109a8 00000316 R_ARM_JUMP_SLOT 00008658 abort
000109ac 00000616 R_ARM_JUMP_SLOT 00008664 __libc_start_main
000109b0 00000716 R_ARM_JUMP_SLOT 00000000 gmon_start
000109b4 00000a16 R_ARM_JUMP_SLOT 0000867c ruby_init
000109b8 00000b16 R_ARM_JUMP_SLOT 00008688 ruby_options
000109bc 00001016 R_ARM_JUMP_SLOT 00008694 ruby_sysinit
000109c0 00001116 R_ARM_JUMP_SLOT 000086a0 setlocale
000109c4 00001816 R_ARM_JUMP_SLOT 000086ac ruby_init_stack

There are no unwind sections in this file.

Symbol table '.dynsym' contains 28 entries:
Num: Value Size Type Bind Vis Ndx Name
0: 00000000 0 NOTYPE LOCAL DEFAULT UND
1: 000109cc 0 NOTYPE WEAK DEFAULT 22 data_start
2: 0000864c 64 FUNC GLOBAL DEFAULT UND ruby_run_node
3: 00008658 728 FUNC GLOBAL DEFAULT UND abort@GLIBC_2.4 (2)
4: 000087d0 4 FUNC GLOBAL DEFAULT 12 __libc_csu_fini
5: 000086b8 0 FUNC GLOBAL DEFAULT 12 _start
6: 00008664 600 FUNC GLOBAL DEFAULT UND __libc_start_main@GLIBC_2.4 (2)
7: 00000000 0 NOTYPE WEAK DEFAULT UND gmon_start
8: 00000000 0 NOTYPE WEAK DEFAULT UND _Jv_RegisterClasses
9: 00008848 0 FUNC GLOBAL DEFAULT 13 _fini
10: 0000867c 44 FUNC GLOBAL DEFAULT UND ruby_init
11: 00008688 228 FUNC GLOBAL DEFAULT UND ruby_options
12: 00008858 4 OBJECT GLOBAL DEFAULT 14 _IO_stdin_used
13: 000109cc 0 NOTYPE GLOBAL DEFAULT 22 __data_start
14: 000109d4 0 NOTYPE GLOBAL DEFAULT ABS bss_start
15: 00008868 0 NOTYPE GLOBAL DEFAULT ABS __exidx_end
16: 00008694 432 FUNC GLOBAL DEFAULT UND ruby_sysinit
17: 000086a0 1808 FUNC GLOBAL DEFAULT UND setlocale@GLIBC_2.4 (2)
18: 000109d8 0 NOTYPE GLOBAL DEFAULT ABS end
19: 000087d4 116 FUNC GLOBAL DEFAULT 12 __libc_csu_init
20: 000109d8 0 NOTYPE GLOBAL DEFAULT ABS bss_end
21: 000109d4 0 NOTYPE GLOBAL DEFAULT ABS _bss_start
22: 000109d8 0 NOTYPE GLOBAL DEFAULT ABS bss_end

23: 000109d8 0 NOTYPE GLOBAL DEFAULT ABS _end
24: 000086ac 388 FUNC GLOBAL DEFAULT UND ruby_init_stack
25: 000109d4 0 NOTYPE GLOBAL DEFAULT ABS _edata
26: 00008860 0 NOTYPE GLOBAL DEFAULT ABS __exidx_start
27: 00008624 0 FUNC GLOBAL DEFAULT 10 _init

Symbol table '.symtab' contains 110 entries:
Num: Value Size Type Bind Vis Ndx Name
0: 00000000 0 NOTYPE LOCAL DEFAULT UND
1: 00008134 0 SECTION LOCAL DEFAULT 1
2: 00008148 0 SECTION LOCAL DEFAULT 2
3: 00008168 0 SECTION LOCAL DEFAULT 3
4: 00008224 0 SECTION LOCAL DEFAULT 4
5: 000083e4 0 SECTION LOCAL DEFAULT 5
6: 0000857a 0 SECTION LOCAL DEFAULT 6
7: 000085b4 0 SECTION LOCAL DEFAULT 7
8: 000085d4 0 SECTION LOCAL DEFAULT 8
9: 000085dc 0 SECTION LOCAL DEFAULT 9
10: 00008624 0 SECTION LOCAL DEFAULT 10
11: 00008638 0 SECTION LOCAL DEFAULT 11
12: 000086b8 0 SECTION LOCAL DEFAULT 12
13: 00008848 0 SECTION LOCAL DEFAULT 13
14: 00008858 0 SECTION LOCAL DEFAULT 14
15: 00008860 0 SECTION LOCAL DEFAULT 15
16: 00008868 0 SECTION LOCAL DEFAULT 16
17: 0001086c 0 SECTION LOCAL DEFAULT 17
18: 00010870 0 SECTION LOCAL DEFAULT 18
19: 00010874 0 SECTION LOCAL DEFAULT 19
20: 00010878 0 SECTION LOCAL DEFAULT 20
21: 00010998 0 SECTION LOCAL DEFAULT 21
22: 000109cc 0 SECTION LOCAL DEFAULT 22
23: 000109d4 0 SECTION LOCAL DEFAULT 23
24: 00000000 0 SECTION LOCAL DEFAULT 24
25: 00000000 0 SECTION LOCAL DEFAULT 25
26: 00000000 0 SECTION LOCAL DEFAULT 26
27: 00000000 0 SECTION LOCAL DEFAULT 27
28: 00000000 0 SECTION LOCAL DEFAULT 28
29: 00000000 0 SECTION LOCAL DEFAULT 29
30: 00000000 0 SECTION LOCAL DEFAULT 30
31: 00000000 0 SECTION LOCAL DEFAULT 31
32: 00000000 0 SECTION LOCAL DEFAULT 32
33: 00000000 0 SECTION LOCAL DEFAULT 33
34: 00000000 0 SECTION LOCAL DEFAULT 34
35: 00000000 0 SECTION LOCAL DEFAULT 35
36: 00000000 0 FILE LOCAL DEFAULT ABS initfini.c
37: 000086f0 0 FUNC LOCAL DEFAULT 12 call_gmon_start
38: 000086f0 0 NOTYPE LOCAL DEFAULT 12 $a
39: 0000870c 0 NOTYPE LOCAL DEFAULT 12 $d
40: 00008624 0 NOTYPE LOCAL DEFAULT 10 $a
41: 00008848 0 NOTYPE LOCAL DEFAULT 13 $a
42: 00008148 0 NOTYPE LOCAL DEFAULT 2 $d
43: 000086b8 0 NOTYPE LOCAL DEFAULT 12 $a
44: 000109cc 0 NOTYPE LOCAL DEFAULT 22 $d
45: 000086e4 0 NOTYPE LOCAL DEFAULT 12 $d
46: 00000000 0 FILE LOCAL DEFAULT ABS init.c
47: 00008858 0 NOTYPE LOCAL DEFAULT 14 $d
48: 00000000 0 FILE LOCAL DEFAULT ABS initfini.c
49: 00008630 0 NOTYPE LOCAL DEFAULT 10 $a
50: 00008850 0 NOTYPE LOCAL DEFAULT 13 $a
51: 00000000 0 FILE LOCAL DEFAULT ABS crtstuff.c
52: 00010874 0 OBJECT LOCAL DEFAULT 19 JCR_LIST
53: 00008714 0 FUNC LOCAL DEFAULT 12 __do_global_dtors_aux
54: 00008714 0 NOTYPE LOCAL DEFAULT 12 $a
55: 0000872c 0 NOTYPE LOCAL DEFAULT 12 $d
56: 000109d4 1 OBJECT LOCAL DEFAULT 23 completed.5422
57: 00010870 0 OBJECT LOCAL DEFAULT 18 __do_global_dtors_aux_fin
58: 00010870 0 NOTYPE LOCAL DEFAULT 18 $d
59: 00008730 0 FUNC LOCAL DEFAULT 12 frame_dummy
60: 00008730 0 NOTYPE LOCAL DEFAULT 12 $a
61: 00008764 0 NOTYPE LOCAL DEFAULT 12 $d
62: 0001086c 0 OBJECT LOCAL DEFAULT 17 _frame_dummy_init_array
63: 0001086c 0 NOTYPE LOCAL DEFAULT 17 $d
64: 00000000 0 FILE LOCAL DEFAULT ABS main.c
65: 00000000 0 NOTYPE LOCAL DEFAULT 33 $d
66: 0000876c 0 NOTYPE LOCAL DEFAULT 12 $a
67: 000087c8 0 NOTYPE LOCAL DEFAULT 12 $d
68: 00000000 0 FILE LOCAL DEFAULT ABS elf-init.c
69: 000087d0 0 NOTYPE LOCAL DEFAULT 12 $a
70: 0000883c 0 NOTYPE LOCAL DEFAULT 12 $d
71: 00000000 0 FILE LOCAL DEFAULT ABS crtstuff.c
72: 00008868 0 OBJECT LOCAL DEFAULT 16 FRAME_END
73: 00010874 0 OBJECT LOCAL DEFAULT 19 JCR_END
74: 00010998 0 OBJECT LOCAL HIDDEN 21 GLOBAL_OFFSET_TABLE
75: 000109d0 0 OBJECT LOCAL HIDDEN 22 __dso_handle
76: 00010870 0 NOTYPE LOCAL HIDDEN 17 __init_array_end
77: 0001086c 0 NOTYPE LOCAL HIDDEN 17 __init_array_start
78: 0000876c 100 FUNC LOCAL HIDDEN 12 main
79: 00010878 0 OBJECT LOCAL HIDDEN 20 _DYNAMIC
80: 00008638 0 NOTYPE LOCAL DEFAULT 11 $a
81: 00008648 0 NOTYPE LOCAL DEFAULT 11 $d
82: 0000864c 0 NOTYPE LOCAL DEFAULT 11 $a
83: 000109cc 0 NOTYPE WEAK DEFAULT 22 data_start
84: 0000864c 64 FUNC GLOBAL DEFAULT UND ruby_run_node
85: 00008658 728 FUNC GLOBAL DEFAULT UND abort@@GLIBC_2.4
86: 000087d0 4 FUNC GLOBAL DEFAULT 12 __libc_csu_fini
87: 000086b8 0 FUNC GLOBAL DEFAULT 12 _start
88: 00008664 600 FUNC GLOBAL DEFAULT UND _libc_start_main@@GLIBC
89: 00000000 0 NOTYPE WEAK DEFAULT UND gmon_start
90: 00000000 0 NOTYPE WEAK DEFAULT UND _Jv_RegisterClasses
91: 00008848 0 FUNC GLOBAL DEFAULT 13 _fini
92: 0000867c 44 FUNC GLOBAL DEFAULT UND ruby_init
93: 00008688 228 FUNC GLOBAL DEFAULT UND ruby_options
94: 00008858 4 OBJECT GLOBAL DEFAULT 14 _IO_stdin_used
95: 000109cc 0 NOTYPE GLOBAL DEFAULT 22 __data_start
96: 000109d4 0 NOTYPE GLOBAL DEFAULT ABS bss_start
97: 00008868 0 NOTYPE GLOBAL DEFAULT ABS __exidx_end
98: 00008694 432 FUNC GLOBAL DEFAULT UND ruby_sysinit
99: 000086a0 1808 FUNC GLOBAL DEFAULT UND setlocale@@GLIBC_2.4
100: 000109d8 0 NOTYPE GLOBAL DEFAULT ABS end
101: 000087d4 116 FUNC GLOBAL DEFAULT 12 __libc_csu_init
102: 000109d8 0 NOTYPE GLOBAL DEFAULT ABS bss_end
103: 000109d4 0 NOTYPE GLOBAL DEFAULT ABS _bss_start
104: 000109d8 0 NOTYPE GLOBAL DEFAULT ABS bss_end

105: 000109d8 0 NOTYPE GLOBAL DEFAULT ABS _end
106: 000086ac 388 FUNC GLOBAL DEFAULT UND ruby_init_stack
107: 000109d4 0 NOTYPE GLOBAL DEFAULT ABS _edata
108: 00008860 0 NOTYPE GLOBAL DEFAULT ABS __exidx_start
109: 00008624 0 FUNC GLOBAL DEFAULT 10 _init

Histogram for bucket list length (total of 17 buckets):
Length Number % of total Coverage
0 3 ( 17.6%)
1 6 ( 35.3%) 22.2%
2 4 ( 23.5%) 51.9%
3 3 ( 17.6%) 85.2%
4 1 ( 5.9%) 100.0%

Version symbols section '.gnu.version' contains 28 entries:
Addr: 000000000000857a Offset: 0x00057a Link: 4 (.dynsym)
000: 0 (local) 1 (global) 0 (local) 2 (GLIBC_2.4)
004: 1 (global) 1 (global) 2 (GLIBC_2.4) 0 (local)
008: 0 (local) 1 (global) 0 (local) 0 (local)
00c: 1 (global) 1 (global) 1 (global) 1 (global)
010: 0 (local) 2 (GLIBC_2.4) 1 (global) 1 (global)
014: 1 (global) 1 (global) 1 (global) 1 (global)
018: 0 (local) 1 (global) 1 (global) 1 (global)

Version needs section '.gnu.version_r' contains 1 entries:
Addr: 0x00000000000085b4 Offset: 0x0005b4 Link: 5 (.dynstr)
000000: Version: 1 File: libc.so.6 Cnt: 1
0x0010: Name: GLIBC_2.4 Flags: none Version: 2

Notes at offset 0x00000148 with length 0x00000020:
Owner Data size Description
GNU 0x00000010 NT_GNU_ABI_TAG (ABI version tag)
Attribute Section: aeabi
File Attributes
Tag_CPU_name: "7-A"
Tag_CPU_arch: v7
Tag_CPU_arch_profile: Application
Tag_ARM_ISA_use: Yes
Tag_THUMB_ISA_use: Thumb-1
Tag_VFP_arch: VFPv3
Tag_NEON_arch: NEONv1
Tag_ABI_PCS_wchar_t: 4
Tag_ABI_FP_denormal: Needed
Tag_ABI_FP_exceptions: Needed
Tag_ABI_FP_number_model: IEEE 754
Tag_ABI_align8_needed: Yes
Tag_ABI_align8_preserved: Yes, except leaf SP
Tag_ABI_enum_size: int
Tag_ABI_HardFP_use: SP and DP
}))

Updated by jinleileiking (lei king) over 12 years ago

(({➜ ruby git:(trunk) ✗ arm-angstrom-linux-gnueabi-nm -a ruby
00000000 n .ARM.attributes
00008860 r .ARM.exidx
000109d4 b .bss
00000000 n .comment
000109cc d .data
00000000 N .debug_abbrev
00000000 N .debug_aranges
00000000 N .debug_frame
00000000 N .debug_info
00000000 N .debug_line
00000000 N .debug_loc
00000000 N .debug_macinfo
00000000 N .debug_pubnames
00000000 N .debug_ranges
00000000 N .debug_str
00010878 d .dynamic
000083e4 r .dynstr
00008224 r .dynsym
00008868 r .eh_frame
00008848 t .fini
00010870 t .fini_array
0000857a r .gnu.version
000085b4 r .gnu.version_r
00010998 d .got
00008168 r .hash
00008624 t .init
0001086c t .init_array
00008134 r .interp
00010874 d .jcr
00008148 r .note.ABI-tag
00008638 t .plt
000085d4 r .rel.dyn
000085dc r .rel.plt
00008858 r .rodata
000086b8 t .text
00010878 d _DYNAMIC
00010998 d GLOBAL_OFFSET_TABLE
00008858 R _IO_stdin_used
w _Jv_RegisterClasses
00008868 r FRAME_END
00010874 d JCR_END
00010874 d JCR_LIST
000109d8 A bss_end
000109d4 A __bss_start
000109d4 A bss_start
000109cc D __data_start
00008714 t __do_global_dtors_aux
00010870 t __do_global_dtors_aux_fini_array_entry
000109d0 d __dso_handle
000109d8 A end
00008868 A __exidx_end
00008860 A __exidx_start
0001086c t __frame_dummy_init_array_entry
w gmon_start
00010870 t __init_array_end
0001086c t __init_array_start
000087d0 T __libc_csu_fini
000087d4 T __libc_csu_init
U _libc_start_main@@GLIBC_2.4
000109d8 A bss_end

000109d4 A _edata
000109d8 A _end
00008848 T _fini
00008624 T _init
000086b8 T _start
U abort@@GLIBC_2.4
000086f0 t call_gmon_start
000109d4 b completed.5422
00000000 a crtstuff.c
00000000 a crtstuff.c
000109cc W data_start
00000000 a elf-init.c
00008730 t frame_dummy
00000000 a init.c
00000000 a initfini.c
00000000 a initfini.c
0000876c t main
00000000 a main.c
U ruby_init
U ruby_init_stack
U ruby_options
U ruby_run_node
U ruby_sysinit
U setlocale@@GLIBC_2.4}))
=end

Updated by jinleileiking (lei king) over 12 years ago

=begin
➜ ruby git:(trunk) ✗ arm-angstrom-linux-gnueabi-nm -a ruby
00000000 n .ARM.attributes
00008860 r .ARM.exidx
000109d4 b .bss
00000000 n .comment
000109cc d .data
00000000 N .debug_abbrev
00000000 N .debug_aranges
00000000 N .debug_frame
00000000 N .debug_info
00000000 N .debug_line
00000000 N .debug_loc
00000000 N .debug_macinfo
00000000 N .debug_pubnames
00000000 N .debug_ranges
00000000 N .debug_str
00010878 d .dynamic
000083e4 r .dynstr
00008224 r .dynsym
00008868 r .eh_frame
00008848 t .fini
00010870 t .fini_array
0000857a r .gnu.version
000085b4 r .gnu.version_r
00010998 d .got
00008168 r .hash
00008624 t .init
0001086c t .init_array
00008134 r .interp
00010874 d .jcr
00008148 r .note.ABI-tag
00008638 t .plt
000085d4 r .rel.dyn
000085dc r .rel.plt
00008858 r .rodata
000086b8 t .text
00010878 d _DYNAMIC
00010998 d GLOBAL_OFFSET_TABLE
00008858 R _IO_stdin_used
w _Jv_RegisterClasses
00008868 r FRAME_END
00010874 d JCR_END
00010874 d JCR_LIST
000109d8 A bss_end
000109d4 A __bss_start
000109d4 A bss_start
000109cc D __data_start
00008714 t __do_global_dtors_aux
00010870 t __do_global_dtors_aux_fini_array_entry
000109d0 d __dso_handle
000109d8 A end
00008868 A __exidx_end
00008860 A __exidx_start
0001086c t __frame_dummy_init_array_entry
w gmon_start
00010870 t __init_array_end
0001086c t __init_array_start
000087d0 T __libc_csu_fini
000087d4 T __libc_csu_init
U _libc_start_main@@GLIBC_2.4
000109d8 A bss_end

000109d4 A _edata
000109d8 A _end
00008848 T _fini
00008624 T _init
000086b8 T _start
U abort@@GLIBC_2.4
000086f0 t call_gmon_start
000109d4 b completed.5422
00000000 a crtstuff.c
00000000 a crtstuff.c
000109cc W data_start
00000000 a elf-init.c
00008730 t frame_dummy
00000000 a init.c
00000000 a initfini.c
00000000 a initfini.c
0000876c t main
00000000 a main.c
U ruby_init
U ruby_init_stack
U ruby_options
U ruby_run_node
U ruby_sysinit
U setlocale@@GLIBC_2.4
=end

Updated by shyouhei (Shyouhei Urabe) over 12 years ago

Is it possible for you to obtain a stack backtrace of the segmentation fault? Show us one if any.

Updated by jinleileiking (lei king) over 12 years ago

shyouhei (Shyouhei Urabe) wrote:

Is it possible for you to obtain a stack backtrace of the segmentation fault? Show us one if any.

I have nothing output from my evm board.

I will try 1.9.2

Updated by jinleileiking (lei king) over 12 years ago

1.9.2 is ok:

root@am335x-evm:/bin# ruby -v
ruby 1.9.2p323 (2012-05-22 revision 35755) [arm-linux-eabi]

1.9.2 step:

  • autoreconf
  • make clean
  • env ac_cv_func_setpgrp_void=yes ./configure --host=arm-angstrom-linux-gnueabi --prefix=$HOME/work/ruby --enable-shared --disable-install-doc
  • make
  • make install
  • copy genfiles to evm board

  • ruby -v

root@am335x-evm:/bin# ruby -v
ruby 1.9.2p323 (2012-05-22 revision 35755) [arm-linux-eabi]

Updated by mame (Yusuke Endoh) about 12 years ago

  • Status changed from Open to Rejected
  • Target version set to 2.0.0

Sorry, there is no arm maintainer. Please try to create a patch yourself
if you need.
If you provide the patch for us, please open a ticket. We will check if
it is benign for other platforms and may apply to trunk.

--
Yusuke Endoh

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0