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-svn-20080221 backtraces  (Read 5937 times)

mc

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 25
amule-svn-20080221 backtraces
« on: February 22, 2008, 04:39:16 PM »

Hi,
I got these against amule-svn-20080221 and a hand-compiled wxGTK 2.8.7 unicode non-debug build while I was doing nothing.

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 47885855247968 (LWP 15484)]
0x0000000000642568 in CMuleTrayIcon::SetTrayIcon (this=0x10000000000, Icon=2, percent=100) at MuleTrayIcon.cpp:213
213                             Bar_ySize = HighId_Icon_size;
(gdb) bt
#0  0x0000000000642568 in CMuleTrayIcon::SetTrayIcon (this=0x10000000000, Icon=2, percent=100) at MuleTrayIcon.cpp:213#1  0x00000000005de5fc in CamuleDlg::UpdateTrayIcon (this=0x177f450, percent=100) at amuleDlg.cpp:343
#2  0x00000000005e1854 in CamuleDlg::ShowTransferRate (this=0x177f450) at amuleDlg.cpp:822
#3  0x00000000005e2751 in CamuleDlg::OnGUITimer (this=0x177f450) at amuleDlg.cpp:1064
#4  0x00002b8d4b30c1ad in wxAppConsole::HandleEvent () from /usr/local/lib/libwx_baseu-2.8.so.0
#5  0x00002b8d4b39b074 in wxEvtHandler::ProcessEventIfMatches () from /usr/local/lib/libwx_baseu-2.8.so.0
#6  0x00002b8d4b39b2d8 in wxEventHashTable::HandleEvent () from /usr/local/lib/libwx_baseu-2.8.so.0
#7  0x00002b8d4b39bd9e in wxEvtHandler::ProcessEvent () from /usr/local/lib/libwx_baseu-2.8.so.0
#8  0x00002b8d4af44f6d in wxTimerBase::Notify () from /usr/local/lib/libwx_gtk2u_core-2.8.so.0
#9  0x00002b8d4ae5b57b in timeout_callback () from /usr/local/lib/libwx_gtk2u_core-2.8.so.0
#10 0x0000003e6762938b in g_main_context_wakeup () from /usr/lib64/libglib-2.0.so.0
#11 0x0000003e67626606 in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#12 0x0000003e6762821e in g_main_context_acquire () from /usr/lib64/libglib-2.0.so.0
#13 0x0000003e6762858a in g_main_loop_run () from /usr/lib64/libglib-2.0.so.0
#14 0x0000003e68b18511 in gtk_main () from /usr/lib64/libgtk-x11-2.0.so.0
#15 0x00002b8d4ae54597 in wxEventLoop::Run () from /usr/local/lib/libwx_gtk2u_core-2.8.so.0
#16 0x00002b8d4aed6335 in wxAppBase::MainLoop () from /usr/local/lib/libwx_gtk2u_core-2.8.so.0
#17 0x00002b8d4b340168 in wxEntry () from /usr/local/lib/libwx_baseu-2.8.so.0
#18 0x00000000005d915e in main (argc=1, argv=0x7fff60035618) at amule-gui.cpp:287
(gdb) bt full
#0  0x0000000000642568 in CMuleTrayIcon::SetTrayIcon (this=0x10000000000, Icon=2, percent=100) at MuleTrayIcon.cpp:213        Bar_ySize = 0
        NewSize = 27262048
#1  0x00000000005de5fc in CamuleDlg::UpdateTrayIcon (this=0x177f450, percent=100) at amuleDlg.cpp:343
No locals.
#2  0x00000000005e1854 in CamuleDlg::ShowTransferRate (this=0x177f450) at amuleDlg.cpp:822
        percentDown = 821
        buffer2 = {<wxStringBase> = {static npos = 18446744073709551615, m_pchData = 0x2046e18}, <No data fields>}
        kBpsDown = 24.621088
        buffer = {<wxStringBase> = {static npos = 18446744073709551615, m_pchData = 0x210b518}, <No data fields>}
        bmp = (struct wxStaticBitmap *) 0x7fff60035190
        kBpsUp = 1.78301764
        label = (struct wxStaticText *) 0x1a7aca0
#3  0x00000000005e2751 in CamuleDlg::OnGUITimer (this=0x177f450) at amuleDlg.cpp:1064
        bStatsVisible = false
        msPrevGraph = 360005
        msGraphUpdate = 120000
        msPrev1 = 479089
        msPrev5 = 479688
        msPrevStats = 0
        msCur = 479688
        sStatsUpdate = 100
