aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: amuleweb hangs!!!  (Read 4454 times)

rurixos

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 1
amuleweb hangs!!!
« on: September 02, 2006, 01:23:05 AM »

hi!
i'm trying amuleweb for amule 2.1.3 on my suse 10.0 and when i go to stats (in the webpage) amuleweb crashes, but amule still continue running.the problem is that i need some images like amule_stats_conncount.png, amule_stats_upload.png. i have tried to search in the package but i have not found any of them.
could you tell me where can i find them?

thanks!
Logged

yozhhh

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 10
Re: amuleweb hangs!!!
« Reply #1 on: September 18, 2006, 03:26:42 PM »

Yes, the same on my Slackware 10.2 box. amuled and amuleweb start successfully. I can open http://localhost:port (i don't use default port), log in and see the initial screen. After i clicked on the different upper buttons (Kad, Servers, Options etc) 4..7 times, amuleweb crashes: the browser (seamonkey) shows "The connection was refused when attempting to contact localhost:4793.". Processes:
Code: [Select]
ps -A|grep amu
18609 pts/1    00:00:00 amuled
18614 pts/1    00:00:00 amuleweb
In the logfile at the same time:
Code: [Select]
2006-09-18 15:24:40: External connection closed.The same problem when running amule 2.1.2!
2.1.1 does not have this bug, therefore i'm using this version only.
« Last Edit: September 18, 2006, 03:27:51 PM by yozhhh »
Logged

yozhhh

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 10
RE: amuleweb hangs!!!
« Reply #2 on: September 18, 2006, 03:32:36 PM »

Quote
the problem is that i need some images like amule_stats_conncount.png, amule_stats_upload.png.
Do you mean these error messages here?
Code: [Select]
01:21:57 PM: Error: can't open file '/usr/local/share/amule/webserver/php-default/black.gif' (error 2: No such file or directory)
CFileImage: failed to open /usr/local/share/amule/webserver/php-default/black.gif
01:21:57 PM: Error: can't open file '/usr/local/share/amule/webserver/php-default/red.gif' (error 2: No such file or directory)
CFileImage: failed to open /usr/local/share/amule/webserver/php-default/red.gif
01:21:57 PM: Error: can't open file '/usr/local/share/amule/webserver/php-default/blue1.gif' (error 2: No such file or directory)
CFileImage: failed to open /usr/local/share/amule/webserver/php-default/blue1.gif
01:21:57 PM: Error: can't open file '/usr/local/share/amule/webserver/php-default/blue2.gif' (error 2: No such file or directory)
CFileImage: failed to open /usr/local/share/amule/webserver/php-default/blue2.gif
No, the same happens with 2.1.1, but 2.1.1 does not crash...
Logged

wuischke

  • Developer
  • Hero Member
  • *****
  • Karma: 183
  • Offline Offline
  • Posts: 4292
Re: amuleweb hangs!!!
« Reply #3 on: September 18, 2006, 03:43:09 PM »

These images are dynamically generated by amuleweb using libgd. You should install libgd and maybe recompile amuleweb.

Regarding the crash, could you please create a backtrace of the crash? See this wikipage for more help.
Logged

yozhhh

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 10
Re: amuleweb hangs!!!
« Reply #4 on: September 18, 2006, 04:50:01 PM »

Altough i compiled amule with
./configure --enable-debug --disable-optimize --enable-amule-daemon --enable-amulecmd --enable-webserver --enable-alcc --disable-wxcas --without-x --disable-monolithic
, i have troubles while debugging:
Code: [Select]
bash-3.00$ gdb ./amuleweb --quiet
(no debugging symbols found)
Using host libthread_db library "/lib/tls/libthread_db.so.1".
(gdb) run
Starting program: /usr/local/bin/amuleweb
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread -1213163840 (LWP 4802)]
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
This is amuleweb 2.1.3

Creating client...
Succeeded! Connection established to aMule 2.1.3

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

Use 'Help' for command list


[1]+  Stopped                 gdb ./amuleweb --quiet
bash-3.00$ fg 1
gdb ./amuleweb --quiet
[New Thread -1213314128 (LWP 4805)]

