aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: Crash (segmentation fault)  (Read 2285 times)

marcof

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 14
Crash (segmentation fault)
« on: December 29, 2004, 09:10:00 PM »

->Slackware 10
->wxGTK 2.4.2
->aMule rc8


BT

(gdb) bt
#0  0x08230bbe in CUpDownClient::GetScore ()
#1  0x0823d026 in CUploadQueue::GetWaitingPosition ()
#2  0x08234147 in CUpDownClient::SendRankingInfo ()
#3  0x0823bd08 in CUploadQueue::AddClientToQueue ()
#4  0x080cfa08 in CClientReqSocket::ProcessPacket ()
#5  0x080dbf2c in CClientReqSocket::PacketReceived ()
#6  0x080df3c2 in CEMSocket::OnReceive ()
#7  0x080dc7f0 in CClientReqSocketHandler::ClientReqSocketHandler ()
#8  0xb7d7dc76 in wxEvtHandler::SearchEventTable ()
   from /usr/lib/libwx_gtk-2.4.so
#9  0xb7d7da7c in wxEvtHandler::ProcessEvent () from /usr/lib/libwx_gtk-2.4.so
#10 0xb7d7d9a8 in wxEvtHandler::ProcessPendingEvents ()
   from /usr/lib/libwx_gtk-2.4.so
#11 0xb7d40676 in wxAppBase::ProcessPendingEvents ()
   from /usr/lib/libwx_gtk-2.4.so
#12 0xb7ce2853 in wxapp_pending_callback () from /usr/lib/libwx_gtk-2.4.so
#13 0xb779c1cd in g_idle_dispatch (source_data=0xb7ce2810,
    dispatch_time=0xbffff610, user_data=0x0) at gmain.c:1367
#14 0xb779b0d9 in g_main_dispatch (dispatch_time=0xbffff610) at gmain.c:656
#15 0xb779b5c4 in g_main_iterate (block=147407928, dispatch=1) at gmain.c:877
#16 0xb779b83c in g_main_run (loop=0x870a180) at gmain.c:935
#17 0xb788636f in gtk_main () from /usr/lib/libgtk-1.2.so.0
#18 0xb7ce3386 in wxApp::MainLoop () from /usr/lib/libwx_gtk-2.4.so
---Type to continue, or q to quit---
#19 0xb7d40518 in wxAppBase::OnRun () from /usr/lib/libwx_gtk-2.4.so
#20 0xb7ce3b06 in wxEntry () from /usr/lib/libwx_gtk-2.4.so
#21 0x0824e5d9 in main ()

BT FULL

(gdb) bt full
#0  0x08230bbe in CUpDownClient::GetScore ()
No symbol table info available.
#1  0x0823d026 in CUploadQueue::GetWaitingPosition ()
No symbol table info available.
#2  0x08234147 in CUpDownClient::SendRankingInfo ()
No symbol table info available.
#3  0x0823bd08 in CUploadQueue::AddClientToQueue ()
No symbol table info available.
#4  0x080cfa08 in CClientReqSocket::ProcessPacket ()
No symbol table info available.
#5  0x080dbf2c in CClientReqSocket::PacketReceived ()
No symbol table info available.
#6  0x080df3c2 in CEMSocket::OnReceive ()
No symbol table info available.
#7  0x080dc7f0 in CClientReqSocketHandler::ClientReqSocketHandler ()
No symbol table info available.
#8  0xb7d7dc76 in wxEvtHandler::SearchEventTable ()
   from /usr/lib/libwx_gtk-2.4.so
No symbol table info available.
#9  0xb7d7da7c in wxEvtHandler::ProcessEvent () from /usr/lib/libwx_gtk-2.4.so
No symbol table info available.
#10 0xb7d7d9a8 in wxEvtHandler::ProcessPendingEvents ()
   from /usr/lib/libwx_gtk-2.4.so
---Type to continue, or q to quit---
No symbol table info available.
#11 0xb7d40676 in wxAppBase::ProcessPendingEvents ()
   from /usr/lib/libwx_gtk-2.4.so
No symbol table info available.
#12 0xb7ce2853 in wxapp_pending_callback () from /usr/lib/libwx_gtk-2.4.so
No symbol table info available.
#13 0xb779c1cd in g_idle_dispatch (source_data=0xb7ce2810,
    dispatch_time=0xbffff610, user_data=0x0) at gmain.c:1367
No locals.
#14 0xb779b0d9 in g_main_dispatch (dispatch_time=0xbffff610) at gmain.c:656
        hook_data = 0x0
        source_data = 0xb7ce2810
        dispatch = (gboolean (*)(gpointer, GTimeVal *,
    gpointer)) 0xb779c1c0
        need_destroy = -1073744424
        source = (GSource *) 0x8539980
