aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: Crash at statistics page  (Read 4488 times)

honggoff

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 4
Crash at statistics page
« on: August 18, 2005, 08:27:23 PM »

For several days now, amule CVS crashes, when I try to switch to the statistics page. Actually the statistics dysplay just fine after I clicked the corresponding button, but then the row of buttons at the top immediately turns gray (being disabled), CPU usage goes to 100% and amule crashes. Here's the backtrace:

Code: [Select]
aMule terminated after throwing an instance of 'CInvalidParamsEx'
        Version: aMule CVS using wxGTK2 v2.6.1 (Unicoded) (Snapshot: Wed Aug 17 07:02:05 CEST 2005)
        what(): CRunTimeException::CInvalidArgsException: Integer value passed cannot be represented as an signed int.
        backtrace:
[2] ?? in /usr/lib/libstdc++.so.6 [0xb78fb324]
[3] ?? in /usr/lib/libstdc++.so.6 [0xb78fb361]
[4] ?? in /usr/lib/libstdc++.so.6 [0xb78fb4ec]
[5] CFormat& CFormat::FormatInteger(unsigned long long) in Format.h:288
[6] CStatTreeItemSimple::GetDisplayString() const in StatTree.cpp:245
[7] CStatisticsDlg::FillTree(CStatTreeItemBase*, wxTreeItemId&) in StatisticsDlg.cpp:288
[8] CStatisticsDlg::FillTree(CStatTreeItemBase*, wxTreeItemId&) in StatisticsDlg.cpp:299
[9] CStatisticsDlg::ShowStatistics(bool) in StatisticsDlg.cpp:246
[10] CamuleDlg::OnGUITimer(wxTimerEvent&) in amuleDlg.cpp:1075
[11] wxAppConsole::HandleEvent(wxEvtHandler*, void (wxEvtHandler::*)(wxEvent&), wxEvent&) const in /usr/local/lib/libwx_baseu-2.6.so.0[0xb797c60a]
[12] wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) in /usr/local/lib/libwx_baseu-2.6.so.0[0xb7a0b5ef]
[13] wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) in /usr/local/lib/libwx_baseu-2.6.so.0[0xb7a0b8d8]
[14] wxEvtHandler::ProcessEvent(wxEvent&) in /usr/local/lib/libwx_baseu-2.6.so.0[0xb7a0c514]
[15] wxTimerBase::Notify() in /usr/local/lib/libwx_gtk2u_core-2.6.so.0[0xb7c93f1f]
[16] ?? in /usr/local/lib/libwx_gtk2u_core-2.6.so.0 [0xb7bae548]
[17] ?? in /usr/lib/libglib-2.0.so.0 [0xb71927d4]
[18] g_main_context_dispatch in /usr/lib/libglib-2.0.so.0[0xb7190a21]
[19] ?? in /usr/lib/libglib-2.0.so.0 [0xb7193c77]
[20] g_main_loop_run in /usr/lib/libglib-2.0.so.0[0xb71941c8]
[21] gtk_main in /usr/lib/libgtk-x11-2.0.so.0[0xb745e849]
[22] wxEventLoop::Run() in /usr/local/lib/libwx_gtk2u_core-2.6.so.0[0xb7ba53c5]
[23] wxAppBase::MainLoop() in /usr/local/lib/libwx_gtk2u_core-2.6.so.0[0xb7c27759]
[24] wxAppBase::OnRun() in /usr/local/lib/libwx_gtk2u_core-2.6.so.0[0xb7c278d3]
[25] wxEntry(int&, wchar_t**) in /usr/local/lib/libwx_baseu-2.6.so.0[0xb79b2cf9]
[26] wxEntry(int&, char**) in /usr/local/lib/libwx_baseu-2.6.so.0[0xb79b2dce]
[27] main in amule-gui.cpp:149
[28] __libc_start_main in /lib/tls/libc.so.6[0xb76eeec0]
[29] __gxx_personality_v0 in start.S:122
As you can see, I compiled amule with wxGTK2 v2.6.1 linked against GTK

