aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Pages: 1 [2]

Author Topic: amule crashed with an "bad_alloc" message  (Read 8178 times)

btkaos

  • Global Moderator
  • Sr. Member
  • *****
  • Karma: 110
  • Offline Offline
  • Posts: 486
  • Kaos is infinite!
Re: amule crashed with an "bad_alloc" message
« Reply #15 on: August 03, 2011, 01:32:34 PM »

I'd rather bet on a messed up system library installation.
then why have I not problem with any other app?
there're any app work fine.
And only amule has crashes.
Well Gentoo bugs are common due to bad compilation. Note that amule tends to stress the libraries a lot more, so wrong optimization flags are common. Recompile all the amule stack with debug support and get a good backtrace. Are you using some weird flags/use?
Logged

veranyon

  • Approved Newbie
  • *
  • Karma: 1
  • Offline Offline
  • Posts: 34
Re: amule crashed with an "bad_alloc" message
« Reply #16 on: August 04, 2011, 03:53:34 PM »

Code: [Select]
(gdb) bt
#0  0xb7ffd424 in __kernel_vsyscall ()
#1  0xb7fb67f0 in raise () from /lib/libpthread.so.0
#2  0xb748415e in wxTrap() () from /usr/lib/libwx_baseud-2.8.so.0
#3  0xb7745ecd in wxGUIAppTraits::ShowAssertDialog(wxString const&) () from /usr/lib/libwx_gtk2ud_core-2.8.so.0
#4  0xb7484bff in ?? () from /usr/lib/libwx_baseud-2.8.so.0
#5  0xb771acf9 in wxApp::OnAssertFailure(wchar_t const*, int, wchar_t const*, wchar_t const*, wchar_t const*) ()
   from /usr/lib/libwx_gtk2ud_core-2.8.so.0
#6  0x0809105d in ?? ()
#7  0xb7484fb0 in wxOnAssert(wchar_t const*, int, char const*, wchar_t const*, wchar_t const*) () from /usr/lib/libwx_baseud-2.8.so.0
#8  0x0819083c in ?? ()
#9  0x08198a6e in ?? ()
#10 0x082b573a in ?? ()
#11 0x081619e8 in ?? ()
#12 0x08161ba2 in ?? ()
#13 0x08092bee in ?? ()
#14 0xb748404f in wxAppConsole::HandleEvent(wxEvtHandler*, void (wxEvtHandler::*)(wxEvent&), wxEvent&) const () from /usr/lib/libwx_baseud-2.8.so.0
#15 0xb753f509 in wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) () from /usr/lib/libwx_baseud-2.8.so.0
#16 0xb7540a9c in wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) () from /usr/lib/libwx_baseud-2.8.so.0
#17 0xb7540c23 in wxEvtHandler::ProcessEvent(wxEvent&) () from /usr/lib/libwx_baseud-2.8.so.0
#18 0xb753fb21 in wxEvtHandler::ProcessPendingEvents() () from /usr/lib/libwx_baseud-2.8.so.0
#19 0xb7484479 in wxAppConsole::ProcessPendingEvents() () from /usr/lib/libwx_baseud-2.8.so.0
#20 0xb77d7abf in wxAppBase::ProcessIdle() () from /usr/lib/libwx_gtk2ud_core-2.8.so.0
#21 0xb771ba82 in ?? () from /usr/lib/libwx_gtk2ud_core-2.8.so.0
#22 0xb6bc8ee1 in ?? () from /usr/lib/libglib-2.0.so.0
#23 0xb6bcb1d5 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#24 0xb6bcf788 in ?? () from /usr/lib/libglib-2.0.so.0
#25 0xb6bcfcc7 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
#26 0xb6ee3349 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
#27 0xb77373e8 in wxEventLoop::Run() () from /usr/lib/libwx_gtk2ud_core-2.8.so.0
#28 0xb77d77ce in wxAppBase::MainLoop() () from /usr/lib/libwx_gtk2ud_core-2.8.so.0
#29 0xb77d7551 in wxAppBase::OnRun() () from /usr/lib/libwx_gtk2ud_core-2.8.so.0
#30 0xb74cade3 in wxEntry(int&, wchar_t**) () from /usr/lib/libwx_baseud-2.8.so.0
#31 0xb74cafc7 in wxEntry(int&, char**) () from /usr/lib/libwx_baseud-2.8.so.0
#32 0x081b5deb in ?? ()
#33 0xb71bbcc6 in __libc_start_main () from /lib/libc.so.6
#34 0x08085271 in ?? ()

