aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: rc7 works only as root user  (Read 2202 times)

CtrlAltDel

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 14
rc7 works only as root user
« on: October 24, 2004, 06:50:50 PM »

Hello gentlemen,

I'm having a small problem here with rc7. I'm able to run it as root user only, otherwise it crashes. Any ideas?

1. I have both rc5 and rc7 binaries. rc5 works just fine, rc7 crashes.

2. rc7 crashes in all the directories I try to start it in.

3.
[amule@myhost amule]$ uname -a
Linux myhost 2.4.20-31.9smp #1 SMP Tue Apr 13 17:40:10 EDT 2004 i686 i686 i386 GNU/Linux

4. Redhat 9

5. Installation done using rpm's and everything built like said in http://www.amule.org/wiki/index.php/Compilation_Installation. The result is the same with both ways. Currently I have the compiled version in use.

6.
[amule@myhost amule]$ rpm -qa | grep -i wx
[amule@myhost amule]$ ls -l /usr/bin/wx*
-rwxr-xr-x    1 root     root         4864 Oct 23 21:27 /usr/bin/wxbase-2.4-config
lrwxrwxrwx    1 root     root           26 Oct 23 21:28 /usr/bin/wxbase-config -> /usr/bin/wxbase-2.4-config
lrwxrwxrwx    1 root     root           25 Oct 23 21:29 /usr/bin/wx-config -> /usr/bin/wxgtk-2.4-config
-rwxr-xr-x    1 root     root         5057 Oct 23 21:16 /usr/bin/wxgtk-2.4-config
[amule@myhost amule]$


7. error:

* About to connect() to http://www.edonkey2000.com:80
* Connected to http://www.overnet.com (64.62.133.2) port 80
> GET /server.met HTTP/1.1
User-Agent: Mozilla/4
Host: http://www.edonkey2000.com
Pragma: no-cache
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*

* Connection #0 left intact
* Closing connection #0

OOPS! - Seems like aMule crashed.
   Version is: aMule 2.0.0rc7 using wxGTK1 v2.4.2
--== BACKTRACE FOLLOWS: ==--

  • ./amule(_ZN9CamuleApp16OnFatalExceptionEv+0x3c) [0x8223d8c]
  • [1] /usr/lib/libwx_gtk-2.4.so(wxFatalSignalHandler+0x26)
[0x403cfa1a]
[2] /lib/libpthread.so.0 [0x400325cd]
[3] /lib/libc.so.6 [0x40a7bcf8]
[4] ./amule(_ZN11CServerList10AutoUpdateEv+0x159) [0x81e3f0d]
[5] ./amule(_ZN11CServerList20AutoDownloadFinishedEj+0x11e) [0x81e46be]
[6] /usr/lib/libwx_gtk-2.4.so(_ZN12wxEvtHandler16SearchEventTableER12wxEventTableR7wxEvent+0xb6) [0x40307072]
[7] /usr/lib/libwx_gtk-2.4.so(_ZN12wxEvtHandler12ProcessEventER7wxEvent+0x83) [0x40306e9f]
[8] /usr/lib/libwx_gtk-2.4.so(_ZN12wxEvtHandler20ProcessPendingEventsEv+0x57) [0x40306ddb]
[9] /usr/lib/libwx_gtk-2.4.so(_ZN9wxAppBase20ProcessPendingEventsEv+0x61) [0x402d13a5]
[10] /usr/lib/libwx_gtk-2.4.so [0x4027e613]
[11] /usr/lib/libglib-1.2.so.0 [0x4067cb1f]
[12] /usr/lib/libglib-1.2.so.0 [0x4067b9ae]
[13] /usr/lib/libglib-1.2.so.0 [0x4067be89]
[14] /usr/lib/libglib-1.2.so.0(g_main_run+0x44) [0x4067c124]
[15] /usr/lib/libgtk-1.2.so.0(gtk_main+0xbf) [0x4058627f]
[16] /usr/lib/libwx_gtk-2.4.so(_ZN5wxApp8MainLoopEv+0x16) [0x4027ef8a]
[17] /usr/lib/libwx_gtk-2.4.so(_ZN9wxAppBase5OnRunEv+0x18) [0x402d125c]
[18] /usr/lib/libwx_gtk-2.4.so(_Z7wxEntryiPPc+0x231) [0x4027f661]
[19] ./amule(main+0x17) [0x821e7ab]
[20] /lib/libc.so.6(__libc_start_main+0xa9) [0x40a6a62d]
[21] ./amule(_ZN18wxBaseArrayPtrVoidD2Ev+0x31) [0x80c621d]

