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 3

Author Topic: segmentation fault  (Read 10828 times)

Harp00

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 19
    • http://www.slacky.it
segmentation fault
« on: December 05, 2005, 11:32:58 AM »

Hi, i upgraded to CVS from 2.0.3 but i receive a segmentation fault:
Terminated after throwing an instance of 'CInvalidPacket'
Segmentation fault

So i downgraded to 2.0.3 but aMule is not stable and it abort by itself.
No more download for me.   X(

Plz help, and tnx in advance
Logged
And if the cloud bursts, thunder in your ear
You shout and no one seems to hear.
And if the band you're in starts playing different tunes
I'll see you on the dark side of the moon.

stefanero

  • Some Support
  • Developer
  • Hero Member
  • *****
  • Karma: 8
  • Offline Offline
  • Posts: 4236
Re: segmentation fault
« Reply #1 on: December 05, 2005, 12:12:36 PM »

can you maybe generate a backtrace or post at least the console output here?
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."

Harp00

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 19
    • http://www.slacky.it
Re: segmentation fault
« Reply #2 on: December 05, 2005, 03:57:02 PM »

I tried compiling the last version. 20051205, but i still receving:
Terminated after throwing an instance of 'wxString'
Segmentation fault
Logged
And if the cloud bursts, thunder in your ear
You shout and no one seems to hear.
And if the band you're in starts playing different tunes
I'll see you on the dark side of the moon.

Harp00

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 19
    • http://www.slacky.it
Re: segmentation fault
« Reply #3 on: December 05, 2005, 04:04:11 PM »

From console i simply receive:

amule 2>error.txt
Initialising aMule
Checking if there is an instance already running...
Testing skins
Loading temp files from /mnt/hd/home/franco/Download/aMule/Parziali.
Loading PartFile 6 of 6
All PartFiles Loaded.
MuleUDPSocket: Created Server UDP-Socket at port 5003
ListenSocket: Ok.
MuleUDPSocket: Created Client UDP-Socket at port 5005

External connections disabled in config file
*** Server UDP socket (TCP+3) at 0.0.0.0:5003
*** TCP socket (TCP) listening on 0.0.0.0:5000
*** Client UDP socket (extended eMule) at 0.0.0.0:5005
Adding file /mnt/hd/home/franco/Download/aMule/Parziali/001.part.met to shares
Adding file /mnt/hd/home/franco/Download/aMule/Parziali/002.part.met to shares
Adding file /mnt/hd/home/franco/Download/aMule/Parziali/003.part.met to shares
Adding file /mnt/hd/home/franco/Download/aMule/Parziali/004.part.met to shares
Adding file /mnt/hd/home/franco/Download/aMule/Parziali/006.part.met to shares
Adding file /mnt/hd/home/franco/Download/aMule/Parziali/007.part.met to shares
Servers: Trying to connect
Servers: Trying to connect
Servers: Connected

thousands of terminated after throwing an instance of 'wxString'

and finally:
Segmentation fault
« Last Edit: December 05, 2005, 04:04:35 PM by Harp00 »
Logged
And if the cloud bursts, thunder in your ear
You shout and no one seems to hear.
And if the band you're in starts playing different tunes
I'll see you on the dark side of the moon.

Xaignar

  • Admin and Code Junky
  • Hero Member
  • *****
  • Karma: 19
  • Offline Offline
  • Posts: 1103
Re: segmentation fault
« Reply #4 on: December 05, 2005, 04:31:51 PM »

Please try creating a backtrace, see http://www.amule.org/wiki/index.php/Backtraces
Logged

Harp00

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 19
    • http://www.slacky.it
Re: segmentation fault
« Reply #5 on: December 05, 2005, 08:49:40 PM »

Just downgraded to 2.0.3 and wxBase 2.4.2 and wxGTK 2.4.2 compiled fot athlon-xp.
I still have problems. aMule aborted by itself after a random time.

I am going to make a backtrace as soon as possible.
Tnx.
Logged
And if the cloud bursts, thunder in your ear
You shout and no one seems to hear.
And if the band you're in starts playing different tunes
I'll see you on the dark side of the moon.

Xaignar

  • Admin and Code Junky
  • Hero Member
  • *****
  • Karma: 19
  • Offline Offline
  • Posts: 1103
Re: segmentation fault
« Reply #6 on: December 05, 2005, 08:54:42 PM »

Could you give some more information about your system?
Logged

Harp00

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 19
    • http://www.slacky.it
Re: segmentation fault
« Reply #7 on: December 05, 2005, 09:48:23 PM »

Athlon XP 2000 - Nvidia GeForce 4
Slackware 10.2 - Kernel 2.6.14 - KDE 3.4.3
What else?  ?(
Logged
And if the cloud bursts, thunder in your ear
You shout and no one seems to hear.
And if the band you're in starts playing different tunes
I'll see you on the dark side of the moon.

Xaignar

  • Admin and Code Junky
  • Hero Member
  • *****
  • Karma: 19
  • Offline Offline
  • Posts: 1103
Re: segmentation fault
« Reply #8 on: December 05, 2005, 10:03:28 PM »

Whoops, should have been more specific. ;)
Compilation flags, version of gcc used for a starter.
Logged

Harp00

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 19
    • http://www.slacky.it
Re: segmentation fault
« Reply #9 on: December 05, 2005, 10:34:12 PM »

Sorry, but i am a newbie.
I did ./configure --enable-debug --disable-optimize
make & make install, but i have this problem, now.

hell amule-cvs # which amule
/usr/local/bin/amule
hell amule-cvs # gdb /usr/local/bin/amule
GNU gdb 6.3
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 "i486-slackware-linux"...Using host libthread_db library "/lib/tls/libthread_db.so.1".

(gdb) run
Starting program: /usr/local/bin/amule
[Thread debugging using libthread_db enabled]
[New Thread -1225853248 (LWP 9914)]
Error: Unable to initialize gtk, is DISPLAY set properly?

Program exited with code 0377.
(gdb) q
hell amule-cvs #
Logged
And if the cloud bursts, thunder in your ear
You shout and no one seems to hear.
And if the band you're in starts playing different tunes
I'll see you on the dark side of the moon.

Xaignar

  • Admin and Code Junky
  • Hero Member
  • *****
  • Karma: 19
  • Offline Offline
  • Posts: 1103
Re: segmentation fault
« Reply #10 on: December 05, 2005, 10:42:12 PM »

You run aMule as root? That certianly isn't recommended.
Logged

Harp00

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 19
    • http://www.slacky.it
Re: segmentation fault
« Reply #11 on: December 05, 2005, 10:50:44 PM »

amule starts normally, (giving me segmentation fault) but not if i type run in gdb session.

(gdb) run
Starting program: /usr/bin/amule
[Thread debugging using libthread_db enabled]
[New Thread -1225894208 (LWP 18837)]
Detaching after fork from child process 18840.
Detaching after fork from child process 18841.
Error: Unable to initialize gtk, is DISPLAY set properly?

Program exited with code 0377.
(gdb) bt
No stack.
(gdb) bt full
No stack.
(gdb) thread apply all bt
(gdb)
« Last Edit: December 05, 2005, 11:01:18 PM by Harp00 »
Logged
And if the cloud bursts, thunder in your ear
You shout and no one seems to hear.
And if the band you're in starts playing different tunes
I'll see you on the dark side of the moon.

Harp00

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 19
    • http://www.slacky.it
Re: segmentation fault
« Reply #12 on: December 05, 2005, 11:02:27 PM »

:baby: OK OK Sorry.
I am running gdb from user now.

Waiting for segmentation fault  :))