#4  0x00002b8d4b30c1ad in wxAppConsole::HandleEvent () from /usr/local/lib/libwx_baseu-2.8.so.0
No symbol table info available.
#5  0x00002b8d4b39b074 in wxEvtHandler::ProcessEventIfMatches () from /usr/local/lib/libwx_baseu-2.8.so.0
No symbol table info available.
#6  0x00002b8d4b39b2d8 in wxEventHashTable::HandleEvent () from /usr/local/lib/libwx_baseu-2.8.so.0
No symbol table info available.
#7  0x00002b8d4b39bd9e in wxEvtHandler::ProcessEvent () from /usr/local/lib/libwx_baseu-2.8.so.0
No symbol table info available.
#8  0x00002b8d4af44f6d in wxTimerBase::Notify () from /usr/local/lib/libwx_gtk2u_core-2.8.so.0
No symbol table info available.
#9  0x00002b8d4ae5b57b in timeout_callback () from /usr/local/lib/libwx_gtk2u_core-2.8.so.0
No symbol table info available.
#10 0x0000003e6762938b in g_main_context_wakeup () from /usr/lib64/libglib-2.0.so.0
No symbol table info available.
---Type <return> to continue, or q <return> to quit---
#11 0x0000003e67626606 in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
No symbol table info available.
#12 0x0000003e6762821e in g_main_context_acquire () from /usr/lib64/libglib-2.0.so.0
No symbol table info available.
#13 0x0000003e6762858a in g_main_loop_run () from /usr/lib64/libglib-2.0.so.0
No symbol table info available.
#14 0x0000003e68b18511 in gtk_main () from /usr/lib64/libgtk-x11-2.0.so.0
No symbol table info available.
#15 0x00002b8d4ae54597 in wxEventLoop::Run () from /usr/local/lib/libwx_gtk2u_core-2.8.so.0
No symbol table info available.
#16 0x00002b8d4aed6335 in wxAppBase::MainLoop () from /usr/local/lib/libwx_gtk2u_core-2.8.so.0
No symbol table info available.
#17 0x00002b8d4b340168 in wxEntry () from /usr/local/lib/libwx_baseu-2.8.so.0
No symbol table info available.
#18 0x00000000005d915e in main (argc=1, argv=0x7fff60035618) at amule-gui.cpp:287
No locals.
(gdb) thread apply all bt

Thread 4 (Thread 1098918240 (LWP 15495)):
#0  0x0000003e65e08d2f in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/tls/libpthread.so.0
#1  0x00002b8d4b398e23 in wxConditionInternal::WaitTimeout () from /usr/local/lib/libwx_baseu-2.8.so.0
#2  0x00002b8d4b3991fc in wxSemaphoreInternal::WaitTimeout () from /usr/local/lib/libwx_baseu-2.8.so.0
#3  0x00000000006e42e5 in CTimerThread::Entry (this=0xfb3080) at Timer.cpp:64
#4  0x00002b8d4b399cb7 in wxThreadInternal::PthreadStart () from /usr/local/lib/libwx_baseu-2.8.so.0
#5  0x0000003e65e06137 in start_thread () from /lib64/tls/libpthread.so.0
#6  0x0000003e651c7543 in clone () from /lib64/tls/libc.so.6

Thread 2 (Thread 1082132832 (LWP 15493)):
#0  0x0000003e65e0bc35 in __nanosleep_nocancel () from /lib64/tls/libpthread.so.0
#1  0x00002b8d4b39f042 in wxMicroSleep () from /usr/local/lib/libwx_baseu-2.8.so.0
#2  0x0000000000564faf in UploadBandwidthThrottler::Entry (this=0x1c4a130) at UploadBandwidthThrottler.cpp:324
#3  0x00002b8d4b399cb7 in wxThreadInternal::PthreadStart () from /usr/local/lib/libwx_baseu-2.8.so.0
#4  0x0000003e65e06137 in start_thread () from /lib64/tls/libpthread.so.0
#5  0x0000003e651c7543 in clone () from /lib64/tls/libc.so.6

