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 on startup  (Read 2633 times)

spiorf

  • Jr. Member
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 73
crash on startup
« on: April 20, 2006, 01:58:33 AM »

i'm using archlinux wxgtk 2.6.3 package, but i have the same problem with wx compiled from sources with the patch as shown on the wiki. ony monolithic amule have this problem, daemon and guis works well.
Code: [Select]

[01:52:47] spiorf@clistere:~$  gdb /mnt/1/amule/amule-AUR/src/amule-cvs/src/amule
GNU gdb 6.4
Copyright 2005 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i686-pc-linux-gnu"...Using host libthread_db library "/lib/tls/libthread_db.so.1".

(gdb) run
Starting program: /mnt/1/amule/amule-AUR/src/amule-cvs/src/amule
[Thread debugging using libthread_db enabled]
[New Thread -1225529664 (LWP 9259)]
This binary requires you to use the flag --only-chuck-norris-would-stop-me and only if you're very sure of it.

Program exited with code 0377.
(gdb) run --only-chuck-norris-would-stop-me
Starting program: /mnt/1/amule/amule-AUR/src/amule-cvs/src/amule --only-chuck-norris-would-stop-me
[Thread debugging using libthread_db enabled]
[New Thread -1224825152 (LWP 9264)]
Initialising aMule
Checking if there is an instance already running...
No other instances are running.
[New Thread -1232077904 (LWP 9268)]
Loading temp files from /mnt/2/temp.amule.
Loading PartFile 29 of 29
All PartFiles Loaded.
ListenSocket: Ok.

*** TCP socket (ECServer) listening on 0.0.0.0:4712
*** Server UDP socket (TCP+3) at 0.0.0.0:4665
*** TCP socket (TCP) listening on 0.0.0.0:4662
*** Client UDP socket (extended eMule) at 0.0.0.0:4672
Adding file /mnt/2/temp.amule/110.part.met to shares
Adding file /mnt/2/temp.amule/109.part.met to shares
Adding file /mnt/2/temp.amule/108.part.met to shares
Adding file /mnt/2/temp.amule/107.part.met to shares
Adding file /mnt/2/temp.amule/106.part.met to shares
Adding file /mnt/2/temp.amule/105.part.met to shares
Adding file /mnt/2/temp.amule/102.part.met to shares
Adding file /mnt/2/temp.amule/101.part.met to shares
Adding file /mnt/2/temp.amule/100.part.met to shares
Adding file /mnt/2/temp.amule/099.part.met to shares
Adding file /mnt/2/temp.amule/098.part.met to shares
Adding file /mnt/2/temp.amule/097.part.met to shares
Adding file /mnt/2/temp.amule/096.part.met to shares
Adding file /mnt/2/temp.amule/095.part.met to shares
Adding file /mnt/2/temp.amule/094.part.met to shares
Adding file /mnt/2/temp.amule/093.part.met to shares
Adding file /mnt/2/temp.amule/092.part.met to shares
Adding file /mnt/2/temp.amule/089.part.met to shares
Adding file /mnt/2/temp.amule/088.part.met to shares
Adding file /mnt/2/temp.amule/087.part.met to shares
Adding file /mnt/2/temp.amule/086.part.met to shares
Adding file /mnt/2/temp.amule/084.part.met to shares
Adding file /mnt/2/temp.amule/083.part.met to shares
Adding file /mnt/2/temp.amule/081.part.met to shares
Adding file /mnt/2/temp.amule/079.part.met to shares
Adding file /mnt/2/temp.amule/078.part.met to shares
Adding file /mnt/2/temp.amule/075.part.met to shares
Adding file /mnt/2/temp.amule/074.part.met to shares
Adding file /mnt/2/temp.amule/072.part.met to shares
[New Thread -1240470608 (LWP 9269)]
[New Thread -1248863312 (LWP 9270)]

Terminated after throwing an instance of 'std::bad_alloc'
        what(): St9bad_alloc
        backtrace:
