aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: 99% CPU After a few second amuled starts  (Read 3259 times)

telenieko

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 1
    • http://golfos.net
99% CPU After a few second amuled starts
« on: September 24, 2005, 01:08:10 AM »

I'm using the debian packages for amule 2.0.3+CVS, I start amuled with
'amuled -i -o' and after a few seconds the daemon starts (just after having connected to KAD and ED2K) it starts eating 99% cpu forever and ever....

I did 3 backtraces following the wiki, here they are:
(amule_2.0.3+CVS20050922-1_i386.deb Is the package currently installed, with all the others, all are 2.0.3+CVS20050922-1)

========= START BT================
(gdb) bt
#0  0x08054875 in ?? ()
#1  0x080692d8 in wxSocketEvent::~wxSocketEvent ()
#2  0x08069d11 in wxSocketEvent::~wxSocketEvent ()
#3  0xb7eed51b in wxEntry () from /usr/lib/libwx_baseu-2.6.so.0
#4  0xb7eed5ee in wxEntry () from /usr/lib/libwx_baseu-2.6.so.0
#5  0x08068c79 in wxSocketEvent::~wxSocketEvent ()
#6  0xb7c01ec0 in __libc_start_main () from /lib/tls/libc.so.6
#7  0x08053191 in ?? ()
(gdb) bt full
#0  0x08054875 in ?? ()
No symbol table info available.
#1  0x080692d8 in wxSocketEvent::~wxSocketEvent ()
No symbol table info available.
#2  0x08069d11 in wxSocketEvent::~wxSocketEvent ()
No symbol table info available.
#3  0xb7eed51b in wxEntry () from /usr/lib/libwx_baseu-2.6.so.0
No symbol table info available.
#4  0xb7eed5ee in wxEntry () from /usr/lib/libwx_baseu-2.6.so.0
No symbol table info available.
#5  0x08068c79 in wxSocketEvent::~wxSocketEvent ()
No symbol table info available.
#6  0xb7c01ec0 in __libc_start_main () from /lib/tls/libc.so.6
No symbol table info available.
#7  0x08053191 in ?? ()
No symbol table info available.
(gdb) thread apply all bt

Thread 3 (Thread -1213088848 (LWP 31288)):
#0  0xb7fb2b1c in __nanosleep_nocancel () from /lib/tls/libpthread.so.0
#1  0xb7f49a66 in wxMicroSleep () from /usr/lib/libwx_baseu-2.6.so.0
#2  0xb7f49a98 in wxMilliSleep () from /usr/lib/libwx_baseu-2.6.so.0
#3  0xb7f42b2c in wxThread::Sleep () from /usr/lib/libwx_baseu-2.6.so.0
#4  0x0820bd19 in wxArchiveInputStream::Peek ()
#5  0xb7f44e4f in wxThreadInternal::PthreadStart () from /usr/lib/libwx_baseu-2.6.so.0
#6  0xb7f44ecc in wxPthreadStart () from /usr/lib/libwx_baseu-2.6.so.0
#7  0xb7fadccd in start_thread () from /lib/tls/libpthread.so.0
#8  0xb7cbeb0e in clone () from /lib/tls/libc.so.6

Thread 2 (Thread -1221629008 (LWP 31293)):
#0  0xb7fb2b1c in __nanosleep_nocancel () from /lib/tls/libpthread.so.0
#1  0xb7f49a66 in wxMicroSleep () from /usr/lib/libwx_baseu-2.6.so.0
#2  0xb7f49a98 in wxMilliSleep () from /usr/lib/libwx_baseu-2.6.so.0
#3  0xb7f42b2c in wxThread::Sleep () from /usr/lib/libwx_baseu-2.6.so.0
#4  0x0820a774 in wxArchiveInputStream::Peek ()
#5  0xb7f44e4f in wxThreadInternal::PthreadStart () from /usr/lib/libwx_baseu-2.6.so.0
#6  0xb7f44ecc in wxPthreadStart () from /usr/lib/libwx_baseu-2.6.so.0
#7  0xb7fadccd in start_thread () from /lib/tls/libpthread.so.0
#8  0xb7cbeb0e in clone () from /lib/tls/libc.so.6