Thread 1 (Thread 47885855247968 (LWP 15484)):
#0  0x0000000000642568 in CMuleTrayIcon::SetTrayIcon (this=0x10000000000, Icon=2, percent=100) at MuleTrayIcon.cpp:213#1  0x00000000005de5fc in CamuleDlg::UpdateTrayIcon (this=0x177f450, percent=100) at amuleDlg.cpp:343
#2  0x00000000005e1854 in CamuleDlg::ShowTransferRate (this=0x177f450) at amuleDlg.cpp:822
#3  0x00000000005e2751 in CamuleDlg::OnGUITimer (this=0x177f450) at amuleDlg.cpp:1064
#4  0x00002b8d4b30c1ad in wxAppConsole::HandleEvent () from /usr/local/lib/libwx_baseu-2.8.so.0
#5  0x00002b8d4b39b074 in wxEvtHandler::ProcessEventIfMatches () from /usr/local/lib/libwx_baseu-2.8.so.0
#6  0x00002b8d4b39b2d8 in wxEventHashTable::HandleEvent () from /usr/local/lib/libwx_baseu-2.8.so.0
#7  0x00002b8d4b39bd9e in wxEvtHandler::ProcessEvent () from /usr/local/lib/libwx_baseu-2.8.so.0
#8  0x00002b8d4af44f6d in wxTimerBase::Notify () from /usr/local/lib/libwx_gtk2u_core-2.8.so.0
#9  0x00002b8d4ae5b57b in timeout_callback () from /usr/local/lib/libwx_gtk2u_core-2.8.so.0
#10 0x0000003e6762938b in g_main_context_wakeup () from /usr/lib64/libglib-2.0.so.0
#11 0x0000003e67626606 in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#12 0x0000003e6762821e in g_main_context_acquire () from /usr/lib64/libglib-2.0.so.0
#13 0x0000003e6762858a in g_main_loop_run () from /usr/lib64/libglib-2.0.so.0
#14 0x0000003e68b18511 in gtk_main () from /usr/lib64/libgtk-x11-2.0.so.0
#15 0x00002b8d4ae54597 in wxEventLoop::Run () from /usr/local/lib/libwx_gtk2u_core-2.8.so.0
#16 0x00002b8d4aed6335 in wxAppBase::MainLoop () from /usr/local/lib/libwx_gtk2u_core-2.8.so.0
---Type <return> to continue, or q <return> to quit---
#17 0x00002b8d4b340168 in wxEntry () from /usr/local/lib/libwx_baseu-2.8.so.0
#18 0x00000000005d915e in main (argc=1, argv=0x7fff60035618) at amule-gui.cpp:287
(gdb) where
#0  0x0000000000642568 in CMuleTrayIcon::SetTrayIcon (this=0x10000000000, Icon=2, percent=100) at MuleTrayIcon.cpp:213#1  0x00000000005de5fc in CamuleDlg::UpdateTrayIcon (this=0x177f450, percent=100) at amuleDlg.cpp:343
#2  0x00000000005e1854 in CamuleDlg::ShowTransferRate (this=0x177f450) at amuleDlg.cpp:822
#3  0x00000000005e2751 in CamuleDlg::OnGUITimer (this=0x177f450) at amuleDlg.cpp:1064
#4  0x00002b8d4b30c1ad in wxAppConsole::HandleEvent () from /usr/local/lib/libwx_baseu-2.8.so.0
#5  0x00002b8d4b39b074 in wxEvtHandler::ProcessEventIfMatches () from /usr/local/lib/libwx_baseu-2.8.so.0
#6  0x00002b8d4b39b2d8 in wxEventHashTable::HandleEvent () from /usr/local/lib/libwx_baseu-2.8.so.0
#7  0x00002b8d4b39bd9e in wxEvtHandler::ProcessEvent () from /usr/local/lib/libwx_baseu-2.8.so.0
#8  0x00002b8d4af44f6d in wxTimerBase::Notify () from /usr/local/lib/libwx_gtk2u_core-2.8.so.0
#9  0x00002b8d4ae5b57b in timeout_callback () from /usr/local/lib/libwx_gtk2u_core-2.8.so.0
#10 0x0000003e6762938b in g_main_context_wakeup () from /usr/lib64/libglib-2.0.so.0
#11 0x0000003e67626606 in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#12 0x0000003e6762821e in g_main_context_acquire () from /usr/lib64/libglib-2.0.so.0
#13 0x0000003e6762858a in g_main_loop_run () from /usr/lib64/libglib-2.0.so.0
#14 0x0000003e68b18511 in gtk_main () from /usr/lib64/libgtk-x11-2.0.so.0
#15 0x00002b8d4ae54597 in wxEventLoop::Run () from /usr/local/lib/libwx_gtk2u_core-2.8.so.0
#16 0x00002b8d4aed6335 in wxAppBase::MainLoop () from /usr/local/lib/libwx_gtk2u_core-2.8.so.0
#17 0x00002b8d4b340168 in wxEntry () from /usr/local/lib/libwx_baseu-2.8.so.0
#18 0x00000000005d915e in main (argc=1, argv=0x7fff60035618) at amule-gui.cpp:287