[2] ?? in /usr/lib/libstdc++.so.6 [0xb79efe45]
[3] ?? in /usr/lib/libstdc++.so.6 [0xb79efe82]
[4] ?? in /usr/lib/libstdc++.so.6 [0xb79effea]
[5] operator new(unsigned int) in /usr/lib/libstdc++.so.6[0xb79f0431]
[6] operator new[](unsigned int) in /usr/lib/libstdc++.so.6[0xb79f04fd]
[7] COScopeCtrl::PlotHistory(unsigned int, bool, bool) in OScopeCtrl.cpp:517
[8] COScopeCtrl::RecreateGraph(bool) in OScopeCtrl.cpp:558
[9] COScopeCtrl::RecreateGrid() in OScopeCtrl.cpp:313
[10] wxAppConsole::HandleEvent(wxEvtHandler*, void (wxEvtHandler::*)(wxEvent&), wxEvent&) const in /usr/lib/libwx_baseu-2.6.so.0[0xb7a5a615]
[11] wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) in /usr/lib/libwx_baseu-2.6.so.0[0xb7aebc43]
[12] wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) in /usr/lib/libwx_baseu-2.6.so.0[0xb7aebe4f]
[13] wxEvtHandler::ProcessEvent(wxEvent&) in /usr/lib/libwx_baseu-2.6.so.0[0xb7aec02f]
[14] wxTimerBase::Notify() in /usr/lib/libwx_gtk2u_core-2.6.so.0[0xb7d7d0ab]
[15] ?? in /usr/lib/libwx_gtk2u_core-2.6.so.0 [0xb7c88ef5]
[16] ?? in /usr/lib/libglib-2.0.so.0 [0xb7386026]
[17] g_main_context_dispatch in /usr/lib/libglib-2.0.so.0[0xb738422c]
[18] ?? in /usr/lib/libglib-2.0.so.0 [0xb73876ab]
[19] g_main_loop_run in /usr/lib/libglib-2.0.so.0[0xb7387a07]
[20] gtk_main in /usr/lib/libgtk-x11-2.0.so.0[0xb7630dc1]
[21] wxEventLoop::Run() in /usr/lib/libwx_gtk2u_core-2.6.so.0[0xb7c7ed28]
[22] wxAppBase::MainLoop() in /usr/lib/libwx_gtk2u_core-2.6.so.0[0xb7d0dd79]
[23] wxAppBase::OnRun() in /usr/lib/libwx_gtk2u_core-2.6.so.0[0xb7d0de71]
[24] wxEntry(int&, wchar_t**) in /usr/lib/libwx_baseu-2.6.so.0[0xb7a912ea]
[25] wxEntry(int&, char**) in /usr/lib/libwx_baseu-2.6.so.0[0xb7a913a6]
[26] main in amule-gui.cpp:110
[27] __libc_start_main in /lib/tls/libc.so.6[0xb780ce00]
[28] __gxx_personality_v0 in :0


Program received signal SIGABRT, Aborted.
[Switching to Thread -1224825152 (LWP 9264)]
0xffffe410 in __kernel_vsyscall ()
(gdb) bt
#0  0xffffe410 in __kernel_vsyscall ()
#1  0xb7f995dd in raise () from /lib/tls/libpthread.so.0
#2  0x082ba894 in OnUnhandledException () at MuleDebug.cpp:86
#3  0xb79efe45 in __cxxabiv1::__terminate () from /usr/lib/libstdc++.so.6
#4  0xb79efe82 in std::terminate () from /usr/lib/libstdc++.so.6
#5  0xb79effea in __cxa_throw () from /usr/lib/libstdc++.so.6
#6  0xb79f0431 in operator new () from /usr/lib/libstdc++.so.6
#7  0xb79f04fd in operator new[] () from /usr/lib/libstdc++.so.6
#8  0x081ba48b in COScopeCtrl::PlotHistory (this=0x9472730,
    cntPoints=4294967260, bShiftGraph=false, bRefresh=false)
    at OScopeCtrl.cpp:517
#9  0x081ba5a9 in COScopeCtrl::RecreateGraph (this=0x9472730, bRefresh=false)
    at OScopeCtrl.cpp:557
#10 0x081bae1b in COScopeCtrl::RecreateGrid (this=0x9472730)
    at OScopeCtrl.cpp:311
#11 0xb7a5a615 in wxAppConsole::HandleEvent ()
   from /usr/lib/libwx_baseu-2.6.so.0
#12 0xb7aebc43 in wxEvtHandler::ProcessEventIfMatches ()
   from /usr/lib/libwx_baseu-2.6.so.0
#13 0xb7aebe4f in wxEventHashTable::HandleEvent ()
   from /usr/lib/libwx_baseu-2.6.so.0
