aMule Forum

English => aMule crashes => Topic started by: veranyon on July 23, 2011, 04:46:48 PM

Title: amule crashed with an "bad_alloc" message
Post by: veranyon on July 23, 2011, 04:46:48 PM
After about 10 min that one crashes with an "bad_alloc" message
Code: [Select]
** (amule:28501): CRITICAL **: clearlooks_style_draw_box_gap: assertion `height >= -1' failed

Terminated after throwing an instance of 'std::bad_alloc'
what(): std::bad_alloc
* Could not get symbol names for backtrace
backtrace:

amule: Fatal IO error 12 (Cannot allocate memory) on X server :1.0.
pure virtual method called
Multiple segmentation faults occurred; can't display error dialog

Linux Gentoo.
linux kernel 2.6.39.3
#1 SMP Tue Jul 12 19:53:00 MSD 2011 i686 Intel(R) Core(TM)2 CPU 6400 @ 2.13GHz GenuineIntel GNU/Linux
amule -v
aMule 2.2.6 using wxGTK2 v2.8.11 (OS: Linux)


What were I doing:
Code: [Select]

USE="debug" emerge amule
$ gdb /usr/bin/amule
(gdb) run
(after some time)
** (amule:16030): CRITICAL **: clearlooks_style_draw_box_gap: assertion `height >= -1' failed
WARNING! Client UDP-Socket discarded packet due to errors (2) while sending.
WARNING! Client UDP-Socket discarded packet due to errors (2) while sending.
WARNING! Client UDP-Socket discarded packet due to errors (2) while sending.

Terminated after throwing an instance of 'std::bad_alloc'
what(): std::bad_alloc
* Could not get symbol names for backtrace
backtrace:


Program received signal SIGABRT, Aborted.
0xb7ffd424 in __kernel_vsyscall ()

On the http://wiki.amule.org/index.php/Backtraces people advices insert some code in /etc/make.conf.
(On Gentoo

You must follow How to get meaningful backtraces in Gentoo.

In short, most gentoo users want to edit /etc/make.conf, add -ggdb into their CFLAGS and

FEATURES="splitdebug"
)
But I don't know what is it and I fear to breake my system. Amule isn't single software that I have on Gentoo.

May be I have a standart problem that I'll be change configuration of my make.conf.
If it's not right so I'm ready change it.
Title: Re: amule crashed with an "bad_alloc" message
Post by: Stu Redman on July 23, 2011, 06:41:56 PM
You have to use wxWidgets 2.8.12.
Title: Re: amule crashed with an "bad_alloc" message
Post by: veranyon on July 24, 2011, 10:58:56 PM
Code: [Select]
(amule:28213): GLib-WARNING **: giounix.c:411Error while getting flags for FD: Неправильный дескриптор файла (9)


--------------------------------------------------------------------------------
A fatal error has occurred and aMule has crashed.
Please assist us in fixing this problem by posting the backtrace below in our
'aMule Crashes' forum and include as much information as possible regarding the
circumstances of this crash. The forum is located here:
    http://forum.amule.org/index.php?board=67.0
If possible, please try to generate a real backtrace of this crash:
    http://wiki.amule.org/index.php/Backtraces

----------------------------=| BACKTRACE FOLLOWS: |=----------------------------
Current version is: aMule 2.2.6 using wxGTK2 v2.8.12
Running on: Linux 2.6.39.3 i686

[2] ?? in amule[0x8083049]
[3] wxFatalSignalHandler in /usr/lib/libwx_baseu-2.8.so.0[0xb6d32756]
[4] ?? in [0xb775d400]
[5] ?? in [0xf7060a7]
[6] ?? in /usr/lib/libgdk-x11-2.0.so.0[0xb6569242]
[7] ?? in /usr/lib/libglib-2.0.so.0[0xb64721eb]
[8] g_main_context_dispatch in /usr/lib/libglib-2.0.so.0[0xb642a125]
[9] ?? in /usr/lib/libglib-2.0.so.0[0xb642e6d8]
[10] g_main_loop_run in /usr/lib/libglib-2.0.so.0[0xb642ec17]
[11] gtk_main in /usr/lib/libgtk-x11-2.0.so.0[0xb671a5e9]
[12] wxEventLoop::Run() in /usr/lib/libwx_gtk2u_core-2.8.so.0[0xb6efecd8]
[13] wxAppBase::MainLoop() in /usr/lib/libwx_gtk2u_core-2.8.so.0[0xb6f90dee]
[14] wxAppBase::OnRun() in /usr/lib/libwx_gtk2u_core-2.8.so.0[0xb6f90a01]
[15] wxEntry(int&, wchar_t**) in /usr/lib/libwx_baseu-2.8.so.0[0xb6cc9be3]
[16] wxEntry(int&, char**) in /usr/lib/libwx_baseu-2.8.so.0[0xb6cc9dc7]
[17] ?? in amule[0x8144cfb]
[18] __libc_start_main in /lib/libc.so.6[0xb69c8cc6]
[19] ?? in amule[0x8081fd1]


--------------------------------------------------------------------------------

amule -v
aMule 2.2.6 using wxGTK2 v2.8.12 (OS: Linux)
Title: Re: amule crashed with an "bad_alloc" message
Post by: btkaos on July 25, 2011, 02:38:15 AM
amule -v
aMule 2.2.6 using wxGTK2 v2.8.12 (OS: Linux)
Well this seems like the old tab bug. Can you use a modern (2.3) amule?
Title: Re: amule crashed with an "bad_alloc" message
Post by: veranyon on July 25, 2011, 08:29:02 AM
somebody has a mistake there > http://wiki.amule.org/index.php/HowTo_Compile_In_Gentoo#amule_SVN

