aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: [SID] amuleweb segfault on transfer view  (Read 4276 times)

artemis

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 1
  • Captured in the Net
[SID] amuleweb segfault on transfer view
« on: March 08, 2005, 09:51:39 PM »

Hi everybody
I've a segfault problem with amuleweb running on Debian Sid
aMule's web interface works fine, until I display tranfers page. Very often (actually not always) amuleweb exits reporting segmentation fault as I request the transfers page.
I don't know if it's a problem of Debian's build, I hope this may be easily fixed :D
Debian version is 1.2.6+rc8-2 (unstable) but it seems to be an internal name for 2.0.0rc8
aMule and eMule (Win XP) share their Incoming and Temp folders on my system on a FAT32 partition, so i thought it could be a vfat issue ?(

this is a verbose output from
$ amuleweb -v -pw dummypass -p 6370

Code: [Select]
Creating client...
Now, doing connection....
Using host 'localhost' port:6370
Trying to connect (timeout = 10 sec)...
Succeeded! Connection established to aMule 2.0.0rc8

---------------------------------
|       aMule Web Server        |
---------------------------------


Use 'Help' for command list

Web Server: Started
aMuleweb$
WSThread: Thread started
WSThread: created service
WSThread: created socket listening on :6371
*** parsing url / :: field ses
*** parsing url / :: field w
*** parsing url / :: field ses
**** imgrequest: /logo.jpg
*** parsing url /favicon.ico :: field ses
*** parsing url /favicon.ico :: field w
*** parsing url /favicon.ico :: field ses
*** parsing url ?p=dummypass&w=password :: field ses
*** parsing url ?p=dummypass&w=password :: field w
*** parsing url ?p=dummypass&w=password :: field p
*** logged in as admin
*** parsing url ?p=dummypass&w=password :: field w
*** replaced session with -872434177
***** logged in, getting page password
***** session is 0
**** imgrequest: /emule.gif
**** imgrequest: /cp_search.gif
**** imgrequest: /cp_servers.gif
**** imgrequest: /cp_stats.gif
**** imgrequest: /log.gif
**** imgrequest: /cp_shared.gif
**** imgrequest: /cp_download.gif
**** imgrequest: /cp_settings.gif
*** parsing url /favicon.ico :: field ses
*** parsing url /favicon.ico :: field w
*** parsing url /favicon.ico :: field ses
*** parsing url /?ses=-872434177&w=transfer :: field ses
*** parsing url /?ses=-872434177&w=transfer :: field w
*** parsing url /?ses=-872434177&w=transfer :: field w
*** parsing url /?ses=-872434177&w=transfer :: field cat
*** replaced session with -872434177
***** logged in, getting page transfer
***** session is -872434177
*** parsing url /?ses=-872434177&w=transfer :: field ses
*** parsing url /?ses=-872434177&w=transfer :: field cat
*** parsing url /?ses=-872434177&w=transfer :: field op
*** parsing url /?ses=-872434177&w=transfer :: field file
*** parsing url /?ses=-872434177&w=transfer :: field sort
*** parsing url /?ses=-872434177&w=transfer :: field sortreverse
*** parsing url /?ses=-872434177&w=transfer :: field c
*** parsing url /?ses=-872434177&w=transfer :: field showuploadqueue
**** imgrequest: /emule.gif
**** imgrequest: /cp_search.gif
**** imgrequest: /cp_stats.gif
**** imgrequest: /log.gif
**** imgrequest: /greenpercent.gif
**** imgrequest: /cp_servers.gif
**** imgrequest: /l_info.gif
**** imgrequest: /l_pause.gif
**** imgrequest: /l_up.gif
**** imgrequest: /dyn_8A226ACD4CE71BBE5206962CD2510883.png
**** imgrequest: /dyn_F4A6

TIA for any hints
Logged
dreams don't last forever
as a counterpart, neither do nightmares

GonoszTopi

  • The current man in charge of most things.
  • Administrator
  • Hero Member
  • *****
  • Karma: 169
  • Offline Offline
  • Posts: 2685
Re: [SID] amuleweb segfault on transfer view
« Reply #1 on: March 09, 2005, 01:27:45 AM »

You could try current CVS version to see if problem persists. Hopefully not.
Logged
concordia cum veritate

demofreak

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 7
Re: [SID] amuleweb segfault on transfer view
« Reply #2 on: March 16, 2005, 12:37:33 PM »

Unfortunately it persists after all... ;)