#14 0xb7aec02f in wxEvtHandler::ProcessEvent ()
   from /usr/lib/libwx_baseu-2.6.so.0
---Type to continue, or q to quit---
#15 0xb7d7d0ab in wxTimerBase::Notify ()
   from /usr/lib/libwx_gtk2u_core-2.6.so.0
#16 0xb7c88ef5 in timeout_callback () from /usr/lib/libwx_gtk2u_core-2.6.so.0
#17 0xb7386026 in g_timeout_dispatch () from /usr/lib/libglib-2.0.so.0
#18 0xb738422c in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#19 0xb73876ab in g_main_context_iterate () from /usr/lib/libglib-2.0.so.0
#20 0xb7387a07 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
#21 0xb7630dc1 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
#22 0xb7c7ed28 in wxEventLoop::Run () from /usr/lib/libwx_gtk2u_core-2.6.so.0
#23 0xb7d0dd79 in wxAppBase::MainLoop ()
   from /usr/lib/libwx_gtk2u_core-2.6.so.0
#24 0xb7d0de71 in wxAppBase::OnRun () from /usr/lib/libwx_gtk2u_core-2.6.so.0
#25 0xb7a912ea in wxEntry () from /usr/lib/libwx_baseu-2.6.so.0
#26 0xb7a913a6 in wxEntry () from /usr/lib/libwx_baseu-2.6.so.0
#27 0x081a39ce in main (argc=2, argv=0x0) at amule-gui.cpp:110
(gdb) bt full
#0  0xffffe410 in __kernel_vsyscall ()
No symbol table info available.
#1  0xb7f995dd in raise () from /lib/tls/libpthread.so.0
No symbol table info available.
#2  0x082ba894 in OnUnhandledException () at MuleDebug.cpp:86
        t = (struct std::type_info *) 0x0
#3  0xb79efe45 in __cxxabiv1::__terminate () from /usr/lib/libstdc++.so.6
No symbol table info available.
#4  0xb79efe82 in std::terminate () from /usr/lib/libstdc++.so.6
No symbol table info available.
#5  0xb79effea in __cxa_throw () from /usr/lib/libstdc++.so.6
No symbol table info available.
#6  0xb79f0431 in operator new () from /usr/lib/libstdc++.so.6
No symbol table info available.
#7  0xb79f04fd in operator new[] () from /usr/lib/libstdc++.so.6
No symbol table info available.
#8  0x081ba48b in COScopeCtrl::PlotHistory (this=0x9472730,
    cntPoints=4294967260, bShiftGraph=false, bRefresh=false)
    at OScopeCtrl.cpp:517
        i = 0
        cntFilled =
        apf = (float **) 0xbe53ab8
        sFinal =
---Type to continue, or q to quit---
#9  0x081ba5a9 in COScopeCtrl::RecreateGraph (this=0x9472730, bRefresh=false)
    at OScopeCtrl.cpp:557
No locals.
#10 0x081bae1b in COScopeCtrl::RecreateGrid (this=0x9472730)
    at OScopeCtrl.cpp:311
        i =
#11 0xb7a5a615 in wxAppConsole::HandleEvent ()
   from /usr/lib/libwx_baseu-2.6.so.0
No symbol table info available.
#12 0xb7aebc43 in wxEvtHandler::ProcessEventIfMatches ()
   from /usr/lib/libwx_baseu-2.6.so.0
No symbol table info available.
#13 0xb7aebe4f in wxEventHashTable::HandleEvent ()
   from /usr/lib/libwx_baseu-2.6.so.0
No symbol table info available.
#14 0xb7aec02f in wxEvtHandler::ProcessEvent ()
   from /usr/lib/libwx_baseu-2.6.so.0
No symbol table info available.
#15 0xb7d7d0ab in wxTimerBase::Notify ()
   from /usr/lib/libwx_gtk2u_core-2.6.so.0
No symbol table info available.
#16 0xb7c88ef5 in timeout_callback () from /usr/lib/libwx_gtk2u_core-2.6.so.0
No symbol table info available.
---Type to continue, or q to quit---
#17 0xb7386026 in g_timeout_dispatch () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#18 0xb738422c in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#19 0xb73876ab in g_main_context_iterate () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#20 0xb7387a07 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#21 0xb7630dc1 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
No symbol table info available.
#22 0xb7c7ed28 in wxEventLoop::Run () from /usr/lib/libwx_gtk2u_core-2.6.so.0
No symbol table info available.
#23 0xb7d0dd79 in wxAppBase::MainLoop ()
   from /usr/lib/libwx_gtk2u_core-2.6.so.0
