aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: amuled consumes all the memory (ram+swap)  (Read 3012 times)

morph

  • Full Member
  • ***
  • Karma: 2
  • Offline Offline
  • Posts: 213
    • http://matrixhasu.altervista.org/
amuled consumes all the memory (ram+swap)
« on: December 03, 2005, 06:01:24 PM »

HI,
it's less then a week this problems came: started amuled, in variable time of 1-3 hours, something go crazy. Suddenly, amuled starts consuming ALL the memory available in the system (RAM + swap) then it will be killed from kernel oom-killer.

Luckily (maybe) today I was there when this is happening, and send sigterm to amuled and get his backtrace

Code: [Select]
2005-12-03 12:44:15: Disconnected from Kad

Program received signal SIGTERM, Terminated.
[Switching to Thread -1212959040 (LWP 1881)]
0xffffe410 in __kernel_vsyscall ()
(gdb) bt
#0  0xffffe410 in __kernel_vsyscall ()
#1  0xb7bc3396 in gettimeofday () from /lib/tls/i686/cmov/libc.so.6
#2  0x081d4584 in std::operator+, std::allocator > ()
#3  0x081d45e9 in std::operator+, std::allocator > ()
#4  0x081e85fa in std::operator+, std::allocator > ()
#5  0x080c0dfd in std::operator+, std::allocator > ()
#6  0x08064008 in wxThreadHelperThread::~wxThreadHelperThread ()
#7  0xb7dbf39d in wxAppConsole::HandleEvent () from /usr/lib/libwx_baseu-2.6.so.0
#8  0xb7e4ddb4 in wxEvtHandler::ProcessEventIfMatches () from /usr/lib/libwx_baseu-2.6.so.0
#9  0xb7e4dfc8 in wxEventHashTable::HandleEvent () from /usr/lib/libwx_baseu-2.6.so.0
#10 0xb7e4e19d in wxEvtHandler::ProcessEvent () from /usr/lib/libwx_baseu-2.6.so.0
#11 0xb7e4e803 in wxEvtHandler::ProcessPendingEvents () from /usr/lib/libwx_baseu-2.6.so.0
#12 0xb7dbf6f6 in wxAppConsole::ProcessPendingEvents () from /usr/lib/libwx_baseu-2.6.so.0
#13 0x08054928 in ?? ()
#14 0xb7df551b in wxEntry () from /usr/lib/libwx_baseu-2.6.so.0
#15 0xb7df55ee in wxEntry () from /usr/lib/libwx_baseu-2.6.so.0
#16 0x08053605 in ?? ()
#17 0xb7b55eb0 in __libc_start_main () from /lib/tls/i686/cmov/libc.so.6
#18 0x080534d1 in ?? ()
(gdb) bt full
#0  0xffffe410 in __kernel_vsyscall ()
No symbol table info available.
#1  0xb7bc3396 in gettimeofday () from /lib/tls/i686/cmov/libc.so.6
No symbol table info available.
#2  0x081d4584 in std::operator+, std::allocator > ()
No symbol table info available.
#3  0x081d45e9 in std::operator+, std::allocator > ()
No symbol table info available.
#4  0x081e85fa in std::operator+, std::allocator > ()
No symbol table info available.
#5  0x080c0dfd in std::operator+, std::allocator > ()
No symbol table info available.
#6  0x08064008 in wxThreadHelperThread::~wxThreadHelperThread ()
No symbol table info available.
#7  0xb7dbf39d in wxAppConsole::HandleEvent () from /usr/lib/libwx_baseu-2.6.so.0
No symbol table info available.
#8  0xb7e4ddb4 in wxEvtHandler::ProcessEventIfMatches () from /usr/lib/libwx_baseu-2.6.so.0
No symbol table info available.
#9  0xb7e4dfc8 in wxEventHashTable::HandleEvent () from /usr/lib/libwx_baseu-2.6.so.0
No symbol table info available.
#10 0xb7e4e19d in wxEvtHandler::ProcessEvent () from /usr/lib/libwx_baseu-2.6.so.0
No symbol table info available.
#11 0xb7e4e803 in wxEvtHandler::ProcessPendingEvents () from /usr/lib/libwx_baseu-2.6.so.0
No symbol table info available.
#12 0xb7dbf6f6 in wxAppConsole::ProcessPendingEvents () from /usr/lib/libwx_baseu-2.6.so.0
No symbol table info available.
#13 0x08054928 in ?? ()
No symbol table info available.
#14 0xb7df551b in wxEntry () from /usr/lib/libwx_baseu-2.6.so.0
No symbol table info available.
#15 0xb7df55ee in wxEntry () from /usr/lib/libwx_baseu-2.6.so.0
No symbol table info available.
#16 0x08053605 in ?? ()
---Type to continue, or q to quit---
No symbol table info available.
#17 0xb7b55eb0 in __libc_start_main () from /lib/tls/i686/cmov/libc.so.6
No symbol table info available.
#18 0x080534d1 in ?? ()
No symbol table info available.
(gdb) thread apply all bt

