Guest User

Untitled

a guest
Apr 14th, 2012
140
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ~/source/Transmission$ 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 /usr/local/bin/transmission-daemon...done.
  12. (gdb) run
  13. Starting program: /usr/local/bin/transmission-daemon
  14. [Thread debugging using libthread_db enabled]
  15. [New Thread 0xb77fbb70 (LWP 3966)]
  16. [New Thread 0xb6ffab70 (LWP 3967)]
  17. [New Thread 0xb65ffb70 (LWP 3968)]
  18.  
  19. Program received signal SIGSEGV, Segmentation fault.
  20. [Switching to Thread 0xb77fbb70 (LWP 3966)]
  21. _int_malloc (av=0xb7d3a400, bytes=302200) at malloc.c:4709
  22. 4709    malloc.c: 没有那个文件或目录.
  23.     in malloc.c
  24. (gdb) bt
  25. #0  _int_malloc (av=0xb7d3a400, bytes=302200) at malloc.c:4709
  26. #1  0xb7c327f8 in __GI___libc_malloc (bytes=302200) at malloc.c:3660
  27. #2  0x080731c9 in tr_malloc (size=302200) at utils.c:335
  28. #3  0x08073697 in tr_loadFile (path=0x81c1818 "/home/mengjian/.config/transmission-daemon/torrents/4-12 美少女系列中文字幕10連發.08859820c54535dc.torrent", size=0xb77fb128) at utils.c:464
  29. #4  0x0806c043 in tr_ctorSetMetainfoFromFile (ctor=0x80f03c8, filename=0x81c1818 "/home/mengjian/.config/transmission-daemon/torrents/4-12 美少女系列中文字幕10連發.08859820c54535dc.torrent")
  30.     at torrent-ctor.c:139
  31. #5  0x08061372 in sessionLoadTorrents (vdata=0xbffff10c) at session.c:1917
  32. #6  0x08072621 in readFromPipe (fd=7, eventType=2, veh=0x80ee620) at trevent.c:192
  33. #7  0xb7f7ae09 in event_process_active_single_queue (activeq=<optimized out>, base=<optimized out>) at event.c:1340
  34. #8  event_process_active (base=<optimized out>) at event.c:1407
  35. #9  event_base_loop (base=0x80ee718, flags=0) at event.c:1604
  36. #10 0xb7f7bbc3 in event_base_dispatch (event_base=0x80ee718) at event.c:1435
  37. #11 0x080727ee in libeventThreadFunc (veh=0x80ee620) at trevent.c:248
  38. #12 0x0805a81a in ThreadFunc (_t=0x80ee670) at platform.c:118
  39. #13 0xb7d43d31 in start_thread (arg=0xb77fbb70) at pthread_create.c:304
  40. #14 0xb7c9246e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130
  41. Backtrace stopped: Not enough registers or memory available to unwind further
  42. (gdb) thread
  43. [Current thread is 2 (Thread 0xb77fbb70 (LWP 3966))]
  44. (gdb) info thread
  45.   Id   Target Id         Frame
  46.   4    Thread 0xb65ffb70 (LWP 3968) "transmission-da" 0xb7fdf424 in __kernel_vsyscall ()
  47.   3    Thread 0xb6ffab70 (LWP 3967) "transmission-da" 0xb7fdf424 in __kernel_vsyscall ()
  48. * 2    Thread 0xb77fbb70 (LWP 3966) "transmission-da" _int_malloc (av=0xb7d3a400, bytes=302200) at malloc.c:4709
  49.   1    Thread 0xb77fcad0 (LWP 3963) "transmission-da" 0xb7fdf424 in __kernel_vsyscall ()
  50. (gdb) up
  51. #1  0xb7c327f8 in __GI___libc_malloc (bytes=302200) at malloc.c:3660
  52. 3660    in malloc.c
  53. (gdb) list
  54. 3655    in malloc.c
  55. (gdb) l
  56. 3655    in malloc.c
  57. (gdb) up
  58. #2  0x080731c9 in tr_malloc (size=302200) at utils.c:335
  59. 335     return size ? malloc( size ) : NULL;
  60. (gdb) l
  61. 330 ***/
  62. 331
  63. 332 void*
  64. 333 tr_malloc( size_t size )
  65. 334 {
  66. 335     return size ? malloc( size ) : NULL;
  67. 336 }
  68. 337
  69. 338 void*
  70. 339 tr_malloc0( size_t size )
  71. (gdb) p size
  72. $1 = 302200
  73. (gdb) down
  74. #1  0xb7c327f8 in __GI___libc_malloc (bytes=302200) at malloc.c:3660
  75. 3660    malloc.c: 没有那个文件或目录.
  76.     in malloc.c
  77. (gdb) l
  78. 3655    in malloc.c
  79. (gdb) up
  80. #2  0x080731c9 in tr_malloc (size=302200) at utils.c:335
  81. 335     return size ? malloc( size ) : NULL;
  82. (gdb) up
  83. #3  0x08073697 in tr_loadFile (path=0x81c1818 "/home/mengjian/.config/transmission-daemon/torrents/4-12 美少女系列中文字幕10連發.08859820c54535dc.torrent", size=0xb77fb128) at utils.c:464
  84. 464     buf = tr_malloc( sb.st_size + 1 );
  85. (gdb) l
  86. 459         const int err = errno;
  87. 460         tr_err( err_fmt, path, tr_strerror( errno ) );
  88. 461         errno = err;
  89. 462         return NULL;
  90. 463     }
  91. 464     buf = tr_malloc( sb.st_size + 1 );
  92. 465     if( !buf )
  93. 466     {
  94. 467         const int err = errno;
  95. 468         tr_err( err_fmt, path, _( "Memory allocation failed" ) );
  96. (gdb) p sb
  97. $2 = {st_dev = 2050, __pad1 = 0, __st_ino = 114430032, st_mode = 33152, st_nlink = 1, st_uid = 1000, st_gid = 1000, st_rdev = 0, __pad2 = 0, st_size = 302199, st_blksize = 4096, st_blocks = 592, st_atim = {
  98.     tv_sec = 1334399529, tv_nsec = 869755821}, st_mtim = {tv_sec = 1334399529, tv_nsec = 869755821}, st_ctim = {tv_sec = 1334399529, tv_nsec = 869755821}, st_ino = 114430032}
  99. (gdb) p sb
  100. $3 = {st_dev = 2050, __pad1 = 0, __st_ino = 114430032, st_mode = 33152, st_nlink = 1, st_uid = 1000, st_gid = 1000, st_rdev = 0, __pad2 = 0, st_size = 302199, st_blksize = 4096, st_blocks = 592, st_atim = {
  101.     tv_sec = 1334399529, tv_nsec = 869755821}, st_mtim = {tv_sec = 1334399529, tv_nsec = 869755821}, st_ctim = {tv_sec = 1334399529, tv_nsec = 869755821}, st_ino = 114430032}
  102. (gdb) up
  103. #4  0x0806c043 in tr_ctorSetMetainfoFromFile (ctor=0x80f03c8, filename=0x81c1818 "/home/mengjian/.config/transmission-daemon/torrents/4-12 美少女系列中文字幕10連發.08859820c54535dc.torrent")
  104.     at torrent-ctor.c:139
  105. 139     metainfo = tr_loadFile( filename, &len );
  106. (gdb) l
  107. 134 {
  108. 135     uint8_t * metainfo;
  109. 136     size_t    len;
  110. 137     int       err;
  111. 138
  112. 139     metainfo = tr_loadFile( filename, &len );
  113. 140     if( metainfo && len )
  114. 141         err = tr_ctorSetMetainfo( ctor, metainfo, len );
  115. 142     else
  116. 143     {
  117. (gdb) p len
  118. $4 = 136058904
  119. (gdb) info threads
  120.   Id   Target Id         Frame
  121.   4    Thread 0xb65ffb70 (LWP 3968) "transmission-da" 0xb7fdf424 in __kernel_vsyscall ()
  122.   3    Thread 0xb6ffab70 (LWP 3967) "transmission-da" 0xb7fdf424 in __kernel_vsyscall ()
  123. * 2    Thread 0xb77fbb70 (LWP 3966) "transmission-da" _int_malloc (av=0xb7d3a400, bytes=302200) at malloc.c:4709
  124.   1    Thread 0xb77fcad0 (LWP 3963) "transmission-da" 0xb7fdf424 in __kernel_vsyscall ()
  125. (gdb) bt
  126. #0  _int_malloc (av=0xb7d3a400, bytes=302200) at malloc.c:4709
  127. #1  0xb7c327f8 in __GI___libc_malloc (bytes=302200) at malloc.c:3660
  128. #2  0x080731c9 in tr_malloc (size=302200) at utils.c:335
  129. #3  0x08073697 in tr_loadFile (path=0x81c1818 "/home/mengjian/.config/transmission-daemon/torrents/4-12 美少女系列中文字幕10連發.08859820c54535dc.torrent", size=0xb77fb128) at utils.c:464
  130. #4  0x0806c043 in tr_ctorSetMetainfoFromFile (ctor=0x80f03c8, filename=0x81c1818 "/home/mengjian/.config/transmission-daemon/torrents/4-12 美少女系列中文字幕10連發.08859820c54535dc.torrent")
  131.     at torrent-ctor.c:139
  132. #5  0x08061372 in sessionLoadTorrents (vdata=0xbffff10c) at session.c:1917
  133. #6  0x08072621 in readFromPipe (fd=7, eventType=2, veh=0x80ee620) at trevent.c:192
  134. #7  0xb7f7ae09 in event_process_active_single_queue (activeq=<optimized out>, base=<optimized out>) at event.c:1340
  135. #8  event_process_active (base=<optimized out>) at event.c:1407
  136. #9  event_base_loop (base=0x80ee718, flags=0) at event.c:1604
  137. #10 0xb7f7bbc3 in event_base_dispatch (event_base=0x80ee718) at event.c:1435
  138. #11 0x080727ee in libeventThreadFunc (veh=0x80ee620) at trevent.c:248
  139. #12 0x0805a81a in ThreadFunc (_t=0x80ee670) at platform.c:118
  140. #13 0xb7d43d31 in start_thread (arg=0xb77fbb70) at pthread_create.c:304
  141. #14 0xb7c9246e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130
  142. Backtrace stopped: Not enough registers or memory available to unwind further
  143. (gdb) q
  144. A debugging session is active.
  145.  
  146.     Inferior 1 [process 3963] will be killed.
  147.  
  148. Quit anyway? (y or n)
  149. Please answer y or n.
  150. A debugging session is active.
  151.  
  152.     Inferior 1 [process 3963] will be killed.
  153.  
  154. Quit anyway? (y or n) y
  155. mengjian@DreamDean:~/source/Transmission$ transmission-daemon
RAW Paste Data