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 : Segmentation fault: 11 (core dumped)  (Read 4213 times)

bisounux

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 12
amuleweb : Segmentation fault: 11 (core dumped)
« on: January 23, 2007, 04:55:14 PM »

Hey

I have a problem with my amuleweb.
Context :
- I launch amuled ==> OK
- I launch amuleweb ==> OK
- I connect to http://myIP:4711 ==>OK (login page)
- I log in ==> OK

In the default interface i can click everywhere except on Kad and Statistics. If I do that amuleweb crash  :evil:!!!!
Here my log :
Code: [Select]
Error: can't open file '/root/.aMule/webserver/php-default/amule_stats_download.png' (error 2: No such file or directory)
CFileImage: failed to open /root/.aMule/webserver/php-default/amule_stats_download.png
Segmentation fault: 11 (core dumped)


It can't find the file. I copy scr/webserver in ~/.aMule/ but it still doesn't work.

Please help me, I look for this probleme since ten hours, but I can't find a solution.

Thanks for reply.
Logged

skolnick

  • Global Moderator
  • Hero Member
  • *****
  • Karma: 24
  • Offline Offline
  • Posts: 1188
  • CentOS 6 User
Re: amuleweb : Segmentation fault: 11 (core dumped)
« Reply #1 on: January 23, 2007, 09:37:16 PM »

Well, first of all, it's not a good idea running aMule as root. Second, try installing it, that usually solves all of the problems (aMule seems not to be installed, since it's looking for files in the homdir that should be getting from the installation dir)

Regards.
Logged

bisounux

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 12
Re: amuleweb : Segmentation fault: 11 (core dumped)
« Reply #2 on: January 23, 2007, 11:53:15 PM »

You're right, it's not a good idea to run aMule as root.
I had install aMule with ports. (make install) I have made install but it doesn't work.
Why do you think that my aMule is not install ?
Is it possible that an error occurred until the install process ?
Perhaps it's only amuleweb which isn't install...
When I put
Code: [Select]
pkg_info | grep aMule, aMule 2.1.3_2 appear !
Thanks for your help, it's very usefull

Regards
Logged

skolnick

  • Global Moderator
  • Hero Member
  • *****
  • Karma: 24
  • Offline Offline
  • Posts: 1188
  • CentOS 6 User
Re: amuleweb : Segmentation fault: 11 (core dumped)
« Reply #3 on: January 28, 2007, 03:45:11 AM »

What do you mean ports? are you running aMule on FreeBSD? (I know FreeBSD uses ports for software...) if not, tell us which OS are you using. Or try getting some of the latest CVS (SVN) versions and compile aMule yourself.

Regards.
Logged

bisounux

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 12
Re: amuleweb : Segmentation fault: 11 (core dumped)
« Reply #4 on: January 29, 2007, 10:10:26 PM »

Yes, aMule's running on FreeBSD 6.2.
I compile aMule 2.1.3_2 (with "make") and install it ("make PREFIX="/MyPath" install").
I try lot of things since my last post but it doesn't work.
Amuled works well (I can dowload and upload files), but amuleweb doesn't work, when i go on stats or kad page, amuleweb stop !! It stop due a lack of  image.

Code: [Select]
Processing request [redirected]: amuleweb-main-shared.php
Session ok, logged in
Session ok, logged in
Processing request [original]: amuleweb-main-dload.php
Session ok, logged in
Processing request [redirected]: amuleweb-main-dload.php
Processing request [original]: amuleweb-main-stats.php
Session ok, logged in
Processing request [redirected]: amuleweb-main-stats.php
Session ok, logged in
Session ok, logged in
23:08:19: Error: can't open file '/usr/home/foo/amule/share/gnome/amule/webserver/php-default/amule_stats_download.png' (error 2: No such file or directory)
CFileImage: failed to open /usr/home/foo/amule/share/gnome/amule/webserver/php-default/amule_stats_download.png
Segmentation fault: 11
Where i can find this files ? I think that only dynamics image don't work, like progress bar, stats and others ....
I'm glad that you answered.
Regards.