#15 0xb779b5c4 in g_main_iterate (block=147407928, dispatch=1) at gmain.c:877
        check = (gboolean (*)(gpointer, GTimeVal *, gpointer)) 0xbffff610
        hook = (GHook *) 0x8c94438
        current_time = {tv_sec = 1104351651, tv_usec = 703870}
        n_ready = 1
        current_priority = 900
        timeout = -1073744368
---Type to continue, or q to quit---
        retval = 0
#16 0xb779b83c in g_main_run (loop=0x870a180) at gmain.c:935
No locals.
#17 0xb788636f in gtk_main () from /usr/lib/libgtk-1.2.so.0
No symbol table info available.
#18 0xb7ce3386 in wxApp::MainLoop () from /usr/lib/libwx_gtk-2.4.so
No symbol table info available.
#19 0xb7d40518 in wxAppBase::OnRun () from /usr/lib/libwx_gtk-2.4.so
No symbol table info available.
#20 0xb7ce3b06 in wxEntry () from /usr/lib/libwx_gtk-2.4.so
No symbol table info available.
#21 0x0824e5d9 in main ()
No symbol table info available.
(gdb)
Logged

phoenix

  • Evil respawning bird from aMule Dev Team
  • Developer
  • Hero Member
  • *****
  • Karma: 44
  • Offline Offline
  • Posts: 2503
  • The last shadow you'll ever see
Re: Crash (segmentation fault)
« Reply #1 on: December 29, 2004, 11:59:12 PM »

marcof,

Your executable has no debug info. Please follow these instructions:

http://www.amule.org/wiki/index.php/Backtraces

Cheers!
Logged

marcof

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 14
Re: Crash (segmentation fault)
« Reply #2 on: December 30, 2004, 02:23:06 AM »

hmm.. i do all like this site explain
Logged

marcof

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 14
Re: Crash (segmentation fault)
« Reply #3 on: December 30, 2004, 02:28:05 AM »

(gdb) bt
#0  0x08148152 in CKnownFile::GetPartCount (this=0x0) at KnownFile.h:144
#1  0x08181f35 in CUpDownClient::SendFileRequest (this=0x8a854e0)
    at DownloadClient.cpp:263
#2  0x081540ab in CUpDownClient::ConnectionEstablished (this=0x8a854e0)
    at BaseClient.cpp:1387
#3  0x08153930 in CUpDownClient::TryToConnect (this=0x8a854e0,
    bIgnoreMaxCon=false) at BaseClient.cpp:1303
#4  0x08181908 in CUpDownClient::AskForDownload (this=0x8a854e0)
    at DownloadClient.cpp:151
#5  0x08245628 in CPartFile::Process (this=0x877e048, reducedownload=200,
    m_icounter=10 '\n') at PartFile.cpp:1707
#6  0x0819b3d5 in CDownloadQueue::Process (this=0x863bfe8)
    at DownloadQueue.cpp:378
#7  0x082c6e35 in CamuleApp::OnCoreTimer (this=0x8614408) at amule.cpp:1386
#8  0xb7d7dc76 in wxEvtHandler::SearchEventTable ()
   from /usr/lib/libwx_gtk-2.4.so
#9  0xb7d7da7c in wxEvtHandler::ProcessEvent () from /usr/lib/libwx_gtk-2.4.so
#10 0xb7e1c73c in wxTimerBase::Notify () from /usr/lib/libwx_gtk-2.4.so
#11 0xb7d31258 in timeout_callback () from /usr/lib/libwx_gtk-2.4.so
#12 0xb779c0b1 in g_timeout_dispatch (source_data=0x8890bf8,
    dispatch_time=0xbffff600, user_data=0x88d70b0) at gmain.c:1302
#13 0xb779b0d9 in g_main_dispatch (dispatch_time=0xbffff600) at gmain.c:656
#14 0xb779b5c4 in g_main_iterate (block=144892616, dispatch=1) at gmain.c:877
---Type to continue, or q to quit---
#15 0xb779b83c in g_main_run (loop=0x879d0e0) at gmain.c:935
#16 0xb788636f in gtk_main () from /usr/lib/libgtk-1.2.so.0
#17 0xb7ce3386 in wxApp::MainLoop () from /usr/lib/libwx_gtk-2.4.so
#18 0xb7d40518 in wxAppBase::OnRun () from /usr/lib/libwx_gtk-2.4.so
#19 0xb7ce3b06 in wxEntry () from /usr/lib/libwx_gtk-2.4.so
#20 0x082c9a3c in main (argc=1, argv=0xbffff784) at amule-gui.cpp:161