Quote
..1. Define PORTDIR_OVERLAY. Open up /etc/make.conf with your favourite text editor and define the PORTDIR_OVERLAY variable. We will use:

 PORTDIR_OVERLAY="/usr/local/portage"

2. Create overlay for amule-svn:

 mkdir -p /usr/local/net-p2p/amule <<  a mistake

3. Add to package.keywords:

 echo "net-p2p/amule ~x86" >> /etc/portage/package.keywords

need (as i think)
"2. Create overlay for amule-svn:

 mkdir -p /usr/local/portage/net-p2p/amule

isn't it?
#############

well be test  a 10589 svn.

Thanks and Great thanks for people who wrote it > http://wiki.amule.org/index.php/HowTo_Compile_In_Gentoo#amule_SVN
Title: Re: amule crashed with an "bad_alloc" message
Post by: veranyon on July 26, 2011, 12:30:38 PM
[SOLVED]
all're working.
Title: Re: amule crashed with an "bad_alloc" message
Post by: veranyon on July 28, 2011, 10:32:31 PM
all over again..
Code: [Select]
----------------------------=| BACKTRACE FOLLOWS: |=----------------------------
Current version is: aMule SVN compiled with wxGTK2 v2.8.12 (Snapshot: rev. 10589)
Running on: Linux 2.6.39.3 i686

[2] ?? in amule[0x808b653]
[3] wxFatalSignalHandler in /usr/lib/libwx_baseu-2.8.so.0[0xb6dcc756]
[4] ?? in [0xb77f7400]
[5] ?? in [0xade1f5f3]
[6] ?? in /usr/lib/libgdk-x11-2.0.so.0[0xb6603242]
[7] ?? in /usr/lib/libglib-2.0.so.0[0xb650c1eb]
[8] g_main_context_dispatch in /usr/lib/libglib-2.0.so.0[0xb64c4125]
[9] ?? in /usr/lib/libglib-2.0.so.0[0xb64c86d8]
[10] g_main_loop_run in /usr/lib/libglib-2.0.so.0[0xb64c8c17]
[11] gtk_main in /usr/lib/libgtk-x11-2.0.so.0[0xb67b45e9]
[12] wxEventLoop::Run() in /usr/lib/libwx_gtk2u_core-2.8.so.0[0xb6f98cd8]
[13] wxAppBase::MainLoop() in /usr/lib/libwx_gtk2u_core-2.8.so.0[0xb702adee]
[14] wxAppBase::OnRun() in /usr/lib/libwx_gtk2u_core-2.8.so.0[0xb702aa01]
[15] wxEntry(int&, wchar_t**) in /usr/lib/libwx_baseu-2.8.so.0[0xb6d63be3]
[16] wxEntry(int&, char**) in /usr/lib/libwx_baseu-2.8.so.0[0xb6d63dc7]
[17] ?? in amule[0x81555fb]
[18] __libc_start_main in /lib/libc.so.6[0xb6a62cc6]
[19] ?? in amule[0x8082b11]


--------------------------------------------------------------------------------
Title: Re: amule crashed with an "bad_alloc" message
Post by: btkaos on July 29, 2011, 06:25:08 AM
What gtk/glib version? What xlib version?
Title: Re: amule crashed with an "bad_alloc" message
Post by: veranyon on July 29, 2011, 07:35:43 AM
gtk+: 2.24.4
glib: 2.28.8
glibc: 2.12.2
Title: Re: amule crashed with an "bad_alloc" message
Post by: btkaos on July 30, 2011, 04:10:30 AM
gtk+: 2.24.4
glib: 2.28.8
glibc: 2.12.2
and xlib (libx11-6 in ubuntu)?
Title: Re: amule crashed with an "bad_alloc" message
Post by: veranyon on July 30, 2011, 08:46:15 AM
libx11: 1.4.3
Title: Re: amule crashed with an "bad_alloc" message
Post by: veranyon on July 31, 2011, 06:25:46 PM
was something else?
Title: Re: amule crashed with an "bad_alloc" message
Post by: btkaos on August 01, 2011, 02:22:24 AM
Well that certainly seems like a bug.

If you can reproduce it try installing the debug libraries (libgtk2.0-0-dbg, etc...) and compile wx and amule with --enable-debug.

Then the backtrace should contain much more information, post it here.
Title: Re: amule crashed with an "bad_alloc" message
Post by: Stu Redman on August 01, 2011, 11:04:14 PM
I'd rather bet on a messed up system library installation.
Title: Re: amule crashed with an "bad_alloc" message
Post by: veranyon on August 03, 2011, 08:20:26 AM
I'd rather bet on a messed up system library installation.

hm.
then why have I not problem with any other app?
there're any app work fine.
And only amule has crashes.
Title: Re: amule crashed with an "bad_alloc" message
Post by: btkaos 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?
Title: Re: amule crashed with an "bad_alloc" message
Post by: veranyon 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 ?? ()
Title: Re: amule crashed with an "bad_alloc" message
Post by: btkaos 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.
Title: Re: amule crashed with an "bad_alloc" message
Post by: veranyon 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()
Title: Re: amule crashed with an "bad_alloc" message
Post by: veranyon on August 04, 2011, 07:32:15 PM
gtk, glib, glibc was built with debug flags also