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: Technically not a crash but it hangs  (Read 9758 times)

tvferret

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 9
Technically not a crash but it hangs
« on: May 12, 2005, 11:34:04 AM »

Hi,

Since I am running FC2 I am unable to install rpms for it. I downloaded source for amule 2.0.0 and compiled it myself. I've also installed generic version of wxGTK 2.6 rpms (downloaded from this site). First impresion was good. I've let amule run for whole night and in the morning I can see that it is hanging, i.e. the process seems to be stack in some kind of loop, totally unresponsive, no download, cpu usage at 75%-100%, etc. Main window is still there but completely blank, nothing in the log. Oops, I think, surerly this must be a problem with wxGTK. No time to experiment so I run amuled. Cool, no crashes, no hangs but UI sucks (sorry guys). So I started playing againg with amule. Downloaded wxGTK sources, compiled, installed, ran amule and .... still hangs. I have no idea what this could be. It runs perfectly for few hours and then bang. Next step is to compile debug ver and when it hangs attach to it and see where is stuck. But it takes time and my vocational duties prevent me from spending to much time on this.

Any idea what this might be? I'd really appreciate some help.

Cheers,
Mikey
« Last Edit: May 12, 2005, 01:09:47 PM by tvferret »
Logged

stefanero

  • Some Support
  • Developer
  • Hero Member
  • *****
  • Karma: 8
  • Offline Offline
  • Posts: 4235
Re: Technically not a crash but it hangs
« Reply #1 on: May 12, 2005, 12:42:10 PM »

well to be honest I have no clue where the problem is...
without any gdb output or even maybe console msg what happend last its really hard to tell where to problem is

do you use 2.0 source or some version of cvs-tarballs?

stefanero
Logged
In its default setup, Windows XP on the Internet amounts to a car
parked in a bad part of town, with the doors unlocked, the key in
the ignition and a Post-It note on the dashboard saying, "Please
don't steal this."

tvferret

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 9
Re: Technically not a crash but it hangs
« Reply #2 on: May 12, 2005, 12:57:38 PM »

I use standart 2.0.0 source. There is nothing on the console or in the logs (I mean nothing that could be useful). I am going to compile debug version tonite.
Logged

stefanero

  • Some Support
  • Developer
  • Hero Member
  • *****
  • Karma: 8
  • Offline Offline
  • Posts: 4235
Re: Technically not a crash but it hangs
« Reply #3 on: May 12, 2005, 12:58:30 PM »

thnx
Logged
In its default setup, Windows XP on the Internet amounts to a car
parked in a bad part of town, with the doors unlocked, the key in
the ignition and a Post-It note on the dashboard saying, "Please
don't steal this."

tvferret

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 9
Re: Technically not a crash but it hangs
« Reply #4 on: May 12, 2005, 01:03:27 PM »

One more thing, to compile amule I used standard config:

./configure --prefix=/usr --enable-optimize --disable-debug --enable-wxcas --enable-cas --enable-alc --enable-alcc --enable-amule-daemon --enable-amulecmd --enable-amulecmdgui --enable-webserver --enable-webservergui --enable-amule-gui
Logged

tvferret

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 9
Re: Technically not a crash but it hangs
« Reply #5 on: May 12, 2005, 01:07:56 PM »

One more question, what does --enable-maintainer-mode do exactly?
Logged

stefanero

  • Some Support
  • Developer
  • Hero Member
  • *****
  • Karma: 8
  • Offline Offline
  • Posts: 4235
Re: Technically not a crash but it hangs
« Reply #6 on: May 12, 2005, 01:17:22 PM »

your configure is fine, alltho I doubt you will use some of those apps you compile but anyways....

about the  --enable-maintainer-mode
 /me looks for Xaignar or Kry  :]
Logged
In its default setup, Windows XP on the Internet amounts to a car
parked in a bad part of town, with the doors unlocked, the key in
the ignition and a Post-It note on the dashboard saying, "Please
don't steal this."

tvferret

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 9
Re: Technically not a crash but it hangs
« Reply #7 on: May 12, 2005, 01:43:35 PM »

Quote
Originally posted by stefanero
... I doubt you will use some of those apps you compile but anyways....

You're right, it's just copy and paste from wiki's :D
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: Technically not a crash but it hangs
« Reply #8 on: May 12, 2005, 02:02:30 PM »