Thank you.
Logged

mc

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 25
Re: amule-svn-20080221 backtraces
« Reply #1 on: February 22, 2008, 09:47:41 PM »

This is against a wxGTK 2.8.7 debug build.

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 47185931821824 (LWP 25390)]
0x0000000000650fc0 in CMuleTrayIcon::SetTrayIcon (this=0x10000000000, Icon=2, percent=100)
    at MuleTrayIcon.cpp:213
213                             Bar_ySize = HighId_Icon_size;
(gdb) bt
#0  0x0000000000650fc0 in CMuleTrayIcon::SetTrayIcon (this=0x10000000000, Icon=2, percent=100)
    at MuleTrayIcon.cpp:213
#1  0x00000000005ec228 in CamuleDlg::UpdateTrayIcon (this=0x1b2d75c, percent=100) at amuleDlg.cpp:343
#2  0x00000000005ef4f2 in CamuleDlg::ShowTransferRate (this=0x1b2d75c) at amuleDlg.cpp:822
#3  0x00000000005f03ef in CamuleDlg::OnGUITimer (this=0x1b2d75c) at amuleDlg.cpp:1064
#4  0x00002aea547aa541 in wxAppConsole::HandleEvent (this=0xfa6a3c, handler=0x1b2d75c, func=
      {__pfn = 0x5f020e <CamuleDlg::OnGUITimer(wxTimerEvent&)>, __delta = 0}, event=@0x7fff56d0be20)
    at ./src/common/appbase.cpp:320
#5  0x00002aea5485be51 in wxEvtHandler::ProcessEventIfMatches (entry=@0xf46570, handler=0x1b2d75c,
    event=@0x7fff56d0be20) at ./src/common/event.cpp:1225
#6  0x00002aea5485ae2e in wxEventHashTable::HandleEvent (this=0xf46300, event=@0x7fff56d0be20, self=0x1b2d75c)
    at ./src/common/event.cpp:898
#7  0x00002aea5485c040 in wxEvtHandler::ProcessEvent (this=0x1b2d75c, event=@0x7fff56d0be20)
    at ./src/common/event.cpp:1287
#8  0x00002aea5433427a in wxTimerBase::Notify (this=0x1ffae3c) at ./src/common/timercmn.cpp:57
#9  0x00002aea5421e14a in timeout_callback (data=0x1ffae3c) at ./src/gtk/timer.cpp:43
#10 0x0000003e6762938b in g_main_context_wakeup () from /usr/lib64/libglib-2.0.so.0
#11 0x0000003e67626606 in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#12 0x0000003e6762821e in g_main_context_acquire () from /usr/lib64/libglib-2.0.so.0
#13 0x0000003e6762858a in g_main_loop_run () from /usr/lib64/libglib-2.0.so.0
#14 0x0000003e68b18511 in gtk_main () from /usr/lib64/libgtk-x11-2.0.so.0
#15 0x00002aea54213dec in wxEventLoop::Run (this=0xfee3cc) at ./src/gtk/evtloop.cpp:76
#16 0x00002aea542ab68b in wxAppBase::MainLoop (this=0xfa6a3c) at ./src/common/appcmn.cpp:312
#17 0x00002aea542ab7ed in wxAppBase::OnRun (this=0xfa6a3c) at ./src/common/appcmn.cpp:367
#18 0x00002aea547ec5fa in wxEntry (argc=@0x2aea54a0a370, argv=0xf94e7c) at ./src/common/init.cpp:456
#19 0x00002aea547ec70a in wxEntry (argc=@0x7fff56d0c1dc, argv=0x7fff56d0c2b8) at ./src/common/init.cpp:468
#20 0x00000000005e6fda in main (argc=1, argv=0x7fff56d0c2b8) at amule-gui.cpp:287
(gdb) bt full
#0  0x0000000000650fc0 in CMuleTrayIcon::SetTrayIcon (this=0x10000000000, Icon=2, percent=100)
    at MuleTrayIcon.cpp:213
        Bar_ySize = 0
        NewSize = 34048332
        __FUNCTION__ = "SetTrayIcon"