8. files:

[amule@myhost .aMule]$ ls -al /usr/lib/libwx_gtk-2.4.so
lrwxrwxrwx    1 root     root           22 Oct 23 21:16 /usr/lib/libwx_gtk-2.4.so -> libwx_gtk-2.4.so.0.1.1
[amule@myhost .aMule]$ ls -al /lib/libpthread.so.0
lrwxrwxrwx    1 root     root           18 Dec 23  2003 /lib/libpthread.so.0 -> libpthread-0.10.so
[amule@myhost .aMule]$ ls -al /lib/libc.so.6
lrwxrwxrwx    1 root     root           13 Dec 23  2003 /lib/libc.so.6 -> libc-2.3.2.so
[amule@myhost .aMule]$ ls -al ./amule
-rwxr-xr-x    1 amule    amule     3370259 Oct 23 22:08 ./amule
[amule@myhost .aMule]$ ls -al /usr/lib/libwx_gtk-2.4.so
lrwxrwxrwx    1 root     root           22 Oct 23 21:16 /usr/lib/libwx_gtk-2.4.so -> libwx_gtk-2.4.so.0.1.1
[amule@myhost .aMule]$ ls -al /usr/lib/libglib-1.2.so.0
lrwxrwxrwx    1 root     root           21 Dec 21  2003 /usr/lib/libglib-1.2.so.0 -> libglib-1.2.so.0.0.10
[amule@myhost .aMule]$ ls -al /usr/lib/libgtk-1.2.so.0
lrwxrwxrwx    1 root     root           19 Oct 23 20:38 /usr/lib/libgtk-1.2.so.0 -> libgtk-1.2.so.0.9.1
[amule@myhost .aMule]$ ls -al /usr/lib/libwx_gtk-2.4.so
lrwxrwxrwx    1 root     root           22 Oct 23 21:16 /usr/lib/libwx_gtk-2.4.so -> libwx_gtk-2.4.so.0.1.1
[amule@myhost .aMule]$


9. The question: what has changed between rc5 that works fine and rc7 that works only as a root user?...

Thanks!


PS. Btw, there's no rc7 option in the subject dropdown list?
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: rc7 works only as root user
« Reply #1 on: October 24, 2004, 07:23:27 PM »

try to move your .aMule folder somewhere else and look if its still crashing
and also try to rm -f ~/.aMule/clients.met

Quote
PS. Btw, there's no rc7 option in the subject dropdown list?

didn't had the time to add it.. will be done tomorrow ;)

cheers

CtrlAltDel

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 14
Re: rc7 works only as root user
« Reply #2 on: October 24, 2004, 08:23:45 PM »

Thanks for your reply. Unfortunately no success yet. This is what I tried:

1. Run amule in the usual place, that is in the home directory of user 'amule'
2. Run amule in the directory where the compilation created the binary (src). I created Temp and Incoming -directories as well.
3. Copied the directory .aMule to another place not in home directory of user amule.
4. Did the same stuff and removed clients.met, and also all the other .met files.

The result was the same, crash. Once again rc5 worked fine in all of these cases, just complained about "failed to load credit file", which is pretty obvious since it is missing.

Any way to grab some other debug info or something that could help?

One thing that I did not mention specifically is that although crashing, the user interface is actually visible for some time. It loads ip filter, and zero new servers, and the last visible message flashing something about invalid URL? I started gui as root user, and switched off all the automatic stuff done when starting amule. Still no luck.

One thing, although I now have ipfilter disabled, I got message "Loaded ipfilter with nnn new IP addresses"? Also wondering the message "Invalid URL", related to some automated startup stuff? Everything should be switched off... Anyway, it happens with root and non-root user and should not be the reason for the crash. What's happening right after this "Invalid URL", maybe that could be the reason?

The last two lines of logfile:

0 servers added
Invalid URL
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: rc7 works only as root user
« Reply #3 on: October 24, 2004, 08:56:49 PM »

woooooooho. A rc7 bug. you're getting a server.met with auto-update from a invalid url (or the ipfilter.dat), so it crashes.


Edit .eMule file and set the auto-update options to 0.
Logged

CtrlAltDel

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 14
Re: rc7 works only as root user
« Reply #4 on: October 24, 2004, 09:10:51 PM »

I don't exactly have .eMule file since I started to use amule 'from scratch'. But I started rc5 gui, switched all the startup auto -stuff to zero from there, and launched rc7 as amule user (non-root). And it worked! What I don't exactly get is why it worked as root user, but I'm sure you guys are evil enough to work this out. Thanks!

 :baby:
Logged