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 freezes often!  (Read 4533 times)

Discoboy

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 8
aMule freezes often!
« on: August 27, 2004, 01:50:54 AM »

My 2.0.0 rc5 sometimes hangs up after a few hours, at the point that a forceful Ctrl+Esc and kill task is needed. I've noticed that it happens more frequently when I'm downloading a lot of stuff at once (4-5 Gb worth of files), so I was guessing it was due to a lack of RAM / system resources.
Here are my connection settings:
- Max sources per file (hard limit): 600
- Connections limit: 400
- Max new connections / 5 secs: 40
- I also make use of full source dropping (every option enabled).
I'm running aMule on a old Celeron 400 Mhz, equipped with 256 Mb of RAM and connected to the net via a router. Maybe I should add that I'm never plenty of free space on the hdd, since I use it always at full capacity.
My linux distribution is Mandrake 9.2.

Thanks for reading till here!
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: aMule freezes often!
« Reply #1 on: August 27, 2004, 05:47:03 AM »

Discoboy,

Can you try a recent tarball? If you think you can do that, follow these steps:

1) Download this file to an empty directory: http://amule.hirnriss.net/cvs/aMule-cvs-20040826.tar.bz2
2) $ tar jxvf aMule-cvs-20040826.tar.bz2
3) $ cd amule-cvs
4) $ ./configure --enable-debug --disable-optimize --enable-verbose --enable-webserver --enable-amulecmd
5) $ make

Notice that --enable-webserver --enable-amulecmd are to be given only if you want to build these programs. The rc5 code is too different from the current cvs, there are many bugs fixed already. And please, in case you try it, do report your results here.

Cheers!
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: aMule freezes often!
« Reply #2 on: August 27, 2004, 01:18:27 PM »