#1  0x00000000005ec228 in CamuleDlg::UpdateTrayIcon (this=0x1b2d75c, percent=100) at amuleDlg.cpp:343
No locals.
#2  0x00000000005ef4f2 in CamuleDlg::ShowTransferRate (this=0x1b2d75c) at amuleDlg.cpp:822
        percentDown = 270
        buffer2 = {<wxStringBase> = {static npos = 18446744073709551615,
    m_pchData = 0x2507dc8}, <No data fields>}
        kBpsDown = 8.07454395
        buffer = {<wxStringBase> = {static npos = 18446744073709551615, m_pchData = 0x11075e8}, <No data fields>}
        bmp = (class wxStaticBitmap *) 0x7fff56d0bc50
        kBpsUp = 0.97329998
        label = (class wxStaticText *) 0x1e0246c
#3  0x00000000005f03ef in CamuleDlg::OnGUITimer (this=0x1b2d75c) at amuleDlg.cpp:1064
        bStatsVisible = false
        msPrevGraph = 0
        msGraphUpdate = 120000
        msPrev1 = 61562
        msPrev5 = 61750
        msPrevStats = 0
        msCur = 61750
        sStatsUpdate = 100
#4  0x00002aea547aa541 in wxAppConsole::HandleEvent (this=0xfa6a3c, handler=0x1b2d75c, func=
      {__pfn = 0x5f020e <CamuleDlg::OnGUITimer(wxTimerEvent&)>, __delta = 0}, event=@0x7fff56d0be20)
    at ./src/common/appbase.cpp:320
No locals.
#5  0x00002aea5485be51 in wxEvtHandler::ProcessEventIfMatches (entry=@0xf46570, handler=0x1b2d75c,
    event=@0x7fff56d0be20) at ./src/common/event.cpp:1225
        tableId1 = 6129
        tableId2 = -1
#6  0x00002aea5485ae2e in wxEventHashTable::HandleEvent (this=0xf46300, event=@0x7fff56d0be20, self=0x1b2d75c)
    at ./src/common/event.cpp:898
        n = 0
        eventEntryTable = (const wxEventTableEntryPointerArray &) @0x1e65904: {<wxBaseArrayPtrVoid> = {
---Type <return> to continue, or q <return> to quit---
    m_nSize = 1, m_nCount = 1, m_pItems = 0x1e65f5c}, <No data fields>}
        count = 1
        eventType = 10096
        eTTnode = (wxEventHashTable::EventTypeTable * const) 0x1e658fc
#7  0x00002aea5485c040 in wxEvtHandler::ProcessEvent (this=0x1b2d75c, event=@0x7fff56d0be20)
    at ./src/common/event.cpp:1287
        __FUNCTION__ = "ProcessEvent"
#8  0x00002aea5433427a in wxTimerBase::Notify (this=0x1ffae3c) at ./src/common/timercmn.cpp:57
        event = {<wxEvent> = {<wxObject> = {_vptr.wxObject = 0xd5b390, static ms_classInfo = {
        m_className = 0x2aea54895450, m_objectSize = 16, m_objectConstructor = 0, m_baseInfo1 = 0x0,
        m_baseInfo2 = 0x0, static sm_first = 0x2aea53fe8560, m_next = 0x2aea54a0b8a0,
        static sm_classTable = 0xf5305c}, m_refData = 0x0}, m_eventObject = 0x1ffae3c, m_eventType = 10096,
    m_timeStamp = 0, m_id = 6129, m_callbackUserData = 0x0, m_propagationLevel = 0, m_skipped = false,
    m_isCommandEvent = false, static ms_classInfo = {m_className = 0x2aea548aca50, m_objectSize = 64,
      m_objectConstructor = 0, m_baseInfo1 = 0x2aea54a0b780, m_baseInfo2 = 0x0,
      static sm_first = 0x2aea53fe8560, m_next = 0x2aea54a0d840, static sm_classTable = 0xf5305c}},
  m_interval = 100, static ms_classInfo = {m_className = 0x2aea543e08e0, m_objectSize = 72,
    m_objectConstructor = 0x2aea543340fe <wxTimerEvent::wxCreateObject()>, m_baseInfo1 = 0x2aea54a0d880,
    m_baseInfo2 = 0x0, static sm_first = 0x2aea53fe8560, m_next = 0x2aea545d5500,
    static sm_classTable = 0xf5305c}}
        __FUNCTION__ = "Notify"