Thread 1 (Thread -1212254528 (LWP 31285)):
#0  0x08054875 in ?? ()
#1  0x080692d8 in wxSocketEvent::~wxSocketEvent ()
#2  0x08069d11 in wxSocketEvent::~wxSocketEvent ()
#3  0xb7eed51b in wxEntry () from /usr/lib/libwx_baseu-2.6.so.0
#4  0xb7eed5ee in wxEntry () from /usr/lib/libwx_baseu-2.6.so.0
#5  0x08068c79 in wxSocketEvent::~wxSocketEvent ()
#6  0xb7c01ec0 in __libc_start_main () from /lib/tls/libc.so.6
#7  0x08053191 in ?? ()


SECOND BT


0xb7e6acf6 in wxSocketBase::OnRequest () from /usr/lib/libwx_baseu_net-2.6.so.0
(gdb) bt
#0  0xb7e6acf6 in wxSocketBase::OnRequest () from /usr/lib/libwx_baseu_net-2.6.so.0
#1  0xb7e6ae10 in wx_socket_callback () from /usr/lib/libwx_baseu_net-2.6.so.0
#2  0xb7e6ebe6 in GSocket::Detected_Read () from /usr/lib/libwx_baseu_net-2.6.so.0
#3  0x08068f4c in wxSocketEvent::~wxSocketEvent ()
#4  0x0806927e in wxSocketEvent::~wxSocketEvent ()
#5  0x08069d11 in wxSocketEvent::~wxSocketEvent ()
#6  0xb7eed51b in wxEntry () from /usr/lib/libwx_baseu-2.6.so.0
#7  0xb7eed5ee in wxEntry () from /usr/lib/libwx_baseu-2.6.so.0
#8  0x08068c79 in wxSocketEvent::~wxSocketEvent ()
#9  0xb7c01ec0 in __libc_start_main () from /lib/tls/libc.so.6
#10 0x08053191 in ?? ()
(gdb) bt full
#0  0xb7e6acf6 in wxSocketBase::OnRequest () from /usr/lib/libwx_baseu_net-2.6.so.0
No symbol table info available.
#1  0xb7e6ae10 in wx_socket_callback () from /usr/lib/libwx_baseu_net-2.6.so.0
No symbol table info available.
#2  0xb7e6ebe6 in GSocket::Detected_Read () from /usr/lib/libwx_baseu_net-2.6.so.0
No symbol table info available.
#3  0x08068f4c in wxSocketEvent::~wxSocketEvent ()
No symbol table info available.
#4  0x0806927e in wxSocketEvent::~wxSocketEvent ()
No symbol table info available.
#5  0x08069d11 in wxSocketEvent::~wxSocketEvent ()
No symbol table info available.
#6  0xb7eed51b in wxEntry () from /usr/lib/libwx_baseu-2.6.so.0
No symbol table info available.
#7  0xb7eed5ee in wxEntry () from /usr/lib/libwx_baseu-2.6.so.0
No symbol table info available.
#8  0x08068c79 in wxSocketEvent::~wxSocketEvent ()
No symbol table info available.
#9  0xb7c01ec0 in __libc_start_main () from /lib/tls/libc.so.6
No symbol table info available.
#10 0x08053191 in ?? ()
No symbol table info available.
(gdb) thread apply all bt

Thread 3 (Thread -1213088848 (LWP 31288)):
#0  0xb7fb2b1c in __nanosleep_nocancel () from /lib/tls/libpthread.so.0
#1  0xb7f49a66 in wxMicroSleep () from /usr/lib/libwx_baseu-2.6.so.0
#2  0xb7f49a98 in wxMilliSleep () from /usr/lib/libwx_baseu-2.6.so.0
#3  0xb7f42b2c in wxThread::Sleep () from /usr/lib/libwx_baseu-2.6.so.0
#4  0x0820bd19 in wxArchiveInputStream::Peek ()
#5  0xb7f44e4f in wxThreadInternal::PthreadStart () from /usr/lib/libwx_baseu-2.6.so.0
#6  0xb7f44ecc in wxPthreadStart () from /usr/lib/libwx_baseu-2.6.so.0
#7  0xb7fadccd in start_thread () from /lib/tls/libpthread.so.0
#8  0xb7cbeb0e in clone () from /lib/tls/libc.so.6

Thread 2 (Thread -1221629008 (LWP 31293)):
#0  0xb7fb2b1c in __nanosleep_nocancel () from /lib/tls/libpthread.so.0
#1  0xb7f49a66 in wxMicroSleep () from /usr/lib/libwx_baseu-2.6.so.0
#2  0xb7f49a98 in wxMilliSleep () from /usr/lib/libwx_baseu-2.6.so.0
#3  0xb7f42b2c in wxThread::Sleep () from /usr/lib/libwx_baseu-2.6.so.0
#4  0x0820a774 in wxArchiveInputStream::Peek ()
#5  0xb7f44e4f in wxThreadInternal::PthreadStart () from /usr/lib/libwx_baseu-2.6.so.0
#6  0xb7f44ecc in wxPthreadStart () from /usr/lib/libwx_baseu-2.6.so.0
#7  0xb7fadccd in start_thread () from /lib/tls/libpthread.so.0
#8  0xb7cbeb0e in clone () from /lib/tls/libc.so.6

