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

Author Topic: crash since R10289  (Read 5974 times)

Schuttwegraeumer

  • Sr. Member
  • ****
  • Karma: 2
  • Offline Offline
  • Posts: 421
crash since R10289
« on: September 24, 2010, 06:25:11 PM »

The 10288 was OK but since 10289 the amuled crashes after running a lot of Minutes or sometimes a lot of hours.
I startet the amuled in a xterm and copy and pasted this msg:

Quote
2010-09-24 18:16:21: Speicher unfertige Datei 168 von 168
 2010-09-24 18:16:21: Alle unfertigen Dateien gespeichert.
 2010-09-24 18:16:21: aMule-Herunterfahren abgeschlossen.
   aMule Version: aMuleD SVN compiled with wxGTK2 v2.8.10 (Snapshot: rev. 10290)

Terminated after throwing an instance of 'CFormat'
   backtrace:
[2] ?? in amuled[0x42ebde]
[3] wxEntry(int&, wchar_t**) in /usr/lib/libwx_baseu-2.8.so.0[0x7fcf2daf64c9]
[4] ?? in amuled[0x42a402]
[5] __libc_start_main in /lib/libc.so.6[0x7fcf2cf54c4d]
[6] ?? in amuled[0x429a89]

Aborted
schutti@hell:~$

System is a Ubuntu 64bit on a Sempron 3000+
Logged

Stu Redman

  • Administrator
  • Hero Member
  • *****
  • Karma: 214
  • Offline Offline
  • Posts: 3739
  • Engines screaming
Re: crash since R10289
« Reply #1 on: September 24, 2010, 08:34:42 PM »

