Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mengjian@DreamDean:~/source/Transmission/daemon$ gdb ./transmission-daemon
- GNU gdb (Ubuntu/Linaro 7.3-0ubuntu2) 7.3-2011.08
- Copyright (C) 2011 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-linux-gnu".
- For bug reporting instructions, please see:
- <http://bugs.launchpad.net/gdb-linaro/>...
- Reading symbols from /home/mengjian/source/Transmission/daemon/transmission-daemon...done.
- (gdb) run
- Starting program: /home/mengjian/source/Transmission/daemon/transmission-daemon
- [Thread debugging using libthread_db enabled]
- [New Thread 0xb77fbb70 (LWP 21720)]
- [New Thread 0xb6ffab70 (LWP 21721)]
- [New Thread 0xb65ffb70 (LWP 21722)]
- Program received signal SIGSEGV, Segmentation fault.
- [Switching to Thread 0xb77fbb70 (LWP 21720)]
- _int_malloc (av=0xb6600010, bytes=32768) at malloc.c:4709
- 4709 malloc.c: 没有那个文件或目录.
- in malloc.c
- (gdb) bt
- #0 _int_malloc (av=0xb6600010, bytes=32768) at malloc.c:4709
- #1 0xb7c327f8 in __GI___libc_malloc (bytes=32768) at malloc.c:3660
- #2 0x0807324c in tr_malloc (size=32768) at utils.c:341
- #3 0xb7f79822 in event_mm_malloc_ (sz=32768) at event.c:2620
- #4 0xb7f7edce in evbuffer_chain_new (size=<optimized out>) at buffer.c:168
- #5 0xb7f81c01 in evbuffer_add (buf=0xb66b6290, data_in=0xb66b62f0, datlen=29020) at buffer.c:1591
- #6 0x0804fe49 in saveStringFunc (val=0xb66bd500, evbuf=0xb66b6290) at bencode.c:1166
- #7 0x0804faf9 in bencWalk (top=0xb66b5a68, walkFuncs=0x80c386c, user_data=0xb66b6290, sort_dicts=true)
- at bencode.c:1088
- #8 0x08050df1 in tr_bencToBuf (top=0xb66b5a68, mode=TR_FMT_BENC) at bencode.c:1628
- #9 0x08050e6c in tr_bencToStr (top=0xb66b5a68, mode=TR_FMT_BENC, len=0xb77faf20) at bencode.c:1650
- #10 0x08087ae7 in tr_metainfoParseImpl (session=0x80ee1b8, inf=0xb77fb0ac, hasInfoDict=0xb77fafda,
- infoDictLength=0xb77fb09c, meta_in=0x80f03b4) at metainfo.c:479
- #11 0x08088081 in tr_metainfoParse (session=0x80ee1b8, meta_in=0x80f03b4, inf=0xb77fb0ac,
- hasInfoDict=0xb77fafda, infoDictLength=0xb77fb09c) at metainfo.c:578
- #12 0x080663a3 in torrentParseImpl (ctor=0x80f03a8, setmeInfo=0xb77fb0ac, setmeHasInfo=0xb77fb0ab,
- dictLength=0xb77fb09c) at torrent.c:931
- #13 0x0806659c in tr_torrentNew (ctor=0x80f03a8, setmeError=0x0) at torrent.c:971
- #14 0x080613c8 in sessionLoadTorrents (vdata=0xbffff0dc) at session.c:1918
- #15 0x08072661 in readFromPipe (fd=7, eventType=2, veh=0x80ee648) at trevent.c:192
- #16 0xb7f7ae09 in event_process_active_single_queue (activeq=<optimized out>, base=<optimized out>)
- at event.c:1340
- #17 event_process_active (base=<optimized out>) at event.c:1407
- #18 event_base_loop (base=0x80ee740, flags=0) at event.c:1604
- #19 0xb7f7bbc3 in event_base_dispatch (event_base=0x80ee740) at event.c:1435
- #20 0x0807282e in libeventThreadFunc (veh=0x80ee648) at trevent.c:248
- #21 0x0805a85a in ThreadFunc (_t=0x80ee698) at platform.c:118
- #22 0xb7d43d31 in start_thread (arg=0xb77fbb70) at pthread_create.c:304
- #23 0xb7c9246e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130
- Backtrace stopped: Not enough registers or memory available to unwind further
- (gdb) l
- 4704 in malloc.c
- (gdb) up
- #1 0xb7c327f8 in __GI___libc_malloc (bytes=32768) at malloc.c:3660
- 3660 in malloc.c
- (gdb) l
- 3655 in malloc.c
- (gdb) up
- #2 0x0807324c in tr_malloc (size=32768) at utils.c:341
- 341 p = malloc(size);
- (gdb) l
- 336 if(size){
- 337 if(!tr_glockMalloc){
- 338 tr_glockMalloc = tr_lockNew();
- 339 }
- 340 tr_lockLock(tr_glockMalloc);
- 341 p = malloc(size);
- 342 tr_lockUnlock(tr_glockMalloc);
- 343 }
- 344 return p;
- 345 //return size ? malloc( size ) : NULL;
- (gdb) up
- #3 0xb7f79822 in event_mm_malloc_ (sz=32768) at event.c:2620
- 2620 event.c: 没有那个文件或目录.
- in event.c
- (gdb)
- #4 0xb7f7edce in evbuffer_chain_new (size=<optimized out>) at buffer.c:168
- 168 buffer.c: 没有那个文件或目录.
- in buffer.c
- (gdb)
- #5 0xb7f81c01 in evbuffer_add (buf=0xb66b6290, data_in=0xb66b62f0, datlen=29020) at buffer.c:1591
- 1591 in buffer.c
- (gdb) dump
- "dump" must be followed by a subcommand.
- List of dump subcommands:
- dump binary -- Write target code/data to a raw binary file
- dump ihex -- Write target code/data to an intel hex file
- dump memory -- Write contents of memory to a raw binary file
- dump srec -- Write target code/data to an srec file
- dump tekhex -- Write target code/data to a tekhex file
- dump value -- Write the value of an expression to a raw binary file
- Type "help dump" followed by dump subcommand name for full documentation.
- Type "apropos word" to search for commands related to "word".
- Command name abbreviations are allowed if unambiguous.
- (gdb) q
- A debugging session is active.
- Inferior 1 [process 21717] will be killed.
- Quit anyway? (y or n) y
- mengjian@DreamDean:~/source/Transmission/daemon$
Add Comment
Please, Sign In to add comment