Code: [Select]
(gdb) bt full
#0  0xb7ffd424 in __kernel_vsyscall ()
No symbol table info available.
#1  0xb7fb67f0 in raise () from /lib/libpthread.so.0
No symbol table info available.
#2  0xb748415e in wxTrap() () from /usr/lib/libwx_baseud-2.8.so.0
No symbol table info available.
#3  0xb7745ecd in wxGUIAppTraits::ShowAssertDialog(wxString const&) () from /usr/lib/libwx_gtk2ud_core-2.8.so.0
No symbol table info available.
#4  0xb7484bff in ?? () from /usr/lib/libwx_baseud-2.8.so.0
No symbol table info available.
#5  0xb771acf9 in wxApp::OnAssertFailure(wchar_t const*, int, wchar_t const*, wchar_t const*, wchar_t const*) ()
   from /usr/lib/libwx_gtk2ud_core-2.8.so.0
No symbol table info available.
#6  0x0809105d in ?? ()
No symbol table info available.
#7  0xb7484fb0 in wxOnAssert(wchar_t const*, int, char const*, wchar_t const*, wchar_t const*) () from /usr/lib/libwx_baseud-2.8.so.0
No symbol table info available.
#8  0x0819083c in ?? ()
No symbol table info available.
#9  0x08198a6e in ?? ()
No symbol table info available.
#10 0x082b573a in ?? ()
No symbol table info available.
#11 0x081619e8 in ?? ()
No symbol table info available.
#12 0x08161ba2 in ?? ()
No symbol table info available.
#13 0x08092bee in ?? ()
No symbol table info available.
#14 0xb748404f in wxAppConsole::HandleEvent(wxEvtHandler*, void (wxEvtHandler::*)(wxEvent&), wxEvent&) const () from /usr/lib/libwx_baseud-2.8.so.0
No symbol table info available.
#15 0xb753f509 in wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) () from /usr/lib/libwx_baseud-2.8.so.0
No symbol table info available.
#16 0xb7540a9c in wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) () from /usr/lib/libwx_baseud-2.8.so.0
No symbol table info available.
#17 0xb7540c23 in wxEvtHandler::ProcessEvent(wxEvent&) () from /usr/lib/libwx_baseud-2.8.so.0
No symbol table info available.
#18 0xb753fb21 in wxEvtHandler::ProcessPendingEvents() () from /usr/lib/libwx_baseud-2.8.so.0
No symbol table info available.
#19 0xb7484479 in wxAppConsole::ProcessPendingEvents() () from /usr/lib/libwx_baseud-2.8.so.0
No symbol table info available.
#20 0xb77d7abf in wxAppBase::ProcessIdle() () from /usr/lib/libwx_gtk2ud_core-2.8.so.0
---Type <return> to continue, or q <return> to quit---
No symbol table info available.
#21 0xb771ba82 in ?? () from /usr/lib/libwx_gtk2ud_core-2.8.so.0
No symbol table info available.
#22 0xb6bc8ee1 in ?? () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#23 0xb6bcb1d5 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#24 0xb6bcf788 in ?? () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#25 0xb6bcfcc7 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#26 0xb6ee3349 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
No symbol table info available.
#27 0xb77373e8 in wxEventLoop::Run() () from /usr/lib/libwx_gtk2ud_core-2.8.so.0
No symbol table info available.
#28 0xb77d77ce in wxAppBase::MainLoop() () from /usr/lib/libwx_gtk2ud_core-2.8.so.0
No symbol table info available.
#29 0xb77d7551 in wxAppBase::OnRun() () from /usr/lib/libwx_gtk2ud_core-2.8.so.0
No symbol table info available.
#30 0xb74cade3 in wxEntry(int&, wchar_t**) () from /usr/lib/libwx_baseud-2.8.so.0
No symbol table info available.
#31 0xb74cafc7 in wxEntry(int&, char**) () from /usr/lib/libwx_baseud-2.8.so.0
No symbol table info available.
#32 0x081b5deb in ?? ()
No symbol table info available.
#33 0xb71bbcc6 in __libc_start_main () from /lib/libc.so.6
No symbol table info available.
#34 0x08085271 in ?? ()
No symbol table info available.

