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 5134 times)

veranyon

  • Approved Newbie
  • *
  • Karma: 1
  • Offline Offline
  • Posts: 34
amule crashed with an "bad_alloc" message
« 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.
Logged

Stu Redman

  • Administrator
  • Hero Member
  • *****
  • Karma: 214
  • Offline Offline
  • Posts: 3764
  • Engines screaming
Re: amule crashed with an "bad_alloc" message
« Reply #1 on: July 23, 2011, 06:41:56 PM »

You have to use wxWidgets 2.8.12.
Logged
The image of mother goddess, lying dormant in the eyes of the dead, the sheaf of the corn is broken, end the harvest, throw the dead on the pyre -- Iron Maiden, Isle of Avalon

veranyon

  • Approved Newbie
  • *
  • Karma: 1
  • Offline Offline
  • Posts: 34
Re: amule crashed with an "bad_alloc" message
« Reply #2 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)
Logged

btkaos

  • Global Moderator
  • Sr. Member
  • *****
  • Karma: 110
  • Offline Offline
  • Posts: 486
  • Kaos is infinite!
Re: amule crashed with an "bad_alloc" message
« Reply #3 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?
Logged

veranyon

  • Approved Newbie
  • *
  • Karma: 1
  • Offline Offline
  • Posts: 34
Re: amule crashed with an "bad_alloc" message
« Reply #4 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
Logged

veranyon

  • Approved Newbie
  • *
  • Karma: 1
  • Offline Offline
  • Posts: 34
Re: amule crashed with an "bad_alloc" message
« Reply #5 on: July 26, 2011, 12:30:38 PM »

[SOLVED]
all're working.
Logged

veranyon

  • Approved Newbie
  • *
  • Karma: 1
  • Offline Offline
  • Posts: 34
Re: amule crashed with an "bad_alloc" message
« Reply #6 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]


--------------------------------------------------------------------------------
Logged

btkaos

  • Global Moderator
  • Sr. Member
  • *****
  • Karma: 110
  • Offline Offline
  • Posts: 486
  • Kaos is infinite!
Re: amule crashed with an "bad_alloc" message
« Reply #7 on: July 29, 2011, 06:25:08 AM »

What gtk/glib version? What xlib version?
Logged

veranyon

  • Approved Newbie
  • *
  • Karma: 1
  • Offline Offline
  • Posts: 34
Re: amule crashed with an "bad_alloc" message
« Reply #8 on: July 29, 2011, 07:35:43 AM »

gtk+: 2.24.4
glib: 2.28.8
glibc: 2.12.2
Logged

btkaos

  • Global Moderator
  • Sr. Member
  • *****
  • Karma: 110
  • Offline Offline
  • Posts: 486
  • Kaos is infinite!
Re: amule crashed with an "bad_alloc" message
« Reply #9 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)?
Logged

veranyon

  • Approved Newbie
  • *
  • Karma: 1
  • Offline Offline
  • Posts: 34
Re: amule crashed with an "bad_alloc" message
« Reply #10 on: July 30, 2011, 08:46:15 AM »

libx11: 1.4.3
Logged

veranyon

  • Approved Newbie
  • *
  • Karma: 1
  • Offline Offline
  • Posts: 34
Re: amule crashed with an "bad_alloc" message
« Reply #11 on: July 31, 2011, 06:25:46 PM »

was something else?
Logged

btkaos

  • Global Moderator
  • Sr. Member
  • *****
  • Karma: 110
  • Offline Offline
  • Posts: 486
  • Kaos is infinite!
Re: amule crashed with an "bad_alloc" message
« Reply #12 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.
Logged

Stu Redman

  • Administrator
  • Hero Member
  • *****
  • Karma: 214
  • Offline Offline
  • Posts: 3764
  • Engines screaming
Re: amule crashed with an "bad_alloc" message
« Reply #13 on: August 01, 2011, 11:04:14 PM »

I'd rather bet on a messed up system library installation.
Logged
The image of mother goddess, lying dormant in the eyes of the dead, the sheaf of the corn is broken, end the harvest, throw the dead on the pyre -- Iron Maiden, Isle of Avalon

veranyon

  • Approved Newbie
  • *
  • Karma: 1
  • Offline Offline
  • Posts: 34
Re: amule crashed with an "bad_alloc" message
« Reply #14 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.
Logged
Pages: [1] 2