aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: amule crashes regularly gdb output  (Read 3357 times)

compaq65

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 4
amule crashes regularly gdb output
« on: May 20, 2004, 12:02:26 PM »

hello

I have read how to report a bug with gdb.  Hope this is the output you are looking for.

I use aMule2.0.0rc3 on fedora FC1 kernel 2.4.22-1.2188.nptl

I have followed your installation steps from tar files.

I used before amule 1.2.6.  It almost never crashed but after 1 hour the PC became extremely slow as well as the downloads.  Therefore, I decided to go to rc3.  I have noticed extremely good improvements, however it crashes regularly.

Thanks for your work, it is a great tool.  If I can help any further, please let me know.

phil


Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1084907392 (LWP 7786)]
0x08173c41 in CList::Find(CUpDownClient*, _POSITION*) const (this=0xaaa, searchValue=0xa1b02c8, startAfter=0x0) at CTypedPtrList.h:416
416         MYNODE* n = head;
(gdb) bt
#0  0x08173c41 in CList::Find(CUpDownClient*, _POSITION*) const (this=0xaaa, searchValue=0xa1b02c8, startAfter=0x0) at CTypedPtrList.h:416
#1  0x08232a7e in CPartFile::RemoveDownloadingSource(CUpDownClient*) (this=0xe6, client=0xa1b02c8) at PartFile.cpp:4056
#2  0x0817b74b in CUpDownClient::SetDownloadState(unsigned char) (this=0xa1b02c8, byNewState=1 '\001') at DownloadClient.cpp:535
#3  0x0817d129 in CUpDownClient::CalculateKBpsDown() (this=0xa1b02c8) at DownloadClient.cpp:1045
#4  0x08229e6d in CPartFile::Process(unsigned, unsigned char) (this=0x9ed36e8, reducedownload=200, m_icounter=10 '\n') at PartFile.cpp:1721
#5  0x0818d050 in CDownloadQueue::Process() (this=0x9895830) at DownloadQueue.cpp:376
#6  0x0828ca06 in TimerProc() () at UploadQueue.cpp:704
#7  0x08295671 in CamuleDlg::OnUQTimer(wxTimerEvent&) (this=0x986c150) at amuleDlg.cpp:344
#8  0x0046d3a5 in wxEvtHandler::SearchEventTable(wxEventTable&, wxEvent&) () from /usr/lib/libwx_gtk-2.4.so
#9  0x0046d1d7 in wxEvtHandler::ProcessEvent(wxEvent&) () from /usr/lib/libwx_gtk-2.4.so
#10 0x00507be3 in wxTimerBase::Notify() () from /usr/lib/libwx_gtk-2.4.so
#11 0x004291f4 in timeout_callback () from /usr/lib/libwx_gtk-2.4.so
---Type to continue, or q to quit---
#12 0x001233a5 in g_main_set_poll_func () from /usr/lib/libglib-1.2.so.0
#13 0x0012235b in g_get_current_time () from /usr/lib/libglib-1.2.so.0
#14 0x00122846 in g_get_current_time () from /usr/lib/libglib-1.2.so.0
#15 0x00122af4 in g_main_run () from /usr/lib/libglib-1.2.so.0
#16 0x007906af in gtk_main () from /usr/lib/libgtk-1.2.so.0
#17 0x003e36d6 in wxApp::MainLoop() () from /usr/lib/libwx_gtk-2.4.so
#18 0x00436c28 in wxAppBase::OnRun() () from /usr/lib/libwx_gtk-2.4.so
#19 0x003e3da7 in wxEntry(int, char**) () from /usr/lib/libwx_gtk-2.4.so
#20 0x0828e25a in main (argc=1, argv=0xbfed5754) at amule.cpp:114
(gdb) bt full
#0  0x08173c41 in CList::Find(CUpDownClient*, _POSITION*) const (this=0xaaa, searchValue=0xa1b02c8, startAfter=0x0) at CTypedPtrList.h:416
        n = (MyNode *) 0xa7c21c8
#1  0x08232a7e in CPartFile::RemoveDownloadingSource(CUpDownClient*) (this=0xe6, client=0xa1b02c8) at PartFile.cpp:4056
        position = 0xa7c21c8
#2  0x0817b74b in CUpDownClient::SetDownloadState(unsigned char) (this=0xa1b02c8, byNewState=1 '\001') at DownloadClient.cpp:535
No locals.
#3  0x0817d129 in CUpDownClient::CalculateKBpsDown() (this=0xa1b02c8) at DownloadClient.cpp:1045
        tcLoop = 0.100000001
        tcInit = 0.400000006
        tcFinal = 50
        tcReduce = 5
        fInit = 0.25
---Type to continue, or q to quit---
        fFinal = 0.00200000009
        fReduce = 0.907940686
        msCur = 2713884613
#4  0x08229e6d in CPartFile::Process(unsigned, unsigned char) (this=0x9ed36e8, reducedownload=200, m_icounter=10 '\n') at PartFile.cpp:1721
        kBpsClient = 4.6073198e-34
        download_state = 0 '\0'
        sl = 62
        pos1 = 0xa72a390
        pos2 = 0xa7de040
        old_trans = 0
        cur_src = (CUpDownClient *) 0xa1b02c8
        dwCurTick = 2713884613
---Type to continue, or q to quit---
#5  0x0818d050 in CDownloadQueue::Process() (this=0x9895830) at DownloadQueue.cpp:376
        cur_file = (class CPartFile *) 0x9ed36e8
        i = 24
        size = 39
        downspeed = 200