No symbol table info available.
#24 0xb7d0de71 in wxAppBase::OnRun () from /usr/lib/libwx_gtk2u_core-2.6.so.0
No symbol table info available.
#25 0xb7a912ea in wxEntry () from /usr/lib/libwx_baseu-2.6.so.0
No symbol table info available.
#26 0xb7a913a6 in wxEntry () from /usr/lib/libwx_baseu-2.6.so.0
No symbol table info available.
#27 0x081a39ce in main (argc=2, argv=0x0) at amule-gui.cpp:110
No locals.
(gdb) thread apply all bt

Thread 4 (Thread -1248863312 (LWP 9270)):
#0  0xffffe410 in __kernel_vsyscall ()
#1  0xb7f95c9c in pthread_cond_timedwait@@GLIBC_2.3.2 ()
   from /lib/tls/libpthread.so.0
#2  0xb7ae960e in wxConditionInternal::WaitTimeout ()
   from /usr/lib/libwx_baseu-2.6.so.0
#3  0xb7ae967f in wxCondition::WaitTimeout ()
   from /usr/lib/libwx_baseu-2.6.so.0
#4  0xb7ae9f3e in wxSemaphoreInternal::WaitTimeout ()
   from /usr/lib/libwx_baseu-2.6.so.0
#5  0xb7ae9fcf in wxSemaphore::WaitTimeout ()
   from /usr/lib/libwx_baseu-2.6.so.0
#6  0x08270170 in CTimerThread::Entry (this=0xbe52e78) at Timer.cpp:63
#7  0xb7aeac86 in wxThreadInternal::PthreadStart ()
   from /usr/lib/libwx_baseu-2.6.so.0
#8  0xb7aeacfd in wxPthreadStart () from /usr/lib/libwx_baseu-2.6.so.0
#9  0xb7f93240 in start_thread () from /lib/tls/libpthread.so.0
#10 0xb78b403e in clone () from /lib/tls/libc.so.6

Thread 3 (Thread -1240470608 (LWP 9269)):
#0  0xffffe410 in __kernel_vsyscall ()
#1  0xb7f9807e in __lll_mutex_lock_wait () from /lib/tls/libpthread.so.0
---Type to continue, or q to quit---
#2  0xb7f94de5 in _L_mutex_lock_26 () from /lib/tls/libpthread.so.0
#3  0xb7066c58 in ?? ()
#4  0xb7b330d4 in ?? () from /usr/lib/libwx_baseu-2.6.so.0
#5  0x00000000 in ?? ()

Thread 2 (Thread -1232077904 (LWP 9268)):
#0  0xffffe410 in __kernel_vsyscall ()
#1  0xb7f98b16 in __nanosleep_nocancel () from /lib/tls/libpthread.so.0
#2  0xb7aefa16 in wxMicroSleep () from /usr/lib/libwx_baseu-2.6.so.0
#3  0xb7aefa41 in wxMilliSleep () from /usr/lib/libwx_baseu-2.6.so.0
#4  0xb7ae88fd in wxThread::Sleep () from /usr/lib/libwx_baseu-2.6.so.0
#5  0x0815d4c4 in UploadBandwidthThrottler::Entry (this=0x95413d0)
    at UploadBandwidthThrottler.cpp:319
#6  0xb7aeac86 in wxThreadInternal::PthreadStart ()
   from /usr/lib/libwx_baseu-2.6.so.0
#7  0xb7aeacfd in wxPthreadStart () from /usr/lib/libwx_baseu-2.6.so.0
#8  0xb7f93240 in start_thread () from /lib/tls/libpthread.so.0
#9  0xb78b403e in clone () from /lib/tls/libc.so.6

Thread 1 (Thread -1224825152 (LWP 9264)):
#0  0xffffe410 in __kernel_vsyscall ()
#1  0xb7f995dd in raise () from /lib/tls/libpthread.so.0
#2  0x082ba894 in OnUnhandledException () at MuleDebug.cpp:86
---Type to continue, or q to quit---
#3  0xb79efe45 in __cxxabiv1::__terminate () from /usr/lib/libstdc++.so.6
#4  0xb79efe82 in std::terminate () from /usr/lib/libstdc++.so.6
#5  0xb79effea in __cxa_throw () from /usr/lib/libstdc++.so.6
#6  0xb79f0431 in operator new () from /usr/lib/libstdc++.so.6
#7  0xb79f04fd in operator new[] () from /usr/lib/libstdc++.so.6
#8  0x081ba48b in COScopeCtrl::PlotHistory (this=0x9472730,
    cntPoints=4294967260, bShiftGraph=false, bRefresh=false)
    at OScopeCtrl.cpp:517
