aMule Forum

English => aMule crashes => Topic started by: Harp00 on December 05, 2005, 11:32:58 AM

Title: segmentation fault
Post by: Harp00 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
Title: Re: segmentation fault
Post by: stefanero on December 05, 2005, 12:12:36 PM
can you maybe generate a backtrace or post at least the console output here?
Title: Re: segmentation fault
Post by: Harp00 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
Title: Re: segmentation fault
Post by: Harp00 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
Title: Re: segmentation fault
Post by: Xaignar on December 05, 2005, 04:31:51 PM
Please try creating a backtrace, see http://www.amule.org/wiki/index.php/Backtraces
Title: Re: segmentation fault
Post by: Harp00 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.
Title: Re: segmentation fault
Post by: Xaignar on December 05, 2005, 08:54:42 PM
Could you give some more information about your system?
Title: Re: segmentation fault
Post by: Harp00 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?  ?(
Title: Re: segmentation fault
Post by: Xaignar on December 05, 2005, 10:03:28 PM
Whoops, should have been more specific. ;)
Compilation flags, version of gcc used for a starter.
Title: Re: segmentation fault
Post by: Harp00 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 #
Title: Re: segmentation fault
Post by: Xaignar on December 05, 2005, 10:42:12 PM
You run aMule as root? That certianly isn't recommended.
Title: Re: segmentation fault
Post by: Harp00 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)
Title: Re: segmentation fault
Post by: Harp00 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
Title: Re: segmentation fault
Post by: Harp00 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)
Title: Re: segmentation fault
Post by: Xaignar 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. ;)
Title: Re: segmentation fault
Post by: Harp00 on December 06, 2005, 02:50:37 PM
Waiting for your reply i made a backtrace of the version 2.0.3 that, as i said before, it aborted by itself.

Program received signal SIGABRT, Aborted.
[Switching to Thread -1226479936 (LWP 15293)]
0xb7594027 in raise () from /lib/tls/libc.so.6
(gdb) bt
#0  0xb7594027 in raise () from /lib/tls/libc.so.6
#1  0xb7595747 in abort () from /lib/tls/libc.so.6
#2  0xb7742694 in __cxa_call_unexpected () from /usr/lib/libstdc++.so.5
#3  0xb77426d1 in std::terminate () from /usr/lib/libstdc++.so.5
#4  0xb7742841 in __cxa_throw () from /usr/lib/libstdc++.so.5
#5  0x080c5e02 in CUpDownClient::ProcessFileStatus (this=0x8ad2b58,
    bUdpPacket=true, data=0xbf805b40, file=0x8ab1478) at DownloadClient.cpp:323
#6  0x080be52b in CClientUDPSocket::ProcessPacket (this=0x8ab0b50,
    packet=0xbf805c82 "æ\004\207\bY\b", size=2, opcode=145 '\221',
    host=1003038804, port=4672) at ClientUDPSocket.cpp:196
#7  0x080bdb7c in CClientUDPSocket::OnReceive (this=0x8ab0b50)
    at ClientUDPSocket.cpp:90
#8  0x08077e51 in CamuleApp::ClientUDPSocketHandler (this=0x856a4b8,
    event=@0x8bd4bd8) at amule.cpp:1980
#9  0xb787d50d in wxAppConsole::HandleEvent ()
   from /usr/lib/libwx_base-2.6.so.0
#10 0xb792f19f in wxEvtHandler::ProcessEventIfMatches ()
   from /usr/lib/libwx_base-2.6.so.0
#11 0xb792e66e in wxEventHashTable::HandleEvent ()
   from /usr/lib/libwx_base-2.6.so.0
#12 0xb792f349 in wxEvtHandler::ProcessEvent ()
   from /usr/lib/libwx_base-2.6.so.0
#13 0xb792f0e6 in wxEvtHandler::ProcessPendingEvents ()
---Type to continue, or q to quit---q
 from /usr/lib/libwx_baseQuit
