aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: aMule 2.0.0rc1 - SIGSEGV in CMemFile::enlargeBuffer  (Read 3321 times)

diesel

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 9
aMule 2.0.0rc1 - SIGSEGV in CMemFile::enlargeBuffer
« on: April 07, 2004, 04:42:18 PM »

Hi

Since aMule 2.0.0rc1 crashes occur every ~30mins. Had no problems in 1.6.x.

I'm using SuSE 9, all packets required by aMule were downloaded from this site. Got default install (no self-compiles).

Code: [Select]
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 16384 (LWP 32604)]
0x40a82014 in _int_malloc () from /lib/i686/libc.so.6

Code: [Select]
(gdb) backtrace
#0  0x40a82014 in _int_malloc () from /lib/i686/libc.so.6
#1  0x40a8106c in malloc () from /lib/i686/libc.so.6
#2  0x0818b7ae in CMemFile::enlargeBuffer(unsigned long) ()
#3  0x0818b909 in CMemFile::WriteRaw(void const*, unsigned) ()
#4  0x08255052 in CUpDownClient::SendRankingInfo() ()
#5  0x0825ad01 in CUploadQueue::AddClientToQueue(CUpDownClient*, bool) ()
#6  0x081299bc in CClientReqSocket::ProcessPacket(char*, unsigned, unsigned char) ()
#7  0x0812cb8a in CClientReqSocket::PacketReceived(Packet*) ()
#8  0x0812f013 in CEMSocket::OnReceive(int) ()
#9  0x08263f71 in CamuleDlg::socketHandler(wxSocketEvent&) ()
#10 0x402cde62 in wxEvtHandler::SearchEventTable(wxEventTable&, wxEvent&) () from /usr/lib/libwx_gtk-2.4.so.0
#11 0x402cdc8f in wxEvtHandler::ProcessEvent(wxEvent&) () from /usr/lib/libwx_gtk-2.4.so.0
#12 0x402cdbcb in wxEvtHandler::ProcessPendingEvents() () from /usr/lib/libwx_gtk-2.4.so.0
#13 0x40284759 in wxAppBase::ProcessPendingEvents() () from /usr/lib/libwx_gtk-2.4.so.0
#14 0x4023207b in wxapp_pending_callback () from /usr/lib/libwx_gtk-2.4.so.0
#15 0x4064e95f in g_idle_dispatch () from /opt/gnome/lib/libglib-1.2.so.0
#16 0x4064d70b in g_main_dispatch () from /opt/gnome/lib/libglib-1.2.so.0
#17 0x4064dd98 in g_main_iterate () from /opt/gnome/lib/libglib-1.2.so.0
#18 0x4064ded4 in g_main_run () from /opt/gnome/lib/libglib-1.2.so.0
#19 0x4055c40f in gtk_main () from /opt/gnome/lib/libgtk-1.2.so.0
#20 0x402329f2 in wxApp::MainLoop() () from /usr/lib/libwx_gtk-2.4.so.0
#21 0x40284610 in wxAppBase::OnRun() () from /usr/lib/libwx_gtk-2.4.so.0
#22 0x402330cd in wxEntry(int, char**) () from /usr/lib/libwx_gtk-2.4.so.0
#23 0x0825c9e7 in main ()


Sorry, i don't have enough time to track the problem by myself.

regards & thanks
diesel
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: aMule 2.0.0rc1 - SIGSEGV in CMemFile::enlargeBuffer
« Reply #1 on: April 07, 2004, 04:51:46 PM »

I'm pretty sure it's fixed on rc2. :) Wait for it and if you still get it we'll review for rc3
Logged

diesel

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 9
Re: aMule 2.0.0rc1 - SIGSEGV in CMemFile::enlargeBuffer
« Reply #2 on: April 07, 2004, 05:02:12 PM »

heheh, ok :)

rc2 will be like a second xmas for me!
Logged

diesel

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 9
Re: aMule 2.0.0rc1 - SIGSEGV in CMemFile::enlargeBuffer
« Reply #3 on: April 12, 2004, 06:20:40 AM »

SIGSEGV continues in 2.0.0rc2, not the same but maybe related?