(gdb) bt full
#0  0x08148152 in CKnownFile::GetPartCount (this=0x0) at KnownFile.h:144
No locals.
#1  0x08181f35 in CUpDownClient::SendFileRequest (this=0x8a854e0)
    at DownloadClient.cpp:263
        packet = (Packet *) 0x90b8be8
        dataFileReq = { = { = {_vptr.CFile = 0x8350668,
      m_fd = -1, m_error = false, fFilePath = },
    m_GrowBytes = 32, m_position = 0, m_BufferSize = 0, m_FileSize = 0,
    m_delete = false, m_buffer = 0x0}, = {
    _vptr.CFileDataIO = 0x83506dc}, }
#2  0x081540ab in CUpDownClient::ConnectionEstablished (this=0x8a854e0)
    at BaseClient.cpp:1387
No locals.
#3  0x08153930 in CUpDownClient::TryToConnect (this=0x8a854e0,
    bIgnoreMaxCon=false) at BaseClient.cpp:1303
No locals.
#4  0x08181908 in CUpDownClient::AskForDownload (this=0x8a854e0)
    at DownloadClient.cpp:151
No locals.
#5  0x08245628 in CPartFile::Process (this=0x877e048, reducedownload=200,
    m_icounter=10 '\n') at PartFile.cpp:1707
        download_state = 1 '\001'
        it = { = {
---Type to continue, or q to quit---
    _M_node = 0x8e2c770}, }
        cur_src = (CUpDownClient *) 0x8a854e0
        old_trans = 0
        dwCurTick = 564264436
#6  0x0819b3d5 in CDownloadQueue::Process (this=0x863bfe8)
    at DownloadQueue.cpp:378
        cur_file = (class CPartFile *) 0x877e048
        i = 114
        size = 418
        downspeed = 200
#7  0x082c6e35 in CamuleApp::OnCoreTimer (this=0x8614408) at amule.cpp:1386
        msPrev1 = 15975074
        msPrev5 = 15972648
        msPrevSave = 15974062
        msCur = 15975363
#8  0xb7d7dc76 in wxEvtHandler::SearchEventTable ()
   from /usr/lib/libwx_gtk-2.4.so
No symbol table info available.
#9  0xb7d7da7c in wxEvtHandler::ProcessEvent () from /usr/lib/libwx_gtk-2.4.so
No symbol table info available.
#10 0xb7e1c73c in wxTimerBase::Notify () from /usr/lib/libwx_gtk-2.4.so
No symbol table info available.
#11 0xb7d31258 in timeout_callback () from /usr/lib/libwx_gtk-2.4.so
---Type to continue, or q to quit---
No symbol table info available.
#12 0xb779c0b1 in g_timeout_dispatch (source_data=0x8890bf8,
    dispatch_time=0xbffff600, user_data=0x88d70b0) at gmain.c:1302
No locals.
#13 0xb779b0d9 in g_main_dispatch (dispatch_time=0xbffff600) at gmain.c:656
        hook_data = 0x88d70b0
        source_data = 0x8890bf8
        dispatch = (gboolean (*)(gpointer, GTimeVal *,
    gpointer)) 0xb779c0a0
        need_destroy = 0
        source = (GSource *) 0x86a0960
#14 0xb779b5c4 in g_main_iterate (block=144892616, dispatch=1) at gmain.c:877
        check = (gboolean (*)(gpointer, GTimeVal *, gpointer)) 0xbffff600
        hook = (GHook *) 0x8a2e2c8
        current_time = {tv_sec = 1104370859, tv_usec = 507803}
        n_ready = 13
        current_priority = 0
        timeout = -1073744384
        retval = 0
#15 0xb779b83c in g_main_run (loop=0x879d0e0) at gmain.c:935
No locals.
#16 0xb788636f in gtk_main () from /usr/lib/libgtk-1.2.so.0
No symbol table info available.
---Type to continue, or q to quit---
#17 0xb7ce3386 in wxApp::MainLoop () from /usr/lib/libwx_gtk-2.4.so
No symbol table info available.
#18 0xb7d40518 in wxAppBase::OnRun () from /usr/lib/libwx_gtk-2.4.so
No symbol table info available.
#19 0xb7ce3b06 in wxEntry () from /usr/lib/libwx_gtk-2.4.so
No symbol table info available.
#20 0x082c9a3c in main (argc=1, argv=0xbffff784) at amule-gui.cpp:161
No locals.
Logged

phoenix

  • Evil respawning bird from aMule Dev Team
  • Developer
  • Hero Member
  • *****
  • Karma: 44
  • Offline Offline
  • Posts: 2503
  • The last shadow you'll ever see
Re: Crash (segmentation fault)
« Reply #4 on: December 30, 2004, 06:21:56 AM »

marcof,

Do you think it looks like this one:

http://www.amule.org/amule/thread.php?threadid=4575&sid=

:D

I'm looking at it, but I still don't know how m_reqfile became NULL (DownloadClient.cpp, line 263). It was certainly not NULL before line 217 executed, otherwise m_reqfile->GetFileHash() would segfault. If you find the place where m_reqfile becomes NULL, please tell me :)

Cheers!
Logged