(gdb) bt full
#0  0xb7594027 in raise () from /lib/tls/libc.so.6
No symbol table info available.
#1  0xb7595747 in abort () from /lib/tls/libc.so.6
No symbol table info available.
#2  0xb7742694 in __cxa_call_unexpected () from /usr/lib/libstdc++.so.5
No symbol table info available.
#3  0xb77426d1 in std::terminate () from /usr/lib/libstdc++.so.5
No symbol table info available.
#4  0xb7742841 in __cxa_throw () from /usr/lib/libstdc++.so.5
No symbol table info available.
#5  0x080c5e02 in CUpDownClient::ProcessFileStatus (this=0x8ad2b58,
    bUdpPacket=true, data=0xbf805b40, file=0x8ab1478) at DownloadClient.cpp:323
        strError = { = {static npos = 4294967295,
    m_pchData = 0x8a56694 "ProcessFileStatus - wrong part number recv=1254  expected=161 4CABFBD661D5F48FF74CA30CFFD18BD3"}, }
        done = 2057
        strReqFileNull = { = {static npos = 4294967295,
    m_pchData = 0x8a5972c "ERROR: Wrong file ID (ProcessFileStatus; m_reqfile==NULL)"}, }
        nED2KPartCount = 1254
        bPartsNeeded = false
        iNeeded = 0
#6  0x080be52b in CClientUDPSocket::ProcessPacket (this=0x8ab0b50,
---Type to continue, or q to quit---q
packet=0xbf80Quit
) at ClientUDPSocket.cpp:196
        data_in = { = { = {_vptr.CFile = 0x82d1da8,
      m_fd = -1, m_error = false, m_filePath = { = {
          static npos = 4294967295,
          m_pchData = 0xb793a040 ""}, }}, m_GrowBytes = 0,
    m_position = 2, m_BufferSize = 2, m_FileSize = 2, m_delete = false,
    m_buffer = 0xbf805c82 "æ\004\207\bY\b"}, = {
    _vptr.CFileDataIO = 0x82d1e34}, }
        nRank = 23632
        sender = (class CUpDownClient *) 0x8ad2b58
#7  0x080bdb7c in CClientUDPSocket::OnReceive (this=0x8ab0b50)
    at ClientUDPSocket.cpp:90
        buffer = "Å\221æ\004\207\bY\b\000\000\000\000\177\017\177\003àf¡\b°]\200¿ž\\\200¿\201\204æ¶àf¡\b\020€\\\bØ\\\200¿Léæ¶Üêæ¶\220ÒX\bØ\\\200¿\017\212æ¶Üêæ¶\220ÒX\bÐ\\\200¿Léæ¶\220ÒX\bàf¡\bø\\\200¿\177Àæ¶\220ÒX\bÀü«\bøs]\bÜ\220\034·û¡\200\002àf¡\bØ]\200¿lì\030·\220ÒX\b\001\000\000\000Ø\002\200\002 g¡\b\000\000\000\000\000\000\000\000\001\000\000\000\001\000\000\000\220ÒX\bû¡\200\002tì\\·DXh·HXh·ôå\\·tì\\·À\200g·B\001\000\000\026\000\000\000"...
        addr = {<> = {}, }
        length = 4
#8  0x08077e51 in CamuleApp::ClientUDPSocketHandler (this=0x856a4b8,
    event=@0x8bd4bd8) at amule.cpp:1980
        socket = (class CClientUDPSocket *) 0x8ab0b50
---Type to continue, or q to quit---q
Quit
(gdb) thread apply all bt

Thread 1 (Thread -1226479936 (LWP 15293)):
#0  0xb7594027 in raise () from /lib/tls/libc.so.6
#1  0xb7595747 in abort () from /lib/tls/libc.so.6
#2  0xb7742694 in __cxa_call_unexpected () from /usr/lib/libstdc++.so.5
#3  0xb77426d1 in std::terminate () from /usr/lib/libstdc++.so.5
#4  0xb7742841 in __cxa_throw () from /usr/lib/libstdc++.so.5
#5  0x080c5e02 in CUpDownClient::ProcessFileStatus (this=0x8ad2b58,
    bUdpPacket=true, data=0xbf805b40, file=0x8ab1478) at DownloadClient.cpp:323