Code: [Select]
(gdb) thread apply all bt

Thread 10 (Thread 0xb21ffb70 (LWP 13582)):
#0  0xb7ffd424 in __kernel_vsyscall ()
#1  0xb7fb27f4 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xb753b6fe in wxConditionInternal::WaitTimeout(unsigned long) () from /usr/lib/libwx_baseud-2.8.so.0
#3  0xb753b78a in wxCondition::WaitTimeout(unsigned long) () from /usr/lib/libwx_baseud-2.8.so.0
#4  0xb753d464 in wxSemaphoreInternal::WaitTimeout(unsigned long) () from /usr/lib/libwx_baseud-2.8.so.0
#5  0xb753d4ea in wxSemaphore::WaitTimeout(unsigned long) () from /usr/lib/libwx_baseud-2.8.so.0
#6  0x082886ef in ?? ()
#7  0xb753e073 in wxThreadInternal::PthreadStart(wxThread*) () from /usr/lib/libwx_baseud-2.8.so.0
#8  0xb753e17d in wxPthreadStart () from /usr/lib/libwx_baseud-2.8.so.0
#9  0xb7fadcf2 in start_thread () from /lib/libpthread.so.0
#10 0xb727384e in clone () from /lib/libc.so.6

Thread 3 (Thread 0xb4646b70 (LWP 13520)):
#0  0xb7ffd424 in __kernel_vsyscall ()
#1  0xb7fb5cf6 in nanosleep () from /lib/libpthread.so.0
#2  0xb75450a8 in wxMicroSleep(unsigned long) () from /usr/lib/libwx_baseud-2.8.so.0
#3  0xb75450d1 in wxMilliSleep(unsigned long) () from /usr/lib/libwx_baseud-2.8.so.0
#4  0xb753b42d in wxThread::Sleep(unsigned long) () from /usr/lib/libwx_baseud-2.8.so.0
#5  0x08170160 in ?? ()
#6  0xb753e073 in wxThreadInternal::PthreadStart(wxThread*) () from /usr/lib/libwx_baseud-2.8.so.0
#7  0xb753e17d in wxPthreadStart () from /usr/lib/libwx_baseud-2.8.so.0
#8  0xb7fadcf2 in start_thread () from /lib/libpthread.so.0
#9  0xb727384e in clone () from /lib/libc.so.6

Thread 1 (Thread 0xb566a840 (LWP 13509)):
#0  0xb7ffd424 in __kernel_vsyscall ()
#1  0xb7fb67f0 in raise () from /lib/libpthread.so.0
#2  0xb748415e in wxTrap() () from /usr/lib/libwx_baseud-2.8.so.0
#3  0xb7745ecd in wxGUIAppTraits::ShowAssertDialog(wxString const&) () from /usr/lib/libwx_gtk2ud_core-2.8.so.0
#4  0xb7484bff in ?? () from /usr/lib/libwx_baseud-2.8.so.0
#5  0xb771acf9 in wxApp::OnAssertFailure(wchar_t const*, int, wchar_t const*, wchar_t const*, wchar_t const*) ()
   from /usr/lib/libwx_gtk2ud_core-2.8.so.0