P.S : aMule's running, now, with a normal user....(thanks  :) )
Logged

wuischke

  • Developer
  • Hero Member
  • *****
  • Karma: 183
  • Offline Offline
  • Posts: 4292
Re: amuleweb : Segmentation fault: 11 (core dumped)
« Reply #5 on: January 30, 2007, 10:00:00 AM »

Hi bisounux!

Dynamics images need libpng and libgd (and their development files i.e. the header/includes).
Please make sure you have installed/compiled these two packages.
Logged

bisounux

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 12
Re: amuleweb : Segmentation fault: 11 (core dumped)
« Reply #6 on: January 31, 2007, 11:10:48 PM »

Hey,

Thank you for your help.
I install this "gstreamer-plugins-libpng-0.10.5_1,2" ( libpng for FreeBSD )  and this "fpc-libgd-2.0.4_1 " (libgd for FreeBSD). But it still doesn't work... ;( (i'm stupid, sorry !!)
Do you think that it good lib or not ?
I must notify that i install libs, amule in a different path than the default path. Is it important ?

Thank you very much for your reply.

Regards.
Logged

wuischke

  • Developer
  • Hero Member
  • *****
  • Karma: 183
  • Offline Offline
  • Posts: 4292
Re: amuleweb : Segmentation fault: 11 (core dumped)
« Reply #7 on: February 01, 2007, 12:03:02 AM »

Hi bisounux!

No, you're mistaken. The port names are without the 'lib' prefix.

GD: http://www.freebsd.org/cgi/cvsweb.cgi/ports/graphics/gd/
PNG: http://www.freebsd.org/cgi/cvsweb.cgi/ports/graphics/png/

If there are problems finding libgd or libpng:
Quote
 --with-gdlib-prefix=PREFIX       prefix where gdlib is installed
  --with-libpng-prefix=PREFIX      prefix where libpng is installed
(Check out ./configure --help for more prefix-switches in case I choose the wrong ones)
Logged

lfroen

  • Guest
Re: amuleweb : Segmentation fault: 11 (core dumped)
« Reply #8 on: February 01, 2007, 09:34:44 AM »

Can you please post backtrace of the problem? Even if file is missing or dynamic images disabled, code is not supposed to crash.
Logged

bisounux

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 12
Re: amuleweb : Segmentation fault: 11 (core dumped)
« Reply #9 on: February 01, 2007, 11:56:36 PM »

Hey,

Where I can find backtrace ?

I don't try new lib now... I hope that it will work.
 Thank you for your help.

Regards
Logged

bisounux

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 12
Re: amuleweb : Segmentation fault: 11 (core dumped)
« Reply #10 on: February 02, 2007, 12:15:14 AM »

Hey,

Arf !! ;( It's doesn't work.... I'm mad...I've the same problem with amuleweb!!

Ameled work well except an error at launch :
Code: [Select]
execvp(amuleweb, --amule-config-file=/home/quentin/.aMule/amule.conf) failed with error 2!
ERROR: Error You requested to run webserver from startup, but the amuleweb binary cannot be run. Please install the package containing aMule webserver, or compile aMule using --enable-webserver and run make install
It's too strange for me. I really don't understand where is the problem ?
Because amuleweb is install. I can lauch it ($: ~/amule/bin/.amuleweb ). And it works...really bad, but it works...
I'm desperate...

Thanks for your help. I really need it.

Regards
Logged

wuischke

  • Developer
  • Hero Member
  • *****
  • Karma: 183
  • Offline Offline
  • Posts: 4292
Re: amuleweb : Segmentation fault: 11 (core dumped)
« Reply #11 on: February 02, 2007, 12:42:45 AM »

wiki page about backtraces

aMule can't find amuleweb in $PATH (well...I hope it works the same way on BSD as on Linux...) and that's why it doesn't work.
Rename .amuleweb to amuleweb (without the dot) and update $PATH before running aMule.

e.g.
Code: [Select]
#!/bin/bash
export PATH=$PATH:/home/quentin/amule/bin
amule
Logged