#6  0x080be52b in CClientUDPSocket::ProcessPacket (this=0x8ab0b50,
    packet=0xbf805c82 "æ\004\207\bY\b", size=2, opcode=145 '\221',
    host=1003038804, port=4672) at ClientUDPSocket.cpp:196
#7  0x080bdb7c in CClientUDPSocket::OnReceive (this=0x8ab0b50)
    at ClientUDPSocket.cpp:90
#8  0x08077e51 in CamuleApp::ClientUDPSocketHandler (this=0x856a4b8,
    event=@0x8bd4bd8) at amule.cpp:1980
#9  0xb787d50d in wxAppConsole::HandleEvent ()
   from /usr/lib/libwx_base-2.6.so.0
#10 0xb792f19f in wxEvtHandler::ProcessEventIfMatches ()
   from /usr/lib/libwx_base-2.6.so.0
#11 0xb792e66e in wxEventHashTable::HandleEvent ()
   from /usr/lib/libwx_base-2.6.so.0
#12 0xb792f349 in wxEvtHandler::ProcessEvent ()
---Type to continue, or q to quit---
   from /usr/lib/libwx_base-2.6.so.0
#13 0xb792f0e6 in wxEvtHandler::ProcessPendingEvents ()
   from /usr/lib/libwx_base-2.6.so.0
#14 0xb787d488 in wxAppConsole::ProcessPendingEvents ()
   from /usr/lib/libwx_base-2.6.so.0
#15 0xb7ac9b89 in wxApp::WakeUpIdle () from /usr/lib/libwx_gtk2_core-2.6.so.0
#16 0xb701ac03 in g_child_watch_add () from /usr/lib/libglib-2.0.so.0
#17 0xb7017c02 in g_main_depth () from /usr/lib/libglib-2.0.so.0
#18 0xb7018c78 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#19 0xb7018fb0 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#20 0xb7019553 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
#21 0xb72e02e3 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
#22 0xb7ae4d1c in wxEventLoop::Run () from /usr/lib/libwx_gtk2_core-2.6.so.0
#23 0xb7b7daa7 in wxAppBase::MainLoop () from /usr/lib/libwx_gtk2_core-2.6.so.0
#24 0xb7b7dc08 in wxAppBase::OnRun () from /usr/lib/libwx_gtk2_core-2.6.so.0
#25 0xb78c73b0 in wxEntry () from /usr/lib/libwx_base-2.6.so.0
#26 0x0807ad59 in main (argc=1, argv=0xbf807434) at amule-gui.cpp:147

PLEASE HELP ME!!!
Title: Re: segmentation fault
Post by: Xaignar on December 06, 2005, 03:45:26 PM
Heh. That's a known bug that has been fixed in CVS. ;)
Title: Re: segmentation fault
Post by: Harp00 on December 06, 2005, 04:03:37 PM
Could you please explain me what to do?
I still not have aMule working at the moment.
Title: Re: segmentation fault
Post by: Xaignar on December 06, 2005, 04:06:02 PM
Try compiling aMule CVS with the flags suggested above.
Title: Re: segmentation fault
Post by: Harp00 on December 06, 2005, 04:19:00 PM
Quote
Originally posted by Xaignar
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. ;)

It was the first thingh i did this morning.
I received the same segmentation fault
Title: Re: segmentation fault
Post by: Xaignar on December 06, 2005, 05:12:44 PM
Hum, strange. Could you try to get the last part of the backtrace for the main thread? To do that, use "bt -20" which will get the last 20 frames.
Title: Re: segmentation fault
Post by: Harp00 on December 07, 2005, 10:28:14 AM
Quote
Originally posted by Xaignar
Hum, strange. Could you try to get the last part of the backtrace for the main thread? To do that, use "bt -20" which will get the last 20 frames.

