Guest User

after my hack gdb output,:(

a guest
Apr 15th, 2012
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
GDB 5.02 KB | None | 0 0
  1. mengjian@DreamDean:~/source/Transmission/daemon$ gdb ./transmission-daemon
  2. GNU gdb (Ubuntu/Linaro 7.3-0ubuntu2) 7.3-2011.08
  3. Copyright (C) 2011 Free Software Foundation, Inc.
  4. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
  5. This is free software: you are free to change and redistribute it.
  6. There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
  7. and "show warranty" for details.
  8. This GDB was configured as "i686-linux-gnu".
  9. For bug reporting instructions, please see:
  10. <http://bugs.launchpad.net/gdb-linaro/>...
  11. Reading symbols from /home/mengjian/source/Transmission/daemon/transmission-daemon...done.
  12. (gdb) run
  13. Starting program: /home/mengjian/source/Transmission/daemon/transmission-daemon
  14. [Thread debugging using libthread_db enabled]
  15. [New Thread 0xb77fbb70 (LWP 21720)]
  16. [New Thread 0xb6ffab70 (LWP 21721)]
  17. [New Thread 0xb65ffb70 (LWP 21722)]
  18.  
  19. Program received signal SIGSEGV, Segmentation fault.
  20. [Switching to Thread 0xb77fbb70 (LWP 21720)]
  21. _int_malloc (av=0xb6600010, bytes=32768) at malloc.c:4709
  22. 4709    malloc.c: 没有那个文件或目录.
  23.     in malloc.c
  24. (gdb) bt
  25. #0  _int_malloc (av=0xb6600010, bytes=32768) at malloc.c:4709
  26. #1  0xb7c327f8 in __GI___libc_malloc (bytes=32768) at malloc.c:3660
  27. #2  0x0807324c in tr_malloc (size=32768) at utils.c:341
  28. #3  0xb7f79822 in event_mm_malloc_ (sz=32768) at event.c:2620
  29. #4  0xb7f7edce in evbuffer_chain_new (size=<optimized out>) at buffer.c:168
  30. #5  0xb7f81c01 in evbuffer_add (buf=0xb66b6290, data_in=0xb66b62f0, datlen=29020) at buffer.c:1591
  31. #6  0x0804fe49 in saveStringFunc (val=0xb66bd500, evbuf=0xb66b6290) at bencode.c:1166
  32. #7  0x0804faf9 in bencWalk (top=0xb66b5a68, walkFuncs=0x80c386c, user_data=0xb66b6290, sort_dicts=true)
  33.     at bencode.c:1088
  34. #8  0x08050df1 in tr_bencToBuf (top=0xb66b5a68, mode=TR_FMT_BENC) at bencode.c:1628
  35. #9  0x08050e6c in tr_bencToStr (top=0xb66b5a68, mode=TR_FMT_BENC, len=0xb77faf20) at bencode.c:1650
  36. #10 0x08087ae7 in tr_metainfoParseImpl (session=0x80ee1b8, inf=0xb77fb0ac, hasInfoDict=0xb77fafda,
  37.     infoDictLength=0xb77fb09c, meta_in=0x80f03b4) at metainfo.c:479
  38. #11 0x08088081 in tr_metainfoParse (session=0x80ee1b8, meta_in=0x80f03b4, inf=0xb77fb0ac,
  39.     hasInfoDict=0xb77fafda, infoDictLength=0xb77fb09c) at metainfo.c:578
  40. #12 0x080663a3 in torrentParseImpl (ctor=0x80f03a8, setmeInfo=0xb77fb0ac, setmeHasInfo=0xb77fb0ab,
  41.     dictLength=0xb77fb09c) at torrent.c:931
  42. #13 0x0806659c in tr_torrentNew (ctor=0x80f03a8, setmeError=0x0) at torrent.c:971
  43. #14 0x080613c8 in sessionLoadTorrents (vdata=0xbffff0dc) at session.c:1918
  44. #15 0x08072661 in readFromPipe (fd=7, eventType=2, veh=0x80ee648) at trevent.c:192
  45. #16 0xb7f7ae09 in event_process_active_single_queue (activeq=<optimized out>, base=<optimized out>)
  46.     at event.c:1340
  47. #17 event_process_active (base=<optimized out>) at event.c:1407
  48. #18 event_base_loop (base=0x80ee740, flags=0) at event.c:1604
  49. #19 0xb7f7bbc3 in event_base_dispatch (event_base=0x80ee740) at event.c:1435
  50. #20 0x0807282e in libeventThreadFunc (veh=0x80ee648) at trevent.c:248
  51. #21 0x0805a85a in ThreadFunc (_t=0x80ee698) at platform.c:118
  52. #22 0xb7d43d31 in start_thread (arg=0xb77fbb70) at pthread_create.c:304
  53. #23 0xb7c9246e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130
  54. Backtrace stopped: Not enough registers or memory available to unwind further
  55. (gdb) l
  56. 4704    in malloc.c
  57. (gdb) up
  58. #1  0xb7c327f8 in __GI___libc_malloc (bytes=32768) at malloc.c:3660
  59. 3660    in malloc.c
  60. (gdb) l
  61. 3655    in malloc.c
  62. (gdb) up
  63. #2  0x0807324c in tr_malloc (size=32768) at utils.c:341
  64. 341         p = malloc(size);
  65. (gdb) l
  66. 336     if(size){
  67. 337         if(!tr_glockMalloc){
  68. 338         tr_glockMalloc = tr_lockNew();    
  69. 339     }
  70. 340     tr_lockLock(tr_glockMalloc);
  71. 341         p = malloc(size);
  72. 342         tr_lockUnlock(tr_glockMalloc);
  73. 343     }
  74. 344     return p;
  75. 345     //return size ? malloc( size ) : NULL;
  76. (gdb) up
  77. #3  0xb7f79822 in event_mm_malloc_ (sz=32768) at event.c:2620
  78. 2620    event.c: 没有那个文件或目录.
  79.     in event.c
  80. (gdb)
  81. #4  0xb7f7edce in evbuffer_chain_new (size=<optimized out>) at buffer.c:168
  82. 168 buffer.c: 没有那个文件或目录.
  83.     in buffer.c
  84. (gdb)
  85. #5  0xb7f81c01 in evbuffer_add (buf=0xb66b6290, data_in=0xb66b62f0, datlen=29020) at buffer.c:1591
  86. 1591    in buffer.c
  87. (gdb) dump
  88. "dump" must be followed by a subcommand.
  89.  
  90. List of dump subcommands:
  91.  
  92. dump binary -- Write target code/data to a raw binary file
  93. dump ihex -- Write target code/data to an intel hex file
  94. dump memory -- Write contents of memory to a raw binary file
  95. dump srec -- Write target code/data to an srec file
  96. dump tekhex -- Write target code/data to a tekhex file
  97. dump value -- Write the value of an expression to a raw binary file
  98.  
  99. Type "help dump" followed by dump subcommand name for full documentation.
  100. Type "apropos word" to search for commands related to "word".
  101. Command name abbreviations are allowed if unambiguous.
  102. (gdb) q
  103. A debugging session is active.
  104.  
  105.     Inferior 1 [process 21717] will be killed.
  106.  
  107. Quit anyway? (y or n) y
  108. mengjian@DreamDean:~/source/Transmission/daemon$
Add Comment
Please, Sign In to add comment