amule-CVS-20050316 and amule-CVS-20050315
SuSE 9.1
wxGTK 2.5.4 (manually compiled)

amuleweb runs properly some hours with app. 5 dls, but at one moment, as I added app. 5 further downloads, it crashes every time I want to look at the transfers window.

The log looks like follows:
Quote
hannes@obelix:~> amuleweb -v
looking for template: default
checking for directory '/home/hannes/.aMule/webserver'... no
checking for directory '/usr/local/share/amule/webserver'... yes
checking for directory '/usr/local/share/amule/webserver/default'... yes
checking for file '/usr/local/share/amule/webserver/default/aMule.tmpl'... yes
*** Using template: /usr/local/share/amule/webserver/default/aMule.tmpl

Erstelle Client...
Verbindung wird hergestellt....
Verwenderter Host 'localhost' Port:4661
Versuche zu verbinden (Timeout = 10sek)...
Succeeded! Connection established to aMule CVS

---------------------------------
|       aMule Web Server        |
---------------------------------


Benutze 'Help' für eine Liste der Kommandos

Webserver: gestartet
aMuleweb$
WSThread: Thread started
WSThread: created service
WSThread: created socket listening on :4665
*** parsing url /?ses=-1934187216&w=transfer&cat= :: field ses
*** parsing url /?ses=-1934187216&w=transfer&cat= :: field w
*** parsing url /?ses=-1934187216&w=transfer&cat= :: field ses
**** imgrequest: /logo.jpg
*** parsing url /favicon.ico :: field ses
*** parsing url /favicon.ico :: field w
*** parsing url /favicon.ico :: field ses
*** parsing url ?p=xxx&w=password :: field ses
*** parsing url ?p=xxx&w=password :: field w
*** parsing url ?p=xxx&w=password :: field p
*** logged in as admin
*** parsing url ?p=xxx&w=password :: field w
*** replaced session with 662935715
***** logged in, getting page password
***** session is 0
**** imgrequest: /emule.gif
**** imgrequest: /log.gif
**** imgrequest: /cp_settings.gif
**** imgrequest: /cp_shared.gif
**** imgrequest: /cp_download.gif
**** imgrequest: /cp_search.gif
**** imgrequest: /cp_servers.gif
**** imgrequest: /cp_stats.gif
*** parsing url /?ses=662935715&w=transfer :: field ses
*** parsing url /?ses=662935715&w=transfer :: field w
*** parsing url /?ses=662935715&w=transfer :: field w
*** parsing url /?ses=662935715&w=transfer :: field cat
*** replaced session with 662935715
***** logged in, getting page transfer
***** session is 662935715
*** parsing url /?ses=662935715&w=transfer :: field ses
*** parsing url /?ses=662935715&w=transfer :: field cat
*** parsing url /?ses=662935715&w=transfer :: field op
*** parsing url /?ses=662935715&w=transfer :: field file
*** parsing url /?ses=662935715&w=transfer :: field sort
*** parsing url /?ses=662935715&w=transfer :: field sortreverse
*** parsing url /?ses=662935715&w=transfer :: field c
*** parsing url /?ses=662935715&w=transfer :: field showuploadqueue
**** imgrequest: /arrow_down.gif
**** imgrequest: /dyn_06360D7D0EA02221498F0831552F3A5B.png
**** imgrequest: /dyn_94B09776DA0482CF9070615D8C7CA70E.png
**** imgrequest: /l_down.gif
**** imgrequest: /dyn_54EDCBF3D684517D1103BF688AAC0A27.png
**** imgrequest: /dyn_272424341C7AF4086949ADC832A72C20.png
Speicherzugriffsfehler
hannes@obelix:~>

I tried to generate a backtrace, but for being a totally n00b using gdb it doesn't work.

Quote
hannes@obelix:~> gdb /usr/local/bin/amuleweb
GNU gdb 6.1
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i586-suse-linux"...Using host libthread_db library "/lib/tls/libthread_db.so.1".

(gdb) ha SIGPIPE nostop noprint pass
Signal        Stop      Print   Pass to program Description
SIGPIPE       No        No      Yes             Broken pipe
(gdb) ha SIG32 nostop noprint pass
Signal        Stop      Print   Pass to program Description
SIG32         No        No      Yes             Real-time event 32
(gdb) run
Starting program: /usr/local/bin/amuleweb
[Thread debugging using libthread_db enabled]
[New Thread 1077969824 (LWP 11269)]