Thread 1 (Thread -1212254528 (LWP 31285)):
#0  0xb7e6acf6 in wxSocketBase::OnRequest () from /usr/lib/libwx_baseu_net-2.6.so.0
#1  0xb7e6ae10 in wx_socket_callback () from /usr/lib/libwx_baseu_net-2.6.so.0
#2  0xb7e6ebe6 in GSocket::Detected_Read () from /usr/lib/libwx_baseu_net-2.6.so.0
#3  0x08068f4c in wxSocketEvent::~wxSocketEvent ()
#4  0x0806927e in wxSocketEvent::~wxSocketEvent ()
#5  0x08069d11 in wxSocketEvent::~wxSocketEvent ()
#6  0xb7eed51b in wxEntry () from /usr/lib/libwx_baseu-2.6.so.0
#7  0xb7eed5ee in wxEntry () from /usr/lib/libwx_baseu-2.6.so.0
#8  0x08068c79 in wxSocketEvent::~wxSocketEvent ()
#9  0xb7c01ec0 in __libc_start_main () from /lib/tls/libc.so.6
#10 0x08053191 in ?? ()
(gdb) c



THIRD BT



0xb7cb6f87 in select () from /lib/tls/libc.so.6
(gdb) bt
#0  0xb7cb6f87 in select () from /lib/tls/libc.so.6
#1  0x0806924f in wxSocketEvent::~wxSocketEvent ()
#2  0x08069d11 in wxSocketEvent::~wxSocketEvent ()
#3  0xb7eed51b in wxEntry () from /usr/lib/libwx_baseu-2.6.so.0
#4  0xb7eed5ee in wxEntry () from /usr/lib/libwx_baseu-2.6.so.0
#5  0x08068c79 in wxSocketEvent::~wxSocketEvent ()
#6  0xb7c01ec0 in __libc_start_main () from /lib/tls/libc.so.6
#7  0x08053191 in ?? ()
(gdb) bt full
#0  0xb7cb6f87 in select () from /lib/tls/libc.so.6
No symbol table info available.
#1  0x0806924f in wxSocketEvent::~wxSocketEvent ()
No symbol table info available.
#2  0x08069d11 in wxSocketEvent::~wxSocketEvent ()
No symbol table info available.
#3  0xb7eed51b in wxEntry () from /usr/lib/libwx_baseu-2.6.so.0
No symbol table info available.
#4  0xb7eed5ee in wxEntry () from /usr/lib/libwx_baseu-2.6.so.0
No symbol table info available.
#5  0x08068c79 in wxSocketEvent::~wxSocketEvent ()
No symbol table info available.
#6  0xb7c01ec0 in __libc_start_main () from /lib/tls/libc.so.6
No symbol table info available.
#7  0x08053191 in ?? ()
No symbol table info available.
(gdb) thread apply all bt

Thread 3 (Thread -1213088848 (LWP 31288)):
#0  0xb7fb2b1c in __nanosleep_nocancel () from /lib/tls/libpthread.so.0
#1  0xb7f49a66 in wxMicroSleep () from /usr/lib/libwx_baseu-2.6.so.0
#2  0xb7f49a98 in wxMilliSleep () from /usr/lib/libwx_baseu-2.6.so.0
#3  0xb7f42b2c in wxThread::Sleep () from /usr/lib/libwx_baseu-2.6.so.0
#4  0x0820bd19 in wxArchiveInputStream::Peek ()
#5  0xb7f44e4f in wxThreadInternal::PthreadStart () from /usr/lib/libwx_baseu-2.6.so.0
#6  0xb7f44ecc in wxPthreadStart () from /usr/lib/libwx_baseu-2.6.so.0
#7  0xb7fadccd in start_thread () from /lib/tls/libpthread.so.0
#8  0xb7cbeb0e in clone () from /lib/tls/libc.so.6