Looks like one of the umpty CFormat changes went bad.  :-[

Please rebuild with --enable-debug to get a useful backtrace.
Logged
The image of mother goddess, lying dormant in the eyes of the dead, the sheaf of the corn is broken, end the harvest, throw the dead on the pyre -- Iron Maiden, Isle of Avalon

Schuttwegraeumer

  • Sr. Member
  • ****
  • Karma: 2
  • Offline Offline
  • Posts: 421
Re: crash since R10289
« Reply #2 on: September 25, 2010, 12:37:21 AM »

The backtrace:

Quote
  2010-09-25 00:31:44: DownloadQueue.cpp(98): Speicher unfertige Datei 167 von 167
 2010-09-25 00:31:44: DownloadQueue.cpp(101): Alle unfertigen Dateien gespeichert.
 2010-09-25 00:31:45: amule.cpp(335): aMule-Herunterfahren abgeschlossen.
   aMule Version: aMuleD SVN compiled with wxGTK2 v2.8.10 (Snapshot: rev. 10290)

Terminated after throwing an instance of 'CFormat'
   backtrace:
[2] ?? in /usr/local/bin/amuled[0x432e5f]
[3] wxEntry(int&, wchar_t**) in /usr/lib/libwx_baseu-2.8.so.0[0x7ffff6b0e4c9]
[4] ?? in /usr/local/bin/amuled[0x42e882]
[5] __libc_start_main in /lib/libc.so.6[0x7ffff5f6cc4d]
[6] ?? in /usr/local/bin/amuled[0x42c4b9]


Program received signal SIGABRT, Aborted.
0x00007ffff5f81a75 in raise () from /lib/libc.so.6
(gdb) bt full
#0  0x00007ffff5f81a75 in raise () from /lib/libc.so.6
No symbol table info available.
#1  0x00007ffff5f855c0 in abort () from /lib/libc.so.6
No symbol table info available.
#2  0x000000000062b675 in ?? ()
No symbol table info available.
#3  0x0000000000432e5f in ?? ()
No symbol table info available.
#4  0x00007ffff6b0e4c9 in wxEntry(int&, wchar_t**) ()
   from /usr/lib/libwx_baseu-2.8.so.0
No symbol table info available.
#5  0x000000000042e882 in ?? ()
No symbol table info available.
#6  0x00007ffff5f6cc4d in __libc_start_main () from /lib/libc.so.6
No symbol table info available.
#7  0x000000000042c4b9 in ?? ()
No symbol table info available.
#8  0x00007fffffffe368 in ?? ()
No symbol table info available.
#9  0x000000000000001c in ?? ()
No symbol table info available.
#10 0x0000000000000001 in ?? ()
No symbol table info available.
---Type <return> to continue, or q <return> to quit---
#11 0x00007fffffffe622 in ?? ()
No symbol table info available.
#12 0x0000000000000000 in ?? ()
No symbol table info available.
(gdb)
Logged

Stu Redman

  • Administrator
  • Hero Member
  • *****
  • Karma: 214
  • Offline Offline
  • Posts: 3739
  • Engines screaming
Re: crash since R10289
« Reply #3 on: September 25, 2010, 11:04:19 AM »

Please rebuild with --enable-debug to get a useful backtrace.
Logged
The image of mother goddess, lying dormant in the eyes of the dead, the sheaf of the corn is broken, end the harvest, throw the dead on the pyre -- Iron Maiden, Isle of Avalon

Schuttwegraeumer

  • Sr. Member
  • ****
  • Karma: 2
  • Offline Offline
  • Posts: 421
Re: crash since R10289
« Reply #4 on: September 25, 2010, 02:37:32 PM »

Please rebuild with --enable-debug to get a useful backtrace.

Yes, i did.

Quote
./configure --enable-debug --enable-optimize --disable-ccache  --disable-upnp --disable-xas --enable-alc --enable-alcc --disable-xas --enable-amulecmd --enable-webserver --enable-amule-daemon --enable-amule-gui --enable-mmap --enable-fileview
Logged

Schuttwegraeumer

  • Sr. Member
  • ****
  • Karma: 2
  • Offline Offline
  • Posts: 421
Re: crash since R10289
« Reply #5 on: September 25, 2010, 06:26:20 PM »

Here again:

Quote
(gdb) bt
#0  0x00007ffff5f81a75 in raise () from /lib/libc.so.6
#1  0x00007ffff5f855c0 in abort () from /lib/libc.so.6
#2  0x00000000006e8938 in ?? ()
#3  0x000000000043f395 in ?? ()
#4  0x00007ffff6b0e4c9 in wxEntry(int&, wchar_t**) ()
   from /usr/lib/libwx_baseu-2.8.so.0
#5  0x000000000042c820 in ?? ()
#6  0x00007ffff5f6cc4d in __libc_start_main () from /lib/libc.so.6
#7  0x000000000042c649 in ?? ()
#8  0x00007fffffffe368 in ?? ()
#9  0x000000000000001c in ?? ()
#10 0x0000000000000001 in ?? ()
#11 0x00007fffffffe622 in ?? ()
#12 0x0000000000000000 in ?? ()
(gdb)



(gdb) bt full
#0  0x00007ffff5f81a75 in raise () from /lib/libc.so.6
No symbol table info available.
#1  0x00007ffff5f855c0 in abort () from /lib/libc.so.6
No symbol table info available.
#2  0x00000000006e8938 in ?? ()
No symbol table info available.
#3  0x000000000043f395 in ?? ()
No symbol table info available.
#4  0x00007ffff6b0e4c9 in wxEntry(int&, wchar_t**) ()
   from /usr/lib/libwx_baseu-2.8.so.0
No symbol table info available.
#5  0x000000000042c820 in ?? ()
No symbol table info available.
#6  0x00007ffff5f6cc4d in __libc_start_main () from /lib/libc.so.6
No symbol table info available.
#7  0x000000000042c649 in ?? ()
No symbol table info available.
#8  0x00007fffffffe368 in ?? ()
No symbol table info available.
#9  0x000000000000001c in ?? ()
No symbol table info available.
#10 0x0000000000000001 in ?? ()
No symbol table info available.
---Type <return> to continue, or q <return> to quit---

---Type <return> to continue, or q <return> to quit---
#11 0x00007fffffffe622 in ?? ()
No symbol table info available.
#12 0x0000000000000000 in ?? ()
No symbol table info available.
(gdb)


(gdb) thread apply all bt

Thread 1 (Thread 0x7ffff7fcd720 (LWP 27707)):
#0  0x00007ffff5f81a75 in raise () from /lib/libc.so.6
#1  0x00007ffff5f855c0 in abort () from /lib/libc.so.6
#2  0x00000000006e8938 in ?? ()
#3  0x000000000043f395 in ?? ()
#4  0x00007ffff6b0e4c9 in wxEntry(int&, wchar_t**) ()
   from /usr/lib/libwx_baseu-2.8.so.0
#5  0x000000000042c820 in ?? ()
#6  0x00007ffff5f6cc4d in __libc_start_main () from /lib/libc.so.6
#7  0x000000000042c649 in ?? ()
#8  0x00007fffffffe368 in ?? ()
#9  0x000000000000001c in ?? ()
#10 0x0000000000000001 in ?? ()
#11 0x00007fffffffe622 in ?? ()
#12 0x0000000000000000 in ?? ()
(gdb)




compiled with:

Code: [Select]
./configure --enable-debug --disable-optimize --disable-ccache  --disable-upnp --enable-alc --enable-alcc --disable-xas --enable-amulecmd --enable-webserver --enable-amule-daemon --enable-amule-gui --enable-mmap --enable-fileview
Logged

Stu Redman

  • Administrator
  • Hero Member
  • *****
  • Karma: 214
  • Offline Offline
  • Posts: 3739
  • Engines screaming
Re: crash since R10289
« Reply #6 on: September 25, 2010, 07:35:09 PM »

As you can see, symbol table info is missing. Did you make clean after configure? Did you somehow strip the executable?
Logged
The image of mother goddess, lying dormant in the eyes of the dead, the sheaf of the corn is broken, end the harvest, throw the dead on the pyre -- Iron Maiden, Isle of Avalon

Schuttwegraeumer

  • Sr. Member
  • ****
  • Karma: 2
  • Offline Offline
  • Posts: 421
Re: crash since R10289
« Reply #7 on: September 25, 2010, 07:49:28 PM »

As you can see, symbol table info is missing. Did you make clean after configure? Did you somehow strip the executable?
I delete the dir after the compiling.
I use a dir in the user dir on my ubuntu, not a dir in /usr*

1.) unrar
2.) configure
3.) make
4.) "checkinstall --install=no --fstrans=yes"