#6  0x0828ca06 in TimerProc() () at UploadQueue.cpp:704
        msPrev1 = 14565888
        msPrev5 = 14564893
        msPrevGraph = 14560592
        msPrevStats = 13514698
        msPrevSave = 14536675
        msPrevHist = 14566000
---Type to continue, or q to quit---
        msCur = 14566689
        bStatsVisible = 191
        msGraphUpdate = 160172856
        sStatsUpdate = 159693208
#7  0x08295671 in CamuleDlg::OnUQTimer(wxTimerEvent&) (this=0x986c150) at amuleDlg.cpp:344
No locals.
#8  0x0046d3a5 in wxEvtHandler::SearchEventTable(wxEventTable&, wxEvent&) () from /usr/lib/libwx_gtk-2.4.so
No symbol table info available.
#9  0x0046d1d7 in wxEvtHandler::ProcessEvent(wxEvent&) () from /usr/lib/libwx_gtk-2.4.so
No symbol table info available.
#10 0x00507be3 in wxTimerBase::Notify() () from /usr/lib/libwx_gtk-2.4.so
No symbol table info available.
---Type to continue, or q to quit---
#11 0x004291f4 in timeout_callback () from /usr/lib/libwx_gtk-2.4.so
No symbol table info available.
#12 0x001233a5 in g_main_set_poll_func () from /usr/lib/libglib-1.2.so.0
No symbol table info available.
#13 0x0012235b in g_get_current_time () from /usr/lib/libglib-1.2.so.0
No symbol table info available.
#14 0x00122846 in g_get_current_time () from /usr/lib/libglib-1.2.so.0
No symbol table info available.
#15 0x00122af4 in g_main_run () from /usr/lib/libglib-1.2.so.0
No symbol table info available.
#16 0x007906af in gtk_main () from /usr/lib/libgtk-1.2.so.0
No symbol table info available.
---Type to continue, or q to quit---
#17 0x003e36d6 in wxApp::MainLoop() () from /usr/lib/libwx_gtk-2.4.so
No symbol table info available.
#18 0x00436c28 in wxAppBase::OnRun() () from /usr/lib/libwx_gtk-2.4.so
No symbol table info available.
#19 0x003e3da7 in wxEntry(int, char**) () from /usr/lib/libwx_gtk-2.4.so
No symbol table info available.
#20 0x0828e25a in main (argc=1, argv=0xbfed5754) at amule.cpp:114
No locals.
(gdb)
Logged

stefanero

  • Some Support
  • Developer
  • Hero Member
  • *****
  • Karma: 8
  • Offline Offline
  • Posts: 4235
Re: amule crashes regularly gdb output
« Reply #1 on: May 20, 2004, 12:10:48 PM »

hey

thanx for your backtraces...
if you can report more that is really helpfull for us, so keep it up ;)

stefanero
Logged
In its default setup, Windows XP on the Internet amounts to a car
parked in a bad part of town, with the doors unlocked, the key in
the ignition and a Post-It note on the dashboard saying, "Please
don't steal this."

compaq65

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 4
Re: amule crashes regularly gdb output
« Reply #2 on: May 20, 2004, 12:20:01 PM »

Hello

what can be useful to you?  more backtraces or more info on my system?

bye

Phil
Logged

stefanero

  • Some Support
  • Developer
  • Hero Member
  • *****
  • Karma: 8
  • Offline Offline
  • Posts: 4235
Re: amule crashes regularly gdb output
« Reply #3 on: May 20, 2004, 12:26:17 PM »

maybe I should be more specific ;)

yeah, more backtraces would be usefull....
but maybe when you get the same error 10x its not really helpfull...
so try only to post different backtraces...
thank you very much :)

stefanero
Logged
In its default setup, Windows XP on the Internet amounts to a car
parked in a bad part of town, with the doors unlocked, the key in
the ignition and a Post-It note on the dashboard saying, "Please
don't steal this."

compaq65

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 4
Re: amule crashes regularly gdb output
« Reply #4 on: May 20, 2004, 12:33:09 PM »

Hello

Ok I will do,  However I have a question.

In order to relaunch amule, under bash I would like to type:
do while true; do amule; done

Is it possile to include gdb in this small script and create automatically the error output?

I can then compare the different errors output and only post the relevant ones.

I am not really a top programmer and do not really know what is gdb.  Could you help?  Might be as well useful for everyone.

Thanks

Phil
Logged

stefanero

  • Some Support
  • Developer
  • Hero Member
  • *****
  • Karma: 8
  • Offline Offline
  • Posts: 4235
Re: amule crashes regularly gdb output
« Reply #5 on: May 20, 2004, 01:26:23 PM »

well I am not a gdb pro ;)

but gdb is a debug programm (as you can tell) which will "look" at your programm while it is running and will report any interruption there is...
when we enable-debug in our config special debug code is enable which can be checked by gdb to report is where the error came from. which function or class....

so for your automatisation...
I don't think this is possible... since you can't tell gdb to automaticly print out the bt and the bt full for you....
but to rerun your amule when it is crashed, just retype run in gdb and amule will be restarted...

stefanero

PS. maybe there is on the gdb homepage an info on how to make programms restart and log the debug info automaticly
Logged
In its default setup, Windows XP on the Internet amounts to a car
parked in a bad part of town, with the doors unlocked, the key in
the ignition and a Post-It note on the dashboard saying, "Please
don't steal this."