Thread 2 (Thread -1221629008 (LWP 31293)):
#0  0xb7fb2b1c in __nanosleep_nocancel () from /lib/tls/libpthread.so.0
#1  0xb7f49a66 in wxMicroSleep () from /usr/lib/libwx_baseu-2.6.so.0
#2  0xb7f49a98 in wxMilliSleep () from /usr/lib/libwx_baseu-2.6.so.0
#3  0xb7f42b2c in wxThread::Sleep () from /usr/lib/libwx_baseu-2.6.so.0
#4  0x0820a774 in wxArchiveInputStream::Peek ()
#5  0xb7f44e4f in wxThreadInternal::PthreadStart () from /usr/lib/libwx_baseu-2.6.so.0
#6  0xb7f44ecc in wxPthreadStart () from /usr/lib/libwx_baseu-2.6.so.0
#7  0xb7fadccd in start_thread () from /lib/tls/libpthread.so.0
#8  0xb7cbeb0e in clone () from /lib/tls/libc.so.6

Thread 1 (Thread -1212254528 (LWP 31285)):
#0  0xb7cb6f87 in select () from /lib/tls/libc.so.6
#1  0x0806924f in wxSocketEvent::~wxSocketEvent ()
#2  0x08069d11 in wxSocketEvent::~wxSocketEvent ()
#3  0xb7eed51b in wxEntry () from /usr/lib/libwx_baseu-2.6.so.0
#4  0xb7eed5ee in wxEntry () from /usr/lib/libwx_baseu-2.6.so.0
#5  0x08068c79 in wxSocketEvent::~wxSocketEvent ()
#6  0xb7c01ec0 in __libc_start_main () from /lib/tls/libc.so.6
#7  0x08053191 in ?? ()

============= END BT ================
Logged

lfroen

  • Guest
Re: 99% CPU After a few second amuled starts
« Reply #1 on: September 24, 2005, 08:02:36 AM »

I see nothing special in BT.
Logged

ken

  • Hero Member
  • *****
  • Karma: 4
  • Offline Offline
  • Posts: 825
Re: 99% CPU After a few second amuled starts
« Reply #2 on: September 25, 2005, 07:27:29 AM »

You're using "-i" to enable stdin.  Are you actually running this from a terminal?  In other words, is stdin a real source of input?  If it's /dev/null then I think there's a known problem: it keeps trying to read the command line, getting an error (or an empty command line), and looping back to read again.
Logged

lfroen

  • Guest
Re: 99% CPU After a few second amuled starts
« Reply #3 on: September 27, 2005, 07:34:15 AM »

Quote
it keeps trying to read the command line
Ken: you can't be serious. What does it have to do with command line ?! It never comes from stdin. Actually, I have no idea what is "enable stdin" is good for - stdin is not used in amuled anyway, and not get "disabled".
Logged

ken

  • Hero Member
  • *****
  • Karma: 4
  • Offline Offline
  • Posts: 825
Re: 99% CPU After a few second amuled starts
« Reply #4 on: September 27, 2005, 11:30:40 PM »

Hmm.  My mistake.  I could have sworn that amuled presented a prompt similar to what amuleweb presents.  It was pretty useless because it only supported a quit (or shutdown) command.  Maybe my memory is playing tricks on me.
Logged

phoenix

  • Evil respawning bird from aMule Dev Team
  • Developer
  • Hero Member
  • *****
  • Karma: 44
  • Offline Offline
  • Posts: 2503
  • The last shadow you'll ever see
Re: 99% CPU After a few second amuled starts
« Reply #5 on: September 28, 2005, 04:35:04 AM »

Quote
Originally posted by lfroen
Actually, I have no idea what is "enable stdin" is good for - stdin is not used in amuled anyway, and not get "disabled".
lfroen,

Try to use valgrind, and you'll understand what is --enable-stdin used for :D

http://www.amule.org/wiki/index.php/Using_gdb_and_valgrind

Cheers!
Logged

decoder

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 7
Re: 99% CPU After a few second amuled starts
« Reply #6 on: October 31, 2005, 04:11:44 PM »

I would appreciate it if someone could explain to me if there is a solution
to the problem that this thread mentions.

I have 99% CPU utilization, and i don't know how to cure this.

Thanks
Logged

thedude0001

  • evil bugfinder ;)
  • Hero Member
  • *****
  • Karma: 6
  • Offline Offline
  • Posts: 827
Re: 99% CPU After a few second amuled starts
« Reply #7 on: October 31, 2005, 05:32:05 PM »

Yeah, well, one thread really is enough, you don't need to ask the same question twice.
Closed.
Logged
Das Schlimme auf dieser Welt ist
daß die Dummen so selbstsicher sind
und die Gescheiten so voller Zweifel.