Program received signal SIGTTOU, Stopped (tty output).
[Switching to Thread -1213163840 (LWP 4802)]
0xb7bb8f11 in __write_nocancel () from /lib/tls/libc.so.6
(gdb) bt
#0  0xb7bb8f11 in __write_nocancel () from /lib/tls/libc.so.6
#1  0xb7b6c6af in _IO_new_file_write () from /lib/tls/libc.so.6
#2  0xb7b6b7fe in new_do_write () from /lib/tls/libc.so.6
#3  0xb7b6b796 in _IO_new_do_write () from /lib/tls/libc.so.6
#4  0xb7b6bcc9 in _IO_new_file_overflow () from /lib/tls/libc.so.6
#5  0xb7b6c7d1 in _IO_new_file_xsputn () from /lib/tls/libc.so.6
#6  0xb7b4ae93 in vfprintf () from /lib/tls/libc.so.6
#7  0xb7b512b2 in printf () from /lib/tls/libc.so.6
#8  0x08055d52 in ?? ()
#9  0x08067e1a in wxStringTokenizer::~wxStringTokenizer ()
#10 0x0806c72d in wxAppConsole::WakeUpIdle ()
#11 0x08066832 in wxStringTokenizer::~wxStringTokenizer ()
#12 0xb7e8de16 in wxEntry () from /usr/local/lib/libwx_base-2.6.so.0
#13 0x0806678d in wxStringTokenizer::~wxStringTokenizer ()
#14 0xb7b23fcb in __libc_start_main () from /lib/tls/libc.so.6
#15 0x0804eef1 in ?? ()
Any ideas? Should I alco recomple libthread with debug info?
Logged

yozhhh

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 10
Re: amuleweb hangs!!!
« Reply #5 on: September 18, 2006, 05:17:11 PM »

OK, it succeeded with ddd (amuleweb):
Code: [Select]
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1256092752 (LWP 13077)]
0x0805057f in ?? ()
(gdb) bt
#0  0x0805057f in ?? ()
#1  0x08069c48 in wxAppConsole::WakeUpIdle ()
#2  0x080697f5 in wxAppConsole::WakeUpIdle ()
#3  0xb7eba0f3 in wxThreadInternal::PthreadStart () from /usr/local/lib/libwx_base-2.6.so.0
#4  0xb7eb9fd9 in wxPthreadStart () from /usr/local/lib/libwx_base-2.6.so.0
#5  0xb7f290fb in start_thread () from /lib/tls/libpthread.so.0
#6  0xb7b9599e in clone () from /lib/tls/libc.so.6
(gdb)  bt full
#0  0x0805057f in ?? ()
No symbol table info available.
#1  0x08069c48 in wxAppConsole::WakeUpIdle ()
No symbol table info available.
#2  0x080697f5 in wxAppConsole::WakeUpIdle ()
No symbol table info available.
#3  0xb7eba0f3 in wxThreadInternal::PthreadStart () from /usr/local/lib/libwx_base-2.6.so.0
No symbol table info available.
#4  0xb7eb9fd9 in wxPthreadStart () from /usr/local/lib/libwx_base-2.6.so.0
No symbol table info available.
#5  0xb7f290fb in start_thread () from /lib/tls/libpthread.so.0
No symbol table info available.
#6  0xb7b9599e in clone () from /lib/tls/libc.so.6
No symbol table info available.
(gdb)  thread apply all bt

Thread 39 (Thread -1247704144 (LWP 13078)):
#0  0xb7b95988 in clone () from /lib/tls/libc.so.6
#1  0x003d0f00 in ?? ()
#2  0x00000000 in ?? ()
#3  0xb7f29080 in __free_tcb () from /lib/tls/libpthread.so.0
#4  0xb7f29d9b in create_thread () from /lib/tls/libpthread.so.0
#5  0xb7f2930f in pthread_create@@GLIBC_2.1 () from /lib/tls/libpthread.so.0
#6  0xb7ebaaef in wxThread::Create () from /usr/local/lib/libwx_base-2.6.so.0
#7  0x08068eff in wxAppConsole::WakeUpIdle ()
#8  0xb7eba0f3 in wxThreadInternal::PthreadStart () from /usr/local/lib/libwx_base-2.6.so.0
#9  0xb7eb9fd9 in wxPthreadStart () from /usr/local/lib/libwx_base-2.6.so.0
#10 0xb7f290fb in start_thread () from /lib/tls/libpthread.so.0
#11 0xb7b9599e in clone () from /lib/tls/libc.so.6

