Advertisement
Guest User

Untitled

a guest
Mar 1st, 2012
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.58 KB | None | 0 0
  1. [root@localhost test]#
  2. [root@localhost test]#
  3. [root@localhost test]# gcc -o server ex-serv-srp.c -lgnutls -Wall -Werror -g
  4. [root@localhost test]#
  5. [root@localhost test]#
  6. [root@localhost test]# gdb
  7. GNU gdb (GDB) Red Hat Enterprise Linux (7.2-50.el6)
  8. Copyright (C) 2010 Free Software Foundation, Inc.
  9. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
  10. This is free software: you are free to change and redistribute it.
  11. There is NO WARRANTY, to the extent permitted by law. Type "show copying"
  12. and "show warranty" for details.
  13. This GDB was configured as "i686-redhat-linux-gnu".
  14. For bug reporting instructions, please see:
  15. <http://www.gnu.org/software/gdb/bugs/>.
  16. (gdb) file /opt/test/server
  17. Reading symbols from /opt/test/server...done.
  18. (gdb) run /opt/test/server
  19. Starting program: /opt/test/server /opt/test/server
  20. [Thread debugging using libthread_db enabled]
  21. Echo Server ready. Listening to port '5556'.
  22.  
  23. - connection from 127.0.0.1, port 38149
  24. *** glibc detected *** /opt/test/server: double free or corruption (fasttop): 0x080585c0 ***
  25. ======= Backtrace: =========
  26. /lib/libc.so.6(+0x6ea31)[0x28da31]
  27. /usr/local/lib/libgnutls.so.28(+0x90bd9)[0x1c1bd9]
  28. /usr/local/lib/libgnutls.so.28(+0x9095a)[0x1c195a]
  29. /usr/local/lib/libgnutls.so.28(+0x1e878)[0x14f878]
  30. /usr/local/lib/libgnutls.so.28(+0x1c1a8)[0x14d1a8]
  31. /usr/local/lib/libgnutls.so.28(gnutls_handshake+0x47)[0x14d937]
  32. /opt/test/server[0x8049040]
  33. /lib/libc.so.6(__libc_start_main+0xe6)[0x235ce6]
  34. /opt/test/server[0x8048c51]
  35. ======= Memory map: ========
  36. 00110000-0012e000 r-xp 00000000 fd:00 131042 /lib/ld-2.12.so
  37. 0012e000-0012f000 r--p 0001d000 fd:00 131042 /lib/ld-2.12.so
  38. 0012f000-00130000 rw-p 0001e000 fd:00 131042 /lib/ld-2.12.so
  39. 00130000-00131000 r-xp 00000000 00:00 0 [vdso]
  40. 00131000-00219000 r-xp 00000000 fd:00 18887 /usr/local/lib/libgnutls.so.28.3.0
  41. 00219000-0021f000 rw-p 000e7000 fd:00 18887 /usr/local/lib/libgnutls.so.28.3.0
  42. 0021f000-003a8000 r-xp 00000000 fd:00 131049 /lib/libc-2.12.so
  43. 003a8000-003a9000 ---p 00189000 fd:00 131049 /lib/libc-2.12.so
  44. 003a9000-003ab000 r--p 00189000 fd:00 131049 /lib/libc-2.12.so
  45. 003ab000-003ac000 rw-p 0018b000 fd:00 131049 /lib/libc-2.12.so
  46. 003ac000-003af000 rw-p 00000000 00:00 0
  47. 003af000-003fb000 r-xp 00000000 fd:00 4823 /usr/lib/sse2/libgmp.so.3.5.0
  48. 003fb000-003fe000 rw-p 0004b000 fd:00 4823 /usr/lib/sse2/libgmp.so.3.5.0
  49. 003fe000-00405000 r-xp 00000000 fd:00 131077 /lib/librt-2.12.so
  50. 00405000-00406000 r--p 00006000 fd:00 131077 /lib/librt-2.12.so
  51. 00406000-00407000 rw-p 00007000 fd:00 131077 /lib/librt-2.12.so
  52. 00407000-0041e000 r-xp 00000000 fd:00 131073 /lib/libpthread-2.12.so
  53. 0041e000-0041f000 r--p 00016000 fd:00 131073 /lib/libpthread-2.12.so
  54. 0041f000-00420000 rw-p 00017000 fd:00 131073 /lib/libpthread-2.12.so
  55. 00420000-00422000 rw-p 00000000 00:00 0
  56. 00422000-0043f000 r-xp 00000000 fd:00 131015 /lib/libgcc_s-4.4.6-20110824.so.1
  57. 0043f000-00440000 rw-p 0001d000 fd:00 131015 /lib/libgcc_s-4.4.6-20110824.so.1
  58. 08048000-0804a000 r-xp 00000000 fd:00 281891 /opt/test/server
  59. 0804a000-0804b000 rw-p 00001000 fd:00 281891 /opt/test/server
  60. 0804b000-0806c000 rw-p 00000000 00:00 0 [heap]
  61. b7ff5000-b7ff7000 rw-p 00000000 00:00 0
  62. b7ffb000-b8000000 rw-p 00000000 00:00 0
  63. bffeb000-c0000000 rw-p 00000000 00:00 0 [stack]
  64.  
  65. Program received signal SIGABRT, Aborted.
  66. 0x00130416 in __kernel_vsyscall ()
  67. 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
  68. (gdb)
  69. (gdb)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement