aMule Forum

English => Backtraces => Topic started by: raveboy on December 09, 2008, 07:02:41 PM

Title: aMule crash randomly
Post by: raveboy on December 09, 2008, 07:02:41 PM
Hello,

I've a bug which limits the lifetime of aMule 2.2.2 or SVN. aMule crashes regularly - max lifetime is currently 1 hour. To complie aMule I needed to patch Format.cpp, as I run aMule on Ubuntu  2.6.24-22-generic #1 SMP Mon Nov 24 19:35:06 UTC 2008 x86_64 GNU/Linux.

Here is the full backtrace:
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7f126d5556f0 (LWP 22288)]
0x00000000006a1cf6 in CMuleTrayIcon::SetTrayIcon (this=0x10000000000, Icon=2, percent=60)
    at MuleTrayIcon.cpp:212
212            Bar_ySize = HighId_Icon_size;
(gdb) ** Message: GetValue variable 1 (1)
** Message: GetValue variable 2 (2)
** Message: GetValue variable 1 (1)
** Message: GetValue variable 2 (2)
** Message: GetValue variable 1 (1)
** Message: GetValue variable 2 (2)
** Message: GetValue variable 1 (1)
** Message: GetValue variable 2 (2)
** Message: GetValue variable 1 (1)
** Message: GetValue variable 2 (2)
** Message: GetValue variable 1 (1)
** Message: GetValue variable 2 (2)
bt
#0  0x00000000006a1cf6 in CMuleTrayIcon::SetTrayIcon (this=0x10000000000, Icon=2, percent=60)
    at MuleTrayIcon.cpp:212
#1  0x0000000000632229 in CamuleDlg::UpdateTrayIcon (this=0x11b2490, percent=60)
    at amuleDlg.cpp:381
#2  0x00000000006327a4 in CamuleDlg::ShowTransferRate (this=0x11b2490) at amuleDlg.cpp:852
#3  0x0000000000632c8d in CamuleDlg::OnGUITimer (this=0x11b2490) at amuleDlg.cpp:1089
#4  0x00007f126b79e72d in wxEvtHandler::ProcessEventIfMatches ()
   from /usr/lib/libwx_baseu-2.8.so.0
#5  0x00007f126b79e8ec in wxEventHashTable::HandleEvent () from /usr/lib/libwx_baseu-2.8.so.0
#6  0x00007f126b79ea2d in wxEvtHandler::ProcessEvent () from /usr/lib/libwx_baseu-2.8.so.0
#7  0x00007f126bf36616 in wxTimerBase::Notify () from /usr/lib/libwx_gtk2u_core-2.8.so.0
#8  0x00007f126be2d554 in ?? () from /usr/lib/libwx_gtk2u_core-2.8.so.0
#9  0x00007f1268dbcabb in ?? () from /usr/lib/libglib-2.0.so.0
#10 0x00007f1268dbc364 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#11 0x00007f1268dbf675 in ?? () from /usr/lib/libglib-2.0.so.0
#12 0x00007f1268dbf995 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
#13 0x00007f126a2f7f03 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
#14 0x00007f126be2501d in wxEventLoop::Run () from /usr/lib/libwx_gtk2u_core-2.8.so.0
#15 0x00007f126beb758b in wxAppBase::MainLoop () from /usr/lib/libwx_gtk2u_core-2.8.so.0
#16 0x00007f126b73d19c in wxEntry () from /usr/lib/libwx_baseu-2.8.so.0
#17 0x00000000006299b4 in main (argc=1, argv=0x7fff75584bb8) at amule-gui.cpp:94
(gdb) bt full
#0  0x00000000006a1cf6 in CMuleTrayIcon::SetTrayIcon (this=0x10000000000, Icon=2, percent=60)
    at MuleTrayIcon.cpp:212
   Bar_ySize = 0
   NewSize = 4586311
#1  0x0000000000632229 in CamuleDlg::UpdateTrayIcon (this=0x11b2490, percent=60)
    at amuleDlg.cpp:381
No locals.
#2  0x00000000006327a4 in CamuleDlg::ShowTransferRate (this=0x11b2490) at amuleDlg.cpp:852
   percentDown = 60
   buffer2 = {<wxStringBase> = {static npos = 18446744073709551615,
    m_pchData = 0x7fff75584620}, <No data fields>}
   kBpsUp = 10.028264
   kBpsDown = 236.235474
   buffer = {<wxStringBase> = {static npos = 18446744073709551615,
    m_pchData = 0x2283118}, <No data fields>}
   label = (struct wxStaticText *) 0x3e64f80
   bmp = (struct wxStaticBitmap *) 0x7f1267e12f1a
#3  0x0000000000632c8d in CamuleDlg::OnGUITimer (this=0x11b2490) at amuleDlg.cpp:1089
   msCur = 1635688
   msGraphUpdate = 3000
   sStatsUpdate = 30
   msPrev1 = 1634795
   msPrev5 = 1635688
---Type <return> to continue, or q <return> to quit---
   msPrevStats = 1612535
   msPrevGraph = 1635091
#4  0x00007f126b79e72d in wxEvtHandler::ProcessEventIfMatches ()
   from /usr/lib/libwx_baseu-2.8.so.0