Thread 4 (Thread -1230038096 (LWP 1897)):
#0  0xb7ba84ab in free () from /lib/tls/i686/cmov/libc.so.6
#1  0xb7ba978f in malloc () from /lib/tls/i686/cmov/libc.so.6
#2  0xb7d557c5 in operator new () from /usr/lib/libstdc++.so.6
#3  0x08057bc9 in wxThreadHelperThread::~wxThreadHelperThread ()
#4  0xb7e4e561 in wxEvtHandler::AddPendingEvent () from /usr/lib/libwx_baseu-2.6.so.0
#5  0x08057b08 in wxThreadHelperThread::~wxThreadHelperThread ()
#6  0x08057d9a in wxThreadHelperThread::~wxThreadHelperThread ()
#7  0xb7e4ce4f in wxThreadInternal::PthreadStart () from /usr/lib/libwx_baseu-2.6.so.0
#8  0xb7e4cecc in wxPthreadStart () from /usr/lib/libwx_baseu-2.6.so.0
#9  0xb7ef2e40 in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#10 0xb7c1260e in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 2 (Thread -1213252688 (LWP 1887)):
#0  0xffffe410 in __kernel_vsyscall ()
#1  0xb7ef7fc6 in __nanosleep_nocancel () from /lib/tls/i686/cmov/libpthread.so.0
#2  0xb7e51a66 in wxMicroSleep () from /usr/lib/libwx_baseu-2.6.so.0
#3  0xb7e51a98 in wxMilliSleep () from /usr/lib/libwx_baseu-2.6.so.0
#4  0xb7e4ab2c in wxThread::Sleep () from /usr/lib/libwx_baseu-2.6.so.0
#5  0x08172789 in std::operator+, std::allocator > ()
#6  0xb7e4ce4f in wxThreadInternal::PthreadStart () from /usr/lib/libwx_baseu-2.6.so.0
#7  0xb7e4cecc in wxPthreadStart () from /usr/lib/libwx_baseu-2.6.so.0
#8  0xb7ef2e40 in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#9  0xb7c1260e in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 1 (Thread -1212959040 (LWP 1881)):
#0  0xffffe410 in __kernel_vsyscall ()
#1  0xb7bc3396 in gettimeofday () from /lib/tls/i686/cmov/libc.so.6
#2  0x081d4584 in std::operator+, std::allocator > ()
#3  0x081d45e9 in std::operator+, std::allocator > ()
#4  0x081e85fa in std::operator+, std::allocator > ()
#5  0x080c0dfd in std::operator+, std::allocator > ()
---Type to continue, or q to quit---
#6  0x08064008 in wxThreadHelperThread::~wxThreadHelperThread ()
#7  0xb7dbf39d in wxAppConsole::HandleEvent () from /usr/lib/libwx_baseu-2.6.so.0
#8  0xb7e4ddb4 in wxEvtHandler::ProcessEventIfMatches () from /usr/lib/libwx_baseu-2.6.so.0
#9  0xb7e4dfc8 in wxEventHashTable::HandleEvent () from /usr/lib/libwx_baseu-2.6.so.0
#10 0xb7e4e19d in wxEvtHandler::ProcessEvent () from /usr/lib/libwx_baseu-2.6.so.0
#11 0xb7e4e803 in wxEvtHandler::ProcessPendingEvents () from /usr/lib/libwx_baseu-2.6.so.0
#12 0xb7dbf6f6 in wxAppConsole::ProcessPendingEvents () from /usr/lib/libwx_baseu-2.6.so.0
#13 0x08054928 in ?? ()
#14 0xb7df551b in wxEntry () from /usr/lib/libwx_baseu-2.6.so.0
#15 0xb7df55ee in wxEntry () from /usr/lib/libwx_baseu-2.6.so.0
#16 0x08053605 in ?? ()
#17 0xb7b55eb0 in __libc_start_main () from /lib/tls/i686/cmov/libc.so.6
#18 0x080534d1 in ?? ()