Code: [Select]
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 16384 (LWP 29124)]
0x40a82014 in _int_malloc () from /lib/i686/libc.so.6
Code: [Select]
(gdb) bt
#0  0x40a82014 in _int_malloc () from /lib/i686/libc.so.6
#1  0x40a8106c in malloc () from /lib/i686/libc.so.6
#2  0x4064eaab in g_malloc () from /opt/gnome/lib/libglib-1.2.so.0
#3  0x4064e0f5 in g_main_poll () from /opt/gnome/lib/libglib-1.2.so.0
#4  0x4064db4c in g_main_iterate () from /opt/gnome/lib/libglib-1.2.so.0
#5  0x4064ded4 in g_main_run () from /opt/gnome/lib/libglib-1.2.so.0
#6  0x4055c40f in gtk_main () from /opt/gnome/lib/libgtk-1.2.so.0
#7  0x402329f2 in wxApp::MainLoop() () from /usr/lib/libwx_gtk-2.4.so.0
#8  0x40284610 in wxAppBase::OnRun() () from /usr/lib/libwx_gtk-2.4.so.0
#9  0x402330cd in wxEntry(int, char**) () from /usr/lib/libwx_gtk-2.4.so.0
#10 0x0824a8a7 in main ()

damn, i need sleep....

greetz and keep up the great work!
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: aMule 2.0.0rc1 - SIGSEGV in CMemFile::enlargeBuffer
« Reply #4 on: April 12, 2004, 06:50:12 AM »

seems to be gtk related ..

greets

diesel

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 9
Re: aMule 2.0.0rc1 - SIGSEGV in CMemFile::enlargeBuffer
« Reply #5 on: April 12, 2004, 03:08:20 PM »

here we go again.... one of many...

am i the only one who gets SIGSEGV every ~10min? had no problems with the stable amule

Code: [Select]
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 16384 (LWP 32636)]
0x081ef876 in CPartFile::UpdateAvailablePartsCount() ()
Code: [Select]
(gdb) bt
#0  0x081ef876 in CPartFile::UpdateAvailablePartsCount() ()
#1  0x081662bd in CDownloadQueue::RemoveSource(CUpDownClient*, bool, bool) ()
#2  0x0814c181 in CClientList::RemoveClient(CUpDownClient*) ()
#3  0x08133430 in CUpDownClient::~CUpDownClient() ()
#4  0x0813611e in CUpDownClient::Disconnected() ()
#5  0x08125544 in CClientReqSocket::CheckTimeOut() ()
#6  0x0812a762 in CListenSocket::Process() ()
#7  0x08249bbe in TimerProc() ()
#8  0x402cde62 in wxEvtHandler::SearchEventTable(wxEventTable&, wxEvent&) () from /usr/lib/libwx_gtk-2.4.so.0
#9  0x402cdc8f in wxEvtHandler::ProcessEvent(wxEvent&) () from /usr/lib/libwx_gtk-2.4.so.0
#10 0x40359867 in wxTimerBase::Notify() () from /usr/lib/libwx_gtk-2.4.so.0
#11 0x4027696c in timeout_callback () from /usr/lib/libwx_gtk-2.4.so.0
#12 0x4064e813 in g_timeout_dispatch () from /opt/gnome/lib/libglib-1.2.so.0
#13 0x4064d70b in g_main_dispatch () from /opt/gnome/lib/libglib-1.2.so.0
#14 0x4064dd98 in g_main_iterate () from /opt/gnome/lib/libglib-1.2.so.0
#15 0x4064ded4 in g_main_run () from /opt/gnome/lib/libglib-1.2.so.0
#16 0x4055c40f in gtk_main () from /opt/gnome/lib/libgtk-1.2.so.0
#17 0x402329f2 in wxApp::MainLoop() () from /usr/lib/libwx_gtk-2.4.so.0
#18 0x40284610 in wxAppBase::OnRun() () from /usr/lib/libwx_gtk-2.4.so.0
#19 0x402330cd in wxEntry(int, char**) () from /usr/lib/libwx_gtk-2.4.so.0
#20 0x0824a8a7 in main ()
Logged

diesel

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 9
Re: aMule 2.0.0rc1 - SIGSEGV in CMemFile::enlargeBuffer
« Reply #6 on: April 12, 2004, 03:41:01 PM »

SIGSEGV strikes back!