Thread 38 (Thread -1256092752 (LWP 13077)):
#0  0x0805057f in ?? ()
#1  0x08069c48 in wxAppConsole::WakeUpIdle ()
#2  0x080697f5 in wxAppConsole::WakeUpIdle ()
#3  0xb7eba0f3 in wxThreadInternal::PthreadStart () from /usr/local/lib/libwx_base-2.6.so.0
#4  0xb7eb9fd9 in wxPthreadStart () from /usr/local/lib/libwx_base-2.6.so.0
#5  0xb7f290fb in start_thread () from /lib/tls/libpthread.so.0
#6  0xb7b9599e in clone () from /lib/tls/libc.so.6

Thread 37 (Thread -1230926928 (LWP 13076)):
#0  0xb7f2e309 in __lll_mutex_lock_wait () from /lib/tls/libpthread.so.0
#1  0xb7f2b33e in _L_mutex_lock_29 () from /lib/tls/libpthread.so.0
#2  0xb7f2230c in ?? () from /usr/local/lib/libwx_base_net-2.6.so.0
#3  0xb7b40c74 in _int_free () from /lib/tls/libc.so.6
#4  0xb7eb97b7 in wxMutexInternal::Lock () from /usr/local/lib/libwx_base-2.6.so.0
#5  0xb7ebbb59 in wxMutex::Lock () from /usr/local/lib/libwx_base-2.6.so.0
#6  0xb7ebc27f in wxMutexLocker::wxMutexLocker () from /usr/local/lib/libwx_base-2.6.so.0
#7  0x0806955a in wxAppConsole::WakeUpIdle ()
#8  0xb7eba0f3 in wxThreadInternal::PthreadStart () from /usr/local/lib/libwx_base-2.6.so.0
#9  0xb7eb9fd9 in wxPthreadStart () from /usr/local/lib/libwx_base-2.6.so.0
#10 0xb7f290fb in start_thread () from /lib/tls/libpthread.so.0
#11 0xb7b9599e in clone () from /lib/tls/libc.so.6

Thread 36 (Thread -1239315536 (LWP 13075)):
#0  0xb7f2e309 in __lll_mutex_lock_wait () from /lib/tls/libpthread.so.0
#1  0xb7f2b33e in _L_mutex_lock_29 () from /lib/tls/libpthread.so.0
#2  0xb7f2230c in ?? () from /usr/local/lib/libwx_base_net-2.6.so.0
#3  0xb7b40c74 in _int_free () from /lib/tls/libc.so.6
#4  0xb7eb97b7 in wxMutexInternal::Lock () from /usr/local/lib/libwx_base-2.6.so.0
#5  0xb7ebbb59 in wxMutex::Lock () from /usr/local/lib/libwx_base-2.6.so.0
#6  0xb7ebc27f in wxMutexLocker::wxMutexLocker () from /usr/local/lib/libwx_base-2.6.so.0
#7  0x0806955a in wxAppConsole::WakeUpIdle ()
#8  0xb7eba0f3 in wxThreadInternal::PthreadStart () from /usr/local/lib/libwx_base-2.6.so.0
#9  0xb7eb9fd9 in wxPthreadStart () from /usr/local/lib/libwx_base-2.6.so.0
#10 0xb7f290fb in start_thread () from /lib/tls/libpthread.so.0
#11 0xb7b9599e in clone () from /lib/tls/libc.so.6

Thread 35 (Thread -1281258576 (LWP 13074)):
#0  0xb7f2e309 in __lll_mutex_lock_wait () from /lib/tls/libpthread.so.0
#1  0xb7f2b33e in _L_mutex_lock_29 () from /lib/tls/libpthread.so.0
#2  0xb7f2230c in ?? () from /usr/local/lib/libwx_base_net-2.6.so.0
#3  0xb7b40c74 in _int_free () from /lib/tls/libc.so.6
#4  0xb7eb97b7 in wxMutexInternal::Lock () from /usr/local/lib/libwx_base-2.6.so.0
#5  0xb7ebbb59 in wxMutex::Lock () from /usr/local/lib/libwx_base-2.6.so.0
#6  0xb7ebc27f in wxMutexLocker::wxMutexLocker () from /usr/local/lib/libwx_base-2.6.so.0
#7  0x0806955a in wxAppConsole::WakeUpIdle ()
#8  0xb7eba0f3 in wxThreadInternal::PthreadStart () from /usr/local/lib/libwx_base-2.6.so.0
#9  0xb7eb9fd9 in wxPthreadStart () from /usr/local/lib/libwx_base-2.6.so.0
#10 0xb7f290fb in start_thread () from /lib/tls/libpthread.so.0
#11 0xb7b9599e in clone () from /lib/tls/libc.so.6