Quote
Originally posted by tvferret
One more question, what does --enable-maintainer-mode do exactly?

Please read this:
http://www.gnu.org/software/automake/manual/html_node/maintainer-mode.html

Now that you mention, I think that this option sucks. Kry, what about removing AM_MAINTAINER_MODE from configure.in? It is in the file since aMule initial CVS import.

Quote
From the automake docs
Jim Meyering, the inventor of the AM_MAINTAINER_MODE macro was swayed by François's arguments, and got rid of AM_MAINTAINER_MODE in all of his packages.

Cheers!
Logged

tvferret

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 9
Re: Technically not a crash but it hangs
« Reply #9 on: May 12, 2005, 02:19:12 PM »

Thanks Phoenix, I am not a Linux guru, most of my professional work is around Solaris and embedded systems running VxWorks for example, so GNU autoconfig is a bit of a mystery for me :D But I'll manage somehow ... I'll try to debug this problem either today or over the weekend and will post results. In the meantime, maybe somebody will have an idea? I strongly suspect wxGTK but will see.

Cheers,
Mikey

PS. Before I upgraded to amule 2.0.0 I was running 2.0.0 RC8, with wxGTK 2.4.2, no problems there, only occasional crash of amule (apparently known problem fixed before 2.0.0 release, as I've read somewhere on this forum).
« Last Edit: May 12, 2005, 02:22:53 PM by tvferret »
Logged

deltaHF

  • Evil Admin
  • Former Developer
  • Hero Member
  • *****
  • Karma: 6
  • Offline Offline
  • Posts: 3920
  • .. Legends may sleep, but they never die ..
    • http://www.amule.org
Re: Technically not a crash but it hangs
« Reply #10 on: May 12, 2005, 04:37:12 PM »

if you have verbose enabled in your prefs, disable it.. it's the most posted "amule kills my CPU" reasons

tvferret

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 9
Re: Technically not a crash but it hangs
« Reply #11 on: May 12, 2005, 05:09:10 PM »

Very quickly, here is a backtrace after attaching with gdb. No bt full because there are no symbols. Have no time to analyze it yet. Gotta go.

Code: [Select]
(gdb) bt
#0  0x009bd7a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2
#1  0x00c162ee in fcntl () from /lib/tls/libpthread.so.0
#2  0x00da4d73 in g_vasprintf () from /usr/lib/libglib-2.0.so.0
#3  0x00da5295 in g_io_channel_unix_new () from /usr/lib/libglib-2.0.so.0
#4  0x0036209f in gdk_input_add_full () from /usr/lib/libgdk-x11-2.0.so.0
#5  0x0036212a in gdk_input_add () from /usr/lib/libgdk-x11-2.0.so.0
#6  0x059c4aac in GSocketGUIFunctionsTableConcrete::Install_Callback () from /usr/lib/libwx_gtk2_core-2.6.so.0
#7  0x002be463 in GSocket::Enable () from /usr/lib/libwx_base_net-2.6.so.0
#8  0x002bdd8c in GSocket::Read () from /usr/lib/libwx_base_net-2.6.so.0
#9  0x002b9bc3 in wxSocketBase::_Read () from /usr/lib/libwx_base_net-2.6.so.0
#10 0x002b9ab5 in wxSocketBase::Read () from /usr/lib/libwx_base_net-2.6.so.0
#11 0x002bb01d in wxDatagramSocket::RecvFrom () from /usr/lib/libwx_base_net-2.6.so.0
#12 0x081c9d57 in CDatagramSocketProxy::RecvFrom ()
#13 0x080a98b3 in CClientUDPSocket::DoReceive ()
#14 0x080a975f in CClientUDPSocket::OnReceive ()
#15 0x0807688f in CamuleGuiApp::ClientUDPSocketHandler ()
#16 0x00424a04 in wxAppConsole::HandleEvent () from /usr/lib/libwx_base-2.6.so.0
#17 0x004bc164 in wxEvtHandler::ProcessEventIfMatches () from /usr/lib/libwx_base-2.6.so.0
#18 0x004bb66d in wxEventHashTable::HandleEvent () from /usr/lib/libwx_base-2.6.so.0
#19 0x004bc2dc in wxEvtHandler::ProcessEvent () from /usr/lib/libwx_base-2.6.so.0
#20 0x004bc0b7 in wxEvtHandler::ProcessPendingEvents () from /usr/lib/libwx_base-2.6.so.0
#21 0x00424985 in wxAppConsole::ProcessPendingEvents () from /usr/lib/libwx_base-2.6.so.0
#22 0x059ab343 in wxapp_pending_callback () from /usr/lib/libwx_gtk2_core-2.6.so.0
#23 0x00d82683 in g_child_watch_add () from /usr/lib/libglib-2.0.so.0
#24 0x00d7f252 in g_main_depth () from /usr/lib/libglib-2.0.so.0
#25 0x00d80348 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#26 0x00d80680 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#27 0x00d80cc3 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
#28 0x04bf9923 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
#29 0x059c2a51 in wxEventLoop::Run () from /usr/lib/libwx_gtk2_core-2.6.so.0
#30 0x05a47eb9 in wxAppBase::MainLoop () from /usr/lib/libwx_gtk2_core-2.6.so.0
#31 0x05a47fdf in wxAppBase::OnRun () from /usr/lib/libwx_gtk2_core-2.6.so.0
#32 0x004618cf in wxEntry () from /usr/lib/libwx_base-2.6.so.0
#33 0x08075f10 in main ()
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: Technically not a crash but it hangs
« Reply #12 on: May 12, 2005, 08:31:30 PM »

tvferret,

I just answered the part regarding --enable-maintainer-mode :)

