aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: 2005-04-15 Crashes after a while  (Read 5023 times)

ruiz

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 6
2005-04-15 Crashes after a while
« on: April 15, 2005, 09:49:05 PM »

Hi all,

aMule crashes after a random time. I'm on Debian Sarge. dpkg -l | grep wx output:
ii  libwxgtk2.5.3  2.5.3.2-2      wxWidgets Cross-platform C++ GUI toolkit (GT

I installed aMule and wxWidgets from the vollstreckernet debian repository but with other sources I'm in the same situation.

Sorry for my bad english.  :P

Code: [Select]
(gdb) run
Starting program: /usr/bin/amule
(no debugging symbols found)
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread 1092100960 (LWP 6233)]
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols foun
Initialising aMule
Checking if there is an instance already running...
(no debugging symbols found)
(no debugging symbols found)
Loading temp files from /home/ruiz/.aMule/Temp.
Loading PartFile 8 of 8
All PartFiles Loaded.
ListenSocket: Ok.

External connections disabled in config file
*** Server UDP socket (TCP+3) at 0.0.0.0:4665
*** TCP socket (TCP) listening on 0.0.0.0:4662
*** Client UDP socket (extended eMule) at 0.0.0.0:4672
Adding file /home/ruiz/.aMule/Temp/008.part.met to shares
Adding file /home/ruiz/.aMule/Temp/006.part.met to shares
[New Thread 1102445488 (LWP 6239)]
[New Thread 1110834096 (LWP 6240)]
[Thread 1110834096 (zombie) exited]
[Thread 1102445488 (zombie) exited]
[New Thread 1110834096 (LWP 6241)]
[Thread 1110834096 (zombie) exited]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1092100960 (LWP 6233)]
0x409b6b2a in mallopt () from /lib/tls/libc.so.6

Code: [Select]
(gdb) bt
#0  0x409b6b2a in mallopt () from /lib/tls/libc.so.6
#1  0x409b5a4b in free () from /lib/tls/libc.so.6
#2  0x408efd23 in operator delete () from /usr/lib/libstdc++.so.5
#3  0x408efd7f in operator delete[] () from /usr/lib/libstdc++.so.5
#4  0x08108bfd in wxCommandEvent::~wxCommandEvent ()
#5  0x081086f2 in wxCommandEvent::~wxCommandEvent ()
#6  0x08090bc6 in wxImageList::~wxImageList ()
#7  0x08245227 in wxSpinEvent::GetClassInfo ()
#8  0x08246fe0 in wxSpinEvent::GetClassInfo ()
#9  0x08074ca5 in wxString::~wxString ()
#10 0x4059bd78 in wxAppConsole::HandleEvent () from /usr/lib/libwx_baseu-2.5.so.3
#11 0x40649850 in wxEvtHandler::ProcessEventIfMatches () from /usr/lib/libwx_baseu-2.5.so.3
#12 0x40648ccf in wxEventHashTable::HandleEvent () from /usr/lib/libwx_baseu-2.5.so.3
#13 0x406499f0 in wxEvtHandler::ProcessEvent () from /usr/lib/libwx_baseu-2.5.so.3
#14 0x4040fd5a in wxTimerBase::Notify () from /usr/lib/libwx_gtk2u_core-2.5.so.3
#15 0x402fec9d in timeout_callback () from /usr/lib/libwx_gtk2u_core-2.5.so.3
#16 0x40f71ddc in g_main_context_wakeup () from /usr/lib/libglib-2.0.so.0
#17 0x40f6f6c2 in g_main_depth () from /usr/lib/libglib-2.0.so.0
#18 0x40f70748 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#19 0x40f70a80 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#20 0x40f71023 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
#21 0x40b978f3 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
#22 0x402f51c8 in wxEventLoop::Run () from /usr/lib/libwx_gtk2u_core-2.5.so.3
#23 0x40385b83 in wxAppBase::MainLoop () from /usr/lib/libwx_gtk2u_core-2.5.so.3
#24 0x40385cea in wxAppBase::OnRun () from /usr/lib/libwx_gtk2u_core-2.5.so.3
#25 0x405dfa53 in wxEntry () from /usr/lib/libwx_baseu-2.5.so.3
#26 0x405dfb2d in wxEntry () from /usr/lib/libwx_baseu-2.5.so.3
#27 0x08078ae8 in wxStringInputStream::~wxStringInputStream ()
#28 0x40959904 in __libc_start_main () from /lib/tls/libc.so.6
#29 0x08068e21 in ?? ()

