aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: CVS 20071206: Weird crash when receiving a message with geo-ip enabled  (Read 2075 times)

kuanto

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 31

I noticed after several weird random crashes that last line of logfile was always like this:

"2007-12-06 19:26:32: ClientTCPSocket.cpp(799): New message from 'http://www.aMule.org' (IP:127.0.0.1)"

So I tried to reproduce the crash by myself, running two instances of aMule with  two different users, and sending a message from one to the other. But, the weird thing about this, is that it only happens when you compile adding the flag "--enable-geoip".


My system: aMule CVS 20071206, wxGTK v2.8.7 (compiled following wiki instructions), GCC 4.2.1, Kubuntu 7.10 AMD64.

And backtraces are:
(gdb) bt
Code: [Select]
#0  0x0000000000664e46 in CMuleTrayIcon::SetTrayIcon (this=0x10005edf600, Icon=2, percent=0)
    at MuleTrayIcon.cpp:205
#1  0x00000000005fb9f3 in CamuleDlg::UpdateTrayIcon (this=0x146da10, percent=0) at amuleDlg.cpp:339
#2  0x00000000005fbe34 in CamuleDlg::ShowTransferRate (this=0x146da10) at amuleDlg.cpp:824
#3  0x00000000005fc32a in CamuleDlg::OnGUITimer (this=0x146da10) at amuleDlg.cpp:1066
#4  0x00002b07224ea58d in wxEvtHandler::ProcessEventIfMatches () from /home/yo/usr/lib/libwx_baseu-2.8.so.0
#5  0x00002b07224ea74c in wxEventHashTable::HandleEvent () from /home/yo/usr/lib/libwx_baseu-2.8.so.0
#6  0x00002b07224ea88d in wxEvtHandler::ProcessEvent () from /home/yo/usr/lib/libwx_baseu-2.8.so.0
#7  0x00002b0721e7ba36 in wxTimerBase::Notify () from /home/yo/usr/lib/libwx_gtk2u_core-2.8.so.0
#8  0x00002b0721d88f64 in timeout_callback () from /home/yo/usr/lib/libwx_gtk2u_core-2.8.so.0
#9  0x00002b072658070b in ?? () from /usr/lib/libglib-2.0.so.0
#10 0x00002b072657ffd3 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#11 0x00002b07265832dd in ?? () from /usr/lib/libglib-2.0.so.0
#12 0x00002b07265835ea in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
#13 0x00002b07237c9883 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
#14 0x00002b0721d80a8d in wxEventLoop::Run () from /home/yo/usr/lib/libwx_gtk2u_core-2.8.so.0
#15 0x00002b0721e0323b in wxAppBase::MainLoop () from /home/yo/usr/lib/libwx_gtk2u_core-2.8.so.0
#16 0x00002b0722488f8c in wxEntry () from /home/yo/usr/lib/libwx_baseu-2.8.so.0
#17 0x00000000005f3316 in main (argc=1, argv=0x7fff89b0f238) at amule-gui.cpp:95


(gdb) bt full

Code: [Select]
#0  0x0000000000664e46 in CMuleTrayIcon::SetTrayIcon (this=0x10005edf600, Icon=2, percent=0)
    at MuleTrayIcon.cpp:205
        Bar_ySize = 0
        NewSize = 4467899
#1  0x00000000005fb9f3 in CamuleDlg::UpdateTrayIcon (this=0x146da10, percent=0) at amuleDlg.cpp:339
No locals.
#2  0x00000000005fbe34 in CamuleDlg::ShowTransferRate (this=0x146da10) at amuleDlg.cpp:824
        percentDown = 0
        buffer2 = {<wxStringBase> = {static npos = 18446744073709551615,
    m_pchData = 0x40e3ec8}, <No data fields>}
        kBpsUp = 19.9985332
        kBpsDown = 0
        buffer = {<wxStringBase> = {static npos = 18446744073709551615, m_pchData = 0x40dba18}, <No data fields>}
        label = (wxStaticText *) 0x5da1ca0
        bmp = (wxStaticBitmap *) 0x2b0721d93d7a
#3  0x00000000005fc32a in CamuleDlg::OnGUITimer (this=0x146da10) at amuleDlg.cpp:1066
        msCur = 62106
        bStatsVisible = false
        msGraphUpdate = 16000
        sStatsUpdate = 30
        msPrev1 = 61177
        msPrev5 = 62106
        msPrevStats = 0
        msPrevGraph = 48036
#4  0x00002b07224ea58d in wxEvtHandler::ProcessEventIfMatches () from /home/yo/usr/lib/libwx_baseu-2.8.so.0
No symbol table info available.
#5  0x00002b07224ea74c in wxEventHashTable::HandleEvent () from /home/yo/usr/lib/libwx_baseu-2.8.so.0
No symbol table info available.
#6  0x00002b07224ea88d in wxEvtHandler::ProcessEvent () from /home/yo/usr/lib/libwx_baseu-2.8.so.0
No symbol table info available.
#7  0x00002b0721e7ba36 in wxTimerBase::Notify () from /home/yo/usr/lib/libwx_gtk2u_core-2.8.so.0
No symbol table info available.
#8  0x00002b0721d88f64 in timeout_callback () from /home/yo/usr/lib/libwx_gtk2u_core-2.8.so.0
No symbol table info available.
#9  0x00002b072658070b in ?? () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#10 0x00002b072657ffd3 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#11 0x00002b07265832dd in ?? () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#12 0x00002b07265835ea in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#13 0x00002b07237c9883 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
No symbol table info available.
#14 0x00002b0721d80a8d in wxEventLoop::Run () from /home/yo/usr/lib/libwx_gtk2u_core-2.8.so.0
No symbol table info available.
#15 0x00002b0721e0323b in wxAppBase::MainLoop () from /home/yo/usr/lib/libwx_gtk2u_core-2.8.so.0
No symbol table info available.
#16 0x00002b0722488f8c in wxEntry () from /home/yo/usr/lib/libwx_baseu-2.8.so.0
No symbol table info available.
#17 0x00000000005f3316 in main (argc=1, argv=0x7fff89b0f238) at amule-gui.cpp:95
No locals.