I will run "make clean" after configure.
please wait.
Logged

GonoszTopi

  • The current man in charge of most things.
  • Administrator
  • Hero Member
  • *****
  • Karma: 169
  • Offline Offline
  • Posts: 2685
Re: crash since R10289
« Reply #8 on: September 25, 2010, 09:58:35 PM »

Please omit step #4 and either run amule from the build directory or use make install if you want to install it somewhere. I think checkinstall might strip the executables.
Logged
concordia cum veritate

Stu Redman

  • Administrator
  • Hero Member
  • *****
  • Karma: 214
  • Offline Offline
  • Posts: 3739
  • Engines screaming
Re: crash since R10289
« Reply #9 on: September 25, 2010, 10:13:27 PM »

I will run "make clean" after configure.
make clean is not required (or useful) when building in a clean directory of course. Just follow GonoszTopi's instructions.
Logged
The image of mother goddess, lying dormant in the eyes of the dead, the sheaf of the corn is broken, end the harvest, throw the dead on the pyre -- Iron Maiden, Isle of Avalon

Schuttwegraeumer

  • Sr. Member
  • ****
  • Karma: 2
  • Offline Offline
  • Posts: 421
Re: crash since R10289
« Reply #10 on: September 25, 2010, 10:25:49 PM »

I will run "make clean" after configure.
make clean is not required (or useful) when building in a clean directory of course. Just follow GonoszTopi's instructions.