Code: [Select]
(gdb) bt full
#0  0x409b6b2a in mallopt () from /lib/tls/libc.so.6
No symbol table info available.
#1  0x409b5a4b in free () from /lib/tls/libc.so.6
No symbol table info available.
#2  0x408efd23 in operator delete () from /usr/lib/libstdc++.so.5
No symbol table info available.
#3  0x408efd7f in operator delete[] () from /usr/lib/libstdc++.so.5
No symbol table info available.
#4  0x08108bfd in wxCommandEvent::~wxCommandEvent ()
No symbol table info available.
#5  0x081086f2 in wxCommandEvent::~wxCommandEvent ()
No symbol table info available.
#6  0x08090bc6 in wxImageList::~wxImageList ()
No symbol table info available.
#7  0x08245227 in wxSpinEvent::GetClassInfo ()
No symbol table info available.
#8  0x08246fe0 in wxSpinEvent::GetClassInfo ()
No symbol table info available.
#9  0x08074ca5 in wxString::~wxString ()
No symbol table info available.
#10 0x4059bd78 in wxAppConsole::HandleEvent () from /usr/lib/libwx_baseu-2.5.so.3
No symbol table info available.
#11 0x40649850 in wxEvtHandler::ProcessEventIfMatches () from /usr/lib/libwx_baseu-2.5.so.3
No symbol table info available.
#12 0x40648ccf in wxEventHashTable::HandleEvent () from /usr/lib/libwx_baseu-2.5.so.3
No symbol table info available.
#13 0x406499f0 in wxEvtHandler::ProcessEvent () from /usr/lib/libwx_baseu-2.5.so.3
No symbol table info available.
#14 0x4040fd5a in wxTimerBase::Notify () from /usr/lib/libwx_gtk2u_core-2.5.so.3
No symbol table info available.
#15 0x402fec9d in timeout_callback () from /usr/lib/libwx_gtk2u_core-2.5.so.3
No symbol table info available.
#16 0x40f71ddc in g_main_context_wakeup () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#17 0x40f6f6c2 in g_main_depth () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#18 0x40f70748 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
---Type to continue, or q to quit---
No symbol table info available.
#19 0x40f70a80 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#20 0x40f71023 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#21 0x40b978f3 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
No symbol table info available.
#22 0x402f51c8 in wxEventLoop::Run () from /usr/lib/libwx_gtk2u_core-2.5.so.3
No symbol table info available.
#23 0x40385b83 in wxAppBase::MainLoop () from /usr/lib/libwx_gtk2u_core-2.5.so.3
No symbol table info available.
#24 0x40385cea in wxAppBase::OnRun () from /usr/lib/libwx_gtk2u_core-2.5.so.3
No symbol table info available.
#25 0x405dfa53 in wxEntry () from /usr/lib/libwx_baseu-2.5.so.3
No symbol table info available.
#26 0x405dfb2d in wxEntry () from /usr/lib/libwx_baseu-2.5.so.3
No symbol table info available.
#27 0x08078ae8 in wxStringInputStream::~wxStringInputStream ()
No symbol table info available.
#28 0x40959904 in __libc_start_main () from /lib/tls/libc.so.6
No symbol table info available.
#29 0x08068e21 in ?? ()
No symbol table info available.
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: 2005-04-15 Crashes after a while
« Reply #1 on: April 15, 2005, 09:51:15 PM »

sorry, but nothing aMule related.. your wx is fault

cheers

ruiz

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 6
Re: 2005-04-15 Crashes after a while
« Reply #2 on: April 15, 2005, 10:34:39 PM »

and can you explain-me what can I do, please?

thanx
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: 2005-04-15 Crashes after a while
« Reply #3 on: April 15, 2005, 10:39:27 PM »

the only thing you can do right now is changing your wxgtk version to a stable one, like 2.4.2 i.e

or live with the from-time-to-time crashes ;)

cheers

