Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [root@localhost test]#
- [root@localhost test]#
- [root@localhost test]# gcc -o server ex-serv-srp.c -lgnutls -Wall -Werror -g
- [root@localhost test]#
- [root@localhost test]#
- [root@localhost test]# gdb
- GNU gdb (GDB) Red Hat Enterprise Linux (7.2-50.el6)
- Copyright (C) 2010 Free Software Foundation, Inc.
- License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
- This is free software: you are free to change and redistribute it.
- There is NO WARRANTY, to the extent permitted by law. Type "show copying"
- and "show warranty" for details.
- This GDB was configured as "i686-redhat-linux-gnu".
- For bug reporting instructions, please see:
- <http://www.gnu.org/software/gdb/bugs/>.
- (gdb) file /opt/test/server
- Reading symbols from /opt/test/server...done.
- (gdb) run /opt/test/server
- Starting program: /opt/test/server /opt/test/server
- [Thread debugging using libthread_db enabled]
- Echo Server ready. Listening to port '5556'.
- - connection from 127.0.0.1, port 38149
- *** glibc detected *** /opt/test/server: double free or corruption (fasttop): 0x080585c0 ***
- ======= Backtrace: =========
- /lib/libc.so.6(+0x6ea31)[0x28da31]
- /usr/local/lib/libgnutls.so.28(+0x90bd9)[0x1c1bd9]
- /usr/local/lib/libgnutls.so.28(+0x9095a)[0x1c195a]
- /usr/local/lib/libgnutls.so.28(+0x1e878)[0x14f878]
- /usr/local/lib/libgnutls.so.28(+0x1c1a8)[0x14d1a8]
- /usr/local/lib/libgnutls.so.28(gnutls_handshake+0x47)[0x14d937]
- /opt/test/server[0x8049040]
- /lib/libc.so.6(__libc_start_main+0xe6)[0x235ce6]
- /opt/test/server[0x8048c51]
- ======= Memory map: ========
- 00110000-0012e000 r-xp 00000000 fd:00 131042 /lib/ld-2.12.so
- 0012e000-0012f000 r--p 0001d000 fd:00 131042 /lib/ld-2.12.so
- 0012f000-00130000 rw-p 0001e000 fd:00 131042 /lib/ld-2.12.so
- 00130000-00131000 r-xp 00000000 00:00 0 [vdso]
- 00131000-00219000 r-xp 00000000 fd:00 18887 /usr/local/lib/libgnutls.so.28.3.0
- 00219000-0021f000 rw-p 000e7000 fd:00 18887 /usr/local/lib/libgnutls.so.28.3.0
- 0021f000-003a8000 r-xp 00000000 fd:00 131049 /lib/libc-2.12.so
- 003a8000-003a9000 ---p 00189000 fd:00 131049 /lib/libc-2.12.so
- 003a9000-003ab000 r--p 00189000 fd:00 131049 /lib/libc-2.12.so
- 003ab000-003ac000 rw-p 0018b000 fd:00 131049 /lib/libc-2.12.so
- 003ac000-003af000 rw-p 00000000 00:00 0
- 003af000-003fb000 r-xp 00000000 fd:00 4823 /usr/lib/sse2/libgmp.so.3.5.0
- 003fb000-003fe000 rw-p 0004b000 fd:00 4823 /usr/lib/sse2/libgmp.so.3.5.0
- 003fe000-00405000 r-xp 00000000 fd:00 131077 /lib/librt-2.12.so
- 00405000-00406000 r--p 00006000 fd:00 131077 /lib/librt-2.12.so
- 00406000-00407000 rw-p 00007000 fd:00 131077 /lib/librt-2.12.so
- 00407000-0041e000 r-xp 00000000 fd:00 131073 /lib/libpthread-2.12.so
- 0041e000-0041f000 r--p 00016000 fd:00 131073 /lib/libpthread-2.12.so
- 0041f000-00420000 rw-p 00017000 fd:00 131073 /lib/libpthread-2.12.so
- 00420000-00422000 rw-p 00000000 00:00 0
- 00422000-0043f000 r-xp 00000000 fd:00 131015 /lib/libgcc_s-4.4.6-20110824.so.1
- 0043f000-00440000 rw-p 0001d000 fd:00 131015 /lib/libgcc_s-4.4.6-20110824.so.1
- 08048000-0804a000 r-xp 00000000 fd:00 281891 /opt/test/server
- 0804a000-0804b000 rw-p 00001000 fd:00 281891 /opt/test/server
- 0804b000-0806c000 rw-p 00000000 00:00 0 [heap]
- b7ff5000-b7ff7000 rw-p 00000000 00:00 0
- b7ffb000-b8000000 rw-p 00000000 00:00 0
- bffeb000-c0000000 rw-p 00000000 00:00 0 [stack]
- Program received signal SIGABRT, Aborted.
- 0x00130416 in __kernel_vsyscall ()
- Missing separate debuginfos, use: debuginfo-install glibc-2.12-1.47.el6_2.5.i686 gmp-4.3.1-7.el6.i686 libgcc-4.4.6-3.el6.i686
- (gdb)
- (gdb)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement