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: Out of memory crashes after Ubuntu Kernel update  (Read 17662 times)

Olhado

  • Approved Newbie
  • *
  • Karma: 4
  • Offline Offline
  • Posts: 26
Re: Out of memory crashes after Ubuntu Kernel update
« Reply #15 on: February 05, 2011, 01:23:17 PM »

I'll try it as soon as I can.

In the meantime, here's another log - this time I let aMule crash completely:
Code: [Select]
2011-02-05 13:06:42: UBT: t 1 CQ 0 CQF 0 TCQ 1 TCQF 0 SO 8 EMS 71
 2011-02-05 13:06:46: UBT: t 1 CQ 2 CQF 2 TCQ 0 TCQF 0 SO 8 EMS 74
 2011-02-05 13:06:51: UBT: t 1 CQ 0 CQF 0 TCQ 2 TCQF 0 SO 8 EMS 71
 2011-02-05 13:06:56: UBT: t 0 CQ 0 CQF 0 TCQ 2 TCQF 0 SO 8 EMS 70
 2011-02-05 13:07:01: UBT: t 0 CQ 0 CQF 0 TCQ 2 TCQF 0 SO 8 EMS 70
 2011-02-05 13:07:06: UBT: t 0 CQ 0 CQF 0 TCQ 1 TCQF 0 SO 8 EMS 67
 2011-02-05 13:07:11: UBT: t 0 CQ 0 CQF 0 TCQ 1 TCQF 0 SO 8 EMS 63
 2011-02-05 13:07:17: UBT: t 0 CQ 0 CQF 0 TCQ 1 TCQF 0 SO 8 EMS 65
 2011-02-05 13:07:22: UBT: t 0 CQ 1 CQF 0 TCQ 0 TCQF 0 SO 8 EMS 66
 2011-02-05 13:07:27: UBT: t 1 CQ 0 CQF 0 TCQ 0 TCQF 0 SO 8 EMS 61
 2011-02-05 13:07:31: UBT: t 0 CQ 0 CQF 0 TCQ 0 TCQF 0 SO 8 EMS 53
 2011-02-05 13:07:36: UBT: t 0 CQ 1 CQF 0 TCQ 0 TCQF 0 SO 8 EMS 51
 2011-02-05 13:07:42: UBT: t 0 CQ 0 CQF 0 TCQ 0 TCQF 33 SO 8 EMS 50
 2011-02-05 13:07:47: UBT: t 2 CQ 0 CQF 0 TCQ 0 TCQF 126 SO 9 EMS 49
 2011-02-05 13:07:52: UBT: t 2 CQ 0 CQF 0 TCQ 0 TCQF 218 SO 9 EMS 50
 2011-02-05 13:07:57: UBT: t 7 CQ 0 CQF 0 TCQ 0 TCQF 300 SO 9 EMS 52
 2011-02-05 13:08:03: UBT: t 8 CQ 0 CQF 0 TCQ 1 TCQF 394 SO 9 EMS 54
 2011-02-05 13:08:08: UBT: t 7 CQ 0 CQF 0 TCQ 0 TCQF 492 SO 9 EMS 53
 2011-02-05 13:08:13: UBT: t 15 CQ 0 CQF 0 TCQ 0 TCQF 580 SO 9 EMS 57
 2011-02-05 13:08:18: UBT: t 15 CQ 0 CQF 0 TCQ 0 TCQF 674 SO 9 EMS 60
 2011-02-05 13:08:24: UBT: t 21 CQ 0 CQF 0 TCQ 0 TCQF 774 SO 9 EMS 66
 2011-02-05 13:08:29: UBT: t 22 CQ 0 CQF 0 TCQ 0 TCQF 887 SO 9 EMS 70
 2011-02-05 13:08:35: UBT: t 27 CQ 0 CQF 0 TCQ 1 TCQF 992 SO 8 EMS 75
 2011-02-05 13:08:40: UBT: t 32 CQ 0 CQF 0 TCQ 0 TCQF 1101 SO 8 EMS 80
 2011-02-05 13:08:45: UBT: t 31 CQ 0 CQF 0 TCQ 1 TCQF 1216 SO 8 EMS 84
 2011-02-05 13:08:50: UBT: t 41 CQ 0 CQF 0 TCQ 0 TCQF 1310 SO 8 EMS 86
 2011-02-05 13:08:56: UBT: t 38 CQ 2 CQF 0 TCQ 3 TCQF 1425 SO 8 EMS 94
 2011-02-05 13:09:01: UBT: t 30 CQ 0 CQF 0 TCQ 5 TCQF 1524 SO 8 EMS 96
Logged

btkaos

  • Global Moderator
  • Sr. Member
  • *****
  • Karma: 110
  • Offline Offline
  • Posts: 486
  • Kaos is infinite!
Re: Out of memory crashes after Ubuntu Kernel update
« Reply #16 on: February 14, 2011, 01:29:08 PM »

Kry lastest patch solves the issue and after a closer look it completely makes sense, maybe you'd like to edit the sticky topic STU?
Logged

vitke

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 1
Re: Out of memory crashes after Ubuntu Kernel update
« Reply #17 on: March 05, 2011, 10:04:01 PM »

After passing the Cerberus at the registration in the 8th attempt, please allow me to offer my extreme solution: I use aMule for some years already, and this bug or a bug like this was around for something like years too. I really can't live without aMule, but when it crashes every two hours it's of little use. So I tried to see what was the problem with valgrind, but it reported something of an order of a million errors, so I really couldn't find my way there. Finally I wrote a simple script that enabled me to use aMule again:

Code: [Select]
#!/bin/bash

MAXPERC=20

while true ;
do
   PERC=$(ps -C amule -o %mem=)
   echo amule is using $PERC% of the physical memory. We kill it at $MAXPERC%.
   #if [[ $PERC > 20 ]]
   if [[ $(echo "r=0;if($PERC>$MAXPERC)r=1;r" | bc) == 1 ]]
   then
      killall -KILL amule
      sleep 10
      echo amule --display :0 | at now
   fi ;
   sleep 5
done

So I check if aMule takes more than 20% of the total physical memory once in five seconds, and if it does, I kill it, wait 10 seconds, and then start it again.

I know, it's terrible... But I can start many downloads, use the bandwidth fully, go to sleep, and the next day aMule is still downloading.
Logged

Stu Redman

  • Administrator
  • Hero Member
  • *****
  • Karma: 214
  • Offline Offline
  • Posts: 3764
  • Engines screaming
Re: Out of memory crashes after Ubuntu Kernel update
« Reply #18 on: March 05, 2011, 10:19:37 PM »

Look at the first post for a patch that fixes the problem.
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

Dominique

  • Approved Newbie
  • *
  • Karma: 4
  • Offline Offline
  • Posts: 23
  • Ask me!
Re: Out of memory crashes after Ubuntu Kernel update
« Reply #19 on: March 06, 2011, 09:40:07 PM »

As explained here: http://forum.amule.org/index.php?topic=18687
I get the same problem on my gentoo ~amd64 system. I applied the patch in the first post using portage on wxGTK-2.8.11.0.

Amule is working fine now.
Logged

ernest0

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 1
Re: Out of memory crashes after Ubuntu Kernel update
« Reply #20 on: March 15, 2011, 05:26:19 PM »

It's happend in Kubuntu 10.10 64 bits
I ams my own compiled amule

----------------------------=| BACKTRACE FOLLOWS: |=----------------------------
Current version is: aMule 2.2.6 using wxGTK2 v2.8.11
Running on: Linux 2.6.35-27-generic x86_64

[2] CamuleApp::OnFatalException() in amule.cpp:1289
[3] wxFatalSignalHandler in /usr/lib/libwx_baseu-2.8.so.0[0x7fa38cedd72c]
[4] ?? in /lib/libpthread.so.0[0x7fa38e82ab40]
[5] pthread_mutex_lock in /lib/libpthread.so.0[0x7fa38e824634]
[6] ?? in /lib/libglib-2.0.so.0[0x7fa389a6904f]
[7] g_source_remove in /lib/libglib-2.0.so.0[0x7fa389a6b90e]
[8] GSocketGUIFunctionsTableConcrete::Uninstall_Callback(GSocket*, GSocketEvent) in /usr/lib/libwx_gtk2u_core-2.8.so.0[0x7fa38d546c56]
[9] GSocket::Detected_Write() in /usr/lib/libwx_baseu_net-2.8.so.0[0x7fa38d16a5a7]
[10] ?? in /usr/lib/libgdk-x11-2.0.so.0[0x7fa38b82799f]
[11] g_main_context_dispatch in /lib/libglib-2.0.so.0[0x7fa389a69342]
[12] ?? in /lib/libglib-2.0.so.0[0x7fa389a6d2a8]
[13] g_main_loop_run in /lib/libglib-2.0.so.0[0x7fa389a6d7b5]
[14] gtk_main in /usr/lib/libgtk-x11-2.0.so.0[0x7fa38bbe63e7]
[15] wxEventLoop::Run() in /usr/lib/libwx_gtk2u_core-2.8.so.0[0x7fa38d545578]
[16] wxAppBase::MainLoop() in /usr/lib/libwx_gtk2u_core-2.8.so.0[0x7fa38d5cab1b]
[17] wxEntry(int&, wchar_t**) in /usr/lib/libwx_baseu-2.8.so.0[0x7fa38ce7f695]
[18] main in amule-gui.cpp:95
[19] __libc_start_main in /lib/libc.so.6[0x7fa38c2f2d8e]
[20] _start in :0

Logged

Stu Redman

  • Administrator
  • Hero Member
  • *****
  • Karma: 214
  • Offline Offline
  • Posts: 3764
  • Engines screaming
Re: Out of memory crashes after Ubuntu Kernel update
« Reply #21 on: March 15, 2011, 09:19:23 PM »

Please try the patch mentioned in the first post.
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

ezk

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 20
Re: Out of memory crashes after Ubuntu Kernel update
« Reply #22 on: September 28, 2011, 09:36:21 AM »

Hi, I'am having crashes (bad alloc) too.
I run aMule 2.2.6 using wxGTK2 v2.8.10 OS ubuntu 10.04, I've added this repo: http://apt.wxwidgets.org/lucid-wx in order to have the latest wxwidgets 2.8.12.1-0, what do I have to do now? Install new wxwidgets, uninstall amule, and...
thanks
Logged

Stu Redman

  • Administrator
  • Hero Member
  • *****
  • Karma: 214
  • Offline Offline
  • Posts: 3764
  • Engines screaming
Re: Out of memory crashes after Ubuntu Kernel update
« Reply #23 on: September 28, 2011, 10:23:58 PM »

No idea about that repo. In theory replacing the wx libs should be enough. But Ubuntu still has no 2.8.12, not even in 11.10 last time I checked.
 
I would compile wx and aMule myself as described in the wiki. And you can also try the 2.3.1.rc2 while you're at it.  :)
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
Pages: 1 [2]