Ok,now i started it from the build dir.
Its running without crash since 20:00.
please wait.
Logged

Schuttwegraeumer

  • Sr. Member
  • ****
  • Karma: 2
  • Offline Offline
  • Posts: 421
Re: crash since R10289
« Reply #11 on: September 25, 2010, 11:17:38 PM »

Better:

Quote
(gdb) bt
#0  0x00007ffff5f81a75 in raise () from /lib/libc.so.6
#1  0x00007ffff5f855c0 in abort () from /lib/libc.so.6
#2  0x00000000006e8a94 in OnUnhandledException () at MuleDebug.cpp:104
#3  0x000000000043f395 in CamuleApp::OnUnhandledException (this=0xaea870)
    at amule.cpp:1960
#4  0x00007ffff6b0e4c9 in wxEntry(int&, wchar_t**) ()
   from /usr/lib/libwx_baseu-2.8.so.0
#5  0x000000000042c820 in main (argc=1, argv=0x7fffffffe2f8) at amuled.cpp:172
(gdb)



(gdb) bt full
#0  0x00007ffff5f81a75 in raise () from /lib/libc.so.6
No symbol table info available.
#1  0x00007ffff5f855c0 in abort () from /lib/libc.so.6
No symbol table info available.
#2  0x00000000006e8a94 in OnUnhandledException () at MuleDebug.cpp:104
        t = 0x786ff0
        output = 0x7ffff62cb860
#3  0x000000000043f395 in CamuleApp::OnUnhandledException (this=0xaea870)
    at amule.cpp:1960
No locals.
#4  0x00007ffff6b0e4c9 in wxEntry(int&, wchar_t**) ()
   from /usr/lib/libwx_baseu-2.8.so.0
No symbol table info available.
#5  0x000000000042c820 in main (argc=1, argv=0x7fffffffe2f8) at amuled.cpp:172
No locals.
(gdb)


(gdb) thread apply all bt

Thread 1 (Thread 0x7ffff7fcd720 (LWP 17278)):
#0  0x00007ffff5f81a75 in raise () from /lib/libc.so.6
#1  0x00007ffff5f855c0 in abort () from /lib/libc.so.6
#2  0x00000000006e8a94 in OnUnhandledException () at MuleDebug.cpp:104
#3  0x000000000043f395 in CamuleApp::OnUnhandledException (this=0xaea870)
    at amule.cpp:1960
#4  0x00007ffff6b0e4c9 in wxEntry(int&, wchar_t**) ()
   from /usr/lib/libwx_baseu-2.8.so.0
#5  0x000000000042c820 in main (argc=1, argv=0x7fffffffe2f8) at amuled.cpp:172
(gdb)
?
Logged

Schuttwegraeumer

  • Sr. Member
  • ****
  • Karma: 2
  • Offline Offline
  • Posts: 421
Re: crash since R10289
« Reply #12 on: September 25, 2010, 11:24:29 PM »

The hint with "no checkinstall" was a little bit too late.
I ran the amuled direct from the build dir but the .deb was made.
make is running at the moment to make a build completly without checkinstall.
Logged

Schuttwegraeumer

  • Sr. Member
  • ****
  • Karma: 2
  • Offline Offline
  • Posts: 421
Re: crash since R10289
« Reply #13 on: September 26, 2010, 01:56:11 AM »

Ok, this build is completly without checkinstall, direct started after build in the build dir:

Quote
(gdb) bt
#0  0x00007ffff5f81a75 in raise () from /lib/libc.so.6
#1  0x00007ffff5f855c0 in abort () from /lib/libc.so.6
#2  0x00000000006e8a94 in OnUnhandledException () at MuleDebug.cpp:104
#3  0x000000000043f395 in CamuleApp::OnUnhandledException (this=0xaea870)
    at amule.cpp:1960