If someone is interested, I would also take the time to produce a full backtrace wrth gdb.
cheers, honggoff
Logged

GonoszTopi

  • The current man in charge of most things.
  • Administrator
  • Hero Member
  • *****
  • Karma: 169
  • Offline Offline
  • Posts: 2685
Re: Crash at statistics page
« Reply #1 on: August 18, 2005, 10:17:46 PM »

I would like to see the full gdb backtrace to see which item causes the crash.
Logged
concordia cum veritate

wardevil

  • Sr. Member
  • ****
  • Karma: -1
  • Offline Offline
  • Posts: 402
Re: Crash at statistics page
« Reply #2 on: August 18, 2005, 10:55:52 PM »

here is one full backtrace of that problem....

http://forum.amule.org/thread.php?threadid=7092&sid=


Cheers....
Logged
Linux user nº289016 at Linux counter

GonoszTopi

  • The current man in charge of most things.
  • Administrator
  • Hero Member
  • *****
  • Karma: 169
  • Offline Offline
  • Posts: 2685
Re: Crash at statistics page
« Reply #3 on: August 18, 2005, 11:30:06 PM »

Sorry, wardevil, but it is a totally useless backtrace. The backtrace is not in the same thread where the exception occured.

Next time, try "thread apply all bt" and "thread apply all bt full".
Logged
concordia cum veritate

wardevil

  • Sr. Member
  • ****
  • Karma: -1
  • Offline Offline
  • Posts: 402
Re: Crash at statistics page
« Reply #4 on: August 18, 2005, 11:45:37 PM »

hum...well....u are the coder but the crash ocurrs when the statistics tab is pressed and when working with webserver it crashes also when click in statistics tab....
 :(

but i will try as u instructed....  :D

Cheers....
Logged
Linux user nº289016 at Linux counter

honggoff

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 4
Re: Crash at statistics page
« Reply #5 on: August 19, 2005, 12:09:07 AM »

So here's my backtrace (hopefully of the right thread...)
Code: [Select]
aMule terminated after throwing an instance of 'CInvalidParamsEx'
        Version: aMule CVS using wxGTK2 v2.6.1 (Unicoded) (Snapshot: Wed Aug 17 07:02:05 CEST 2005)
        what(): CRunTimeException::CInvalidArgsException: Integer value passed cannot be represented as an signed int.
        backtrace:
[2] ?? in /usr/lib/libstdc++.so.6 [0xb7938324]
[3] ?? in /usr/lib/libstdc++.so.6 [0xb7938361]
[4] ?? in /usr/lib/libstdc++.so.6 [0xb79384ec]
[5] CFormat& CFormat::FormatInteger(unsigned long long) in Format.h:288
[6] CStatTreeItemSimple::GetDisplayString() const in StatTree.cpp:245
[7] CStatisticsDlg::FillTree(CStatTreeItemBase*, wxTreeItemId&) in StatisticsDlg.cpp:288
[8] CStatisticsDlg::FillTree(CStatTreeItemBase*, wxTreeItemId&) in StatisticsDlg.cpp:299
[9] CStatisticsDlg::ShowStatistics(bool) in StatisticsDlg.cpp:246
[10] CamuleDlg::OnGUITimer(wxTimerEvent&) in amuleDlg.cpp:1075
[11] wxAppConsole::HandleEvent(wxEvtHandler*, void (wxEvtHandler::*)(wxEvent&), wxEvent&) const in /usr/local/lib/libwx_baseu-2.6.so.0[0xb79b960a]
[12] wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) in /usr/local/lib/libwx_baseu-2.6.so.0[0xb7a485ef]
[13] wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) in /usr/local/lib/libwx_baseu-2.6.so.0[0xb7a488d8]
[14] wxEvtHandler::ProcessEvent(wxEvent&) in /usr/local/lib/libwx_baseu-2.6.so.0[0xb7a49514]
[15] wxTimerBase::Notify() in /usr/local/lib/libwx_gtk2u_core-2.6.so.0[0xb7cd0f1f]
[16] ?? in /usr/local/lib/libwx_gtk2u_core-2.6.so.0 [0xb7beb548]
[17] ?? in /usr/lib/libglib-2.0.so.0 [0xb71cf7d4]
[18] g_main_context_dispatch in /usr/lib/libglib-2.0.so.0[0xb71cda21]
[19] ?? in /usr/lib/libglib-2.0.so.0 [0xb71d0c77]
[20] g_main_loop_run in /usr/lib/libglib-2.0.so.0[0xb71d11c8]
[21] gtk_main in /usr/lib/libgtk-x11-2.0.so.0[0xb749b849]
[22] wxEventLoop::Run() in /usr/local/lib/libwx_gtk2u_core-2.6.so.0[0xb7be23c5]
[23] wxAppBase::MainLoop() in /usr/local/lib/libwx_gtk2u_core-2.6.so.0[0xb7c64759]
[24] wxAppBase::OnRun() in /usr/local/lib/libwx_gtk2u_core-2.6.so.0[0xb7c648d3]
[25] wxEntry(int&, wchar_t**) in /usr/local/lib/libwx_baseu-2.6.so.0[0xb79efcf9]
[26] wxEntry(int&, char**) in /usr/local/lib/libwx_baseu-2.6.so.0[0xb79efdce]
[27] main in amule-gui.cpp:149
[28] __libc_start_main in /lib/tls/libc.so.6[0xb772bec0]
[29] __gxx_personality_v0 in start.S:122