#9  0x00002aea5421e14a in timeout_callback (data=0x1ffae3c) at ./src/gtk/timer.cpp:43
        timer = (wxTimer *) 0x1ffae3c
#10 0x0000003e6762938b in g_main_context_wakeup () from /usr/lib64/libglib-2.0.so.0
No symbol table info available.
#11 0x0000003e67626606 in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
No symbol table info available.
#12 0x0000003e6762821e in g_main_context_acquire () from /usr/lib64/libglib-2.0.so.0
No symbol table info available.
#13 0x0000003e6762858a in g_main_loop_run () from /usr/lib64/libglib-2.0.so.0
No symbol table info available.
#14 0x0000003e68b18511 in gtk_main () from /usr/lib64/libgtk-x11-2.0.so.0
No symbol table info available.
#15 0x00002aea54213dec in wxEventLoop::Run (this=0xfee3cc) at ./src/gtk/evtloop.cpp:76
        activate = {m_evtLoopOld = 0x0}
        exitcode = 32767
        __FUNCTION__ = "Run"
---Type <return> to continue, or q <return> to quit---
#16 0x00002aea542ab68b in wxAppBase::MainLoop (this=0xfa6a3c) at ./src/common/appcmn.cpp:312
        mainLoop = {<wxEventLoopPtr> = {m_ptr = 0xfee3cc}, m_pp = 0xfa6ab4, m_pOld = 0x0}
#17 0x00002aea542ab7ed in wxAppBase::OnRun (this=0xfa6a3c) at ./src/common/appcmn.cpp:367
No locals.
#18 0x00002aea547ec5fa in wxEntry (argc=@0x2aea54a0a370, argv=0xf94e7c) at ./src/common/init.cpp:456
        callOnExit = {<No data fields>}
        cleanupOnExit = {<No data fields>}
#19 0x00002aea547ec70a in wxEntry (argc=@0x7fff56d0c1dc, argv=0x7fff56d0c2b8) at ./src/common/init.cpp:468
No locals.
#20 0x00000000005e6fda in main (argc=1, argv=0x7fff56d0c2b8) at amule-gui.cpp:287
No locals.
(gdb) thread apply all bt

Thread 4 (Thread 1098918240 (LWP 25401)):
#0  0x0000003e65e08d2f in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/tls/libpthread.so.0
#1  0x00002aea548571f7 in wxConditionInternal::WaitTimeout (this=0xfeabdc, milliseconds=100)
    at ./src/unix/threadpsx.cpp:405
#2  0x00002aea54859deb in wxCondition::WaitTimeout (this=0xfdd044, milliseconds=100)
    at ./include/wx/thrimpl.cpp:256
#3  0x00002aea54857733 in wxSemaphoreInternal::WaitTimeout (this=0xfdd03c, milliseconds=100)
    at ./src/unix/threadpsx.cpp:552
#4  0x00002aea5485a18f in wxSemaphore::WaitTimeout (this=0x1055cdc, milliseconds=100)
    at ./include/wx/thrimpl.cpp:320
#5  0x00000000006f5845 in CTimerThread::Entry (this=0x1055c9c) at Timer.cpp:64
#6  0x00002aea548579cb in wxThreadInternal::PthreadStart (thread=0x1055c9c) at ./src/unix/threadpsx.cpp:766
#7  0x00002aea54857895 in wxPthreadStart (ptr=0x1055c9c) at ./src/unix/threadpsx.cpp:718
#8  0x0000003e65e06137 in start_thread () from /lib64/tls/libpthread.so.0
#9  0x0000003e651c7543 in clone () from /lib64/tls/libc.so.6

Thread 2 (Thread 1082132832 (LWP 25399)):
#0  0x0000003e65e0bc35 in __nanosleep_nocancel () from /lib64/tls/libpthread.so.0
#1  0x00002aea5485fc9c in wxMicroSleep (microseconds=625000) at ./src/unix/utilsunx.cpp:191
#2  0x00002aea5485fcba in wxMilliSleep (milliseconds=625) at ./src/unix/utilsunx.cpp:212
#3  0x00002aea5485813d in wxThread::Sleep (milliseconds=625) at ./src/unix/threadpsx.cpp:986
#4  0x0000000000572423 in UploadBandwidthThrottler::Entry (this=0x201fc5c) at UploadBandwidthThrottler.cpp:324
#5  0x00002aea548579cb in wxThreadInternal::PthreadStart (thread=0x201fc5c) at ./src/unix/threadpsx.cpp:766
#6  0x00002aea54857895 in wxPthreadStart (ptr=0x201fc5c) at ./src/unix/threadpsx.cpp:718
#7  0x0000003e65e06137 in start_thread () from /lib64/tls/libpthread.so.0
#8  0x0000003e651c7543 in clone () from /lib64/tls/libc.so.6