#4  0x00007ffff6b0e4c9 in wxEntry(int&, wchar_t**) ()
   from /usr/lib/libwx_baseu-2.8.so.0
#5  0x000000000042c820 in main (argc=1, argv=0x7fffffffe2f8) at amuled.cpp:172
(gdb)

(gdb) bt full
#0  0x00007ffff5f81a75 in raise () from /lib/libc.so.6
No symbol table info available.
#1  0x00007ffff5f855c0 in abort () from /lib/libc.so.6
No symbol table info available.
#2  0x00000000006e8a94 in OnUnhandledException () at MuleDebug.cpp:104
        t = 0x786ff0
        output = 0x7ffff62cb860
#3  0x000000000043f395 in CamuleApp::OnUnhandledException (this=0xaea870)
    at amule.cpp:1960
No locals.
#4  0x00007ffff6b0e4c9 in wxEntry(int&, wchar_t**) ()
   from /usr/lib/libwx_baseu-2.8.so.0
No symbol table info available.
#5  0x000000000042c820 in main (argc=1, argv=0x7fffffffe2f8) at amuled.cpp:172
No locals.
(gdb)


(gdb) thread apply all bt

Thread 1 (Thread 0x7ffff7fcd720 (LWP 31435)):
#0  0x00007ffff5f81a75 in raise () from /lib/libc.so.6
#1  0x00007ffff5f855c0 in abort () from /lib/libc.so.6
#2  0x00000000006e8a94 in OnUnhandledException () at MuleDebug.cpp:104
#3  0x000000000043f395 in CamuleApp::OnUnhandledException (this=0xaea870)
    at amule.cpp:1960
#4  0x00007ffff6b0e4c9 in wxEntry(int&, wchar_t**) ()
   from /usr/lib/libwx_baseu-2.8.so.0
#5  0x000000000042c820 in main (argc=1, argv=0x7fffffffe2f8) at amuled.cpp:172
(gdb)


configure:
Code: [Select]
./configure --enable-debug --disable-optimize --disable-ccache  --disable-upnp --enable-alc --enable-alcc --disable-xas --enable-amulecmd --enable-webserver --enable-amule-daemon --enable-amule-gui --enable-mmap --enable-fileview
Logged

GonoszTopi

  • The current man in charge of most things.
  • Administrator
  • Hero Member
  • *****
  • Karma: 169
  • Offline Offline
  • Posts: 2685
Re: crash since R10289
« Reply #14 on: September 26, 2010, 10:28:36 AM »

Seemingly somewhere we erroneously throw a CFormat object where we used to throw wxString. The latter would have been catched, but we don't expect the former.

The bad thing with uncaught exceptions is that we can't find out where they came from (because the stack is already unwinded).

The following change might be the cause:
Code: [Select]
@@ -1244,7 +1244,7 @@ void CKademliaUDPListener::ProcessPublishResponse(const uint8_t *packetData, uin
 void CKademliaUDPListener::Process2PublishResponse(const uint8_t *packetData, uint32_t lenPacket, uint32_t ip, uint16_t port, const CKadUDPKey& senderKey)
 {
        if (!IsOnOutTrackList(ip, KADEMLIA2_PUBLISH_KEY_REQ) && !IsOnOutTrackList(ip, KADEMLIA2_PUBLISH_SOURCE_REQ) && !IsOnOutTrackList(ip, KADEMLIA2_PUBLISH_NOTES_REQ)) {
-               throw wxString::Format(wxT("***NOTE: Received unrequested response packet, size (%u) in "), lenPacket) + wxString::FromAscii(__FUNCTION__);
+               throw (CFormat(wxT("***NOTE: Received unrequested response packet, size (%u) in %s")) % lenPacket % wxString::FromAscii(__FUNCTION__));
        }
        CMemFile bio(packetData, lenPacket);
        CUInt128 file = bio.ReadUInt128();
Until it's fixed disabling Kademlia should make the problem go away.
Logged
concordia cum veritate
Pages: [1] 2