Program received signal SIGABRT, Aborted.
[Switching to Thread -1224350016 (LWP 3100)]
0xb7fc74e8 in raise () from /lib/tls/libpthread.so.0


(gdb) bt
#0  0xb7fc74e8 in raise () from /lib/tls/libpthread.so.0
#1  0x0817fd5a in OnUnhandledException () at MuleDebug.cpp:96
#2  0xb7938324 in __gxx_personality_v0 () from /usr/lib/libstdc++.so.6
#3  0xb7938361 in std::terminate () from /usr/lib/libstdc++.so.6
#4  0xb79384ec in __cxa_throw () from /usr/lib/libstdc++.so.6
#5  0x0807b929 in CFormat::FormatInteger (this=0x4, value=The value of variable 'value' is distributed across several
locations, and GDB cannot access its value.

) at Format.h:288
#6  0x08243769 in CStatTreeItemSimple::GetDisplayString (this=0x8abfb78) at StatTree.cpp:245
#7  0x0824036f in CStatisticsDlg::FillTree (this=0x96d3ed0, statssubtree=0x8abf318, StatsGUITree=@0xbfafabb4) at StatisticsDlg.cpp:288
#8  0x0824048a in CStatisticsDlg::FillTree (this=0x96d3ed0, statssubtree=0x8881568, StatsGUITree=@0xbfafac38) at StatisticsDlg.cpp:297
#9  0x08240586 in CStatisticsDlg::ShowStatistics (this=0x96d3ed0, init=false) at StatisticsDlg.cpp:246
#10 0x080835e7 in CamuleDlg::OnGUITimer (this=0x9591730) at amuleDlg.cpp:1075
#11 0xb79b960a in wxAppConsole::HandleEvent () from /usr/local/lib/libwx_baseu-2.6.so.0
#12 0xb7a485ef in wxEvtHandler::ProcessEventIfMatches () from /usr/local/lib/libwx_baseu-2.6.so.0
#13 0xb7a488d8 in wxEventHashTable::HandleEvent () from /usr/local/lib/libwx_baseu-2.6.so.0
#14 0xb7a49514 in wxEvtHandler::ProcessEvent () from /usr/local/lib/libwx_baseu-2.6.so.0
#15 0xb7cd0f1f in wxTimerBase::Notify () from /usr/local/lib/libwx_gtk2u_core-2.6.so.0
#16 0xb7beb548 in timeout_callback () from /usr/local/lib/libwx_gtk2u_core-2.6.so.0
#17 0xb71cf7d4 in g_main_context_wakeup () from /usr/lib/libglib-2.0.so.0
#18 0xb71cda21 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#19 0xb71d0c77 in g_main_context_check () from /usr/lib/libglib-2.0.so.0
#20 0xb71d11c8 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
#21 0xb749b849 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
#22 0xb7be23c5 in wxEventLoop::Run () from /usr/local/lib/libwx_gtk2u_core-2.6.so.0
#23 0xb7c64759 in wxAppBase::MainLoop () from /usr/local/lib/libwx_gtk2u_core-2.6.so.0
#24 0xb7c648d3 in wxAppBase::OnRun () from /usr/local/lib/libwx_gtk2u_core-2.6.so.0
#25 0xb79efcf9 in wxEntry () from /usr/local/lib/libwx_baseu-2.6.so.0
#26 0xb79efdce in wxEntry () from /usr/local/lib/libwx_baseu-2.6.so.0
#27 0x0807cef9 in main (argc=1, argv=0xbfafb104) at amule-gui.cpp:149


