aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: 20050221 amuled crash  (Read 7841 times)

alandar

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 24
20050221 amuled crash
« on: February 21, 2005, 08:53:55 PM »

Today i have OOOPS! for you.
I include surrounding logs, maybe they will clear something:
Code: [Select]
2005-02-21 19:14:21: Remote command: QUEUE UL_GETLENGTH                                              
                                                                                                     
CAUGHT DEAD SOCKET IN SENDPACKET()                                                                  
2005-02-21 19:16:24: Remote command: QUEUE UL_GETLENGTH                                              
                                                                                                     
2005-02-21 19:18:04: Can't open file '/mnt/amule/Incoming/Warcraft                                  
--------------------------------------------------------------------------------                    
Oops, aMule crashed!                                                                                
Hey, stop crying! You wanted the edge, and now you fell down?!                                      
Please, post the following lines, on the aMule Crashes forum on:                                    
    [URL]http://forum.amule.org/board.php?boardid=67&sid=/[/URL]                                                
You should also try to generate a real backtrace of this error, please read:                        
    [URL]http://www.amule.org/wiki/index.php/Backtraces[/URL]                                                  
----------------------------=| BACKTRACE FOLLOWS: |=----------------------------                    
                                                                                                     
aMule version is: CVS using  v2.5.4 (Unicoded) (Snapshot: Mon Feb 21 07:01:17 CET 2005)              
                                                                                                     
[0]  in amuled [0x815920d]                                                                          
[1] wxFatalSignalHandler in /usr/lib/libwx_baseud-2.5.so.4[0xb7ef72fc]                              
[2]  in /lib/libpthread.so.0 [0xb7f94be5]                                                            
[3]  in /lib/libc.so.6 [0xb7a36078]                                                                  
[4] GAddress_copy in /usr/lib/libwx_baseud_net-2.5.so.4[0xb7db503c]                                  
[5] GSocket::GetPeer() in /usr/lib/libwx_baseud_net-2.5.so.4[0xb7db35b7]                            
[6] wxSocketBase::GetPeer(wxSockAddress&) const in /usr/lib/libwx_baseud_net-2.5.so.4[0xb7daf499]    
[7] wxDatagramSocket::RecvFrom(wxSockAddress&, void*, unsigned) in /usr/lib/libwx_baseud_net-2.5.so.4
[0xb7db06b4]                                                                                        
[8]  in amuled [0x8110cc6]                                                                          
[9]  in amuled [0x8088407]                                                                          
[10]  in amuled [0x80895f3]                                                                          
[11] wxThreadInternal::PthreadStart(wxThread*) in /usr/lib/libwx_baseud-2.5.so.4[0xb7eeb901]        
[12] wxPthreadStart in /usr/lib/libwx_baseud-2.5.so.4[0xb7eeb7ba]                                    
[13]  in /lib/libpthread.so.0 [0xb7f8ecc4]                                                          
[14] __clone in /lib/libc.so.6[0xb7ae9037]
                                                                                                     
--------------------------------------------------------------------------------                    
.3.PL.[Damador].Osloskop.img'                                                                        
                                                                                                     
CAUGHT DEAD SOCKET IN SENDPACKET()                                                                  
2005-02-21 19:18:26: Remote command: QUEUE UL_GETLENGTH                                              
                                                                                                     
CAUGHT DEAD SOCKET IN SENDPACKET()
It looks that amuled kept working for 15 minutes.
Or maybe there is something wrong with logging order, I don't know.
And backtraces from dumped core:
Code: [Select]
(gdb) bt
#0  0xb7a361b1 in kill () from /lib/libc.so.6
#1  0xb7f919c1 in pthread_kill () from /lib/libpthread.so.0
#2  0xb7f91ccb in raise () from /lib/libpthread.so.0
#3  0xb7a35df4 in raise () from /lib/libc.so.6
#4  0xb7a375a8 in abort () from /lib/libc.so.6
#5  0xb7ef7304 in wxFatalSignalHandler () at src/unix/utilsunx.cpp:999
#6  0xb7f94be5 in pthread_barrierattr_setpshared () from /lib/libpthread.so.0
#7  0x00000000 in ?? ()
#8  0x00000000 in ?? ()
#9  0x0000007b in ?? ()
Previous frame inner to this frame (corrupt stack?)
Code: [Select]
(gdb) bt full
#0  0xb7a361b1 in kill () from /lib/libc.so.6
No symbol table info available.
#1  0xb7f919c1 in pthread_kill () from /lib/libpthread.so.0
No symbol table info available.
#2  0xb7f91ccb in raise () from /lib/libpthread.so.0
No symbol table info available.
#3  0xb7a35df4 in raise () from /lib/libc.so.6
No symbol table info available.
#4  0xb7a375a8 in abort () from /lib/libc.so.6
No symbol table info available.
#5  0xb7ef7304 in wxFatalSignalHandler () at src/unix/utilsunx.cpp:999
No locals.
#6  0xb7f94be5 in pthread_barrierattr_setpshared () from /lib/libpthread.so.0
No symbol table info available.
#7  0x00000000 in ?? ()
No symbol table info available.
#8  0x00000000 in ?? ()
No symbol table info available.
#9  0x0000007b in ?? ()
No symbol table info available.
That's not much, but that's all I've got.
Core file was 120 megs large. I don't know why information from bt is so poor, both wxBase and aMule was compiled with --enable-debug.
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: 20050221 amuled crash
« Reply #1 on: February 21, 2005, 10:26:13 PM »

alandar,

Quote
#9  0x0000007b in ?? ()
Previous frame inner to this frame (corrupt stack?)

The core bt is not usefull, because of this. But the backtrace is hard to interpret because it does not show the variables. If you want to go a little further, you could run amuled inside gdb and place a breakpoint in wxFatalSignalHandler. Maybe then, hopefully you can get a nice gdb backtrace.

It worries me that this does not happen on aMule, if it were aMule bug, should show in non-daemon too.

Did you compile wx with debug information? Maybe this can help too.
Logged

alandar

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 24
Re: 20050221 amuled crash
« Reply #2 on: February 21, 2005, 11:03:39 PM »

Ok, crash happened again. So it's quite possible that it will happen again, this time in gdb.
wxBase was compiled with --enable-debug (as I mantioned in first post) and with additional --enable-debug_* flags.
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: 20050221 amuled crash
« Reply #3 on: February 21, 2005, 11:18:03 PM »

alandar,

never mind, try tomorrow cvs, i am quite sure it will fix the issue.

BTW, run this before running amuled:
$ netstat -ntualp | grep 4662

use your aMule TCP port in the place of 4662.
Logged