re: vdso
vijay nag <[email protected]>
| Newsgroups | gmane.comp.gdb.devel |
|---|---|
| Message-ID | <CAKhyrx_TULNrWwSJ0zPq4tgd8MOpkhSRYZfbMRFcRLw7P0mj4Q@mail.gmail.com> |
Hello,
I recently upgraded my compiler/glibc to gcc-4.7.2/glibc-2.17. If I
enable vdso, gdb is unable to crawl through the stack(back-trace) when
the program does a jump to vdso-area to execute
sysenter system call.
Is it a known issue ?
(gdb) bt
#0 0xb7fff410 in ?? ()
#1 0x122f234e in main (argc=4, argv=0xbffff854, env=0xbffff86c) at
main/sn_main.c:450
(gdb) info register
eax 0xfffffffc -4
ecx 0x19 25
edx 0x6 6
ebx 0x1dc24c48 499272776
esp 0xbffff2b8 0xbffff2b8
ebp 0xbffff768 0xbffff768
esi 0x6 6
edi 0x43 67
eip 0xb7fff410 0xb7fff410
eflags 0x246 [ PF ZF IF ]
cs 0x73 115
ss 0x7b 123
ds 0x7b 123
es 0x7b 123
fs 0x0 0
gs 0x33 51
(gdb) disassemble $eip
0xb7fff400 push %ecx
│
│0xb7fff401 push %edx
│
│0xb7fff402 push %ebp
│
│0xb7fff403 mov %esp,%ebp
│
│0xb7fff405 sysenter
│
│0xb7fff407 nop
│
│0xb7fff408 nop
│
│0xb7fff409 nop
│
│0xb7fff40a nop
│
│0xb7fff40b nop
│
│0xb7fff40c nop
│
│0xb7fff40d nop
│
│0xb7fff40e jmp 0xb7fff403
│
│0xb7fff410 pop %ebp
│
│0xb7fff411 pop %edx
│
│0xb7fff412 pop %ecx
│
│0xb7fff413 ret
cat /proc/15896/smaps | grep vdso
778:b7fff000-b8000000 r-xp b7fff000 00:00 0 [vdso]
Does vdso come with symbols ?