Btw, is this a backtrace of when the program is locked? I see nothing wrong there. The only wrong thing is that I see no debug information. Are you sure you used --enable-debug? Maybe you are running another executable of aMule that is first in the path?

Cheers!
Logged

tvferret

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 9
Re: Technically not a crash but it hangs
« Reply #13 on: May 12, 2005, 10:32:47 PM »

pheonix,

The backtrace is from the program when it's locked. I attached with gdb, it seems to be stuck in _dl_sysinfo_int80(). Have no idea why though. And I haven't had a chance to compile debug version yet (need to recompile wxGTK as well). Most likely will do it over weekend.

Mikey
Logged

egerber

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 2
RE: Technically not a crash but it hangs
« Reply #14 on: May 17, 2005, 01:42:12 AM »

Hello people

Any news yet about what could be the reason?
I am using Debian Sarge, and i installed amule from an apt-repository i found at apt-get.org, using these sources.list lines:

deb http://www.vollstreckernet.de/debian testing amule
deb http://www.vollstreckernet.de/debian testing wx
deb-src http://www.vollstreckernet.de/debian testing amule

I installed the packages
amule-common_2.0.0-re1+CVS20050511-1_i386.deb
amule_2.0.0-rel+CVS20050511-1_i386.deb
amuleweb_2.0.0-rel+CVS20050511-1_i386.deb

it installed some wx-packages cause of dependencies, dpkg -l *wx* | grep ii shows me the following wx-packages installed:

libwxbase2.4 - Version 2.4.2.6.1
libwxgtk2.4 - Version 2.4.2.6.1
libwxgtk2.5.3 - Version 2.5.3.2-2

I have the same problem as described here, first time i started amule it run fine for about 5 to 7 hours. Then when I came back it was "hanging", cpu-usage was at 100%, amule was consuming most of it.
I killed amule then and restarted it, after about 1 hour it hang again.
In the console I didn't see any messages about a problem, the last lines on the console were things like

Empty dir /somedir
Empty dir /someotherdir

Just thought i'll report it here, so you know you are not the only one with that problem.
If I got some time tomorrow i'll compile wx and the source myself.. but I hoped being able to avoid that.

greetings
Elias

Edit:
I forgot to tell that simply adding the lines

deb http://www.vollstreckernet.de/debian testing amule
deb http://www.vollstreckernet.de/debian testing wx

and doing an
apt-get update
apt-get install amule
(as described at http://www.amule.org/wiki/index.php/HowTo_Compile_In_Debian under Section 'Are you sure you want to compile?')
 did not work on my system, I run into an

Package amule is not available, but is reffered to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source.
E: Package amule has no installation candidate

so i just downloaded the packages mentioned above and installed them with dpkg.
« Last Edit: May 17, 2005, 02:14:51 AM by egerber »
Logged
Pages: [1] 2