#9  0x081ba5a9 in COScopeCtrl::RecreateGraph (this=0x9472730, bRefresh=false)
    at OScopeCtrl.cpp:557
#10 0x081bae1b in COScopeCtrl::RecreateGrid (this=0x9472730)
    at OScopeCtrl.cpp:311
#11 0xb7a5a615 in wxAppConsole::HandleEvent ()
   from /usr/lib/libwx_baseu-2.6.so.0
#12 0xb7aebc43 in wxEvtHandler::ProcessEventIfMatches ()
   from /usr/lib/libwx_baseu-2.6.so.0
#13 0xb7aebe4f in wxEventHashTable::HandleEvent ()
   from /usr/lib/libwx_baseu-2.6.so.0
#14 0xb7aec02f in wxEvtHandler::ProcessEvent ()
   from /usr/lib/libwx_baseu-2.6.so.0
#15 0xb7d7d0ab in wxTimerBase::Notify ()
   from /usr/lib/libwx_gtk2u_core-2.6.so.0
#16 0xb7c88ef5 in timeout_callback () from /usr/lib/libwx_gtk2u_core-2.6.so.0
---Type to continue, or q to quit---
#17 0xb7386026 in g_timeout_dispatch () from /usr/lib/libglib-2.0.so.0
#18 0xb738422c in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#19 0xb73876ab in g_main_context_iterate () from /usr/lib/libglib-2.0.so.0
#20 0xb7387a07 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
#21 0xb7630dc1 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
#22 0xb7c7ed28 in wxEventLoop::Run () from /usr/lib/libwx_gtk2u_core-2.6.so.0
#23 0xb7d0dd79 in wxAppBase::MainLoop ()
   from /usr/lib/libwx_gtk2u_core-2.6.so.0
#24 0xb7d0de71 in wxAppBase::OnRun () from /usr/lib/libwx_gtk2u_core-2.6.so.0
#25 0xb7a912ea in wxEntry () from /usr/lib/libwx_baseu-2.6.so.0
#26 0xb7a913a6 in wxEntry () from /usr/lib/libwx_baseu-2.6.so.0
#27 0x081a39ce in main (argc=2, argv=0x0) at amule-gui.cpp:110
(gdb) quit
The program is running.  Exit anyway? (y or n) y
[01:53:48] spiorf@clistere:~$ /mnt/1/amule/amule-AUR/src/amule-cvs/src/amule --version
This binary requires you to use the flag --only-chuck-norris-would-stop-me and only if you're very sure of it.
[01:54:06] spiorf@clistere:~$ /mnt/1/amule/amule-AUR/src/amule-cvs/src/amule --version --only-chuck-norris-would-stop-me
aMule CVS using wxGTK2 v2.6.3 (Snapshot: Sat Apr 15 07:02:00 CEST 2006) (OS: Linux)
Logged
Alcohol, the cause of, and solution to, all of lifes problems...

spiorf

  • Jr. Member
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 73
Re: crash on startup
« Reply #1 on: April 20, 2006, 08:29:02 PM »

I solved the problem removing the skin section from amule.conf
Logged
Alcohol, the cause of, and solution to, all of lifes problems...

phoenix

  • Evil respawning bird from aMule Dev Team
  • Developer
  • Hero Member
  • *****
  • Karma: 44
  • Offline Offline
  • Posts: 2503
  • The last shadow you'll ever see
Re: crash on startup
« Reply #2 on: April 21, 2006, 01:04:53 AM »

spiorf,

You did not solve the problem, you have hidden it below the carpet :)

Please, try again (if possible) with tomorrow date CVS, I have committed a fix, it would be nice if you could test.

Cheers!
Logged

spiorf

  • Jr. Member
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 73
Re: crash on startup
« Reply #3 on: April 21, 2006, 10:29:19 AM »

it works now, thanks!
Logged
Alcohol, the cause of, and solution to, all of lifes problems...