Code: [Select]
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 16384 (LWP 7809)]
0x08134028 in CUpDownClient::ProcessHelloTypePacket(CSafeMemFile*) ()
Code: [Select]
(gdb) bt
#0  0x08134028 in CUpDownClient::ProcessHelloTypePacket(CSafeMemFile*) ()
#1  0x08133e6e in CUpDownClient::ProcessHelloAnswer(char*, unsigned) ()
#2  0x08127217 in CClientReqSocket::ProcessPacket(char*, unsigned, unsigned char) ()
#3  0x08129b7a in CClientReqSocket::PacketReceived(Packet*) ()
#4  0x0812c003 in CEMSocket::OnReceive(int) ()
#5  0x08250f22 in CamuleDlg::socketHandler(wxSocketEvent&) ()
#6  0x402cde62 in wxEvtHandler::SearchEventTable(wxEventTable&, wxEvent&) () from /usr/lib/libwx_gtk-2.4.so.0
#7  0x402cdc8f in wxEvtHandler::ProcessEvent(wxEvent&) () from /usr/lib/libwx_gtk-2.4.so.0
#8  0x402cdbcb in wxEvtHandler::ProcessPendingEvents() () from /usr/lib/libwx_gtk-2.4.so.0
#9  0x40284759 in wxAppBase::ProcessPendingEvents() () from /usr/lib/libwx_gtk-2.4.so.0
#10 0x4023207b in wxapp_pending_callback () from /usr/lib/libwx_gtk-2.4.so.0
#11 0x4064e95f in g_idle_dispatch () from /opt/gnome/lib/libglib-1.2.so.0
#12 0x4064d70b in g_main_dispatch () from /opt/gnome/lib/libglib-1.2.so.0
#13 0x4064dd98 in g_main_iterate () from /opt/gnome/lib/libglib-1.2.so.0
#14 0x4064ded4 in g_main_run () from /opt/gnome/lib/libglib-1.2.so.0
#15 0x4055c40f in gtk_main () from /opt/gnome/lib/libgtk-1.2.so.0
#16 0x402329f2 in wxApp::MainLoop() () from /usr/lib/libwx_gtk-2.4.so.0
#17 0x40284610 in wxAppBase::OnRun() () from /usr/lib/libwx_gtk-2.4.so.0
#18 0x402330cd in wxEntry(int, char**) () from /usr/lib/libwx_gtk-2.4.so.0
#19 0x0824a8a7 in main ()

tell if I should stop posting SIGSEGV backtraces, i believe there a lot more to come...

greetz
diesel
Logged

diesel

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 9
Re: aMule 2.0.0rc1 - SIGSEGV in CMemFile::enlargeBuffer
« Reply #7 on: April 12, 2004, 11:32:29 PM »

ok, the last one... i get so many SIGSEVs, maybe a download is corrupting something? it can't be that im the only one with so many segfaults...

Code: [Select]
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 16384 (LWP 8329)]
0x081355a0 in CUpDownClient::ProcessMuleInfoPacket(char*, unsigned) ()
Code: [Select]
(gdb) bt
#0  0x081355a0 in CUpDownClient::ProcessMuleInfoPacket(char*, unsigned) ()
#1  0x081294af in CClientReqSocket::ProcessExtPacket(char*, unsigned, unsigned char) ()
#2  0x08129ba7 in CClientReqSocket::PacketReceived(Packet*) ()
#3  0x0812c003 in CEMSocket::OnReceive(int) ()
#4  0x08250f22 in CamuleDlg::socketHandler(wxSocketEvent&) ()
#5  0x402cde62 in wxEvtHandler::SearchEventTable(wxEventTable&, wxEvent&) () from /usr/lib/libwx_gtk-2.4.so.0
#6  0x402cdc8f in wxEvtHandler::ProcessEvent(wxEvent&) () from /usr/lib/libwx_gtk-2.4.so.0
#7  0x402cdbcb in wxEvtHandler::ProcessPendingEvents() () from /usr/lib/libwx_gtk-2.4.so.0
#8  0x40284759 in wxAppBase::ProcessPendingEvents() () from /usr/lib/libwx_gtk-2.4.so.0
#9  0x4023283f in wxApp::OnIdle(wxIdleEvent&) () from /usr/lib/libwx_gtk-2.4.so.0
#10 0x402cde62 in wxEvtHandler::SearchEventTable(wxEventTable&, wxEvent&) () from /usr/lib/libwx_gtk-2.4.so.0
#11 0x402cdc8f in wxEvtHandler::ProcessEvent(wxEvent&) () from /usr/lib/libwx_gtk-2.4.so.0
#12 0x402327c1 in wxApp::ProcessIdle() () from /usr/lib/libwx_gtk-2.4.so.0
#13 0x4023210f in wxapp_idle_callback () from /usr/lib/libwx_gtk-2.4.so.0
#14 0x4064e95f in g_idle_dispatch () from /opt/gnome/lib/libglib-1.2.so.0
#15 0x4064d70b in g_main_dispatch () from /opt/gnome/lib/libglib-1.2.so.0
#16 0x4064dd98 in g_main_iterate () from /opt/gnome/lib/libglib-1.2.so.0
#17 0x4064ded4 in g_main_run () from /opt/gnome/lib/libglib-1.2.so.0
#18 0x4055c40f in gtk_main () from /opt/gnome/lib/libgtk-1.2.so.0
#19 0x402329f2 in wxApp::MainLoop() () from /usr/lib/libwx_gtk-2.4.so.0
#20 0x40284610 in wxAppBase::OnRun() () from /usr/lib/libwx_gtk-2.4.so.0
#21 0x402330cd in wxEntry(int, char**) () from /usr/lib/libwx_gtk-2.4.so.0
#22 0x0824a8a7 in main ()
Logged