(gdb) bt full
#0  0xb7fc74e8 in raise () from /lib/tls/libpthread.so.0
No symbol table info available.
#1  0x0817fd5a in OnUnhandledException () at MuleDebug.cpp:96
        name = 0xc1c

        status = 0
        dem = 0x97128a0 ""
        t = (struct std::type_info *) 0x0
#2  0xb7938324 in __gxx_personality_v0 () from /usr/lib/libstdc++.so.6
No symbol table info available.
#3  0xb7938361 in std::terminate () from /usr/lib/libstdc++.so.6
No symbol table info available.
#4  0xb79384ec in __cxa_throw () from /usr/lib/libstdc++.so.6
No symbol table info available.
#5  0x0807b929 in CFormat::FormatInteger (this=0x4, value=The value of variable 'value' is distributed across several
locations, and GDB cannot access its value.

) at Format.h:288
        field = { = {static npos = 4294967295, m_pchData = 0x97153d4}, }
#6  0x08243769 in CStatTreeItemSimple::GetDisplayString (this=0x8abfb78) at StatTree.cpp:245
No locals.
#7  0x0824036f in CStatisticsDlg::FillTree (this=0x96d3ed0, statssubtree=0x8abf318, StatsGUITree=@0xbfafabb4) at StatisticsDlg.cpp:288
        temp_item = {m_pItem = 0x0}
#8  0x0824048a in CStatisticsDlg::FillTree (this=0x96d3ed0, statssubtree=0x8881568, StatsGUITree=@0xbfafac38) at StatisticsDlg.cpp:297
        temp_item = {m_pItem = 0x9714ac8}
#9  0x08240586 in CStatisticsDlg::ShowStatistics (this=0x96d3ed0, init=false) at StatisticsDlg.cpp:246
        treeRoot = (class CStatTreeItemBase *) 0x8881568
        root = {m_pItem = 0x963e548}
#10 0x080835e7 in CamuleDlg::OnGUITimer (this=0x9591730) at amuleDlg.cpp:1075
        msPrevGraph = 270050
        bStatsVisible = true
        msPrev1 = 274357
        msPrev5 = 270362
        msPrevStats = 275429
        msCur = 275429
        sStatsUpdate = 0
