aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: CVS-20080106 crash [solved]  (Read 2490 times)

libre

  • Jr. Member
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 52
CVS-20080106 crash [solved]
« on: January 09, 2008, 09:18:05 PM »

Well, I am running gentoo, kernel 2.6.19-rt15. Amule crashed several times when I have the attente window (attente in french = waiting. Its the window that show the queue of waiting outgoing transferts) on the transfert window. Recompiling with debug and here is the backtrace.

I hope that it will be useful. Not sure because I also get the following when running gdb:
Code: [Select]
$ gdb /usr/bin/amule
GNU gdb 6.7.1
Copyright (C) 2007 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-pc-linux-gnu"...
Using host libthread_db library "/lib/libthread_db.so.1".
(gdb) run
Starting program: /usr/bin/amule
Failed to read a valid object file image from memory.
The last line seam to be a problem. I googled but I am not sure if it is a kernel or gdb bug.

After running amule as above, it crashed. Amule window was still open but frozen.

Code: [Select]
(gdb) bt
#0  0xb7868dee in __dynamic_cast () from /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/libstdc++.so.6
#1  0x08074aa8 in CamuleApp::OnFinishedHashing (this=0x8766388, evt=@0xc9ca920) at amule.cpp:1544
#2  0xb78f7383 in wxAppConsole::HandleEvent () from /usr/lib/libwx_baseu-2.8.so.0
#3  0xb7996757 in wxEvtHandler::ProcessEventIfMatches () from /usr/lib/libwx_baseu-2.8.so.0
#4  0xb79968a0 in wxEventHashTable::HandleEvent () from /usr/lib/libwx_baseu-2.8.so.0
#5  0xb7996a01 in wxEvtHandler::ProcessEvent () from /usr/lib/libwx_baseu-2.8.so.0
#6  0xb7996d5d in wxEvtHandler::ProcessPendingEvents () from /usr/lib/libwx_baseu-2.8.so.0
#7  0xb78f7d6f in wxAppConsole::ProcessPendingEvents () from /usr/lib/libwx_baseu-2.8.so.0
#8  0xb7bfac23 in wxAppBase::ProcessIdle () from /usr/lib/libwx_gtk2u_core-2.8.so.0
#9  0xb7b49336 in wxapp_idle_callback () from /usr/lib/libwx_gtk2u_core-2.8.so.0
#10 0xb714acfb in g_idle_dispatch () from /usr/lib/libglib-2.0.so.0
#11 0xb714c74a in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#12 0xb714f90b in g_main_context_iterate () from /usr/lib/libglib-2.0.so.0
#13 0xb714fcae in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
#14 0xb7449327 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
#15 0xb7b616f1 in wxEventLoop::Run () from /usr/lib/libwx_gtk2u_core-2.8.so.0
#16 0xb7bfaaee in wxAppBase::MainLoop () from /usr/lib/libwx_gtk2u_core-2.8.so.0
#17 0xb7bfa261 in wxAppBase::OnRun () from /usr/lib/libwx_gtk2u_core-2.8.so.0
#18 0xb792fd9e in wxEntry () from /usr/lib/libwx_baseu-2.8.so.0
#19 0xb792fe4b in wxEntry () from /usr/lib/libwx_baseu-2.8.so.0
#20 0x081c5e56 in main (argc=1474660693, argv=0xec835356) at amule-gui.cpp:92
#21 0xb7672fdc in __libc_start_main () from /lib/libc.so.6
#22 0x08071091 in _start ()
Code: [Select]
(gdb) bt full
#0  0xb7868dee in __dynamic_cast () from /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/libstdc++.so.6
No symbol table info available.
#1  0x08074aa8 in CamuleApp::OnFinishedHashing (this=0x8766388, evt=@0xc9ca920) at amule.cpp:1544
requester = <value optimized out>
result = (class CKnownFile *) 0xc6328b8
filecount = 0
bytecount = 0
#2  0xb78f7383 in wxAppConsole::HandleEvent () from /usr/lib/libwx_baseu-2.8.so.0
No symbol table info available.
#3  0xb7996757 in wxEvtHandler::ProcessEventIfMatches () from /usr/lib/libwx_baseu-2.8.so.0
No symbol table info available.
#4  0xb79968a0 in wxEventHashTable::HandleEvent () from /usr/lib/libwx_baseu-2.8.so.0
No symbol table info available.
#5  0xb7996a01 in wxEvtHandler::ProcessEvent () from /usr/lib/libwx_baseu-2.8.so.0
No symbol table info available.
#6  0xb7996d5d in wxEvtHandler::ProcessPendingEvents () from /usr/lib/libwx_baseu-2.8.so.0
No symbol table info available.
#7  0xb78f7d6f in wxAppConsole::ProcessPendingEvents () from /usr/lib/libwx_baseu-2.8.so.0
No symbol table info available.
#8  0xb7bfac23 in wxAppBase::ProcessIdle () from /usr/lib/libwx_gtk2u_core-2.8.so.0
No symbol table info available.
#9  0xb7b49336 in wxapp_idle_callback () from /usr/lib/libwx_gtk2u_core-2.8.so.0
No symbol table info available.
#10 0xb714acfb in g_idle_dispatch () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#11 0xb714c74a in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#12 0xb714f90b in g_main_context_iterate () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#13 0xb714fcae in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#14 0xb7449327 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
No symbol table info available.
#15 0xb7b616f1 in wxEventLoop::Run () from /usr/lib/libwx_gtk2u_core-2.8.so.0
No symbol table info available.
#16 0xb7bfaaee in wxAppBase::MainLoop () from /usr/lib/libwx_gtk2u_core-2.8.so.0
No symbol table info available.
#17 0xb7bfa261 in wxAppBase::OnRun () from /usr/lib/libwx_gtk2u_core-2.8.so.0
No symbol table info available.
#18 0xb792fd9e in wxEntry () from /usr/lib/libwx_baseu-2.8.so.0
---Type <return> to continue, or q <return> to quit---
No symbol table info available.
#19 0xb792fe4b in wxEntry () from /usr/lib/libwx_baseu-2.8.so.0
No symbol table info available.
#20 0x081c5e56 in main (argc=1474660693, argv=0xec835356) at amule-gui.cpp:92
No locals.
#21 0xb7672fdc in __libc_start_main () from /lib/libc.so.6
No symbol table info available.
#22 0x08071091 in _start ()
No symbol table info available.
Code: [Select]
(gdb) thread apply all bt