Try turning down source dropping (which, imho, is useless at it's current state)
Logged

Discoboy

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 8
Re: aMule freezes often!
« Reply #3 on: August 27, 2004, 02:57:58 PM »

Ehm...I can't compile it...
At make time, it quits returning a whole bunch of errors like these:

/usr/include/wx/font.h:82: error: syntax error before `{' token
/usr/include/wx/font.h:104: error: non-member function `bool Ok()' cannot have `const' method qualifier
/usr/include/wx/font.h: In function `bool Ok()':
/usr/include/wx/font.h:104: error: `m_refData' undeclared (first use this function)
/usr/include/wx/font.h:104: error: (Each undeclared identifier is reported only once for each function it appears in.)
/usr/include/wx/font.h: At global scope:
/usr/include/wx/font.h:107: error: non-member function `bool operator==(const wxFont&)' cannot have `const' method qualifier
/usr/include/wx/font.h:107: error: `bool operator==(const wxFont&)' must take exactly two arguments
/usr/include/wx/font.h:108: error: non-member function `bool operator!=(const wxFont&)' cannot have `const' method qualifier
/usr/include/wx/font.h:108: error: `bool operator!=(const wxFont&)' must take exactly two arguments
/usr/include/wx/font.h:111: error: virtual outside class declaration
/usr/include/wx/font.h:111: error: non-member function `int GetPointSize()' cannot have `const' method qualifier
/usr/include/wx/font.h:111: error: function `int GetPointSize()' is initialized like a variable
/usr/include/wx/font.h:112: error: virtual outside class declaration


And there are many more...
Logged

Discoboy

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 8
Re: aMule freezes often!
« Reply #4 on: August 28, 2004, 02:26:29 AM »

Ok... I was having problems with my wxGTK installation, but now this bleeding-edge version is fired up and running.
I will report here any problem.

Thanks a lot
Logged

Discoboy

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 8
Re: aMule freezes often!
« Reply #5 on: August 29, 2004, 02:16:47 AM »

aMule CVS crashed after 24 hrs approx.
Will try disable source dropping.
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: aMule freezes often!
« Reply #6 on: August 29, 2004, 01:35:41 PM »

Discoboy,

If possible, please generate a backtrace of the crash and post it here:
http://www.amule.org/amule/board.php?boardid=33&sid=

But before you do it, read these instructions:
http://www.amule.org/wiki/index.php/Backtraces
http://www.amule.org/wiki/index.php/Using_gdb_and_valgrind

Thanks for your support!
Logged

Discoboy

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 8
Re: aMule freezes often!
« Reply #7 on: August 31, 2004, 07:32:20 PM »

I don't know if I can send you a backtrace, because when aMule crashes it doesn't quit, it simply "freezes". I mean, the debugger shows no sign of errors and doesn't give me any chance to type in a "bt". However, the gui window stops refreshing and no text label appears - no downloads, no search result, no server list...nothing but the button bar. And I can't issue any command.

I've attached a picture of what remains of the gui window during a freeze (italian version).
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: aMule freezes often!
« Reply #8 on: August 31, 2004, 10:46:48 PM »

Maybe you can try to attach gdb to the running program and then generate the bt. Run:

$ gdb /path/to/amule/executable/amule 12345

where 12345 is the PID of amule. You can get the pid like this:

$ ps -C amule

Cheers!
Logged

Andarilho-BR

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 4
Same problem, but now TCP/IP freezes
« Reply #9 on: September 20, 2004, 04:13:38 PM »

I am having the same problem.
I let aMule run and in the next day in the morning I find it freezed and the window disappeared.

I use a Debian-derived portuguese Linux distribution (Kurumin).

Now I changed the way I use it to SSH + VNC, starting vncserver in the command prompt and without graphical interface on Linux. After that, in the next morning the TCP/IP freezed! The machine was working but no ping to / from it. I solve it rebooting the Linux machine.

To Phoenix (he is from Brazil too): maybe the problem is in the Linux distribution??
Logged

Andarilho-BR

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 4
Crashed with stderr backtrace
« Reply #10 on: September 20, 2004, 05:53:23 PM »

Crashed now, and the following backtrace was output to stdout/stderr.
If this not helps I could try to compile with debugging info.

I will try to change the aMule language to English and see if it helps.

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

(...)
Adding file /home/kurumin/.aMule/Temp/101.part.met to shares
Adding file /home/kurumin/.aMule/Temp/099.part.met to shares
Adding file /home/kur
OOPS! - Seems like aMule crashed
--== BACKTRACE FOLLOWS: ==--

  • amule(_ZN9CamuleApp16OnFatalExceptionEv+0x42) [0x8206a22]
  • [1] /usr/lib/libwx_gtk-2.4.so.0(wxFatalSignalHandler+0x2d)
[0x403cdeed]
[2] /lib/libpthread.so.0 [0x40edc825]
[3] /lib/libc.so.6 [0x40f4b658]
[4] /lib/libc.so.6(malloc+0x93) [0x40f92ed3]
[5] /usr/lib/libstdc++.so.5(_Znwj+0x2e) [0x40e7d2ee]
[6] /usr/lib/libwx_gtk-2.4.so.0(_ZN12wxObjectList10CreateNodeEP10wxNodeBaseS1_PvRK9wxListKey+0x23) [0x403435e3]
[7] /usr/lib/libwx_gtk-2.4.so.0(_ZN10wxListBase6AppendEPv+0x47) [0x40341a37]
[8] /usr/lib/libwx_gtk-2.4.so.0(_ZN12wxSocketBase7DestroyEv+0x6c) [0x4036e4bc]
[9] amule(_ZN9CamuleApp16OnFatalExceptionEv+0xec) [0x8206acc]
[10] /usr/lib/libwx_gtk-2.4.so.0(wxFatalSignalHandler+0x2d) [0x403cdeed]
[11] /lib/libpthread.so.0 [0x40edc825]
[12] /lib/libc.so.6 [0x40f4b658]
[13] /lib/libc.so.6(__libc_free+0x9d) [0x40f9309d]
[14] /usr/lib/libstdc++.so.5(_ZdlPv+0x23) [0x40e7bd13]
[15] /usr/lib/libstdc++.so.5(_ZdaPv+0x1f) [0x40e7bd6f]
[16] /usr/lib/libcrypto++5.2.so.0(_ZNK8CryptoPP13AbstractGroupINS_7IntegerEE20SimultaneousMultiplyEPS1_RKS1_PS4_j+0x6a8) [0x40ad7c38]
[17] /usr/lib/libcrypto++5.2.so.0(_ZNK8CryptoPP12AbstractRingINS_7IntegerEE24SimultaneousExponentiateEPS1_RKS1_PS4_j+0x43) [0x40ad86d3]
[18] /usr/lib/libcrypto++5.2.so.0(_ZNK8CryptoPP17ModularArithmetic24SimultaneousExponentiateEPNS_7IntegerERKS1_PS3_j+0x187) [0x40c0e257]
[19] /usr/lib/libcrypto++5.2.so.0(_ZNK8CryptoPP12AbstractRingINS_7IntegerEE12ExponentiateERKS1_S4_+0x4b) [0x40ad85cb]
[20] /usr/lib/libcrypto++5.2.so.0(_ZN8CryptoPP13a_exp_b_mod_cERKNS_7IntegerES2_S2_+0x84) [0x40c09864]
[21] /usr/lib/libcrypto++5.2.so.0(_ZNK8CryptoPP11RSAFunction13ApplyFunctionERKNS_7IntegerE+0x5d) [0x40c8de0d]
[22] /usr/lib/libcrypto++5.2.so.0(_ZNK8CryptoPP15TF_VerifierBase14InputSignatureERNS_21PK_MessageAccumulatorEPKhj+0x10e) [0x40c51f8e]
[23] /usr/lib/libcrypto++5.2.so.0(_ZNK8CryptoPP11PK_Verifier13VerifyMessageEPKhjS2_j+0x3f) [0x40ab316f]
[24] amule(_ZN18CClientCreditsList11VerifyIdentEP14CClientCreditsPKhhjh+0x3d7) [0x80cd2d7]
[25] amule(_ZN13CUpDownClient22ProcessSignaturePacketEPKhj+0x1a5) [0x80ba665]
[26] amule(_ZN16CClientReqSocket16ProcessExtPacketEPKcjh+0xd2a) [0x80a9d1a]
[27] amule(_ZN16CClientReqSocket14PacketReceivedEP6Packet+0x10b) [0x80ab8bb]
[28] amule(_ZN9CEMSocket9OnReceiveEi+0x154) [0x80ae204]
[29] amule(_ZN23CClientReqSocketHandler22ClientReqSocketHandlerER13wxSocketEvent+0x9e) [0x80aba7e]
[30] /usr/lib/libwx_gtk-2.4.so.0(_ZN12wxEvtHandler16SearchEventTableER12wxEventTableR7wxEvent+0xb7) [0x402e29c7]
[31] /usr/lib/libwx_gtk-2.4.so.0(_ZN12wxEvtHandler12ProcessEventER7wxEvent+0x93) [0x402e27e3]
[32] /usr/lib/libwx_gtk-2.4.so.0(_ZN12wxEvtHandler20ProcessPendingEventsEv+0x56) [0x402e2716]
[33] /usr/lib/libwx_gtk-2.4.so.0(_ZN9wxAppBase20ProcessPendingEventsEv+0x61) [0x402a2721]
[34] /usr/lib/libwx_gtk-2.4.so.0 [0x40240454]
[35] /usr/lib/libglib-1.2.so.0 [0x40651fa0]
[36] /usr/lib/libglib-1.2.so.0 [0x4065103d]
[37] /usr/lib/libglib-1.2.so.0 [0x406514f4]
[38] /usr/lib/libglib-1.2.so.0(g_main_run+0x34) [0x40651724]
[39] /usr/lib/libgtk-1.2.so.0(gtk_main+0xb7) [0x40577c3f]
[40] /usr/lib/libwx_gtk-2.4.so.0(_ZN5wxApp8MainLoopEv+0x19) [0x40240f69]
[41] /usr/lib/libwx_gtk-2.4.so.0(_ZN9wxAppBase5OnRunEv+0x17) [0x402a25a7]
[42] /usr/lib/libwx_gtk-2.4.so.0(_Z7wxEntryiPPc+0x25b) [0x402416cb]
[43] amule(main+0x1b) [0x820103b]
[44] /lib/libc.so.6(__libc_start_main+0xc6) [0x40f37dc6]
[45] amule(_ZNK20wxTopLevelWindowBase10GetMaxSizeEv+0x65) [0x80a19b1]
umin/.aMule/Temp/098.part.met to shares
Adding file /home/kurumin/.aMule/Temp/091.part.met to shares
Adding file /home/kurumin/.aMule/Temp/089.part.met to shares
Adding file /home/kurumin/.aMule/Temp/056.part.met to shares
Adding file /home/kurumin/.aMule/Temp/046.part.met to shares
Adding file /home/kurumin/.aMule/Temp/044.part.met to shares
Adding file /home/kurumin/.aMule/Temp/042.part.met to shares
Adding file /home/kurumin/.aMule/Temp/040.part.met to shares
Adding file /home/kurumin/.aMule/Temp/032.part.met to shares
Adding file /home/kurumin/.aMule/Temp/021.part.met to shares
Adding file /home/kurumin/.aMule/Temp/014.part.met to shares
Adding file /home/kurumin/.aMule/Temp/013.part.met to shares
Adding file /home/kurumin/.aMule/Temp/011.part.met to shares
Hashing thread timed out with no aditions - removing thread
Hashing thread ended
HashNotDone
Sharing /home/kurumin/.aMule/Temp/206.part
Finished Hashing 206.part
HashDone
BD376478060402FD2F981FA50DEA60F5: Suspending uploads of file.
BD376478060402FD2F981FA50DEA60F5: Resuming uploads of file.
Hashing thread timed out with no aditions - removing thread
Hashing thread ended
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: aMule freezes often!
« Reply #11 on: September 20, 2004, 06:19:32 PM »

Doesn't help much, sorry :/ use gdb next time.
Logged

Jacobo221

  • Hero Member
  • *****
  • Karma: 3
  • Offline Offline
  • Posts: 2712
Re: aMule freezes often!
« Reply #12 on: September 20, 2004, 10:17:58 PM »

Read http://www.amule.org/wiki/index.php/Backtraces to learn how to get a gdb backtrace :-)
Greetings!
Logged