Sure!
Before this i would like to ask you a couple of things.
Are you refering to the firtst backtrace, isn't it?
The second is about aMule 2.0.3.
Second question. I do not why downgrading to the previuous version of aMule i am getting aborted. Before installing CVS, aMule was working great. I think there is some pkgs conflict.
Anyway, I was reading everything around this site and i read about wxBase and wxGTK. Could you confirm me the last versions are the right ones? Because i read that wxGTK 2.6 does not need wxBase. Where can i check if everythingh needed by aMule is installed? I mean something like jack.
Excuse me in advance if i am saying somethingh silly.
Thanks.
Title: Re: segmentation fault
Post by: Xaignar on December 07, 2005, 11:02:21 AM
I am refering to CVS yes. The crash you've experienced with 2.0.3 is known and fixed in CVS. When using wx2.6.2, you dont need to install wxBase, that's part of the standard install. When you run configure, you will be warned if you lack any optional requirements, but aMule simply wont run if you lack any hard requirements.
Title: Re: segmentation fault
Post by: Harp00 on December 07, 2005, 11:55:14 AM
So, i removed wxBase, wxGTK and aMule and i recompiled wxBase 2.6.2 and aMule-CVS-20051207 using  flags you suggested me.

Terminated after throwing an instance of 'CInvalidPacket'

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1225890112 (LWP 11836)]
0xb764dd14 in __find_specmb () from /lib/tls/libc.so.6
(gdb) bt -20
^[

q

bt -20 does not work!

I am going to run again gdb.  ?(
Title: Re: segmentation fault
Post by: Xaignar on December 07, 2005, 11:59:03 AM
Hum, I thought I had caught all of those (this may be a different bug). If you get that again, just do a normal backtrace, and if "bt -20" doesn't work on your system, just keep pressing enter when running the "bt" command, untill you get at the end of the list.
Title: Re: segmentation fault
Post by: Harp00 on December 07, 2005, 12:05:10 PM
I tried again with bt -20, but i had to kill gdb again.
So, i can post only the full backtrace.

Terminated after throwing an instance of 'CInvalidPacket'

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1226393920 (LWP 11903)]
0xb75ba8c7 in vfprintf () from /lib/tls/libc.so.6
(gdb) bt
#0  0xb75ba8c7 in vfprintf () from /lib/tls/libc.so.6
#1  0xb75be954 in buffered_vfprintf () from /lib/tls/libc.so.6
#2  0xb75ba982 in vfprintf () from /lib/tls/libc.so.6
#3  0xb75c326f in fprintf () from /lib/tls/libc.so.6
#4  0x0826ec44 in OnUnhandledException () at MuleDebug.cpp:68
#5  0xb7757694 in __cxa_call_unexpected () from /usr/lib/libstdc++.so.5
#6  0xb77576d1 in std::terminate () from /usr/lib/libstdc++.so.5
#7  0xb77578ab in __cxa_rethrow () from /usr/lib/libstdc++.so.5
#8  0x0826ec5a in OnUnhandledException () at MuleDebug.cpp:72
#9  0xb7757694 in __cxa_call_unexpected () from /usr/lib/libstdc++.so.5
#10 0xb77576d1 in std::terminate () from /usr/lib/libstdc++.so.5
#11 0xb77578ab in __cxa_rethrow () from /usr/lib/libstdc++.so.5
#12 0x0826ec5a in OnUnhandledException () at MuleDebug.cpp:72
#13 0xb7757694 in __cxa_call_unexpected () from /usr/lib/libstdc++.so.5
#14 0xb77576d1 in std::terminate () from /usr/lib/libstdc++.so.5
#15 0xb77578ab in __cxa_rethrow () from /usr/lib/libstdc++.so.5
#16 0x0826ec5a in OnUnhandledException () at MuleDebug.cpp:72
#17 0xb7757694 in __cxa_call_unexpected () from /usr/lib/libstdc++.so.5
#18 0xb77576d1 in std::terminate () from /usr/lib/libstdc++.so.5
#19 0xb77578ab in __cxa_rethrow () from /usr/lib/libstdc++.so.5
#20 0x0826ec5a in OnUnhandledException () at MuleDebug.cpp:72
#21 0xb7757694 in __cxa_call_unexpected () from /usr/lib/libstdc++.so.5
#22 0xb77576d1 in std::terminate () from /usr/lib/libstdc++.so.5
---Type to continue, or q to quit---q
Quit
(gdb) bt full
#0  0xb75ba8c7 in vfprintf () from /lib/tls/libc.so.6
No symbol table info available.
#1  0xb75be954 in buffered_vfprintf () from /lib/tls/libc.so.6
No symbol table info available.
#2  0xb75ba982 in vfprintf () from /lib/tls/libc.so.6
No symbol table info available.
#3  0xb75c326f in fprintf () from /lib/tls/libc.so.6
No symbol table info available.
#4  0x0826ec44 in OnUnhandledException () at MuleDebug.cpp:68
        name = 0x82f4194 "14CInvalidPacket"
        status = 0
        dem = 0x90ac828 "CInvalidPacket"
        t = (struct std::type_info *) 0x82f4188
#5  0xb7757694 in __cxa_call_unexpected () from /usr/lib/libstdc++.so.5
No symbol table info available.
#6  0xb77576d1 in std::terminate () from /usr/lib/libstdc++.so.5
No symbol table info available.
#7  0xb77578ab in __cxa_rethrow () from /usr/lib/libstdc++.so.5
No symbol table info available.
#8  0x0826ec5a in OnUnhandledException () at MuleDebug.cpp:72
        name = 0x82f4194 "14CInvalidPacket"
        status = 0
        dem = 0x90be680 "hà9\t\016"
---Type to continue, or q to quit---q
Quit
(gdb) thread apply all bt

Thread 4 (Thread -1244673104 (LWP 11911)):
#0  0xb7ed1192 in pthread_cond_timedwait@@GLIBC_2.3.2 ()
   from /lib/tls/libpthread.so.0
#1  0xb7898276 in wxConditionInternal::WaitTimeout ()
   from /usr/lib/libwx_base-2.6.so.0
#2  0xb789a806 in wxCondition::WaitTimeout () from /usr/lib/libwx_base-2.6.so.0
#3  0xb78986a0 in wxSemaphoreInternal::WaitTimeout ()
   from /usr/lib/libwx_base-2.6.so.0
#4  0xb789ab26 in wxSemaphore::WaitTimeout () from /usr/lib/libwx_base-2.6.so.0
#5  0x08224d67 in CTimerThread::Entry (this=0x8617858) at Timer.cpp:66
#6  0xb789898a in wxThreadInternal::PthreadStart ()
   from /usr/lib/libwx_base-2.6.so.0
#7  0xb789880f in wxPthreadStart () from /usr/lib/libwx_base-2.6.so.0
#8  0xb7ece0fb in start_thread () from /lib/tls/libpthread.so.0
#9  0xb763899e in clone () from /lib/tls/libc.so.6

Thread 2 (Thread -1227895888 (LWP 11909)):
#0  0xb7ed3cbc in __nanosleep_nocancel () from /lib/tls/libpthread.so.0
#1  0xb78a0b7a in wxMicroSleep () from /usr/lib/libwx_base-2.6.so.0
#2  0xb78a0ba5 in wxMilliSleep () from /usr/lib/libwx_base-2.6.so.0
#3  0xb7898fdf in wxThread::Sleep () from /usr/lib/libwx_base-2.6.so.0
#4  0x08127100 in UploadBandwidthThrottler::Entry (this=0x8aef568)
---Type to continue, or q to quit---q
 at UploadBandQuit
#0  0xb75ba8c7 in vfprintf () from /lib/tls/libc.so.6
(gdb) q
The program is running.  Exit anyway?

You are very kind, Xaignar.
Thank you.
Title: Re: segmentation fault
Post by: Harp00 on December 07, 2005, 12:57:41 PM
Sorry, i think we reply together.
I am running gdb again.  ;(
Title: Re: segmentation fault
Post by: Harp00 on December 07, 2005, 01:03:14 PM
:O I pressed enter billion times. It does not end.

#19224 0xb77bf6d1 in std::terminate () from /usr/lib/libstdc++.so.5
#19225 0xb77bf8ab in __cxa_rethrow () from /usr/lib/libstdc++.so.5
#19226 0x0826ec5a in OnUnhandledException () at MuleDebug.cpp:72
#19227 0xb77bf694 in __cxa_call_unexpected () from /usr/lib/libstdc++.so.5

This time i received a different error before segmentation fault.


Terminated after throwing an instance of 'wxString'

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1226201408 (LWP 11921)]
0xb75e98c7 in vfprintf () from /lib/tls/libc.so.6
(gdb) bt
#0  0xb75e98c7 in vfprintf () from /lib/tls/libc.so.6
#1  0xb75ed954 in buffered_vfprintf () from /lib/tls/libc.so.6
#2  0xb75e9982 in vfprintf () from /lib/tls/libc.so.6
#3  0xb75f226f in fprintf () from /lib/tls/libc.so.6
#4  0x0826ec44 in OnUnhandledException () at MuleDebug.cpp:68
#5  0xb7786694 in __cxa_call_unexpected () from /usr/lib/libstdc++.so.5
#6  0xb77866d1 in std::terminate () from /usr/lib/libstdc++.so.5
#7  0xb77868ab in __cxa_rethrow () from /usr/lib/libstdc++.so.5
#8  0x0826ec5a in OnUnhandledException () at MuleDebug.cpp:72
#9  0xb7786694 in __cxa_call_unexpected () from /usr/lib/libstdc++.so.5
#10 0xb77866d1 in std::terminate () from /usr/lib/libstdc++.so.5
#11 0xb77868ab in __cxa_rethrow () from /usr/lib/libstdc++.so.5
#12 0x0826ec5a in OnUnhandledException () at MuleDebug.cpp:72
#13 0xb7786694 in __cxa_call_unexpected () from /usr/lib/libstdc++.so.5
#14 0xb77866d1 in std::terminate () from /usr/lib/libstdc++.so.5
#15 0xb77868ab in __cxa_rethrow () from /usr/lib/libstdc++.so.5
#16 0x0826ec5a in OnUnhandledException () at MuleDebug.cpp:72
#17 0xb7786694 in __cxa_call_unexpected () from /usr/lib/libstdc++.so.5
#18 0xb77866d1 in std::terminate () from /usr/lib/libstdc++.so.5
#19 0xb77868ab in __cxa_rethrow () from /usr/lib/libstdc++.so.5
#20 0x0826ec5a in OnUnhandledException () at MuleDebug.cpp:72
#21 0xb7786694 in __cxa_call_unexpected () from /usr/lib/libstdc++.so.5
#22 0xb77866d1 in std::terminate () from /usr/lib/libstdc++.so.5
---Type to continue, or q to quit---q
Quit
(gdb) bt full
#0  0xb75e98c7 in vfprintf () from /lib/tls/libc.so.6
No symbol table info available.
#1  0xb75ed954 in buffered_vfprintf () from /lib/tls/libc.so.6
No symbol table info available.
#2  0xb75e9982 in vfprintf () from /lib/tls/libc.so.6
No symbol table info available.
#3  0xb75f226f in fprintf () from /lib/tls/libc.so.6
No symbol table info available.
#4  0x0826ec44 in OnUnhandledException () at MuleDebug.cpp:68
        name = 0x82f41a5 "8wxString"
        status = 0
        dem = 0x8a118a0 "wxString"
        t = (struct std::type_info *) 0x82f417c
#5  0xb7786694 in __cxa_call_unexpected () from /usr/lib/libstdc++.so.5
No symbol table info available.
#6  0xb77866d1 in std::terminate () from /usr/lib/libstdc++.so.5
No symbol table info available.
#7  0xb77868ab in __cxa_rethrow () from /usr/lib/libstdc++.so.5
No symbol table info available.
#8  0x0826ec5a in OnUnhandledException () at MuleDebug.cpp:72
        name = 0x82f41a5 "8wxString"
        status = 0
        dem = 0x8c79458 "èLÉ\b\b"
---Type to continue, or q to quit---q
Quit
(gdb) thread apply all bt

Thread 4 (Thread -1244480592 (LWP 11929)):
#0  0xb7f00192 in pthread_cond_timedwait@@GLIBC_2.3.2 ()
   from /lib/tls/libpthread.so.0
#1  0xb78c7276 in wxConditionInternal::WaitTimeout ()
   from /usr/lib/libwx_base-2.6.so.0
#2  0xb78c9806 in wxCondition::WaitTimeout () from /usr/lib/libwx_base-2.6.so.0
#3  0xb78c76a0 in wxSemaphoreInternal::WaitTimeout ()
   from /usr/lib/libwx_base-2.6.so.0
#4  0xb78c9b26 in wxSemaphore::WaitTimeout () from /usr/lib/libwx_base-2.6.so.0
#5  0x08224d67 in CTimerThread::Entry (this=0x8617858) at Timer.cpp:66
#6  0xb78c798a in wxThreadInternal::PthreadStart ()
   from /usr/lib/libwx_base-2.6.so.0
#7  0xb78c780f in wxPthreadStart () from /usr/lib/libwx_base-2.6.so.0
#8  0xb7efd0fb in start_thread () from /lib/tls/libpthread.so.0
#9  0xb766799e in clone () from /lib/tls/libc.so.6

Thread 2 (Thread -1227703376 (LWP 11927)):
#0  0xb7f02cbc in __nanosleep_nocancel () from /lib/tls/libpthread.so.0
#1  0xb78cfb7a in wxMicroSleep () from /usr/lib/libwx_base-2.6.so.0
#2  0xb78cfba5 in wxMilliSleep () from /usr/lib/libwx_base-2.6.so.0
#3  0xb78c7fdf in wxThread::Sleep () from /usr/lib/libwx_base-2.6.so.0
#4  0x08127100 in UploadBandwidthThrottler::Entry (this=0x8aef568)
---Type to continue, or q to quit---q
 at UploadBandQuit
#0  0xb75e98c7 in vfprintf () from /lib/tls/libc.so.6
(gdb)
Title: Re: segmentation fault
Post by: Xaignar on December 07, 2005, 02:04:51 PM
Could you try running "make check" in the amule source dir and let me know if the tests pass?
Title: Re: segmentation fault
Post by: Harp00 on December 07, 2005, 03:22:13 PM
The amule source dir is the one were i usually do ./configure && make && make install?
If yes here is the output of make check:

Terminated after throwing an instance of 'CEOFException'
/bin/sh: line 1:  3315 Segmentation fault      ${dir}$tst
FAIL: FileDataIOTest
================================
3 of 5 tests failed
Please report to admin@amule.org
================================
make[3]: *** [check-TESTS] Error 1
make[3]: Leaving directory `/home/franco/Programmi/aMule/amule-cvs/unittests/tests'
make[2]: *** [check-am] Error 2
make[2]: Leaving directory `/home/franco/Programmi/aMule/amule-cvs/unittests/tests'
make[1]: *** [check-recursive] Error 1
make[1]: Leaving directory `/home/franco/Programmi/aMule/amule-cvs/unittests'
make: *** [check-recursive] Error 1
Title: Re: segmentation fault
Post by: Xaignar on December 07, 2005, 03:33:15 PM
Yeah, as I suspected. I'm betting that the 2 other failures are 'FormatTest' and 'RangeMapTest', which are the other tests that use exceptions. It seems that there is something wrong with your system, or possibly libraries.

Could you tell me which configure options you used when building wxWidgets, and paste the output of 'wx-config --cxxflags', where wx-config should obviously be the wx-config executable you used with aMule.
Title: Re: segmentation fault
Post by: Harp00 on December 10, 2005, 09:22:24 AM
what an unlucky upgrade.
Sorry for my late, but i decided to reinstall my Slackware in a different partition, so i will use aMule 2.0.3.
Quote
Could you tell me which configure options you used when building wxWidgets, and paste the output of 'wx-config --cxxflags', where wx-config should obviously be the wx-config executable you used with aMule.

Could you gently explain me better what you mean?
Title: Re: segmentation fault
Post by: Xaignar on December 10, 2005, 12:23:17 PM
If you've compiled wxWidgets yourself, tell me which flags you called "configure" with. In any case, wxWidgets uses a configuration util (which you can manually specify, or let aMule find). If you didn't specify it manually, then you should be able to call it as "wx-config". Call it with the argument "--cxxflags" and post the output.

For example, on my system:
Code: [Select]
$ wx-config --cxxflags
-I/usr/lib/wx/include/gtk2-unicode-release-2.6 -I/usr/include/wx-2.6 -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D_LARGEFILE_SOURCE=1 -DNO_GCC_PRAGMA