Thread 1 (Thread 47185931821824 (LWP 25390)):
#0  0x0000000000650fc0 in CMuleTrayIcon::SetTrayIcon (this=0x10000000000, Icon=2, percent=100)
    at MuleTrayIcon.cpp:213
#1  0x00000000005ec228 in CamuleDlg::UpdateTrayIcon (this=0x1b2d75c, percent=100) at amuleDlg.cpp:343
#2  0x00000000005ef4f2 in CamuleDlg::ShowTransferRate (this=0x1b2d75c) at amuleDlg.cpp:822
#3  0x00000000005f03ef in CamuleDlg::OnGUITimer (this=0x1b2d75c) at amuleDlg.cpp:1064
#4  0x00002aea547aa541 in wxAppConsole::HandleEvent (this=0xfa6a3c, handler=0x1b2d75c, func=
      {__pfn = 0x5f020e <CamuleDlg::OnGUITimer(wxTimerEvent&)>, __delta = 0}, event=@0x7fff56d0be20)
    at ./src/common/appbase.cpp:320
---Type <return> to continue, or q <return> to quit---
#5  0x00002aea5485be51 in wxEvtHandler::ProcessEventIfMatches (entry=@0xf46570, handler=0x1b2d75c,
    event=@0x7fff56d0be20) at ./src/common/event.cpp:1225
#6  0x00002aea5485ae2e in wxEventHashTable::HandleEvent (this=0xf46300, event=@0x7fff56d0be20, self=0x1b2d75c)
    at ./src/common/event.cpp:898
#7  0x00002aea5485c040 in wxEvtHandler::ProcessEvent (this=0x1b2d75c, event=@0x7fff56d0be20)
    at ./src/common/event.cpp:1287
#8  0x00002aea5433427a in wxTimerBase::Notify (this=0x1ffae3c) at ./src/common/timercmn.cpp:57
#9  0x00002aea5421e14a in timeout_callback (data=0x1ffae3c) at ./src/gtk/timer.cpp:43
#10 0x0000003e6762938b in g_main_context_wakeup () from /usr/lib64/libglib-2.0.so.0
#11 0x0000003e67626606 in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#12 0x0000003e6762821e in g_main_context_acquire () from /usr/lib64/libglib-2.0.so.0
#13 0x0000003e6762858a in g_main_loop_run () from /usr/lib64/libglib-2.0.so.0
#14 0x0000003e68b18511 in gtk_main () from /usr/lib64/libgtk-x11-2.0.so.0
#15 0x00002aea54213dec in wxEventLoop::Run (this=0xfee3cc) at ./src/gtk/evtloop.cpp:76
#16 0x00002aea542ab68b in wxAppBase::MainLoop (this=0xfa6a3c) at ./src/common/appcmn.cpp:312
#17 0x00002aea542ab7ed in wxAppBase::OnRun (this=0xfa6a3c) at ./src/common/appcmn.cpp:367
#18 0x00002aea547ec5fa in wxEntry (argc=@0x2aea54a0a370, argv=0xf94e7c) at ./src/common/init.cpp:456
#19 0x00002aea547ec70a in wxEntry (argc=@0x7fff56d0c1dc, argv=0x7fff56d0c2b8) at ./src/common/init.cpp:468
#20 0x00000000005e6fda in main (argc=1, argv=0x7fff56d0c2b8) at amule-gui.cpp:287
Logged

Xaignar

  • Admin and Code Junky
  • Hero Member
  • *****
  • Karma: 19
  • Offline Offline
  • Posts: 1103
Re: amule-svn-20080221 backtraces
« Reply #2 on: February 22, 2008, 10:12:38 PM »

If you get this crash again, could you try running the following commands in gdb:
(gdb) up 3
(gdb) p m_wndTaskbarNotifier
(gdb) p *m_wndTaskbarNotifier
(gdb) p *this
Logged

mc

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 25
Re: amule-svn-20080221 backtraces
« Reply #3 on: February 22, 2008, 10:33:36 PM »