Erstelle Client...
Verbindung wird hergestellt....
Verwenderter Host 'localhost' Port:4661
Versuche zu verbinden (Timeout = 10sek)...
Succeeded! Connection established to aMule CVS

---------------------------------
|       aMule Web Server        |
---------------------------------


Benutze 'Help' für eine Liste der Kommandos

[New Thread 1081326512 (LWP 11273)]
Webserver: gestartet
aMuleweb$
WSThread: Thread started
WSThread: created service
WSThread: created socket listening on :4665
[New Thread 1083554736 (LWP 11275)]
[New Thread 1085655984 (LWP 11280)]
Couldn't get registers: Kein passender Prozess gefunden.
(gdb) bt
Cannot fetch general-purpose registers for thread 1081326512: generic error
(gdb) quit
The program is running.  Exit anyway? (y or n) y
Quitting: thread_db_get_info: cannot get thread info: generic error
hannes@obelix:~>

Where I'm wrong here?
Logged
Hannes

The light at the end of the tunnel is the light of an oncoming train.

demofreak

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 7
Re: [SID] amuleweb segfault on transfer view
« Reply #3 on: March 16, 2005, 12:54:06 PM »

It's me again.

Now I deleted some part-files from Temp-dir and all seems to work fine again.
The deleted part-files were
Quote
-rw-r-----   1 hannes users 53161175 2005-03-16 12:56 011.part
-rw-r-----   1 hannes users      355 2005-03-16 12:56 011.part.met
-rw-r-----   1 hannes users      355 2005-03-16 12:56 011.part.met.bak
-rw-r-----   1 hannes users        0 2005-03-16 10:21 012.part
-rw-r-----   1 hannes users      194 2005-03-16 12:56 012.part.met
-rw-r-----   1 hannes users      194 2005-03-16 12:56 012.part.met.bak
-rw-r-----   1 hannes users        0 2005-03-16 10:21 013.part
-rw-r-----   1 hannes users      200 2005-03-16 12:56 013.part.met
-rw-r-----   1 hannes users      200 2005-03-16 12:56 013.part.met.bak
-rw-r-----   1 hannes users        0 2005-03-16 10:21 015.part
-rw-r-----   1 hannes users      200 2005-03-16 12:56 015.part.met
-rw-r-----   1 hannes users      200 2005-03-16 12:56 015.part.met.bak
-rw-r-----   1 hannes users        0 2005-03-16 10:21 016.part
-rw-r-----   1 hannes users      200 2005-03-16 12:56 016.part.met
-rw-r-----   1 hannes users      200 2005-03-16 12:56 016.part.met.bak
-rw-r-----   1 hannes users        0 2005-03-16 10:21 017.part
-rw-r-----   1 hannes users      200 2005-03-16 12:56 017.part.met
-rw-r-----   1 hannes users      200 2005-03-16 12:56 017.part.met.bak
-rw-r-----   1 hannes users        0 2005-03-16 10:21 018.part
-rw-r-----   1 hannes users      200 2005-03-16 12:56 018.part.met
-rw-r-----   1 hannes users      200 2005-03-16 12:56 018.part.met.bak

The files should be numbered consecutive, aren't they? But no. 14 isn't here, maybe that's part of the problem?
Logged
Hannes

The light at the end of the tunnel is the light of an oncoming train.

GonoszTopi

  • The current man in charge of most things.
  • Administrator
  • Hero Member
  • *****
  • Karma: 169
  • Offline Offline
  • Posts: 2685
Re: [SID] amuleweb segfault on transfer view
« Reply #4 on: March 16, 2005, 11:34:33 PM »

Quote
But no. 14 isn't here, maybe that's part of the problem?
You have already finished downloading no.14, or cancelled from amule itself.
I myself have 24 partfiles in the range of 7-52. So this should not be the problem.
Logged
concordia cum veritate

demofreak

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 7
Re: [SID] amuleweb segfault on transfer view
« Reply #5 on: March 17, 2005, 01:00:01 AM »

Ok. What's the problem, then? :D
Logged
Hannes

The light at the end of the tunnel is the light of an oncoming train.