P.S. GCC version is 3.3.6 and the flags are -march=athlon-xp -O2 -pipe -fomit-frame-pointer -ffast-math -mmmx -m3dnow -msse -mfpmath=sse,387 -mcpu=athlon-xp
« Last Edit: December 05, 2005, 11:05:46 PM by Harp00 »
Logged
And if the cloud bursts, thunder in your ear
You shout and no one seems to hear.
And if the band you're in starts playing different tunes
I'll see you on the dark side of the moon.

Harp00

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 19
    • http://www.slacky.it
Re: segmentation fault
« Reply #13 on: December 05, 2005, 11:12:12 PM »

(gdb) bt
#0  0xb768f8c7 in vfprintf () from /lib/tls/libc.so.6
#1  0xb7693954 in buffered_vfprintf () from /lib/tls/libc.so.6
#2  0xb768f982 in vfprintf () from /lib/tls/libc.so.6
#3  0xb769826f in fprintf () from /lib/tls/libc.so.6
#4  0x0826e454 in OnUnhandledException () at MuleDebug.cpp:68
#5  0xb782c694 in __cxa_call_unexpected () from /usr/lib/libstdc++.so.5
#6  0xb782c6d1 in std::terminate () from /usr/lib/libstdc++.so.5
#7  0xb782c8ab in __cxa_rethrow () from /usr/lib/libstdc++.so.5
#8  0x0826e46a in OnUnhandledException () at MuleDebug.cpp:72
#9  0xb782c694 in __cxa_call_unexpected () from /usr/lib/libstdc++.so.5
#10 0xb782c6d1 in std::terminate () from /usr/lib/libstdc++.so.5
#11 0xb782c8ab in __cxa_rethrow () from /usr/lib/libstdc++.so.5
#12 0x0826e46a in OnUnhandledException () at MuleDebug.cpp:72
#13 0xb782c694 in __cxa_call_unexpected () from /usr/lib/libstdc++.so.5
#14 0xb782c6d1 in std::terminate () from /usr/lib/libstdc++.so.5
#15 0xb782c8ab in __cxa_rethrow () from /usr/lib/libstdc++.so.5
#16 0x0826e46a in OnUnhandledException () at MuleDebug.cpp:72
#17 0xb782c694 in __cxa_call_unexpected () from /usr/lib/libstdc++.so.5
#18 0xb782c6d1 in std::terminate () from /usr/lib/libstdc++.so.5
#19 0xb782c8ab in __cxa_rethrow () from /usr/lib/libstdc++.so.5
#20 0x0826e46a in OnUnhandledException () at MuleDebug.cpp:72
#21 0xb782c694 in __cxa_call_unexpected () from /usr/lib/libstdc++.so.5
#22 0xb782c6d1 in std::terminate () from /usr/lib/libstdc++.so.5
---Type to continue, or q to quit---q
Quit
(gdb) bt full
#0  0xb768f8c7 in vfprintf () from /lib/tls/libc.so.6
No symbol table info available.
#1  0xb7693954 in buffered_vfprintf () from /lib/tls/libc.so.6
No symbol table info available.
#2  0xb768f982 in vfprintf () from /lib/tls/libc.so.6
No symbol table info available.
#3  0xb769826f in fprintf () from /lib/tls/libc.so.6
No symbol table info available.
#4  0x0826e454 in OnUnhandledException () at MuleDebug.cpp:68
        name = 0x82f39a5 "8wxString"
        status = 0
        dem = 0x8b05828 "wxString"
        t = (struct std::type_info *) 0x82f397c