(gdb)  thread apply all bt

Code: [Select]
Thread 5 (Thread 1107310928 (LWP 3835)):
#0  0x00002b07213ca997 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00002b07224e7f39 in wxConditionInternal::WaitTimeout () from /home/yo/usr/lib/libwx_baseu-2.8.so.0
#2  0x00002b07224e886e in wxSemaphoreInternal::WaitTimeout () from /home/yo/usr/lib/libwx_baseu-2.8.so.0
#3  0x000000000070ffb4 in CTimerThread::Entry (this=0xf9df30) at Timer.cpp:63
#4  0x00002b07224e8e3a in wxThreadInternal::PthreadStart () from /home/yo/usr/lib/libwx_baseu-2.8.so.0
#5  0x00002b07213c6317 in start_thread () from /lib/libpthread.so.0
#6  0x00002b07231e6d5d in clone () from /lib/libc.so.6
#7  0x0000000000000000 in ?? ()

Thread 3 (Thread 1090525520 (LWP 3832)):
#0  0x00002b07213cd7b1 in ?? () from /lib/libpthread.so.0
#1  0x00002b07224ee48c in wxMicroSleep () from /home/yo/usr/lib/libwx_baseu-2.8.so.0
#2  0x0000000000575332 in UploadBandwidthThrottler::Entry (this=0x5ef9000) at UploadBandwidthThrottler.cpp:321
#3  0x00002b07224e8e3a in wxThreadInternal::PthreadStart () from /home/yo/usr/lib/libwx_baseu-2.8.so.0
#4  0x00002b07213c6317 in start_thread () from /lib/libpthread.so.0
#5  0x00002b07231e6d5d in clone () from /lib/libc.so.6
#6  0x0000000000000000 in ?? ()

Thread 1 (Thread 47309738280272 (LWP 3818)):
#0  0x0000000000664e46 in CMuleTrayIcon::SetTrayIcon (this=0x10005edf600, Icon=2, percent=0)
    at MuleTrayIcon.cpp:205
#1  0x00000000005fb9f3 in CamuleDlg::UpdateTrayIcon (this=0x146da10, percent=0) at amuleDlg.cpp:339
#2  0x00000000005fbe34 in CamuleDlg::ShowTransferRate (this=0x146da10) at amuleDlg.cpp:824
#3  0x00000000005fc32a in CamuleDlg::OnGUITimer (this=0x146da10) at amuleDlg.cpp:1066
#4  0x00002b07224ea58d in wxEvtHandler::ProcessEventIfMatches () from /home/yo/usr/lib/libwx_baseu-2.8.so.0
#5  0x00002b07224ea74c in wxEventHashTable::HandleEvent () from /home/yo/usr/lib/libwx_baseu-2.8.so.0
#6  0x00002b07224ea88d in wxEvtHandler::ProcessEvent () from /home/yo/usr/lib/libwx_baseu-2.8.so.0
#7  0x00002b0721e7ba36 in wxTimerBase::Notify () from /home/yo/usr/lib/libwx_gtk2u_core-2.8.so.0
#8  0x00002b0721d88f64 in timeout_callback () from /home/yo/usr/lib/libwx_gtk2u_core-2.8.so.0
#9  0x00002b072658070b in ?? () from /usr/lib/libglib-2.0.so.0
#10 0x00002b072657ffd3 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#11 0x00002b07265832dd in ?? () from /usr/lib/libglib-2.0.so.0
#12 0x00002b07265835ea in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
#13 0x00002b07237c9883 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
#14 0x00002b0721d80a8d in wxEventLoop::Run () from /home/yo/usr/lib/libwx_gtk2u_core-2.8.so.0
#15 0x00002b0721e0323b in wxAppBase::MainLoop () from /home/yo/usr/lib/libwx_gtk2u_core-2.8.so.0
#16 0x00002b0722488f8c in wxEntry () from /home/yo/usr/lib/libwx_baseu-2.8.so.0
#17 0x00000000005f3316 in main (argc=1, argv=0x7fff89b0f238) at amule-gui.cpp:95
« Last Edit: December 06, 2007, 10:41:44 PM by kuanto »
Logged

skolnick

  • Global Moderator
  • Hero Member
  • *****
  • Karma: 24
  • Offline Offline
  • Posts: 1188
  • CentOS 6 User
Re: CVS 20071206: Weird crash when receiving a message with geo-ip enabled
« Reply #1 on: December 07, 2007, 01:52:50 AM »

Try disabling the aMule tray icon, it seems it crashes there for some reason.

Regards.
Logged

kuanto

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 31
Re: CVS 20071206: Weird crash when receiving a message with geo-ip enabled
« Reply #2 on: December 07, 2007, 01:01:25 PM »

Thanks for the answer, but surprisingly, it keeps crashing after disabling the aMule tray icon. The way to avoid it is filtering all messages. Does this happen to anyone else?

Regards
Logged