No symbol table info available.
#5  0x00007f126b79e8ec in wxEventHashTable::HandleEvent () from /usr/lib/libwx_baseu-2.8.so.0
No symbol table info available.
#6  0x00007f126b79ea2d in wxEvtHandler::ProcessEvent () from /usr/lib/libwx_baseu-2.8.so.0
No symbol table info available.
#7  0x00007f126bf36616 in wxTimerBase::Notify () from /usr/lib/libwx_gtk2u_core-2.8.so.0
No symbol table info available.
#8  0x00007f126be2d554 in ?? () from /usr/lib/libwx_gtk2u_core-2.8.so.0
No symbol table info available.
#9  0x00007f1268dbcabb in ?? () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#10 0x00007f1268dbc364 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#11 0x00007f1268dbf675 in ?? () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#12 0x00007f1268dbf995 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#13 0x00007f126a2f7f03 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
No symbol table info available.
---Type <return> to continue, or q <return> to quit---
#14 0x00007f126be2501d in wxEventLoop::Run () from /usr/lib/libwx_gtk2u_core-2.8.so.0
No symbol table info available.
#15 0x00007f126beb758b in wxAppBase::MainLoop () from /usr/lib/libwx_gtk2u_core-2.8.so.0
No symbol table info available.
#16 0x00007f126b73d19c in wxEntry () from /usr/lib/libwx_baseu-2.8.so.0
No symbol table info available.
#17 0x00000000006299b4 in main (argc=1, argv=0x7fff75584bb8) at amule-gui.cpp:94
No locals.
(gdb) thread apply all bt

Thread 5 (Thread 0x4338c950 (LWP 22303)):
#0  0x00007f126d155e1d in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007f126b79c0d9 in wxConditionInternal::WaitTimeout () from /usr/lib/libwx_baseu-2.8.so.0
#2  0x00007f126b79c9ae in wxSemaphoreInternal::WaitTimeout () from /usr/lib/libwx_baseu-2.8.so.0
#3  0x0000000000751a02 in CTimerThread::Entry (this=0xf7ea00) at Timer.cpp:64
#4  0x00007f126b79d23a in wxThreadInternal::PthreadStart () from /usr/lib/libwx_baseu-2.8.so.0
#5  0x00007f126d1513f7 in start_thread () from /lib/libpthread.so.0
#6  0x00007f126aa5cb3d in clone () from /lib/libc.so.6
#7  0x0000000000000000 in ?? ()

Thread 3 (Thread 0x4238a950 (LWP 22301)):
#0  0x00007f126d158e81 in nanosleep () from /lib/libpthread.so.0
#1  0x00007f126b7a262c in wxMicroSleep () from /usr/lib/libwx_baseu-2.8.so.0
#2  0x00000000005acb1c in UploadBandwidthThrottler::Entry (this=0x403bc20)
    at UploadBandwidthThrottler.cpp:324
#3  0x00007f126b79d23a in wxThreadInternal::PthreadStart () from /usr/lib/libwx_baseu-2.8.so.0
#4  0x00007f126d1513f7 in start_thread () from /lib/libpthread.so.0
#5  0x00007f126aa5cb3d in clone () from /lib/libc.so.6
#6  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f126d5556f0 (LWP 22288)):
#0  0x00000000006a1cf6 in CMuleTrayIcon::SetTrayIcon (this=0x10000000000, Icon=2, percent=60)
---Type <return> to continue, or q <return> to quit---
    at MuleTrayIcon.cpp:212
#1  0x0000000000632229 in CamuleDlg::UpdateTrayIcon (this=0x11b2490, percent=60)
    at amuleDlg.cpp:381
#2  0x00000000006327a4 in CamuleDlg::ShowTransferRate (this=0x11b2490) at amuleDlg.cpp:852
#3  0x0000000000632c8d in CamuleDlg::OnGUITimer (this=0x11b2490) at amuleDlg.cpp:1089
#4  0x00007f126b79e72d in wxEvtHandler::ProcessEventIfMatches ()
   from /usr/lib/libwx_baseu-2.8.so.0
#5  0x00007f126b79e8ec in wxEventHashTable::HandleEvent () from /usr/lib/libwx_baseu-2.8.so.0
#6  0x00007f126b79ea2d in wxEvtHandler::ProcessEvent () from /usr/lib/libwx_baseu-2.8.so.0
#7  0x00007f126bf36616 in wxTimerBase::Notify () from /usr/lib/libwx_gtk2u_core-2.8.so.0
#8  0x00007f126be2d554 in ?? () from /usr/lib/libwx_gtk2u_core-2.8.so.0
#9  0x00007f1268dbcabb in ?? () from /usr/lib/libglib-2.0.so.0
#10 0x00007f1268dbc364 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#11 0x00007f1268dbf675 in ?? () from /usr/lib/libglib-2.0.so.0
#12 0x00007f1268dbf995 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
#13 0x00007f126a2f7f03 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
#14 0x00007f126be2501d in wxEventLoop::Run () from /usr/lib/libwx_gtk2u_core-2.8.so.0
#15 0x00007f126beb758b in wxAppBase::MainLoop () from /usr/lib/libwx_gtk2u_core-2.8.so.0
#16 0x00007f126b73d19c in wxEntry () from /usr/lib/libwx_baseu-2.8.so.0
#17 0x00000000006299b4 in main (argc=1, argv=0x7fff75584bb8) at amule-gui.cpp:94
(gdb)

Thanks for Help,
Martin
Title: Re: aMule crash randomly
Post by: wires on December 10, 2008, 12:58:15 AM
I think is the same issue as this post http://forum.amule.org/index.php?topic=16214.msg85584#msg85584 (http://forum.amule.org/index.php?topic=16214.msg85584#msg85584)
Title: Re: aMule crash randomly
Post by: raveboy on December 10, 2008, 11:59:31 AM
Okay, thanks. So I will follow up the other track. Hopefully we will find a solution.

Thanks,
Martin