Vollstrecker

  • Administrator
  • Hero Member
  • *****
  • Karma: 67
  • Offline Offline
  • Posts: 1549
  • Unofficial Debian Packager
    • http://vollstreckernet.de
Re: 2005-04-15 Crashes after a while
« Reply #4 on: April 15, 2005, 10:44:47 PM »

Where can you see that this is wx related. Maybe it's another lib. I think I have the same bins running, and I have no problem.
Logged
Homefucking is killing prostitution

Xaignar

  • Admin and Code Junky
  • Hero Member
  • *****
  • Karma: 19
  • Offline Offline
  • Posts: 1103
Re: 2005-04-15 Crashes after a while
« Reply #5 on: April 16, 2005, 12:28:13 AM »

The fact that the entire backtrace is within wx (with a few exceptions in another shared libs) pretty much gives it away. ;)
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: 2005-04-15 Crashes after a while
« Reply #6 on: April 16, 2005, 12:36:26 AM »

It's wx related, because the crash is on a deletion of a object that's not allocated, and made by wx. Probably he has the debian packages installed and also yours, or he has not yours and is using debian wx with your amule.


Whatever.
Logged

Vollstrecker

  • Administrator
  • Hero Member
  • *****
  • Karma: 67
  • Offline Offline
  • Posts: 1549
  • Unofficial Debian Packager
    • http://vollstreckernet.de
Re: 2005-04-15 Crashes after a while
« Reply #7 on: April 16, 2005, 12:46:40 AM »

If he has the wx-line in his sources.list, I'm sure he has mine. It's the same path, too.
Strange...
Logged
Homefucking is killing prostitution

ruiz

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 6
Re: 2005-04-15 Crashes after a while
« Reply #8 on: April 16, 2005, 12:53:01 AM »

This is my sources list:

deb http://ftp://ftp.es.debian.org/debian/ testing main non-free contrib
deb-src http://ftp://ftp.es.debian.org/debian/ testing main non-free contrib

deb http://security.debian.org/ testing/updates main contrib non-free

deb http://www.vollstreckernet.de/debian/ testing amule wx

I'm using wx and amule from vollstreckernet, not from debian.
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: 2005-04-15 Crashes after a while
« Reply #9 on: April 16, 2005, 01:30:20 AM »

Quote
wxSpinEvent::GetClassInfo

Your problem is that Vollstrecker has wx2.5.3 and it has a nice bug on spinctrls. Updating to 2.5.4 or even 2.5.5 or even 2.6.0 which is due to be released this week would fix it. Even 2.4.2 would help as delta said.
Logged

ruiz

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 6
Re: 2005-04-15 Crashes after a while
« Reply #10 on: April 16, 2005, 03:27:37 AM »