#11 0xb79b960a in wxAppConsole::HandleEvent () from /usr/local/lib/libwx_baseu-2.6.so.0
No symbol table info available.
#12 0xb7a485ef in wxEvtHandler::ProcessEventIfMatches () from /usr/local/lib/libwx_baseu-2.6.so.0
No symbol table info available.
#13 0xb7a488d8 in wxEventHashTable::HandleEvent () from /usr/local/lib/libwx_baseu-2.6.so.0
No symbol table info available.
#14 0xb7a49514 in wxEvtHandler::ProcessEvent () from /usr/local/lib/libwx_baseu-2.6.so.0
No symbol table info available.
#15 0xb7cd0f1f in wxTimerBase::Notify () from /usr/local/lib/libwx_gtk2u_core-2.6.so.0
No symbol table info available.
#16 0xb7beb548 in timeout_callback () from /usr/local/lib/libwx_gtk2u_core-2.6.so.0
No symbol table info available.
#17 0xb71cf7d4 in g_main_context_wakeup () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#18 0xb71cda21 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#19 0xb71d0c77 in g_main_context_check () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#20 0xb71d11c8 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#21 0xb749b849 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
No symbol table info available.
#22 0xb7be23c5 in wxEventLoop::Run () from /usr/local/lib/libwx_gtk2u_core-2.6.so.0
No symbol table info available.
#23 0xb7c64759 in wxAppBase::MainLoop () from /usr/local/lib/libwx_gtk2u_core-2.6.so.0
No symbol table info available.
#24 0xb7c648d3 in wxAppBase::OnRun () from /usr/local/lib/libwx_gtk2u_core-2.6.so.0
No symbol table info available.
#25 0xb79efcf9 in wxEntry () from /usr/local/lib/libwx_baseu-2.6.so.0
No symbol table info available.
#26 0xb79efdce in wxEntry () from /usr/local/lib/libwx_baseu-2.6.so.0
No symbol table info available.
#27 0x0807cef9 in main (argc=1, argv=0xbfafb104) at amule-gui.cpp:149
No locals.
Logged

wardevil

  • Sr. Member
  • ****
  • Karma: -1
  • Offline Offline
  • Posts: 402
Re: Crash at statistics page
« Reply #6 on: August 19, 2005, 02:02:42 AM »

Logged
Linux user nº289016 at Linux counter

Xaignar

  • Admin and Code Junky
  • Hero Member
  • *****
  • Karma: 19
  • Offline Offline
  • Posts: 1103
Re: Crash at statistics page
« Reply #7 on: August 19, 2005, 11:19:31 AM »

GonoszTopi, you already have all the backtrace you need.
Logged

Xaignar

  • Admin and Code Junky
  • Hero Member
  • *****
  • Karma: 19
  • Offline Offline
  • Posts: 1103
Re: Crash at statistics page
« Reply #8 on: August 19, 2005, 01:14:59 PM »

Should be fixed as of revision 5278.
Logged

wardevil

  • Sr. Member
  • ****
  • Karma: -1
  • Offline Offline
  • Posts: 402
Re: Crash at statistics page
« Reply #9 on: August 21, 2005, 03:08:09 AM »

Yep...its done but still remains the missing graphs in webserver  :D

Cheers....
Logged
Linux user nº289016 at Linux counter

Radek

  • Full Member
  • ***
  • Karma: 5
  • Offline Offline
  • Posts: 149
Re: Crash at statistics page
« Reply #10 on: August 21, 2005, 10:22:44 AM »

Hi!

Maybe related:

I'm using amuled (CVS-20050819) on Debian Sarge.

I noticed that if I try to use the command "statistics" in amulecmd it would just exit amulecmd without any other visible reaction. It doesn't crash amuled or something, just amulecmd is suddenly gone and I'm back at the prompt.

I can start amulecmd again right away and use other commands without problems. Didn't try newer snapshots yet.
« Last Edit: August 21, 2005, 10:23:11 AM by Radek »
Logged
There are 10 kinds of people - those who are able to understand binary numbers and those who aren't...

wardevil

  • Sr. Member
  • ****
  • Karma: -1
  • Offline Offline
  • Posts: 402
Re: Crash at statistics page
« Reply #11 on: August 21, 2005, 04:18:06 PM »

Well i am using snapshot 20050820 and that issue is resolved to me....try a newer cvs....

Cheers....
Logged
Linux user nº289016 at Linux counter