Thread 5 (Thread 0xb4741b90 (LWP 24155)):
#0  0xb7f6f410 in ?? ()
#1  0xb4741258 in ?? ()
#2  0x00004187 in ?? ()
#3  0x00000000 in ?? ()

Thread 4 (Thread 0xb65e3b90 (LWP 24154)):
#0  0xb7f6f410 in ?? ()
#1  0xb65e3068 in ?? ()
#2  0x00947000 in ?? ()
#3  0xb35f9008 in ?? ()
#4  0xb7f0dffb in read () from /lib/libpthread.so.0
#5  0x08288228 in CFile::doRead (this=0xb65e3230, buffer=0xb35f9008, count=9728000) at CFile.cpp:279
#6  0x08295be0 in CFileDataIO::Read (this=0xb65e3230, buffer=0x947000, count=9728000) at SafeFile.cpp:73
#7  0x08227b13 in CKnownFile::CreateHashFromFile (file=0xb65e3230, Length=9728000, Output=0xb65e3140, pShaHashOut=0x0)
    at KnownFile.cpp:761
#8  0x0816053d in CHashingTask::CreateNextPartHash (this=0xc66adc8, file=0xb65e3230, owner=0xcbd03d0,
    toHash=<value optimized out>) at ThreadTasks.cpp:214
#9  0x081609df in CHashingTask::Entry (this=0xc66adc8) at ThreadTasks.cpp:143
#10 0x082f5b9d in CThreadScheduler::Entry (this=0xac7fde8) at ThreadScheduler.cpp:291
#11 0xb7994ff3 in wxThreadInternal::PthreadStart () from /usr/lib/libwx_baseu-2.8.so.0
#12 0xb799505f in wxPthreadStart () from /usr/lib/libwx_baseu-2.8.so.0
#13 0xb7f0717b in start_thread () from /lib/libpthread.so.0
#14 0xb771e04e in clone () from /lib/libc.so.6