Now I have installed the following packages from Debian repository:
ii  libwxgtk2.4    2.4.2.6        wxWindows Cross-platform C++ GUI toolkit (GT
ii  libwxgtk2.4-de 2.4.2.6        wxWindows Cross-platform C++ GUI toolkit (GT
ii  wxwin2.4-heade 2.4.2.6        wxWindows Cross-platform C++ GUI toolkit (he

The aMule version is CVS 20050415, obtained from http://www.hirnriss.net/?area=cvs, and, obviously, compiled by me. aMule have the same behaviour. Here I post the backtrace:

Code: [Select]
(gdb) run
Starting program: /home/ruiz/bin/bin/amule
[Thread debugging using libthread_db enabled]
[New Thread 1086143840 (LWP 23947)]
Initialising aMule
Checking if there is an instance already running...
Loading temp files from /home/ruiz/.aMule/Temp.
Loading PartFile 8 of 8
All PartFiles Loaded.
ListenSocket: Ok.

External connections disabled in config file
*** Server UDP socket (TCP+3) at 0.0.0.0:4665
*** TCP socket (TCP) listening on 0.0.0.0:4662
*** Client UDP socket (extended eMule) at 0.0.0.0:4672
Adding file /home/ruiz/.aMule/Temp/008.part.met to shares
Adding file /home/ruiz/.aMule/Temp/006.part.met to shares
[New Thread 1096059824 (LWP 23951)]
[Thread 1096059824 (zombie) exited]
[New Thread 1096059824 (LWP 24140)]
[New Thread 1104448432 (LWP 24141)]
[Thread 1104448432 (zombie) exited]
[Thread 1096059824 (zombie) exited]
[New Thread 1104448432 (LWP 24142)]
[Thread 1104448432 (zombie) exited]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1086143840 (LWP 23947)]
0x40a7cb2a in mallopt () from /lib/tls/libc.so.6

Code: [Select]
(gdb) bt
#0  0x40a7cb2a in mallopt () from /lib/tls/libc.so.6
#1  0x40a7ba4b in free () from /lib/tls/libc.so.6
#2  0x409b5d23 in operator delete () from /usr/lib/libstdc++.so.5
#3  0x409b5d7f in operator delete[] () from /usr/lib/libstdc++.so.5
#4  0x08212b85 in CEMSocket::Send (this=0x8850028,
    lpBuf=0x898ef00 "%Ë\235©ì\031[\024.\024\212É\035Š\0369D\005TáÓ\034î\214fã«[ÇrI\036>z\035ß'p\2320.ÄP$+kÚë\033\006-\216«Ò\025V\215\215ªo~\037Nþ!OU\202§Ý \227âðQª\234JÝdî1¢eL\204í+ïãE¯\030Sãûál¯£\a\033\023E\214?\217\021\"D`+¹áD&@\006\005\214©lÖ³\024Ö4\022Hg\207ÑPŠPôÑ·Î\236A§PVù\vc¡ñ\017x'Få@Œ+ª\025¶i|¶}Ê¿D{RPOÓXK\v\002w|\202\032öNÍÌ\024æ\233Q2^\230\226\" ª\232\036Æ1"..., nBufLen=1300) at EMSocket.cpp:413
#5  0x0821267a in CEMSocket::SendPacket (this=0x8850028, packet=0x8872698, delpacket=true, controlpacket=false)
    at EMSocket.cpp:324
#6  0x0819a9e8 in CUpDownClient::SendPacket (this=0x88522d8, packet=0x8872698, delpacket=true,
    controlpacket=false) at BaseClient.cpp:1998
#7  0x083514ae in CUpDownClient::SendBlockData (this=0x88522d8, kBpsToSend=3.33333325) at UploadClient.cpp:608
#8  0x083532c0 in CUploadQueue::Process (this=0x874c678) at UploadQueue.cpp:218
#9  0x0817ec94 in CamuleApp::OnCoreTimer (this=0x86a93a0) at amule.cpp:1391
#10 0x402f19c7 in wxEvtHandler::SearchEventTable () from /usr/lib/libwx_gtk-2.4.so.0
#11 0x402f17e3 in wxEvtHandler::ProcessEvent () from /usr/lib/libwx_gtk-2.4.so.0
#12 0x40395a27 in wxTimerBase::Notify () from /usr/lib/libwx_gtk-2.4.so.0
#13 0x402a1a2d in timeout_callback () from /usr/lib/libwx_gtk-2.4.so.0
#14 0x40836ec4 in g_main_set_poll_func () from /usr/lib/libglib-1.2.so.0
#15 0x4083603d in g_get_current_time () from /usr/lib/libglib-1.2.so.0
#16 0x408364f4 in g_get_current_time () from /usr/lib/libglib-1.2.so.0
#17 0x40836724 in g_main_run () from /usr/lib/libglib-1.2.so.0
#18 0x4074325f in gtk_main () from /usr/lib/libgtk-1.2.so.0
#19 0x4024ff69 in wxApp::MainLoop () from /usr/lib/libwx_gtk-2.4.so.0
#20 0x402b15a7 in wxAppBase::OnRun () from /usr/lib/libwx_gtk-2.4.so.0
#21 0x402506cb in wxEntry () from /usr/lib/libwx_gtk-2.4.so.0
#22 0x081827a4 in main (argc=1, argv=0xbffff864) at amule-gui.cpp:147