I've restarted amuled but it still tried to consume the free memory available:

Code: [Select]
(gdb) continue
Continuing.
Shutdown requested, terminating in next event loop.

Program received signal SIGTERM, Terminated.
0xffffe410 in __kernel_vsyscall ()
(gdb) bt
#0  0xffffe410 in __kernel_vsyscall ()
#1  0xb7bc3396 in gettimeofday () from /lib/tls/i686/cmov/libc.so.6
#2  0x081d4584 in std::operator+, std::allocator > ()
#3  0x081d45e9 in std::operator+, std::allocator > ()
#4  0x081e85fa in std::operator+, std::allocator > ()
#5  0x080c0dfd in std::operator+, std::allocator > ()
#6  0x08064008 in wxThreadHelperThread::~wxThreadHelperThread ()
#7  0xb7dbf39d in wxAppConsole::HandleEvent () from /usr/lib/libwx_baseu-2.6.so.0
#8  0xb7e4ddb4 in wxEvtHandler::ProcessEventIfMatches () from /usr/lib/libwx_baseu-2.6.so.0
#9  0xb7e4dfc8 in wxEventHashTable::HandleEvent () from /usr/lib/libwx_baseu-2.6.so.0
#10 0xb7e4e19d in wxEvtHandler::ProcessEvent () from /usr/lib/libwx_baseu-2.6.so.0
#11 0xb7e4e803 in wxEvtHandler::ProcessPendingEvents () from /usr/lib/libwx_baseu-2.6.so.0
#12 0xb7dbf6f6 in wxAppConsole::ProcessPendingEvents () from /usr/lib/libwx_baseu-2.6.so.0
#13 0x08054928 in ?? ()
#14 0xb7df551b in wxEntry () from /usr/lib/libwx_baseu-2.6.so.0
#15 0xb7df55ee in wxEntry () from /usr/lib/libwx_baseu-2.6.so.0
#16 0x08053605 in ?? ()
#17 0xb7b55eb0 in __libc_start_main () from /lib/tls/i686/cmov/libc.so.6
#18 0x080534d1 in ?? ()
(gdb) bt full
#0  0xffffe410 in __kernel_vsyscall ()
No symbol table info available.
#1  0xb7bc3396 in gettimeofday () from /lib/tls/i686/cmov/libc.so.6
No symbol table info available.
#2  0x081d4584 in std::operator+, std::allocator > ()
No symbol table info available.
#3  0x081d45e9 in std::operator+, std::allocator > ()
No symbol table info available.
#4  0x081e85fa in std::operator+, std::allocator > ()
No symbol table info available.
#5  0x080c0dfd in std::operator+, std::allocator > ()
No symbol table info available.
#6  0x08064008 in wxThreadHelperThread::~wxThreadHelperThread ()
No symbol table info available.
#7  0xb7dbf39d in wxAppConsole::HandleEvent () from /usr/lib/libwx_baseu-2.6.so.0
No symbol table info available.
#8  0xb7e4ddb4 in wxEvtHandler::ProcessEventIfMatches () from /usr/lib/libwx_baseu-2.6.so.0
No symbol table info available.
#9  0xb7e4dfc8 in wxEventHashTable::HandleEvent () from /usr/lib/libwx_baseu-2.6.so.0
No symbol table info available.
#10 0xb7e4e19d in wxEvtHandler::ProcessEvent () from /usr/lib/libwx_baseu-2.6.so.0
No symbol table info available.
#11 0xb7e4e803 in wxEvtHandler::ProcessPendingEvents () from /usr/lib/libwx_baseu-2.6.so.0
No symbol table info available.
#12 0xb7dbf6f6 in wxAppConsole::ProcessPendingEvents () from /usr/lib/libwx_baseu-2.6.so.0
No symbol table info available.
#13 0x08054928 in ?? ()
No symbol table info available.
#14 0xb7df551b in wxEntry () from /usr/lib/libwx_baseu-2.6.so.0
No symbol table info available.
#15 0xb7df55ee in wxEntry () from /usr/lib/libwx_baseu-2.6.so.0
No symbol table info available.
#16 0x08053605 in ?? ()
---Type to continue, or q to quit---
No symbol table info available.
#17 0xb7b55eb0 in __libc_start_main () from /lib/tls/i686/cmov/libc.so.6
No symbol table info available.
#18 0x080534d1 in ?? ()
No symbol table info available.
(gdb) thread apply all bt