Thread 3 (Thread 0xb4f42b90 (LWP 24117)):
#0  0xb7f6f410 in ?? ()
#1  0xb4f42158 in ?? ()
#2  0xb79f2ff4 in ?? () from /usr/lib/libwx_baseu-2.8.so.0
#3  0x00000000 in ?? ()

Thread 1 (Thread 0xb6c006d0 (LWP 24111)):
#0  0xb7868dee in __dynamic_cast () from /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/libstdc++.so.6
#1  0x08074aa8 in CamuleApp::OnFinishedHashing (this=0x8766388, evt=@0xc9ca920) at amule.cpp:1544
#2  0xb78f7383 in wxAppConsole::HandleEvent () from /usr/lib/libwx_baseu-2.8.so.0
#3  0xb7996757 in wxEvtHandler::ProcessEventIfMatches () from /usr/lib/libwx_baseu-2.8.so.0
#4  0xb79968a0 in wxEventHashTable::HandleEvent () from /usr/lib/libwx_baseu-2.8.so.0
#5  0xb7996a01 in wxEvtHandler::ProcessEvent () from /usr/lib/libwx_baseu-2.8.so.0
#6  0xb7996d5d in wxEvtHandler::ProcessPendingEvents () from /usr/lib/libwx_baseu-2.8.so.0
---Type <return> to continue, or q <return> to quit---
#7  0xb78f7d6f in wxAppConsole::ProcessPendingEvents () from /usr/lib/libwx_baseu-2.8.so.0
#8  0xb7bfac23 in wxAppBase::ProcessIdle () from /usr/lib/libwx_gtk2u_core-2.8.so.0
#9  0xb7b49336 in wxapp_idle_callback () from /usr/lib/libwx_gtk2u_core-2.8.so.0
#10 0xb714acfb in g_idle_dispatch () from /usr/lib/libglib-2.0.so.0
#11 0xb714c74a in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#12 0xb714f90b in g_main_context_iterate () from /usr/lib/libglib-2.0.so.0
#13 0xb714fcae in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
#14 0xb7449327 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
#15 0xb7b616f1 in wxEventLoop::Run () from /usr/lib/libwx_gtk2u_core-2.8.so.0
#16 0xb7bfaaee in wxAppBase::MainLoop () from /usr/lib/libwx_gtk2u_core-2.8.so.0
#17 0xb7bfa261 in wxAppBase::OnRun () from /usr/lib/libwx_gtk2u_core-2.8.so.0
#18 0xb792fd9e in wxEntry () from /usr/lib/libwx_baseu-2.8.so.0
#19 0xb792fe4b in wxEntry () from /usr/lib/libwx_baseu-2.8.so.0
#20 0x081c5e56 in main (argc=1474660693, argv=0xec835356) at amule-gui.cpp:92
#21 0xb7672fdc in __libc_start_main () from /lib/libc.so.6
#22 0x08071091 in _start ()
« Last Edit: February 20, 2008, 07:14:32 PM by libre »
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: CVS-20080106 crash
« Reply #1 on: January 10, 2008, 02:09:44 AM »

I am not sure this is a crash. What was the crash message? SIGSEGV? It is unlikely that the program has crashed in dynamic_cast, that would mean that your compiler or c++ runtime is broken.

Please post the gdb crash message, something like "The program has received a SIG*"

Cheers!
Logged

libre

  • Jr. Member
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 52
Re: CVS-20080106 crash
« Reply #2 on: January 10, 2008, 08:16:40 PM »

Thanks for the replay- Here is the message:
Code: [Select]
HTTP download thread ended
[Thread 0xb65d1b90 (LWP 9600) exited]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb6bee6d0 (LWP 9196)]
0xb7856dee in __dynamic_cast () from /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/libstdc++.so.6

Cheers!
Logged

libre

  • Jr. Member
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 52
Re: CVS-20080106 crash
« Reply #3 on: January 12, 2008, 11:58:49 AM »

I am doing something that is an overkill, but it will hopefully make my system more consistent. My linux-header was more recent that my kernel, so I downgraded them to the same version as my kernel, re-merged the libc and is at a beginning of a full system recompiling ('emerge -ea world').

EDIT: it worked.
« Last Edit: February 20, 2008, 07:13:56 PM by libre »
Logged