aMule Forum

English => Backtraces => Topic started by: pure_ascii on November 29, 2003, 11:29:25 PM

Title: How to post useful backtraces
Post by: pure_ascii on November 29, 2003, 11:29:25 PM
Hi everyone,

first thanks for your help in debugging aMule by providing a backtrace(BT). But I'm sorry to say that the BTs aMule produces on normal execution

Code: [Select]
OOPS! - Seems like aMule crashed
--== BACKTRACE FOLLOWS: ==--
[...]

are not very useful.

To produce a useful BT you need to follow these steps:
[list=1]

A good BT should look like this (shortened):
Code: [Select]
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1024 (LWP 30619)]
0x080ec7a1 in CEMSocket::DisableDownloadLimit() (this=0x0) at EMSocket.cpp:228
228             limitenabled = false;
(gdb) bt
#0  0x080ec7a1 in CEMSocket::DisableDownloadLimit() (this=0x0) at EMSocket.cpp:228
#1  0x0816fb73 in CPartFile::Process(unsigned) (this=0x8a73a58, reducedownload=131) at PartFile.cpp:1111
[...]
#18 0x406054c2 in __libc_start_main () from /lib/i686/libc.so.6

(gdb) bt full
#0  0x080ec7a1 in CEMSocket::DisableDownloadLimit() (this=0x0) at EMSocket.cpp:228
No locals.
#1  0x0816fb73 in CPartFile::Process(unsigned) (this=0x8a73a58, reducedownload=131) at PartFile.cpp:1111
        cur_datarate = 0
        cur_src = (CUpDownClient *) 0x9e09668
        sl = 0
        old_trans = 1
        dwCurTick = 565584034
        pos1 = (_POSITION *) 0x9f05498
        pos2 = (_POSITION *) 0x9cfc000
[...]
#18 0x406054c2 in __libc_start_main () from /lib/i686/libc.so.6
No symbol table info available.

Thank you for obeying these tips.

Bye, pure_ascii.
Title: Re: How to post useful backtraces
Post by: thepolish on April 06, 2004, 07:06:08 PM
Hi,

You also can add Enter "ha SIG32 nostop noprint pass" after (gdb) prompt (to avoid gdb stopping at new thread).

and eventualy "set height 0" to disable prompting

the polish