Thread 4 (Thread -1230038096 (LWP 1897)):
#0  0xffffe410 in __kernel_vsyscall ()
#1  0xb7bc3396 in gettimeofday () from /lib/tls/i686/cmov/libc.so.6
#2  0xb7e0add0 in wxGetLocalTimeMillis () from /usr/lib/libwx_baseu-2.6.so.0
#3  0xb7e4c1d1 in wxSemaphoreInternal::WaitTimeout () from /usr/lib/libwx_baseu-2.6.so.0
#4  0xb7e4c277 in wxSemaphore::WaitTimeout () from /usr/lib/libwx_baseu-2.6.so.0
#5  0x08057d65 in wxThreadHelperThread::~wxThreadHelperThread ()
#6  0xb7e4ce4f in wxThreadInternal::PthreadStart () from /usr/lib/libwx_baseu-2.6.so.0
#7  0xb7e4cecc in wxPthreadStart () from /usr/lib/libwx_baseu-2.6.so.0
#8  0xb7ef2e40 in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#9  0xb7c1260e in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 2 (Thread -1213252688 (LWP 1887)):
#0  0xffffe410 in __kernel_vsyscall ()
#1  0xb7ef7fc6 in __nanosleep_nocancel () from /lib/tls/i686/cmov/libpthread.so.0
#2  0xb7e51a66 in wxMicroSleep () from /usr/lib/libwx_baseu-2.6.so.0
#3  0xb7e51a98 in wxMilliSleep () from /usr/lib/libwx_baseu-2.6.so.0
#4  0xb7e4ab2c in wxThread::Sleep () from /usr/lib/libwx_baseu-2.6.so.0
#5  0x08172789 in std::operator+, std::allocator > ()
#6  0xb7e4ce4f in wxThreadInternal::PthreadStart () from /usr/lib/libwx_baseu-2.6.so.0
#7  0xb7e4cecc in wxPthreadStart () from /usr/lib/libwx_baseu-2.6.so.0
#8  0xb7ef2e40 in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#9  0xb7c1260e in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 1 (Thread -1212959040 (LWP 1881)):
#0  0xffffe410 in __kernel_vsyscall ()
#1  0xb7bc3396 in gettimeofday () from /lib/tls/i686/cmov/libc.so.6
#2  0x081d4584 in std::operator+, std::allocator > ()
#3  0x081d45e9 in std::operator+, std::allocator > ()
#4  0x081e85fa in std::operator+, std::allocator > ()
#5  0x080c0dfd in std::operator+, std::allocator > ()
#6  0x08064008 in wxThreadHelperThread::~wxThreadHelperThread ()
---Type to continue, or q to quit---
#7  0xb7dbf39d in wxAppConsole::HandleEvent () from /usr/lib/libwx_baseu-2.6.so.0
#8  0xb7e4ddb4 in wxEvtHandler::ProcessEventIfMatches () from /usr/lib/libwx_baseu-2.6.so.0
#9  0xb7e4dfc8 in wxEventHashTable::HandleEvent () from /usr/lib/libwx_baseu-2.6.so.0
#10 0xb7e4e19d in wxEvtHandler::ProcessEvent () from /usr/lib/libwx_baseu-2.6.so.0
#11 0xb7e4e803 in wxEvtHandler::ProcessPendingEvents () from /usr/lib/libwx_baseu-2.6.so.0
#12 0xb7dbf6f6 in wxAppConsole::ProcessPendingEvents () from /usr/lib/libwx_baseu-2.6.so.0
#13 0x08054928 in ?? ()
#14 0xb7df551b in wxEntry () from /usr/lib/libwx_baseu-2.6.so.0
#15 0xb7df55ee in wxEntry () from /usr/lib/libwx_baseu-2.6.so.0
#16 0x08053605 in ?? ()
#17 0xb7b55eb0 in __libc_start_main () from /lib/tls/i686/cmov/libc.so.6
#18 0x080534d1 in ?? ()
(gdb) quit
The program is running.  Exit anyway? (y or n) y