#5  0xb782c694 in __cxa_call_unexpected () from /usr/lib/libstdc++.so.5
No symbol table info available.
#6  0xb782c6d1 in std::terminate () from /usr/lib/libstdc++.so.5
No symbol table info available.
#7  0xb782c8ab in __cxa_rethrow () from /usr/lib/libstdc++.so.5
No symbol table info available.
#8  0x0826e46a in OnUnhandledException () at MuleDebug.cpp:72
        name = 0x82f39a5 "8wxString"
        status = 0
        dem = 0x8bca400 "àŽÊ\b\b"
---Type to continue, or q to quit---q
Quit
(gdb) thread apply all bt

Thread 4 (Thread -1243800656 (LWP 18913)):
#0  0xb7fae192 in pthread_cond_timedwait@@GLIBC_2.3.2 ()
   from /lib/tls/libpthread.so.0
#1  0xb796fc59 in wxConditionInternal::WaitTimeout ()
   from /usr/lib/libwx_base-2.6.so.0
#2  0xb7972369 in wxCondition::WaitTimeout () from /usr/lib/libwx_base-2.6.so.0
#3  0xb79700d5 in wxSemaphoreInternal::WaitTimeout ()
   from /usr/lib/libwx_base-2.6.so.0
#4  0xb7972699 in wxSemaphore::WaitTimeout () from /usr/lib/libwx_base-2.6.so.0
#5  0x08224577 in CTimerThread::Entry (this=0x8616858) at Timer.cpp:66
#6  0xb79703d1 in wxThreadInternal::PthreadStart ()
   from /usr/lib/libwx_base-2.6.so.0
#7  0xb797025e in wxPthreadStart () from /usr/lib/libwx_base-2.6.so.0
#8  0xb7fab0fb in start_thread () from /lib/tls/libpthread.so.0
#9  0xb770d99e in clone () from /lib/tls/libc.so.6

Thread 2 (Thread -1227023440 (LWP 18911)):
#0  0xb7fb0cbc in __nanosleep_nocancel () from /lib/tls/libpthread.so.0
#1  0xb797893c in wxMicroSleep () from /usr/lib/libwx_base-2.6.so.0
#2  0xb7978974 in wxMilliSleep () from /usr/lib/libwx_base-2.6.so.0
#3  0xb7970a6e in wxThread::Sleep () from /usr/lib/libwx_base-2.6.so.0
#4  0x08126e18 in UploadBandwidthThrottler::Entry (this=0x8af0ea0)
---Type to continue, or q to quit---q
 at UploadBandQuit
#0  0xb768f8c7 in vfprintf () from /lib/tls/libc.so.6
(gdb)
Logged
And if the cloud bursts, thunder in your ear
You shout and no one seems to hear.
And if the band you're in starts playing different tunes
I'll see you on the dark side of the moon.

Xaignar

  • Admin and Code Junky
  • Hero Member
  • *****
  • Karma: 19
  • Offline Offline
  • Posts: 1103
Re: segmentation fault
« Reply #14 on: December 05, 2005, 11:41:37 PM »

Ok, that looks funky.
While I check it out, could you try recompiling with at most the flags "-march=athlon-xp -O2 -pipe"?
And for your information, -march sets the -mcpu flag, so no need to specify that manually. ;)
Logged
Pages: [1] 2 3