Thread 31 (Thread -1222538320 (LWP 13079)):
#0  0xb7b95988 in clone () from /lib/tls/libc.so.6
#1  0x003d0f00 in ?? ()
#2  0x00000000 in ?? ()
#3  0xb7f29080 in __free_tcb () from /lib/tls/libpthread.so.0
#4  0xb7f29d9b in create_thread () from /lib/tls/libpthread.so.0
#5  0xb7f2930f in pthread_create@@GLIBC_2.1 () from /lib/tls/libpthread.so.0
#6  0xb7ebaaef in wxThread::Create () from /usr/local/lib/libwx_base-2.6.so.0
#7  0x08068eff in wxAppConsole::WakeUpIdle ()
#8  0xb7eba0f3 in wxThreadInternal::PthreadStart () from /usr/local/lib/libwx_base-2.6.so.0
#9  0xb7eb9fd9 in wxPthreadStart () from /usr/local/lib/libwx_base-2.6.so.0
#10 0xb7f290fb in start_thread () from /lib/tls/libpthread.so.0
#11 0xb7b9599e in clone () from /lib/tls/libc.so.6

Thread 2 (Thread -1213514832 (LWP 13035)):
#0  0xb7b95988 in clone () from /lib/tls/libc.so.6
#1  0x00000001 in ?? ()
#2  0xb7218bb0 in ?? ()
#3  0xb7f32ff4 in ?? () from /lib/tls/libpthread.so.0
#4  0xb7f2a019 in do_clone () from /lib/tls/libpthread.so.0
#5  0xb7f29d9b in create_thread () from /lib/tls/libpthread.so.0
#6  0xb7f2930f in pthread_create@@GLIBC_2.1 () from /lib/tls/libpthread.so.0
#7  0xb7ebaaef in wxThread::Create () from /usr/local/lib/libwx_base-2.6.so.0
#8  0x08068eff in wxAppConsole::WakeUpIdle ()
#9  0xb7eba0f3 in wxThreadInternal::PthreadStart () from /usr/local/lib/libwx_base-2.6.so.0
#10 0xb7eb9fd9 in wxPthreadStart () from /usr/local/lib/libwx_base-2.6.so.0
#11 0xb7f290fb in start_thread () from /lib/tls/libpthread.so.0
#12 0xb7b9599e in clone () from /lib/tls/libc.so.6

Thread 1 (Thread -1213364544 (LWP 13031)):
#0  0xb7f2e581 in __read_nocancel () from /lib/tls/libpthread.so.0
#1  0xb7d9324c in rl_getc () from /usr/lib/libreadline.so.4
#2  0xb7d931f9 in rl_read_key () from /usr/lib/libreadline.so.4
#3  0xb7d8145e in readline_internal_char () from /usr/lib/libreadline.so.4
#4  0xb7d81665 in readline_internal_charloop () from /usr/lib/libreadline.so.4
#5  0xb7d8169e in readline_internal () from /usr/lib/libreadline.so.4
#6  0xb7d8116f in readline () from /usr/lib/libreadline.so.4
#7  0x0806c25c in wxAppConsole::WakeUpIdle ()
#8  0x0806c362 in wxAppConsole::WakeUpIdle ()
#9  0x0806c74c in wxAppConsole::WakeUpIdle ()
#10 0x08066832 in wxStringTokenizer::~wxStringTokenizer ()
#11 0xb7e5ce16 in wxEntry () from /usr/local/lib/libwx_base-2.6.so.0
#12 0x0806678d in wxStringTokenizer::~wxStringTokenizer ()
#13 0xb7af2fcb in __libc_start_main () from /lib/tls/libc.so.6
#14 0x0804eef1 in ?? ()
#0  0x0805057f in ?? ()
(gdb)
Logged

yozhhh

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 10
Re: amuleweb hangs!!!
« Reply #6 on: September 18, 2006, 10:15:26 PM »

I compiled libgd and then rebuilt amule 2.1.3. It works now fine, without crashes.
Logged