I usually have an amulecmd connected to amuled to send commands, but maybe it wasn't always connected when this happened (too many times happened...).

I think the problem started less then a week ago: now I've switched back to CVS Mon Nov 21 07:02:03 CET 2005 and amuled is running fine from hours (no amulecmd connected since that version is the one affected by "Segfaul" problem).

Hope this help! In case of some other clarifications / specifications, you're welcome.

Bye
Logged

morph

  • Full Member
  • ***
  • Karma: 2
  • Offline Offline
  • Posts: 213
    • http://matrixhasu.altervista.org/
Re: amuled consumes all the memory (ram+swap)
« Reply #1 on: December 04, 2005, 05:56:40 PM »

I tried swith to CVS 20051125, but even that version is affected; CVS 20051121 is the only one (that i got) that seems to work fine.

Another strange thing happened in the last days: an encrease of corrupted part. Maybe it's only a problem of files i'm downloading, but 4 of them show this behaviour...

Who knows...

Regards.
Logged

Xaignar

  • Admin and Code Junky
  • Hero Member
  • *****
  • Karma: 19
  • Offline Offline
  • Posts: 1103
Re: amuled consumes all the memory (ram+swap)
« Reply #2 on: December 04, 2005, 06:37:06 PM »

By any chance, do you run software to synchronize your clock?
Logged

morph

  • Full Member
  • ***
  • Karma: 2
  • Offline Offline
  • Posts: 213
    • http://matrixhasu.altervista.org/
Re: amuled consumes all the memory (ram+swap)
« Reply #3 on: December 04, 2005, 06:40:49 PM »

Yes, I got ntp always running, and at boot ntpdate to sync clock
Logged

Xaignar

  • Admin and Code Junky
  • Hero Member
  • *****
  • Karma: 19
  • Offline Offline
  • Posts: 1103
Re: amuled consumes all the memory (ram+swap)
« Reply #4 on: December 04, 2005, 07:35:56 PM »

Yeah, currently aMule will fall over if the time gets changed into the past. Ken is currently working on fixing it, so it should hopefully work in tomorrows snapshot.
Logged

morph

  • Full Member
  • ***
  • Karma: 2
  • Offline Offline
  • Posts: 213
    • http://matrixhasu.altervista.org/
Re: amuled consumes all the memory (ram+swap)
« Reply #5 on: December 04, 2005, 07:39:03 PM »

Someone (Ken? you?) can reply to one of the threads opened for this problem to confirm is solved?

Thanks
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: amuled consumes all the memory (ram+swap)
« Reply #6 on: December 04, 2005, 07:45:10 PM »

Sure, once is solved (assuming you are ok with me being the one :P)
Logged

morph

  • Full Member
  • ***
  • Karma: 2
  • Offline Offline
  • Posts: 213
    • http://matrixhasu.altervista.org/
Re: amuled consumes all the memory (ram+swap)
« Reply #7 on: December 04, 2005, 07:53:17 PM »

mh, ok... For this time I'll let you be The One...  :P :P
Logged

ken

  • Hero Member
  • *****
  • Karma: 4
  • Offline Offline
  • Posts: 825
Re: amuled consumes all the memory (ram+swap)
« Reply #8 on: December 06, 2005, 08:02:09 PM »

This is solved as of the 2005-12-05 snapshot.
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: amuled consumes all the memory (ram+swap)
« Reply #9 on: December 06, 2005, 08:57:01 PM »

Ken is The One!
Logged