This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/13580] crash in glibc with dlopen and math functions
- From: "aj at suse dot de" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: Tue, 10 Jan 2012 12:18:10 +0000
- Subject: [Bug libc/13580] crash in glibc with dlopen and math functions
- Auto-submitted: auto-generated
- References: <bug-13580-131@http.sourceware.org/bugzilla/>
http://sourceware.org/bugzilla/show_bug.cgi?id=13580
--- Comment #2 from Andreas Jaeger <aj at suse dot de> 2012-01-10 12:18:10 UTC ---
Program received signal SIGSEGV, Segmentation fault.
0x0000000000005446 in ?? ()
(gdb) info registers
rax 0x7ffff5122c88 140737304997000
rbx 0x612ff0 6369264
rcx 0xa 10
rdx 0x610400 6358016
rsi 0x7ffff513b090 140737305096336
rdi 0x0 0
rbp 0x7fffffffd950 0x7fffffffd950
rsp 0x7fffffffd840 0x7fffffffd840
r8 0x1 1
r9 0x0 0
r10 0x7fffffffd680 140737488344704
r11 0x7fffffffd800 140737488345088
r12 0x7ffff3f58cf8 140737286343928
r13 0x7ffff3f60b68 140737286376296
r14 0x7 7
r15 0x7ffff41df200 140737288991232
rip 0x5446 0x5446
eflags 0x10246 [ PF ZF IF RF ]
cs 0x33 51
ss 0x2b 43
ds 0x0 0
es 0x0 0
fs 0x0 0
gs 0x0 0
(gdb) up
#1 0x00007ffff513b095 in floor () from /lib64/libm.so.6
(gdb) disassemble
Dump of assembler code for function floor:
0x00007ffff513b090 <+0>: callq 0x7ffff5126440 <__get_cpu_features@plt>
=> 0x00007ffff513b095 <+5>: mov %rax,%rdx
0x00007ffff513b098 <+8>: lea 0x11(%rip),%rax # 0x7ffff513b0b0
<__floor_sse41>
0x00007ffff513b09f <+15>: testl $0x80000,0x10(%rdx)
0x00007ffff513b0a6 <+22>: jne 0x7ffff513b0af <floor+31>
0x00007ffff513b0a8 <+24>: lea 0x25f71(%rip),%rax #
0x7ffff5161020 <__floor_c>
0x00007ffff513b0af <+31>: retq
End of assembler dump.
(gdb) disassemble 0x7ffff5126440
Dump of assembler code for function __get_cpu_features@plt:
0x00007ffff5126440 <+0>: jmpq *0x2edbe2(%rip) # 0x7ffff5414028
0x00007ffff5126446 <+6>: pushq $0x5
0x00007ffff512644b <+11>: jmpq 0x7ffff51263e0
End of assembler dump.
(gdb) disassemble 0x7ffff5414028
No function contains specified address.
(gdb) show 0x7ffff5414028
Undefined show command: "0x7ffff5414028". Try "help show".
(gdb) list 0x7ffff5414028
Function "0x7ffff5414028" not defined.
(gdb) x 0x7ffff5414028
0x7ffff5414028: 0x00005446
And objdump on libm.so.6 show:
0000000000005440 <__get_cpu_features@plt>:
5440: ff 25 e2 db 2e 00 jmpq *0x2edbe2(%rip) # 2f3028
<_GLOBAL_OFFSET_TABLE_+0x40>
5446: 68 05 00 00 00 pushq $0x5
544b: e9 90 ff ff ff jmpq 53e0 <_init+0x18>
So, the plt is not processed yet.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.