Code: [Select]
(gdb) bt full
#0  0x40a7cb2a in mallopt () from /lib/tls/libc.so.6
No symbol table info available.
#1  0x40a7ba4b in free () from /lib/tls/libc.so.6
No symbol table info available.
#2  0x409b5d23 in operator delete () from /usr/lib/libstdc++.so.5
No symbol table info available.
#3  0x409b5d7f in operator delete[] () from /usr/lib/libstdc++.so.5
No symbol table info available.
#4  0x08212b85 in CEMSocket::Send (this=0x8850028,
    lpBuf=0x898ef00 "%Ë\235©ì\031[\024.\024\212É\035Š\0369D\005TáÓ\034î\214fã«[ÇrI\036>z\035ß'p\2320.ÄP$+kÚë\033\006-\216«Ò\025V\215\215ªo~\037Nþ!OU\202§Ý \227âðQª\234JÝdî1¢eL\204í+ïãE¯\030Sãûál¯£\a\033\023E\214?\217\021\"D`+¹áD&@\006\005\214©lÖ³\024Ö4\022Hg\207ÑPŠPôÑ·Î\236A§PVù\vc¡ñ\017x'Få@Œ+ª\025¶i|¶}Ê¿D{RPOÓXK\v\002w|\202\032öNÍÌ\024æ\233Q2^\230\226\" ª\232\036Æ1"..., nBufLen=1300) at EMSocket.cpp:413
        tosend = 1300
        result = 1300
#5  0x0821267a in CEMSocket::SendPacket (this=0x8850028, packet=0x8872698, delpacket=true, controlpacket=false)
    at EMSocket.cpp:324
        bCheckControlQueue = false
#6  0x0819a9e8 in CUpDownClient::SendPacket (this=0x88522d8, packet=0x8872698, delpacket=true,
    controlpacket=false) at BaseClient.cpp:1998
No locals.
#7  0x083514ae in CUpDownClient::SendBlockData (this=0x88522d8, kBpsToSend=3.33333325) at UploadClient.cpp:608
        tosend = (class CPacket *) 0x8872698
        nBlockSize = 1300
        msCur = 1218027278
        bytesToSend = 341
        lambdaAvg = 0.90483743
#8  0x083532c0 in CUploadQueue::Process (this=0x874c678) at UploadQueue.cpp:218
        cur_client = (class CUpDownClient *) 0x88522d8
        pos = {m_ptr = 0x0}
        clientsrdy = 3
        kBpsSendPerClient = 3.33333325
        bytesSent = 682
        bytesNotCounted = 0
        msCur = 142942936
#9  0x0817ec94 in CamuleApp::OnCoreTimer (this=0x86a93a0) at amule.cpp:1391
        msPrev1 = 744630
        msPrev5 = 741127
        msPrevSave = 720410
        msPrevHist = 745000
        msPrevOS = 745127
        msCur = 745227
#10 0x402f19c7 in wxEvtHandler::SearchEventTable () from /usr/lib/libwx_gtk-2.4.so.0
No symbol table info available.
#11 0x402f17e3 in wxEvtHandler::ProcessEvent () from /usr/lib/libwx_gtk-2.4.so.0
No symbol table info available.
#12 0x40395a27 in wxTimerBase::Notify () from /usr/lib/libwx_gtk-2.4.so.0
No symbol table info available.
#13 0x402a1a2d in timeout_callback () from /usr/lib/libwx_gtk-2.4.so.0
No symbol table info available.
#14 0x40836ec4 in g_main_set_poll_func () from /usr/lib/libglib-1.2.so.0
No symbol table info available.
#15 0x4083603d in g_get_current_time () from /usr/lib/libglib-1.2.so.0
No symbol table info available.
#16 0x408364f4 in g_get_current_time () from /usr/lib/libglib-1.2.so.0
No symbol table info available.
#17 0x40836724 in g_main_run () from /usr/lib/libglib-1.2.so.0
No symbol table info available.
#18 0x4074325f in gtk_main () from /usr/lib/libgtk-1.2.so.0
No symbol table info available.
#19 0x4024ff69 in wxApp::MainLoop () from /usr/lib/libwx_gtk-2.4.so.0
No symbol table info available.
#20 0x402b15a7 in wxAppBase::OnRun () from /usr/lib/libwx_gtk-2.4.so.0
No symbol table info available.
#21 0x402506cb in wxEntry () from /usr/lib/libwx_gtk-2.4.so.0
No symbol table info available.
#22 0x081827a4 in main (argc=1, argv=0xbffff864) at amule-gui.cpp:147
No locals.

If somebody can explain-me the solution to the problem, I will be very happy.  :D

Thanx.
Logged