Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#46 pstree crash with buffer overflow

Next Release
closed
nobody
None
5
2014-08-18
2012-01-30
snowman123
No

In psmisc 22.15, pstree crashes on start up with a buffer overflow error. Here's the backtrace below. If you need more information, please ask.

(gdb) run
Starting program: /usr/bin/pstree
buffer overflow detected : /usr/bin/pstree terminated
======= Backtrace: =========
/lib/libc.so.6(fortify_fail+0x37)[0x7ffff78d6df7]
/lib/libc.so.6(+0xf5d80)[0x7ffff78d4d80]
/usr/bin/pstree[0x402e42]
/usr/bin/pstree[0x402f7a]
/usr/bin/pstree[0x401e3d]
/lib/libc.so.6(
libc_start_main+0xed)[0x7ffff780038d]
/usr/bin/pstree[0x402045]
======= Memory map: ========
00400000-00405000 r-xp 00000000 fd:02 298864 /usr/bin/pstree
00604000-00605000 r--p 00004000 fd:02 298864 /usr/bin/pstree
00605000-00606000 rw-p 00005000 fd:02 298864 /usr/bin/pstree
00606000-00648000 rw-p 00000000 00:00 0 [heap]
7ffff7129000-7ffff713e000 r-xp 00000000 fd:02 545259 /usr/lib/libgcc_s.so.1
7ffff713e000-7ffff733e000 ---p 00015000 fd:02 545259 /usr/lib/libgcc_s.so.1
7ffff733e000-7ffff733f000 rw-p 00015000 fd:02 545259 /usr/lib/libgcc_s.so.1
7ffff733f000-7ffff77df000 r--p 00000000 fd:02 206350 /usr/lib/locale/locale-archive
7ffff77df000-7ffff7975000 r-xp 00000000 fd:02 66686 /lib/libc-2.15.so
7ffff7975000-7ffff7b75000 ---p 00196000 fd:02 66686 /lib/libc-2.15.so
7ffff7b75000-7ffff7b79000 r--p 00196000 fd:02 66686 /lib/libc-2.15.so
7ffff7b79000-7ffff7b7b000 rw-p 0019a000 fd:02 66686 /lib/libc-2.15.so
7ffff7b7b000-7ffff7b7f000 rw-p 00000000 00:00 0
7ffff7b7f000-7ffff7bd7000 r-xp 00000000 fd:02 67831 /lib/libncursesw.so.5.9
7ffff7bd7000-7ffff7dd6000 ---p 00058000 fd:02 67831 /lib/libncursesw.so.5.9
7ffff7dd6000-7ffff7dda000 r--p 00057000 fd:02 67831 /lib/libncursesw.so.5.9
7ffff7dda000-7ffff7ddb000 rw-p 0005b000 fd:02 67831 /lib/libncursesw.so.5.9
7ffff7ddb000-7ffff7ddc000 rw-p 00000000 00:00 0
7ffff7ddc000-7ffff7dfd000 r-xp 00000000 fd:02 66696 /lib/ld-2.15.so
7ffff7fca000-7ffff7fcd000 rw-p 00000000 00:00 0
7ffff7ff8000-7ffff7ffb000 rw-p 00000000 00:00 0
7ffff7ffb000-7ffff7ffc000 r-xp 00000000 00:00 0 [vdso]
7ffff7ffc000-7ffff7ffd000 r--p 00020000 fd:02 66696 /lib/ld-2.15.so
7ffff7ffd000-7ffff7ffe000 rw-p 00021000 fd:02 66696 /lib/ld-2.15.so
7ffff7ffe000-7ffff7fff000 rw-p 00000000 00:00 0
7ffffffde000-7ffffffff000 rw-p 00000000 00:00 0 [stack]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall]

Program received signal SIGABRT, Aborted.
0x00007ffff7813935 in raise () from /lib/libc.so.6
(gdb) trace
Tracepoint 1 at 0x7ffff7813935
(gdb) bt

0 0x00007ffff7813935 in raise () from /lib/libc.so.6

1 0x00007ffff7814dab in abort () from /lib/libc.so.6

2 0x00007ffff78508be in __libc_message () from /lib/libc.so.6

3 0x00007ffff78d6df7 in __fortify_fail () from /lib/libc.so.6

4 0x00007ffff78d4d80 in __chk_fail () from /lib/libc.so.6

5 0x0000000000402e42 in new_proc ()

6 0x0000000000402f7a in add_proc ()

7 0x0000000000401e3d in main ()

Discussion


Anonymous


Cancel   Add attachments