If you get this crash again, could you try running the following commands in gdb:
(gdb) up 3
(gdb) p m_wndTaskbarNotifier
(gdb) p *m_wndTaskbarNotifier
(gdb) p *this

Sure,
(Attaching a file since a message limit.)
Logged

Xaignar

  • Admin and Code Junky
  • Hero Member
  • *****
  • Karma: 19
  • Offline Offline
  • Posts: 1103
Re: amule-svn-20080221 backtraces
« Reply #4 on: February 22, 2008, 10:38:19 PM »

Thanks. :)
Logged

mc

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 25
Re: amule-svn-20080221 backtraces
« Reply #5 on: February 23, 2008, 03:20:05 AM »

As I patched like following, no further crash has occurred. So I think it works. I'm not sure, though.

diff -Naru amule-cvs-20080222/src/amuleDlg.cpp amule-cvs-20080222-my/src/amuleDlg.cpp
--- amule-cvs-20080222/src/amuleDlg.cpp 2008-02-17 20:43:53.000000000 +0900
+++ amule-cvs-20080222-my/src/amuleDlg.cpp      2008-02-23 09:33:34.000000000 +0900
@@ -816,7 +816,7 @@
                SetTitle(theApp->m_FrameTitle + UpDownSpeed);
        }

-       if (m_wndTaskbarNotifier) {
+       if (thePrefs::UseTrayIcon() && m_wndTaskbarNotifier) {
                // set trayicon-icon
                int percentDown = (int)ceil((kBpsDown*100) / thePrefs::GetMaxGraphDownloadRate());
                UpdateTrayIcon( ( percentDown > 100 ) ? 100 : percentDown);
@@ -848,8 +848,10 @@
        delete gui_timer;
        m_transferwnd->downloadlistctrl->DeleteAllItems();

-       // We want to delete the systray too!
-       RemoveSystray();
+       if (thePrefs::UseTrayIcon()) {
+               // We want to delete the systray too!
+               RemoveSystray();
+       }
 }

 void CamuleDlg::OnClose(wxCloseEvent& evt)
« Last Edit: February 23, 2008, 03:23:02 AM by mc »
Logged

Xaignar

  • Admin and Code Junky
  • Hero Member
  • *****
  • Karma: 19
  • Offline Offline
  • Posts: 1103
Re: amule-svn-20080221 backtraces
« Reply #6 on: February 23, 2008, 03:58:48 AM »

Can you explain to me the rationale behind those changes?
Logged

mc

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 25
Re: amule-svn-20080221 backtraces
« Reply #7 on: February 23, 2008, 04:28:06 AM »

Can you explain to me the rationale behind those changes?
I have not such a  rationale,  just random hacks. ;D
Since I disabled a tray icon, I thought there are some problems regarding  it. So I added  an additional check like above codes in that file. Then I found:
if (thePrefs::UseTrayIcon()) {
                CreateSystray();
}
But no equivalent code in RemoveSystray(). So I added it.
Please understand my limited knowledge of C++ and aMule.
Logged

mc

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 25
Re: amule-svn-20080221 backtraces
« Reply #8 on: February 23, 2008, 09:33:24 PM »

Now I'm OK with amule-svn-20080223.
I think comparing m_wndTaskbarNotifier with thePrefs::UseTrayIcon() is on wrong context. Because as I press Preference's OK button, thePrefs::UseTrayIcon()  is valid while m_wndTaskbarNotifier as soon as I check the box.
And don't you think this should be added in  CamuleDlg::DlgShutDown()?
       // We want to delete the systray too!
        if (m_wndTaskbarNotifier) {
                RemoveSystray();
        }
Logged

Xaignar

  • Admin and Code Junky
  • Hero Member
  • *****
  • Karma: 19
  • Offline Offline
  • Posts: 1103
Re: amule-svn-20080221 backtraces
« Reply #9 on: February 23, 2008, 09:39:01 PM »

RemoveSystray does nothing (delete NULL has no effect) if the systray doesn't already exist.
Logged

mc

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 25
Re: amule-svn-20080221 backtraces
« Reply #10 on: February 23, 2008, 09:52:07 PM »

I see. :)
Logged

emisca

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 12
Re: amule-svn-20080221 backtraces
« Reply #11 on: March 16, 2008, 03:48:46 PM »

Please see http://forum.amule.org/index.php?topic=14543.0
it's very similar to this backtrace, but happens with amule 20080309 version...
Logged