aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: aMule hogs memory and dies, again (bug 0001248)  (Read 2449 times)

JuhaManninen

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 12
aMule hogs memory and dies, again (bug 0001248)
« on: January 27, 2008, 03:09:24 PM »

Another different one:

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb6cc0a00 (LWP 6098)]
0x099198c1 in ?? ()
(gdb) bt
#0  0x099198c1 in ?? ()
#1  0xb7c43817 in ?? () from /usr/lib/libwx_gtk2u_core-2.8.so.0
#2  0xb7335c4f in ?? () from /usr/lib/libgdk-x11-2.0.so.0
#3  0x099198c0 in ?? ()
#4  0x00000074 in ?? ()
#5  0xb721ad2d in ?? () from /usr/lib/libglib-2.0.so.0
#6  0xb4c05100 in ?? ()
#7  0x00000004 in ?? ()
#8  0xb71eb5d6 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#9  0xb71ee972 in ?? () from /usr/lib/libglib-2.0.so.0
#10 0x0887be58 in ?? ()
#11 0x00000000 in ?? ()
(gdb) bt full
#0  0x099198c1 in ?? ()
No symbol table info available.
#1  0xb7c43817 in ?? () from /usr/lib/libwx_gtk2u_core-2.8.so.0
No symbol table info available.
#2  0xb7335c4f in ?? () from /usr/lib/libgdk-x11-2.0.so.0
No symbol table info available.
#3  0x099198c0 in ?? ()
No symbol table info available.
#4  0x00000074 in ?? ()
No symbol table info available.
#5  0xb721ad2d in ?? () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#6  0xb4c05100 in ?? ()
No symbol table info available.
#7  0x00000004 in ?? ()
No symbol table info available.
#8  0xb71eb5d6 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#9  0xb71ee972 in ?? () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#10 0x0887be58 in ?? ()
No symbol table info available.
#11 0x00000000 in ?? ()
No symbol table info available.
(gdb) thread apply all bt

Thread 4 (Thread 0xb55d4b90 (LWP 6108)):
#0  0xffffe410 in __kernel_vsyscall ()
#1  0xb7f497ec in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xb7a6c6cc in wxConditionInternal::WaitTimeout () from /usr/lib/libwx_baseu-2.8.so.0
#3  0xb7a6c72f in wxCondition::WaitTimeout () from /usr/lib/libwx_baseu-2.8.so.0
#4  0xb7a6d3e5 in wxSemaphoreInternal::WaitTimeout () from /usr/lib/libwx_baseu-2.8.so.0
#5  0xb7a6d46f in wxSemaphore::WaitTimeout () from /usr/lib/libwx_baseu-2.8.so.0
#6  0x083474e8 in CTimerThread::Entry (this=0x88ef2e0) at Timer.cpp:63
#7  0xb7a6da38 in wxThreadInternal::PthreadStart () from /usr/lib/libwx_baseu-2.8.so.0
#8  0xb7a6daad in wxPthreadStart () from /usr/lib/libwx_baseu-2.8.so.0
#9  0xb7f45192 in start_thread () from /lib/libpthread.so.0
#10 0xb77d902e in clone () from /lib/libc.so.6

Thread 2 (Thread 0xb6621b90 (LWP 6106)):
#0  0xffffe410 in __kernel_vsyscall ()
#1  0xb7f4c846 in nanosleep () from /lib/libpthread.so.0
#2  0xb7a73218 in wxMicroSleep () from /usr/lib/libwx_baseu-2.8.so.0
#3  0xb7a73241 in wxMilliSleep () from /usr/lib/libwx_baseu-2.8.so.0
#4  0xb7a6be2d in wxThread::Sleep () from /usr/lib/libwx_baseu-2.8.so.0
#5  0x081b117f in UploadBandwidthThrottler::Entry (this=0x8e36ac0) at UploadBandwidthThrottler.cpp:324
#6  0xb7a6da38 in wxThreadInternal::PthreadStart () from /usr/lib/libwx_baseu-2.8.so.0
#7  0xb7a6daad in wxPthreadStart () from /usr/lib/libwx_baseu-2.8.so.0
#8  0xb7f45192 in start_thread () from /lib/libpthread.so.0
#9  0xb77d902e in clone () from /lib/libc.so.6

Thread 1 (Thread 0xb6cc0a00 (LWP 6098)):
#0  0x099198c1 in ?? ()
#1  0xb7c43817 in ?? () from /usr/lib/libwx_gtk2u_core-2.8.so.0
#2  0xb7335c4f in ?? () from /usr/lib/libgdk-x11-2.0.so.0
#3  0x099198c0 in ?? ()
#4  0x00000074 in ?? ()
#5  0xb721ad2d in ?? () from /usr/lib/libglib-2.0.so.0
#6  0xb4c05100 in ?? ()
#7  0x00000004 in ?? ()
#8  0xb71eb5d6 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#9  0xb71ee972 in ?? () from /usr/lib/libglib-2.0.so.0
#10 0x0887be58 in ?? ()
#11 0x00000000 in ?? ()
Logged

hopelessone

  • Full Member
  • ***
  • Karma: 1
  • Offline Offline
  • Posts: 107
  • Ubuntu 8.04
Re: aMule hogs memory and dies, again (bug 0001248)
« Reply #1 on: January 27, 2008, 03:16:14 PM »

Hi,

Try this from http://forum.amule.org/index.php?topic=14081.0

Quote
hopelessone,

Hi, in first place, thanks for your report and your patience.

Unfortunately (or fortunately Smiley ) your backtraces do not point inside aMule code. This can be an indication that the problem is with wxBase, the part of the wx library that does not need GUI. I think you should try to compile wx yourself and not use the one that comes with the distribution, to make a test. You can have a look at the wiki, I always compile wx myself, and I do it like this (notice that this is a highly debug enabled and speed ineficient wx compilation) :

$ ./configure --enable-mem_tracing --enable-debug --disable-optimise --enable-debug_flag --enable-debug_info --enable-debug_gdb --with-opengl --enable-gtk2 --enable-unicode --enable-largefile --prefix=/home/myuser/usr/local/wxWidgets-2.8.7/ && make && make install

And compile aMule like this:
$ ./configure --enable-ccache --with-denoise-level=3 --enable-debug --disable-optimize --enable-verbose --enable-geoip --enable-cas --enable-wxcas --enable-amule-gui --enable-webserver --enable-amulecmd --enable-amule-daemon --with-wx-config=/home/myuser/usr/local/wxWidgets-2.8.7/bin/wx-config --prefix=/home/myuser/usr/local/amule && LD_LIBRARY_PATH=/home/myuser/usr/local/wxWidgets-2.8.7/lib/ make && LD_LIBRARY_PATH=/home/myuser/usr/local/wxWidgets-2.8.7/lib/ make install

And run aMule(d) like this:
LD_LIBRARY_PATH=/home/myuser/usr/local/wxWidgets-2.8.7/lib/:/home/myuser/usr/local/libupnp/lib/ LANG=en_US.UTF-8 /home/myuser/usr/local/amule/bin/amule

I choose to use all these environment variables so that I don't mess with the system and other users, but you could do it without them as well.

I think it is worth the try, many times before we have had bogus wx libraries provided by the distributions.

Good luck and please report your results!

from phoenix...
Logged

JuhaManninen

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 12
Re: aMule hogs memory and dies, again (bug 0001248)
« Reply #2 on: January 27, 2008, 03:44:00 PM »

I will try that, hold on...

Juha Manninen
Logged