#6  0x0809105d in ?? ()
#7  0xb7484fb0 in wxOnAssert(wchar_t const*, int, char const*, wchar_t const*, wchar_t const*) () from /usr/lib/libwx_baseud-2.8.so.0
#8  0x0819083c in ?? ()
#9  0x08198a6e in ?? ()
#10 0x082b573a in ?? ()
#11 0x081619e8 in ?? ()
#12 0x08161ba2 in ?? ()
#13 0x08092bee in ?? ()
---Type <return> to continue, or q <return> to quit---
#14 0xb748404f in wxAppConsole::HandleEvent(wxEvtHandler*, void (wxEvtHandler::*)(wxEvent&), wxEvent&) const () from /usr/lib/libwx_baseud-2.8.so.0
#15 0xb753f509 in wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) () from /usr/lib/libwx_baseud-2.8.so.0
#16 0xb7540a9c in wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) () from /usr/lib/libwx_baseud-2.8.so.0
#17 0xb7540c23 in wxEvtHandler::ProcessEvent(wxEvent&) () from /usr/lib/libwx_baseud-2.8.so.0
#18 0xb753fb21 in wxEvtHandler::ProcessPendingEvents() () from /usr/lib/libwx_baseud-2.8.so.0
#19 0xb7484479 in wxAppConsole::ProcessPendingEvents() () from /usr/lib/libwx_baseud-2.8.so.0
#20 0xb77d7abf in wxAppBase::ProcessIdle() () from /usr/lib/libwx_gtk2ud_core-2.8.so.0
#21 0xb771ba82 in ?? () from /usr/lib/libwx_gtk2ud_core-2.8.so.0
#22 0xb6bc8ee1 in ?? () from /usr/lib/libglib-2.0.so.0
#23 0xb6bcb1d5 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#24 0xb6bcf788 in ?? () from /usr/lib/libglib-2.0.so.0
#25 0xb6bcfcc7 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
#26 0xb6ee3349 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
#27 0xb77373e8 in wxEventLoop::Run() () from /usr/lib/libwx_gtk2ud_core-2.8.so.0
#28 0xb77d77ce in wxAppBase::MainLoop() () from /usr/lib/libwx_gtk2ud_core-2.8.so.0
#29 0xb77d7551 in wxAppBase::OnRun() () from /usr/lib/libwx_gtk2ud_core-2.8.so.0
#30 0xb74cade3 in wxEntry(int&, wchar_t**) () from /usr/lib/libwx_baseud-2.8.so.0
#31 0xb74cafc7 in wxEntry(int&, char**) () from /usr/lib/libwx_baseud-2.8.so.0
#32 0x081b5deb in ?? ()
#33 0xb71bbcc6 in __libc_start_main () from /lib/libc.so.6
#34 0x08085271 in ?? ()
Logged

btkaos

  • Global Moderator
  • Sr. Member
  • *****
  • Karma: 110
  • Offline Offline
  • Posts: 486
  • Kaos is infinite!
Re: amule crashed with an "bad_alloc" message
« Reply #17 on: August 04, 2011, 05:57:59 PM »

Code: [Select]
#14 0xb748404f in wxAppConsole::HandleEvent(wxEvtHandler*, void (wxEvtHandler::*)(wxEvent&), wxEvent&) const () from /usr/lib/libwx_baseud-2.8.so.0
No symbol table info available.
Still no debug info :( You need to read this:

http://www.gentoo.org/proj/en/qa/backtraces.xml?style=printable

You may have to pass the debug to wx and amule. Also, what are your flags and use settings? If you don't provide that info we won't be able to help you. Also, post always amule and wx version, log, etc... with the backtrace.
Logged

veranyon

  • Approved Newbie
  • *
  • Karma: 1
  • Offline Offline
  • Posts: 34
Re: amule crashed with an "bad_alloc" message
« Reply #18 on: August 04, 2011, 07:30:23 PM »

emerge -pv wxGTK

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ~] x11-libs/wxGTK-2.8.12.0  USE="X debug gnome opengl tiff -doc -gstreamer -odbc -pch -sdl" 0 kB

Total: 1 package (1 reinstall), Size of downloads: 0 kB

######
amule

USE="daemon debug gtk nls remote unicode (-aqua) -ed2k -fileview -geoip (-kdeenablefinal) -plasma -static -stats -upnp -xchat"

Code: [Select]
$amule
..
----------------------------=| BACKTRACE FOLLOWS: |=----------------------------
Current version is: aMule SVN compiled with wxGTK2 v2.8.12 (Debugging) (Snapshot: rev. 10589)
Running on: Linux 2.6.39.3 i686

log:
Code: [Select]
ASSERT INFO:
MuleDebug.cpp(383): assert "s_have_backtrace_symbols" failed in get_backtrace().

BACKTRACE:
[1] wxFatalSignalHandler()
[2] g_main_context_dispatch()
[3] g_main_loop_run()
[4] gtk_main()
[5] wxEventLoop::Run()
[6] wxAppBase::MainLoop()
Logged

veranyon

  • Approved Newbie
  • *
  • Karma: 1
  • Offline Offline
  • Posts: 34
Re: amule crashed with an "bad_alloc" message
« Reply #19 on: August 04, 2011, 07:32:15 PM »

gtk, glib, glibc was built with debug flags also
Logged
Pages: 1 [2]