aMule Forum

English => aMule crashes => Topic started by: bhunji42 on December 31, 2006, 02:22:37 PM

Title: Daily CVS 20061225
Post by: bhunji42 on December 31, 2006, 02:22:37 PM
Hi,

I'm not sure what caused amule to crash, it may have happened when it tried to minimize to the system tray.  All I know is it was up, I switched over to either xchat or firefox and when I went to look at amule again it had crashed...

here is the backtrace I got:
Quote
--------------------------------------------------------------------------------
A fatal error has occurred and aMule has crashed.
Please assist us in fixing this problem by posting the backtrace below in our
'aMule Crashes' forum and include as much information as possible regarding the
circumstances of this crash. The forum is located here:
    http://forum.amule.org/board.php?boardid=67
If possible, please try to generate a real backtrace of this crash:
    http://www.amule.org/wiki/index.php/Backtraces

----------------------------=| BACKTRACE FOLLOWS: |=----------------------------
Current version is: aMule CVS using wxGTK2 v2.8.0 (Snapshot: Mon Dec 25 07:01:54 CET 2006)
Running on: Linux 2.6.18.2-34-default i686

[2] CamuleApp::OnFatalException() in amule.cpp:1251
[3] wxFatalSignalHandler in /usr/local/lib/libwx_baseu-2.8.so.0[0xb78de736]
[4] ?? in [0xb7f93420]
[5] wxStringBase::operator=(wxStringBase const&) in /usr/local/lib/libwx_baseu-2.8.so.0[0xb7890f04]
[6] wxString::operator=(wxString const&) in string.h:660
[7] CUpDownClient::ProcessHelloTypePacket(CMemFile const&) in BaseClient.cpp:570
[8] CUpDownClient::ProcessHelloPacket(unsigned char const*, unsigned int) in BaseClient.cpp:362
[9] CClientTCPSocket::ProcessPacket(unsigned char const*, unsigned int, unsigned char) in ClientTCPSocket.cpp:380
[10] CClientTCPSocket::PacketReceived(CPacket*) in ClientTCPSocket.cpp:1950
[11] CEMSocket::OnReceive(int) in EMSocket.cpp:316
[12] CClientTCPSocket::OnReceive(int) in ClientTCPSocket.cpp:1858
[13] CClientTCPSocketHandler::ClientTCPSocketHandler(wxSocketEvent&) in ClientTCPSocket.cpp:100
[14] wxAppConsole::HandleEvent(wxEvtHandler*, void (wxEvtHandler::*)(wxEvent&), wxEvent&) const in /usr/local/lib/libwx_baseu-2.8.so.0[0xb7832305]
[15] wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) in /usr/local/lib/libwx_baseu-2.8.so.0[0xb78da26f]
[16] wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) in /usr/local/lib/libwx_baseu-2.8.so.0[0xb78da3bd]
[17] wxEvtHandler::ProcessEvent(wxEvent&) in /usr/local/lib/libwx_baseu-2.8.so.0[0xb78da526]
[18] wxEvtHandler::ProcessPendingEvents() in /usr/local/lib/libwx_baseu-2.8.so.0[0xb78da9e0]
[19] wxAppConsole::ProcessPendingEvents() in /usr/local/lib/libwx_baseu-2.8.so.0[0xb7832cbf]
[20] wxAppBase::OnIdle(wxIdleEvent&) in /usr/local/lib/libwx_gtk2u_core-2.8.so.0[0xb7b25b62]
[21] wxAppConsole::HandleEvent(wxEvtHandler*, void (wxEvtHandler::*)(wxEvent&), wxEvent&) const in /usr/local/lib/libwx_baseu-2.8.so.0[0xb7832305]
[22] wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) in /usr/local/lib/libwx_baseu-2.8.so.0[0xb78da26f]
[23] wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) in /usr/local/lib/libwx_baseu-2.8.so.0[0xb78da3bd]
[24] wxEvtHandler::ProcessEvent(wxEvent&) in /usr/local/lib/libwx_baseu-2.8.so.0[0xb78da526]
[25] wxAppBase::ProcessIdle() in /usr/local/lib/libwx_gtk2u_core-2.8.so.0[0xb7b25e2e]
[26] ?? in /usr/local/lib/libwx_gtk2u_core-2.8.so.0 [0xb7a79c9a]
[27] ?? in /opt/gnome/lib/libglib-2.0.so.0 [0xb6e7c061]
[28] g_main_context_dispatch in /opt/gnome/lib/libglib-2.0.so.0[0xb6e7dde2]
[29] ?? in /opt/gnome/lib/libglib-2.0.so.0 [0xb6e80e1f]
[30] g_main_loop_run in /opt/gnome/lib/libglib-2.0.so.0[0xb6e811c9]
[31] gtk_main in /opt/gnome/lib/libgtk-x11-2.0.so.0[0xb7378cd4]
[32] wxEventLoop::Run() in /usr/local/lib/libwx_gtk2u_core-2.8.so.0[0xb7a951ec]
[33] wxAppBase::MainLoop() in /usr/local/lib/libwx_gtk2u_core-2.8.so.0[0xb7b25d4e]
[34] wxAppBase::OnRun() in /usr/local/lib/libwx_gtk2u_core-2.8.so.0[0xb7b25301]
[35] wxEntry(int&, wchar_t**) in /usr/local/lib/libwx_baseu-2.8.so.0[0xb786e0aa]
[36] wxEntry(int&, char**) in /usr/local/lib/libwx_baseu-2.8.so.0[0xb786e156]
[37] main in amule-gui.cpp:95
[38] __libc_start_main in /lib/libc.so.6[0xb75abf9c]
[39] wxAppBase::MainLoop() in :0


--------------------------------------------------------------------------------
Aborted

also I'm not sure if its related since amule functioned for a while afterwards.  I tried to preview a .wmv file, the file caused mplayer to hang so I killed mplayer.

here is the output I got when mplayer ran:
Quote
Can't open joystick device /dev/input/js0: No such device
Can't init input joystick
mplayer: could not connect to socket
mplayer: Connection refused
Failed to open LIRC support. You will not be able to use your remote control.
Invalid Kad tag; type=0x5c name=0x00
Error on count 13 tag 0

those are the last lines before amule crashed as well...





I just tried opening amule with gdb to get a better core dump,    how do I get it to use the --even-if-lfroen-complains-this-will-stay switch?
Title: Re: Daily CVS 20061225
Post by: phoenix on January 02, 2007, 12:11:57 AM
bhunji42,

You can create a file named .gdbinit, and put it in the directory where you will run gdb. Inside it you can put any gdb command. Mine is like this:

Code: [Select]
ha SIGPIPE nostop noprint pass
ha SIG32 nostop noprint pass
ha SIG33 nostop noprint pass
ha SIG34 nostop noprint pass
set env LD_LIBRARY_PATH /usr/local/wxWidgets-cvsu/lib/:/usr/local/libupnp/lib/
set env LANG=en_US.UTF-8
set args --even-if-lfroen-complains-this-will-stay

Make sure you really need or not the paths in LD_LIBRARY_PATH, otherwise things may go wrong. You can set breakpoints there too like this:
Code: [Select]
break amule.cpp:698
I still had not the time to look at your backtrace carefully, but I shall do it this week.
Title: Re: Daily CVS 20061225
Post by: phoenix on January 05, 2007, 05:06:33 AM
bhunji42,

Your crash is very odd, because it happened inside wxStringBase::operator=(), which is inside the wxWidgets library. It was not related to anything you were doing at the moment. You probably won't be able to reproduce it, but anyway, you should use a debug version of aMule and wxWidgets, so that in case this happens again, we can track down the problem.

Cheers!
Title: Re: Daily CVS 20061225
Post by: bhunji42 on January 05, 2007, 11:28:56 PM
okay, I created the .gdbinit file minus the set env lines

what do breakpoints do?

I'm running amule through gdb now, I'll recompile my wxwidgets and grab the latest cvs saturday morning.
Title: Re: Daily CVS 20061225
Post by: bhunji42 on January 06, 2007, 03:38:17 AM
amule just froze while I was closing a search window, here's what gdb gave me

Quote
Search expression: stuff
Expression count: 1
Parameters: 1
[New Thread -1277170800 (LWP 25733)]
[Thread -1277170800 (zombie) exited]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1227995440 (LWP 22112)]
0xb73322d7 in gtk_notebook_new () from /opt/gnome/lib/libgtk-x11-2.0.so.0
(gdb)
Title: Re: Daily CVS 20061225
Post by: phoenix on January 06, 2007, 05:49:35 AM
bhunji42,

Please read these links:

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

They must be somehow enough to lead you through gdb. Any doubts, please ask.
Title: Re: Daily CVS 20061225
Post by: bhunji42 on January 06, 2007, 06:06:31 PM
okay,  I ran amule this morning and gdb spat out a backtrace after about an hour of use, so I gave it the 'bt full' command to get the full back trace, should I post them in this thread or I just realised there is a backtraces forum, should I paste it in a new thread there?
Title: Re: Daily CVS 20061225
Post by: phoenix on January 06, 2007, 07:29:57 PM
bhunji42,

Don't open a new thread, please. Do post it here.

Before "bt full", always post just "bt" (in the same post, unless it is too big). It is more suscint, easier to read and most of the times enough.

"bt full" is just a complement.

Thanks!
Title: Re: Daily CVS 20061225
Post by: bhunji42 on January 06, 2007, 09:25:02 PM
okay,
here is the latest backtrace

Quote
*** glibc detected *** /usr/local/bin/amule: free(): invalid pointer: 0xb6441dd3
 ***
======= Backtrace: =========
/lib/libc.so.6[0xb761b6e1]
/lib/libc.so.6(cfree+0x89)[0xb761cd79]
/usr/lib/libstdc++.so.6(_ZdlPv+0x21)[0xb77c5f81]
/usr/local/bin/amule[0x81c0e5d]
/usr/local/bin/amule[0x81c0e82]
/usr/local/bin/amule[0x81c0ed2]
/usr/local/bin/amule[0x81c0f1a]
/usr/local/bin/amule[0x81c0efa]
/usr/local/bin/amule[0x81c0efa]
/usr/local/bin/amule[0x81c0efa]
/usr/local/bin/amule[0x81c0f49]
/usr/local/bin/amule[0x81c0f99]
/usr/local/bin/amule[0x81c556e]
/usr/local/bin/amule[0x81be90f]
/usr/local/bin/amule[0x838d238]
/usr/local/bin/amule[0x81b33f7]
/usr/local/bin/amule[0x807d1a4]
/usr/local/lib/libwx_baseu-2.8.so.0(_ZNK12wxAppConsole11HandleEventEP12wxEvtHand
lerMS0_FvR7wxEventES3_+0x35)[0xb7853305]
/usr/local/lib/libwx_baseu-2.8.so.0(_ZN12wxEvtHandler21ProcessEventIfMatchesERK2
1wxEventTableEntryBasePS_R7wxEvent+0x8f)[0xb78fb26f]
/usr/local/lib/libwx_baseu-2.8.so.0(_ZN16wxEventHashTable11HandleEventER7wxEvent
P12wxEvtHandler+0x7d)[0xb78fb3bd]
/usr/local/lib/libwx_baseu-2.8.so.0(_ZN12wxEvtHandler12ProcessEventER7wxEvent+0x
c6)[0xb78fb526]
/usr/local/lib/libwx_baseu-2.8.so.0(_ZN12wxEvtHandler20ProcessPendingEventsEv+0x
70)[0xb78fb9e0]
/usr/local/lib/libwx_baseu-2.8.so.0(_ZN12wxAppConsole20ProcessPendingEventsEv+0x
5f)[0xb7853cbf]
/usr/local/lib/libwx_gtk2u_core-2.8.so.0(_ZN9wxAppBase6OnIdleER11wxIdleEvent+0x2
2)[0xb7b46b62]
/usr/local/lib/libwx_baseu-2.8.so.0(_ZNK12wxAppConsole11HandleEventEP12wxEvtHand
lerMS0_FvR7wxEventES3_+0x35)[0xb7853305]
/usr/local/lib/libwx_baseu-2.8.so.0(_ZN12wxEvtHandler21ProcessEventIfMatchesERK2
1wxEventTableEntryBasePS_R7wxEvent+0x8f)[0xb78fb26f]
/usr/local/lib/libwx_baseu-2.8.so.0(_ZN16wxEventHashTable11HandleEventER7wxEvent
P12wxEvtHandler+0x7d)[0xb78fb3bd]
/usr/local/lib/libwx_baseu-2.8.so.0(_ZN12wxEvtHandler12ProcessEventER7wxEvent+0x
c6)[0xb78fb526]
/usr/local/lib/libwx_gtk2u_core-2.8.so.0(_ZN9wxAppBase11ProcessIdleEv+0x9e)[0xb7
b46e2e]
/usr/local/lib/libwx_gtk2u_core-2.8.so.0[0xb7a9ac9a]
/opt/gnome/lib/libglib-2.0.so.0[0xb6e9d061]
/opt/gnome/lib/libglib-2.0.so.0(g_main_context_dispatch+0x182)[0xb6e9ede2]
/opt/gnome/lib/libglib-2.0.so.0[0xb6ea1e1f]
/opt/gnome/lib/libglib-2.0.so.0(g_main_loop_run+0x1a9)[0xb6ea21c9]
/opt/gnome/lib/libgtk-x11-2.0.so.0(gtk_main+0xb4)[0xb7399cd4]
/usr/local/lib/libwx_gtk2u_core-2.8.so.0(_ZN11wxEventLoop3RunEv+0x5c)[0xb7ab61ec
]
/usr/local/lib/libwx_gtk2u_core-2.8.so.0(_ZN9wxAppBase8MainLoopEv+0x4e)[0xb7b46d
4e]
/usr/local/lib/libwx_gtk2u_core-2.8.so.0(_ZN9wxAppBase5OnRunEv+0x21)[0xb7b46301]
/usr/local/lib/libwx_baseu-2.8.so.0(_Z7wxEntryRiPPw+0x6a)[0xb788f0aa]
/usr/local/lib/libwx_baseu-2.8.so.0(_Z7wxEntryRiPPc+0x36)[0xb788f156]
/usr/local/bin/amule[0x820c1a6]
/lib/libc.so.6(__libc_start_main+0xdc)[0xb75ccf9c]
/usr/local/bin/amule(_ZN9wxAppBase8MainLoopEv+0x3d)[0x806e201]
======= Memory map: ========
08048000-08594000 r-xp 00000000 21:02 180466     /usr/local/bin/amule
08594000-08595000 r--p 0054b000 21:02 180466     /usr/local/bin/amule
08595000-0859e000 rw-p 0054c000 21:02 180466     /usr/local/bin/amule
0859e000-099a1000 rw-p 0859e000 00:00 0          [heap]
b4700000-b4721000 rw-p b4700000 00:00 0
b4721000-b4800000 ---p b4721000 00:00 0
b4803000-b4849000 r--p 00000000 21:02 126259     /usr/share/fonts/truetype/arial
bd.ttf
b4849000-b484a000 ---p b4849000 00:00 0
b484a000-b504a000 rw-p b484a000 00:00 0
b504a000-b504b000 ---p b504a000 00:00 0
b504b000-b584b000 rw-p b504b000 00:00 0
b584b000-b584c000 ---p b584b000 00:00 0
b584c000-b604c000 rw-p b584c000 00:00 0
b604c000-b6079000 r--p 00000000 21:02 15722      /var/cache/libx11/compose/l4_02
4_313cb605_00280cc0
b6079000-b6124000 r--p 00000000 21:02 42649      /usr/lib/jvm/java-1.5.0-sun-1.5
.0_update8/jre/lib/fonts/LucidaSansRegular.ttf
b6124000-b6127000 r-xp 00000000 21:02 74359      /opt/gnome/lib/pango/1.5.0/modu
les/pango-arabic-fc.so
b6127000-b6129000 rw-p 00002000 21:02 74359      /opt/gnome/lib/pango/1.5.0/modu
les/pango-arabic-fc.so
b6129000-b612d000 r-xp 00000000
Program received signal SIGABRT, Aborted.
[Switching to Thread -1227434288 (LWP 4661)]
0xb7fb4410 in ?? ()
(gdb)

and here is the 'bt' output to go with it

Quote
(gdb) bt
#0  0xb7fb4410 in ?? ()
#1  0xbfb24d5c in ?? ()
#2  0x00000006 in ?? ()
#3  0xb75e1801 in abort () from /lib/libc.so.6
#4  0xb7615abb in __libc_message () from /lib/libc.so.6
#5  0xb761b6e1 in malloc_printerr () from /lib/libc.so.6
#6  0xb761cd79 in free () from /lib/libc.so.6
#7  0xb77c5f81 in operator delete () from /usr/lib/libstdc++.so.6
#8  0x081c0e5d in __gnu_cxx::new_allocator > >::deallocate (this=0x987c8e0,
    __p=0xb6441dd3) at /usr/include/c++/4.1.2/ext/new_allocator.h:94
#9  0x081c0e82 in std::_Rb_tree, std::_Select1st >, std::less, std::allocator > >::_M_put_node (
    this=0x987c8e0, __p=0xb6441dd3)
    at /usr/include/c++/4.1.2/bits/stl_tree.h:362
#10 0x081c0ed2 in std::_Rb_tree, std::_Select1st >, std::less, std::allocator > >::destroy_node (
    this=0x987c8e0, __p=0xb6441dd3)
    at /usr/include/c++/4.1.2/bits/stl_tree.h:392
---Type to continue, or q to quit---
#11 0x081c0f1a in std::_Rb_tree, std::_Select1st >, std::less, std::allocator > >::_M_erase (
    this=0x987c8e0, __x=0xb6441dd3)
    at /usr/include/c++/4.1.2/bits/stl_tree.h:1266
#12 0x081c0efa in std::_Rb_tree, std::_Select1st >, std::less, std::allocator > >::_M_erase (
    this=0x987c8e0, __x=0x97ae288)
    at /usr/include/c++/4.1.2/bits/stl_tree.h:1264
#13 0x081c0efa in std::_Rb_tree, std::_Select1st >, std::less, std::allocator > >::_M_erase (
    this=0x987c8e0, __x=0x97a8c00)
    at /usr/include/c++/4.1.2/bits/stl_tree.h:1264
#14 0x081c0efa in std::_Rb_tree, std::_Select1st >, std::less, std::allocator > >::_M_erase (
    this=0x987c8e0, __x=0x94e0200)
---Type to continue, or q to quit---
    at /usr/include/c++/4.1.2/bits/stl_tree.h:1264
#15 0x081c0f49 in ~_Rb_tree (this=0x987c8e0)
    at /usr/include/c++/4.1.2/bits/stl_tree.h:578
#16 0x081c0f99 in ~map (this=0x987c8e0)
    at /usr/include/c++/4.1.2/bits/stl_map.h:93
#17 0x081c556e in ~map (this=0x987c8e0)
    at /usr/include/c++/4.1.2/debug/map.h:90
#18 0x081be90f in ~CSearch (this=0x987c868) at kademlia/kademlia/Search.cpp:133
#19 0x0838d238 in Kademlia::CSearchManager::JumpStart ()
    at kademlia/kademlia/SearchManager.cpp:293
#20 0x081b33f7 in Kademlia::CKademlia::Process ()
    at kademlia/kademlia/Kademlia.cpp:208
#21 0x0807d1a4 in CamuleApp::OnCoreTimer (this=0x87bf4f8) at amule.cpp:1423
#22 0xb7853305 in wxAppConsole::HandleEvent ()
   from /usr/local/lib/libwx_baseu-2.8.so.0
#23 0xb78fb26f in wxEvtHandler::ProcessEventIfMatches ()
   from /usr/local/lib/libwx_baseu-2.8.so.0
#24 0xb78fb3bd in wxEventHashTable::HandleEvent ()
   from /usr/local/lib/libwx_baseu-2.8.so.0
#25 0xb78fb526 in wxEvtHandler::ProcessEvent ()
   from /usr/local/lib/libwx_baseu-2.8.so.0
#26 0xb78fb9e0 in wxEvtHandler::ProcessPendingEvents ()
   from /usr/local/lib/libwx_baseu-2.8.so.0
---Type to continue, or q to quit---
#27 0xb7853cbf in wxAppConsole::ProcessPendingEvents ()
   from /usr/local/lib/libwx_baseu-2.8.so.0
#28 0xb7b46b62 in wxAppBase::OnIdle ()
   from /usr/local/lib/libwx_gtk2u_core-2.8.so.0
#29 0xb7853305 in wxAppConsole::HandleEvent ()
   from /usr/local/lib/libwx_baseu-2.8.so.0
#30 0xb78fb26f in wxEvtHandler::ProcessEventIfMatches ()
   from /usr/local/lib/libwx_baseu-2.8.so.0
#31 0xb78fb3bd in wxEventHashTable::HandleEvent ()
   from /usr/local/lib/libwx_baseu-2.8.so.0
#32 0xb78fb526 in wxEvtHandler::ProcessEvent ()
   from /usr/local/lib/libwx_baseu-2.8.so.0
#33 0xb7b46e2e in wxAppBase::ProcessIdle ()
   from /usr/local/lib/libwx_gtk2u_core-2.8.so.0
#34 0xb7a9ac9a in wxapp_idle_callback ()
   from /usr/local/lib/libwx_gtk2u_core-2.8.so.0
#35 0xb6e9d061 in g_source_is_destroyed () from /opt/gnome/lib/libglib-2.0.so.0
#36 0xb6e9ede2 in g_main_context_dispatch ()
   from /opt/gnome/lib/libglib-2.0.so.0
#37 0xb6ea1e1f in g_main_context_prepare ()
   from /opt/gnome/lib/libglib-2.0.so.0
#38 0xb6ea21c9 in g_main_loop_run () from /opt/gnome/lib/libglib-2.0.so.0
#39 0xb7399cd4 in gtk_main () from /opt/gnome/lib/libgtk-x11-2.0.so.0
---Type to continue, or q to quit---
#40 0xb7ab61ec in wxEventLoop::Run ()
   from /usr/local/lib/libwx_gtk2u_core-2.8.so.0
#41 0xb7b46d4e in wxAppBase::MainLoop ()
   from /usr/local/lib/libwx_gtk2u_core-2.8.so.0
#42 0xb7b46301 in wxAppBase::OnRun ()
   from /usr/local/lib/libwx_gtk2u_core-2.8.so.0
#43 0xb788f0aa in wxEntry () from /usr/local/lib/libwx_baseu-2.8.so.0
#44 0xb788f156 in wxEntry () from /usr/local/lib/libwx_baseu-2.8.so.0
#45 0x0820c1a6 in main (argc=Cannot access memory at address 0x1235
) at amule-gui.cpp:95
(gdb)
Title: Re: Daily CVS 20061225
Post by: phoenix on January 07, 2007, 03:10:39 AM
You have memory corruption. This will be hard... Can you tell me if there is a deterministic way to reproduce this? What is the exact sequence of actions you do to trigger it?

You can try to run your program inside valgrind, but this is a little tedious. Take a look here:
http://www.amule.org/wiki/index.php/Using_gdb_and_valgrind

I would do that if I could reproduce it here.
Title: Re: Daily CVS 20061225
Post by: bhunji42 on January 07, 2007, 07:21:46 PM
I don't think there is an easily reproducible sequence to do this.  
This is how I normally start amule, first I launch amule, then once I see it is running click connect, and connect to both an ed2k server and the kad network, then I check transfers by sorting by sources, then minimize amule to the tray.  after that  it seems to vary what I do and how long it takes to crash...

I installed valgrind using yast's rpm and tried using the following command slightly modified from that valgrind site, due to not having the same switches:

valgrind -v --tool=memcheck --leak-check=yes --db-attach=yes --num-callers=10 --gen-suppressions=yes /usr/local/bin/amule --enable-stdin


How do I pass it the --even-if-lfroen-complains-this-will-stay switch?

when it crashes using this will it dump a backtrace too? or is there something specific I should look for?

when I ran the above command I got the following at the end:
Quote
==9179== LEAK SUMMARY:
==9179==    definitely lost: 2,142 bytes in 3 blocks.
==9179==      possibly lost: 19,880 bytes in 35 blocks.
==9179==    still reachable: 103,811 bytes in 1,401 blocks.
==9179==         suppressed: 0 bytes in 0 blocks.
==9179== Reachable blocks (those to which a pointer was found) are not shown.
==9179== To see them, rerun with: --show-reachable=yes
--9179--  memcheck: sanity checks: 83 cheap, 4 expensive
--9179--  memcheck: auxmaps: 0 auxmap entries (0k, 0M) in use
--9179--  memcheck: auxmaps: 0 searches, 0 comparisons
--9179--  memcheck: SMs: n_issued      = 65 (1040k, 1M)
--9179--  memcheck: SMs: n_deissued    = 0 (0k, 0M)
--9179--  memcheck: SMs: max_noaccess  = 65535 (1048560k, 1023M)
--9179--  memcheck: SMs: max_undefined = 0 (0k, 0M)
--9179--  memcheck: SMs: max_defined   = 388 (6208k, 6M)
--9179--  memcheck: SMs: max_non_DSM   = 65 (1040k, 1M)
--9179--  memcheck: max sec V bit nodes:    11 (0k, 0M)
--9179--  memcheck: set_sec_vbits8 calls: 33 (new: 11, updates: 22)
--9179--  memcheck: max shadow mem size:   1344k, 1M
--9179-- translate:            fast SP updates identified: 48,821 ( 90.5%)
--9179-- translate:   generic_known SP updates identified: 2,970 (  5.5%)
--9179-- translate: generic_unknown SP updates identified: 2,120 (  3.9%)
--9179--     tt/tc: 70,969 tt lookups requiring 95,829 probes
--9179--     tt/tc: 70,969 fast-cache updates, 5 flushes
--9179--  transtab: new        28,090 (706,935 -> 10,319,143; ratio 145:10) [0 scs]
--9179--  transtab: dumped     0 (0 -> ??)
--9179--  transtab: discarded  131 (2,476 -> ??)
--9179-- scheduler: 8,353,084 jumps (bb entries).
--9179-- scheduler: 83/51,827 major/minor sched events.
--9179--    sanity: 84 cheap, 4 expensive checks.
--9179--    exectx: 30,011 lists, 4,701 contexts (avg 0 per list)
--9179--    exectx: 8,350 searches, 4,050 full compares (485 per 1000)
--9179--    exectx: 21,865 cmp2, 4 cmp4, 0 cmpAll

not sure if that helps...
Title: Re: Daily CVS 20061225
Post by: bhunji42 on January 07, 2007, 07:26:37 PM
where do I put the suppresions file? the command just says amule.sup  should that be in the root of my home directory or in the .amule folder? or where?
Title: Re: Daily CVS 20061225
Post by: bhunji42 on January 07, 2007, 08:34:37 PM
nevermind I think I figured out the amule.sup thing.

also while adding suppressions I noticed this:
Quote
==9497== ---- Print suppression ? --- [Return/N/n/Y/y/C/c] ---- y
{
   
   Memcheck:Leak
   fun:_vgrZU_libcZdsoZa_calloc
   fun:XkbUseExtension
   fun:XOpenDisplay
   fun:gdk_display_open
   fun:gdk_display_open_default_libgtk_only
   fun:gtk_init_check
   fun:_ZN5wxApp10InitializeERiPPw
   fun:_Z12wxEntryStartRiPPw
   fun:_Z7wxEntryRiPPw
   fun:_Z7wxEntryRiPPc
}
==9497==
==9497== 102 bytes in 2 blocks are definitely lost in loss record 40 of 75
==9497==    at 0x40233F0: malloc (in /usr/lib/valgrind/x86-linux/vgpreload_memcheck.so)
==9497==    by 0x4961ADF: strdup (in /lib/libc-2.5.so)
==9497==    by 0x807FBD4: CamuleApp::OnInit() (amule.cpp:419)
==9497==    by 0x820B5B4: CamuleGuiApp::OnInit() (amule-gui.cpp:262)
==9497==    by 0x8084325: wxAppConsole::CallOnInit() (app.h:76)
==9497==    by 0x46F707F: wxEntry(int&, wchar_t**) (in /usr/local/lib/libwx_baseu-2.8.so.0.0.0)
==9497==    by 0x46F7155: wxEntry(int&, char**) (in /usr/local/lib/libwx_baseu-2.8.so.0.0.0)
==9497==    by 0x820C1A5: main (amule-gui.cpp:95)
==9497==

and

Quote
{
   
   Memcheck:Leak
   fun:_vgrZU_libcZdsoZa_malloc
   obj:/usr/lib/libX11.so.6.2.0
   obj:/usr/lib/libX11.so.6.2.0
   obj:/usr/lib/libX11.so.6.2.0
   fun:_XlcCreateLocaleDataBase
   obj:/usr/lib/libX11.so.6.2.0
   obj:/usr/lib/libX11.so.6.2.0
   fun:_XlcCreateLC
   fun:_XlcUtf8Loader
   fun:_XOpenLC
}
==9497==
==9497==
==9497== 800 bytes in 20 blocks are possibly lost in loss record 51 of 75
==9497==    at 0x402272F: calloc (in /usr/lib/valgrind/x86-linux/vgpreload_memcheck.so)
==9497==    by 0x510A1CD: g_malloc0 (in /opt/gnome/lib/libglib-2.0.so.0.1200.4)
==9497==    by 0x4E7E67F: (within /opt/gnome/lib/libgobject-2.0.so.0.1200.4)
==9497==    by 0x4E7E814: (within /opt/gnome/lib/libgobject-2.0.so.0.1200.4)
==9497==    by 0x4E816BC: g_type_init_with_debug_flags (in /opt/gnome/lib/libgobject-2.0.so.0.1200.4)
==9497==    by 0x4E8182D: g_type_init (in /opt/gnome/lib/libgobject-2.0.so.0.1200.4)
==9497==    by 0x4D80E15: gdk_pre_parse_libgtk_only (in /opt/gnome/lib/libgdk-x11-2.0.so.0.1000.6)
==9497==    by 0x4B56670: (within /opt/gnome/lib/libgtk-x11-2.0.so.0.1000.6)
==9497==    by 0x510FD3C: g_option_context_parse (in /opt/gnome/lib/libglib-2.0.so.0.1200.4)
==9497==    by 0x4B5621B: gtk_parse_args (in /opt/gnome/lib/libgtk-x11-2.0.so.0.1000.6)
==9497==

and

Quote
{
   
   Memcheck:Leak
   fun:_vgrZU_libcZdsoZa_malloc
   obj:/usr/lib/libX11.so.6.2.0
   obj:/usr/lib/libX11.so.6.2.0
   fun:_XlcCreateLocaleDataBase
   obj:/usr/lib/libX11.so.6.2.0
   obj:/usr/lib/libX11.so.6.2.0
   fun:_XlcCreateLC
   fun:_XlcUtf8Loader
   fun:_XOpenLC
   fun:_XlcCurrentLC
}
==9497==
==9497==
==9497== 2,040 bytes in 1 blocks are definitely lost in loss record 63 of 75
==9497==    at 0x402272F: calloc (in /usr/lib/valgrind/x86-linux/vgpreload_memcheck.so)
==9497==    by 0x510A1CD: g_malloc0 (in /opt/gnome/lib/libglib-2.0.so.0.1200.4)
==9497==    by 0x511A2BE: g_slice_alloc (in /opt/gnome/lib/libglib-2.0.so.0.1200.4)
==9497==    by 0x50E5088: g_ptr_array_sized_new (in /opt/gnome/lib/libglib-2.0.so.0.1200.4)
==9497==    by 0x50E50DD: g_ptr_array_new (in /opt/gnome/lib/libglib-2.0.so.0.1200.4)
==9497==    by 0x5103606: g_main_context_new (in /opt/gnome/lib/libglib-2.0.so.0.1200.4)
==9497==    by 0x51037C8: g_main_context_default (in /opt/gnome/lib/libglib-2.0.so.0.1200.4)
==9497==    by 0x5104BC4: g_source_attach (in /opt/gnome/lib/libglib-2.0.so.0.1200.4)
==9497==    by 0x5104C8B: g_idle_add_full (in /opt/gnome/lib/libglib-2.0.so.0.1200.4)
==9497==    by 0x43AEDEA: wxapp_install_idle_handler() (in /usr/local/lib/libwx_gtk2u_core-2.8.so.0.0.0)
==9497==

and

Quote
{
   
   Memcheck:Leak
   fun:_vgrZU_libcZdsoZa_malloc
   fun:XOpenDisplay
   fun:gdk_display_open
   fun:gdk_display_open_default_libgtk_only
   fun:gtk_init_check
   fun:_ZN5wxApp10InitializeERiPPw
   fun:_Z12wxEntryStartRiPPw
   fun:_Z7wxEntryRiPPw
   fun:_Z7wxEntryRiPPc
   fun:main
}
==9497==
==9497==
==9497== 19,080 bytes in 15 blocks are possibly lost in loss record 75 of 75
==9497==    at 0x40225F0: memalign (in /usr/lib/valgrind/x86-linux/vgpreload_memcheck.so)
==9497==    by 0x402264A: posix_memalign (in /usr/lib/valgrind/x86-linux/vgpreload_memcheck.so)
==9497==    by 0x5119713: (within /opt/gnome/lib/libglib-2.0.so.0.1200.4)
==9497==    by 0x511A4A7: g_slice_alloc (in /opt/gnome/lib/libglib-2.0.so.0.1200.4)
==9497==    by 0x50E5308: g_array_sized_new (in /opt/gnome/lib/libglib-2.0.so.0.1200.4)
==9497==    by 0x50E5442: g_array_new (in /opt/gnome/lib/libglib-2.0.so.0.1200.4)
==9497==    by 0x5121642: g_static_private_set (in /opt/gnome/lib/libglib-2.0.so.0.1200.4)
==9497==    by 0x50ED6AB: g_get_filename_charsets (in /opt/gnome/lib/libglib-2.0.so.0.1200.4)
==9497==    by 0x50ED72C: (within /opt/gnome/lib/libglib-2.0.so.0.1200.4)
==9497==    by 0x5121719: g_thread_init_glib (in /opt/gnome/lib/libglib-2.0.so.0.1200.4)
==9497==

the end leak summary looks the same as the one above.
Title: Re: Daily CVS 20061225
Post by: bhunji42 on January 17, 2007, 02:51:46 AM
How do I pass valgrind the --lfroen switch?

I was running amule in gdb and it's been fine for at least 24 hours, but just now when I was scrolling through the friends, on the messages tab amule froze and I received this in the terminal window:

Quote
(amule:9258): GLib-GObject-CRITICAL **: g_object_ref: assertion `G_IS_OBJECT (object)' failed

(amule:9258): GLib-GObject-CRITICAL **: g_object_ref: assertion `G_IS_OBJECT (object)' failed

(amule:9258): GLib-GObject-CRITICAL **: g_object_ref: assertion `G_IS_OBJECT (object)' failed

(amule:9258): GLib-GObject-CRITICAL **: g_object_ref: assertion `G_IS_OBJECT (object)' failed

(amule:9258): GLib-GObject-CRITICAL **: g_object_ref: assertion `G_IS_OBJECT (object)' failed

(amule:9258): GLib-GObject-CRITICAL **: g_object_ref: assertion `G_IS_OBJECT (object)' failed

(amule:9258): GLib-GObject-CRITICAL **: g_object_ref: assertion `G_IS_OBJECT (object)' failed

(amule:9258): GLib-GObject-CRITICAL **: g_object_ref: assertion `G_IS_OBJECT (object)' failed

(amule:9258): GLib-GObject-CRITICAL **: g_object_ref: assertion `G_IS_OBJECT (object)' failed

(amule:9258): GLib-GObject-CRITICAL **: g_object_ref: assertion `G_IS_OBJECT (object)' failed

(amule:9258): GLib-GObject-CRITICAL **: g_object_ref: assertion `G_IS_OBJECT (object)' failed

(amule:9258): GLib-GObject-CRITICAL **: g_object_ref: assertion `G_IS_OBJECT (object)' failed

(amule:9258): GLib-GObject-CRITICAL **: g_object_ref: assertion `G_IS_OBJECT (object)' failed

(amule:9258): GLib-GObject-CRITICAL **: g_object_ref: assertion `G_IS_OBJECT (object)' failed

(amule:9258): GLib-GObject-CRITICAL **: g_object_ref: assertion `G_IS_OBJECT (object)' failed

(amule:9258): GLib-GObject-CRITICAL **: g_object_ref: assertion `G_IS_OBJECT (object)' failed

(amule:9258): GLib-GObject-CRITICAL **: g_object_ref: assertion `G_IS_OBJECT (object)' failed

(amule:9258): GLib-GObject-CRITICAL **: g_object_ref: assertion `G_IS_OBJECT (object)' failed

(amule:9258): GLib-GObject-CRITICAL **: g_object_ref: assertion `G_IS_OBJECT (object)' failed

(amule:9258): GLib-GObject-CRITICAL **: g_object_ref: assertion `G_IS_OBJECT (object)' failed

(amule:9258): GLib-GObject-WARNING **: instance of invalid non-instantiatable type `(null)'

(amule:9258): GLib-GObject-CRITICAL **: g_signal_emit_valist: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed

(amule:9258): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed

(amule:9258): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed

(amule:9258): GLib-GObject-CRITICAL **: g_object_ref: assertion `G_IS_OBJECT (object)' failed

(amule:9258): GLib-GObject-WARNING **: instance of invalid non-instantiatable type `(null)'

(amule:9258): GLib-GObject-CRITICAL **: g_signal_emit_valist: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed

(amule:9258): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed

(amule:9258): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed

(amule:9258): GLib-GObject-CRITICAL **: g_object_ref: assertion `G_IS_OBJECT (object)' failed

(amule:9258): GLib-GObject-WARNING **: instance of invalid non-instantiatable type `(null)'

(amule:9258): GLib-GObject-CRITICAL **: g_signal_emit_valist: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed

(amule:9258): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed

(amule:9258): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed

(amule:9258): GLib-GObject-CRITICAL **: g_object_ref: assertion `G_IS_OBJECT (object)' failed

(amule:9258): GLib-GObject-WARNING **: instance of invalid non-instantiatable type `(null)'

(amule:9258): GLib-GObject-CRITICAL **: g_signal_emit_valist: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed

(amule:9258): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed

(amule:9258): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed

(amule:9258): GLib-GObject-CRITICAL **: g_object_ref: assertion `G_IS_OBJECT (object)' failed

(amule:9258): GLib-GObject-WARNING **: instance of invalid non-instantiatable type `(null)'

(amule:9258): GLib-GObject-CRITICAL **: g_signal_emit_valist: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed

(amule:9258): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed

(amule:9258): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed

(amule:9258): GLib-GObject-CRITICAL **: g_object_ref: assertion `G_IS_OBJECT (object)' failed

(amule:9258): GLib-GObject-WARNING **: instance of invalid non-instantiatable type `(null)'

(amule:9258): GLib-GObject-CRITICAL **: g_signal_emit_valist: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed

(amule:9258): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed

(amule:9258): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed

(amule:9258): GLib-GObject-CRITICAL **: g_object_ref: assertion `G_IS_OBJECT (object)' failed

(amule:9258): GLib-GObject-WARNING **: instance of invalid non-instantiatable type `(null)'

(amule:9258): GLib-GObject-CRITICAL **: g_signal_emit_valist: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed

(amule:9258): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed

(amule:9258): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed

(amule:9258): GLib-GObject-CRITICAL **: g_object_ref: assertion `G_IS_OBJECT (object)' failed

(amule:9258): GLib-GObject-WARNING **: instance of invalid non-instantiatable type `(null)'

(amule:9258): GLib-GObject-CRITICAL **: g_signal_emit_valist: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed

(amule:9258): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed

(amule:9258): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed

(amule:9258): GLib-GObject-CRITICAL **: g_object_ref: assertion `G_IS_OBJECT (object)' failed

(amule:9258): GLib-GObject-WARNING **: instance of invalid non-instantiatable type `(null)'

(amule:9258): GLib-GObject-CRITICAL **: g_signal_emit_valist: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed

(amule:9258): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed

(amule:9258): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed

(amule:9258): GLib-GObject-CRITICAL **: g_object_ref: assertion `G_IS_OBJECT (object)' failed

(amule:9258): GLib-GObject-WARNING **: instance of invalid non-instantiatable type `(null)'

(amule:9258): GLib-GObject-CRITICAL **: g_signal_emit_valist: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed

(amule:9258): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed

(amule:9258): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed

(amule:9258): GLib-GObject-CRITICAL **: g_object_ref: assertion `G_IS_OBJECT (object)' failed

(amule:9258): GLib-GObject-WARNING **: instance of invalid non-instantiatable type `(null)'

(amule:9258): GLib-GObject-CRITICAL **: g_signal_emit_valist: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed

(amule:9258): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed

(amule:9258): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed

(amule:9258): GLib-GObject-CRITICAL **: g_object_ref: assertion `G_IS_OBJECT (object)' failed

(amule:9258): GLib-GObject-WARNING **: instance of invalid non-instantiatable type `(null)'

(amule:9258): GLib-GObject-CRITICAL **: g_signal_emit_valist: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed

(amule:9258): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed

(amule:9258): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed

(amule:9258): GLib-GObject-CRITICAL **: g_object_ref: assertion `G_IS_OBJECT (object)' failed

(amule:9258): GLib-GObject-WARNING **: instance of invalid non-instantiatable type `(null)'

(amule:9258): GLib-GObject-CRITICAL **: g_signal_emit_valist: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed

(amule:9258): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed

(amule:9258): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed

(amule:9258): GLib-GObject-CRITICAL **: g_object_ref: assertion `G_IS_OBJECT (object)' failed

(amule:9258): GLib-GObject-WARNING **: instance of invalid non-instantiatable type `(null)'

(amule:9258): GLib-GObject-CRITICAL **: g_signal_emit_valist: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed

(amule:9258): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed

(amule:9258): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed

(amule:9258): GLib-GObject-CRITICAL **: g_object_ref: assertion `G_IS_OBJECT (object)' failed

(amule:9258): GLib-GObject-WARNING **: instance of invalid non-instantiatable type `(null)'

(amule:9258): GLib-GObject-CRITICAL **: g_signal_emit_valist: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed

(amule:9258): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed

(amule:9258): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed

(amule:9258): GLib-GObject-CRITICAL **: g_object_ref: assertion `G_IS_OBJECT (object)' failed

(amule:9258): GLib-GObject-WARNING **: instance of invalid non-instantiatable type `(null)'

(amule:9258): GLib-GObject-CRITICAL **: g_signal_emit_valist: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed

(amule:9258): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed

(amule:9258): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed

(amule:9258): GLib-GObject-CRITICAL **: g_object_ref: assertion `G_IS_OBJECT (object)' failed

(amule:9258): GLib-GObject-WARNING **: instance of invalid non-instantiatable type `(null)'

(amule:9258): GLib-GObject-CRITICAL **: g_signal_emit_valist: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed

(amule:9258): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed

(amule:9258): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed

(amule:9258): GLib-GObject-CRITICAL **: g_object_ref: assertion `G_IS_OBJECT (object)' failed

(amule:9258): GLib-GObject-WARNING **: instance of invalid non-instantiatable type `(null)'

(amule:9258): GLib-GObject-CRITICAL **: g_signal_emit_valist: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed

(amule:9258): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed

(amule:9258): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed

(amule:9258): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed

(amule:9258): GLib-GObject-WARNING **: invalid uninstantiatable type `(null)' in cast to `GtkObject'

(amule:9258): GLib-GObject-WARNING **: invalid uninstantiatable type `(null)' in cast to `GtkObject'

(amule:9258): GLib-GObject-WARNING **: invalid uninstantiatable type `(null)' in cast to `GtkObject'

(amule:9258): GLib-GObject-WARNING **: invalid uninstantiatable type `(null)' in cast to `GtkObject'

(amule:9258): GLib-GObject-WARNING **: invalid uninstantiatable type `(null)' in cast to `GtkObject'

(amule:9258): GLib-GObject-WARNING **: invalid uninstantiatable type `(null)' in cast to `GtkObject'

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1227544880 (LWP 9258)]
0xb6e9b400 in g_slice_alloc () from /opt/gnome/lib/libglib-2.0.so.0
(gdb)
Title: Re: Daily CVS 20061225
Post by: bhunji42 on January 18, 2007, 12:45:23 PM
I got a partial memory map from gdb this time...

Quote
(gdb) run
Starting program: /usr/local/bin/amule --even-if-lfroen-complains-this-will-stay
Failed to read a valid object file image from memory.
[Thread debugging using libthread_db enabled]
[New Thread -1227839792 (LWP 26888)]
Initialising aMule
Checking if there is an instance already running...
No other instances are running.
[New Thread -1229182064 (LWP 26895)]
HTTP download thread started
[New Thread -1241609328 (LWP 26897)]
Loading temp files from /home/gaspode/.xMule/Temp.
Loading PartFile 686 of 686
All PartFiles Loaded.
ListenSocket: Ok.

External connections disabled in config file
*** Server UDP socket (TCP+3) at 0.0.0.0:4664
*** TCP socket (TCP) listening on 0.0.0.0:4661
*** Client UDP socket (extended eMule) at 0.0.0.0:4672
Adding file /home/gaspode/.xMule/Temp/150.part.met to shares
Adding file /home/gaspode/.xMule/Temp/139.part.met to shares
Adding file /home/gaspode/.xMule/Temp/174.part.met to shares
Adding file /home/gaspode/.xMule/Temp/181.part.met to shares
Adding file /home/gaspode/.xMule/Temp/168.part.met to shares
Adding file /home/gaspode/.xMule/Temp/182.part.met to shares
Adding file /home/gaspode/.xMule/Temp/166.part.met to shares
Adding file /home/gaspode/.xMule/Temp/071.part.met to shares
Adding file /home/gaspode/.xMule/Temp/080.part.met to shares
Adding file /home/gaspode/.xMule/Temp/106.part.met to shares
[New Thread -1250002032 (LWP 26898)]
[New Thread -1258394736 (LWP 26899)]
Host: amule.sourceforge.net:80
URL: http://amule.sourceforge.net/lastversion
Response: 200 (Error: 0)
Download size: 6
HTTP download thread ended
[Thread -1229182064 (zombie) exited]
[Thread -1250002032 (zombie) exited]
*** glibc detected *** /usr/local/bin/amule: corrupted double-linked list: 0x09b9f8f8 ***
======= Backtrace: =========
/lib/libc.so.6[0xb75b86e1]
/lib/libc.so.6[0xb75baa40]
/lib/libc.so.6(__libc_malloc+0x85)[0xb75bc0c5]
/usr/lib/libstdc++.so.6(_Znwj+0x27)[0xb7764477]
/usr/local/bin/amule[0x812f5aa]
/usr/local/bin/amule[0x82e6ff9]
/usr/local/bin/amule[0x82e78da]
/usr/local/bin/amule[0x82e79ca]
/usr/local/bin/amule[0x82e79e4]
/usr/local/bin/amule[0x82dea30]
/usr/local/bin/amule[0x82df7fb]
/usr/local/bin/amule[0x807d099]
/usr/local/lib/libwx_baseu-2.8.so.0(_ZNK12wxAppConsole11HandleEventEP12wxEvtHandlerMS0_FvR7wxEventES3_+0x35)[0xb77f0305]
/usr/local/lib/libwx_baseu-2.8.so.0(_ZN12wxEvtHandler21ProcessEventIfMatchesERK21wxEventTableEntryBasePS_R7wxEvent+0x8f)[0xb789826f]
/usr/local/lib/libwx_baseu-2.8.so.0(_ZN16wxEventHashTable11HandleEventER7wxEventP12wxEvtHandler+0x7d)[0xb78983bd]
/usr/local/lib/libwx_baseu-2.8.so.0(_ZN12wxEvtHandler12ProcessEventER7wxEvent+0xc6)[0xb7898526]
/usr/local/lib/libwx_baseu-2.8.so.0(_ZN12wxEvtHandler20ProcessPendingEventsEv+0x70)[0xb78989e0]
/usr/local/lib/libwx_baseu-2.8.so.0(_ZN12wxAppConsole20ProcessPendingEventsEv+0x5f)[0xb77f0cbf]
/usr/local/lib/libwx_gtk2u_core-2.8.so.0(_ZN9wxAppBase6OnIdleER11wxIdleEvent+0x22)[0xb7ae3b62]
/usr/local/lib/libwx_baseu-2.8.so.0(_ZNK12wxAppConsole11HandleEventEP12wxEvtHandlerMS0_FvR7wxEventES3_+0x35)[0xb77f0305]
/usr/local/lib/libwx_baseu-2.8.so.0(_ZN12wxEvtHandler21ProcessEventIfMatchesERK21wxEventTableEntryBasePS_R7wxEvent+0x8f)[0xb789826f]
/usr/local/lib/libwx_baseu-2.8.so.0(_ZN16wxEventHashTable11HandleEventER7wxEventP12wxEvtHandler+0x7d)[0xb78983bd]
/usr/local/lib/libwx_baseu-2.8.so.0(_ZN12wxEvtHandler12ProcessEventER7wxEvent+0xc6)[0xb7898526]
/usr/local/lib/libwx_gtk2u_core-2.8.so.0(_ZN9wxAppBase11ProcessIdleEv+0x9e)[0xb7ae3e2e]
/usr/local/lib/libwx_gtk2u_core-2.8.so.0[0xb7a37c9a]
/opt/gnome/lib/libglib-2.0.so.0[0xb6e3a061]
/opt/gnome/lib/libglib-2.0.so.0(g_main_context_dispatch+0x182)[0xb6e3bde2]
/opt/gnome/lib/libglib-2.0.so.0[0xb6e3ee1f]
/opt/gnome/lib/libglib-2.0.so.0(g_main_loop_run+0x1a9)[0xb6e3f1c9]
/opt/gnome/lib/libgtk-x11-2.0.so.0(gtk_main+0xb4)[0xb7336cd4]
/usr/local/lib/libwx_gtk2u_core-2.8.so.0(_ZN11wxEventLoop3RunEv+0x5c)[0xb7a531ec]
/usr/local/lib/libwx_gtk2u_core-2.8.so.0(_ZN9wxAppBase8MainLoopEv+0x4e)[0xb7ae3d4e]
/usr/local/lib/libwx_gtk2u_core-2.8.so.0(_ZN9wxAppBase5OnRunEv+0x21)[0xb7ae3301]
/usr/local/lib/libwx_baseu-2.8.so.0(_Z7wxEntryRiPPw+0x6a)[0xb782c0aa]
/usr/local/lib/libwx_baseu-2.8.so.0(_Z7wxEntryRiPPc+0x36)[0xb782c156]
/usr/local/bin/amule[0x820c1a6]
/lib/libc.so.6(__libc_start_main+0xdc)[0xb7569f9c]
/usr/local/bin/amule(_ZN9wxAppBase8MainLoopEv+0x3d)[0x806e201]
======= Memory map: ========
08048000-08594000 r-xp 00000000 21:02 45929      /usr/local/bin/amule
08594000-08595000 r--p 0054b000 21:02 45929      /usr/local/bin/amule
08595000-0859e000 rw-p 0054c000 21:02 45929      /usr/local/bin/amule
0859e000-09c2b000 rw-p 0859e000 00:00 0          [heap]
b4600000-b4621000 rw-p b4600000 00:00 0
b4621000-b4700000 ---p b4621000 00:00 0
b47a0000-b47e6000 r--p 00000000 21:02 126259     /usr/share/fonts/truetype/arialbd.ttf
b47e6000-b47e7000 ---p b47e6000 00:00 0
b47e7000-b4fe7000 rw-p b47e7000 00:00 0
b4fe7000-b4fe8000 ---p b4fe7000 00:00 0
b4fe8000-b57e8000 rw-p b4fe8000 00:00 0
b57e8000-b57e9000 ---p b57e8000 00:00 0
b57e9000-b5fe9000 rw-p b57e9000 00:00 0
b5fe9000-b6016000 r--p 00000000 21:02 15722      /var/cache/libx11/compose/l4_024_313cb605_00280cc0
b6016000-b60c1000 r--p 00000000 21:02 129015     /usr/lib/jvm/java-1.5.0-sun-1.5.0_update10/jre/lib/fonts/LucidaSansRegular.ttf
b60c1000-b60c4000 r-xp 00000000 21:02 74359      /opt/gnome/lib/pango/1.5.0/modules/pango-arabic-fc.so
b60c4000-b60c6000 rw-p 00002000 21:02 74359      /opt/gnome/lib/pango/1.5.0/modules/pango-arabic-fc.so
b60c6000-b60ca000 r-xp 00000000 21:02 74367      /opt/gnome/lib/pango/1.5.0/modules/pango-thai-fc.so
b60ca000-b60cc000 rw-p 00003000 21:02 74367      /opt/gnome/lib/pango/1.5.0/modules/pango-thai-fc.so
b60cc000-b6118000 rw-p b60cc000 00:00 0
b6118000-b6170000 r--p 00000000 21:02 57152      /usr/share/fonts/misc/12x13ja.pcf.gz
b6170000-b6174000 r-xp 00000000 21:02 78344      /opt/gnome/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-png.so
b6174000-b6176000 rw-p 00003000 21:02 78344      /opt/gnome/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-png.so
b6177000-b61bb000 r--p 00000000 21:02 126263     /usr/share/fonts/truetype/arial.ttf
b61bb000-b61bd000 r-xp 00000000 21:02 74360      /opt/gnome/lib/pango/1.5.0/modules/pango-basic-fc.so
b61bd000-b61bf000 rw-p 00001000 21:02 74360      /opt/gnome/lib/pango/1.5.0/modules/pango-basic-fc.so
b61bf000-b61c6000 r--s 00000000 21:02 125909     /var/cache/fontconfig/77e41c5059666d75f92e318d4be8c21e-x86.cache-2
b61c6000-b61c9000 r--s 00000000 21:02 42596      /var/cache/fontconfig/829d941efc342f259e12320326ddb876-x86.cache-2
b61c9000-b61ca000 r--s 00000000 21:02 125919     /var/cache/fontconfig/b6bbb9f898b73777cfe763014a8c08d3-x86.cache-2
b61ca000-b6210000 r--s 00000000 21:02 125905     /var/cache/fontconfig/df311e82a1a24c41a75c2c930223552e-x86.cache-2
b6210000-b622c000 r--s 00000000 21:02 126320     /var/cache/fontconfig/7ef2298fde41cc6eeb7af42e48b7d293-x86.cache-2
b622c000-b6231000 r--s 00000000 21:02 125908     /var/cache/fontconfig/d62e99ef547d1d24cdb1bd22ec1a2976-x86.cache-2
b6231000-b6277000 r--s 00000000 21:02 125906     /var/cache/fontconfig/17090aa38d5c6f09fb8c5c354938f1d7-x86.cache-2
b6277000-b629a000 r--s 00000000 21:02 125913     /var/cache/fontconfig/8d4af663993b81a124ee82e610bb31f9-x86.cache-2
b629a000-b629c000 r--s 00000000 21:02 125915     /var/cac
Program received signal SIGABRT, Aborted.
[Switching to Thread -1227839792 (LWP 26888)]
0xb7f51410 in ?? ()
(gdb)
Title: Re: Daily CVS 20061225
Post by: phoenix on January 22, 2007, 09:51:33 PM
Quote
Originally posted by bhunji42
How do I pass valgrind the --lfroen switch?

Extra parameters go in the end, e.g.:

$ valgrind -v --tool=memcheck --leak-check=yes --db-attach=yes --num-callers=10 --gen-suppressions=yes /usr/local/bin/amule --enable-stdin --even-if-lfroen-complains-this-will-stay
Title: Re: Daily CVS 20061225
Post by: bhunji42 on January 25, 2007, 12:00:42 AM
okay, I just now started valgrind with the exact line you gave.

I'm not sure its related since amule hasn't crashed yet, but i received the following when starting the amule.

Quote
Initialising aMule
Checking if there is an instance already running...
No other instances are running.
HTTP download thread started
--32338-- memcheck GC: 1024 nodes, 1024 survivors (100.0%)
--32338-- memcheck GC: increase table size to 2048
--32338-- Reading syms from /opt/gnome/lib/gtk-2.0/2.10.0/engines/libqtcurve.so (0x66EB000)
--32338--    object doesn't have a symbol table
--32338-- Reading syms from /opt/gnome/lib/gtk-2.0/2.10.0/immodules/im-xim.so (0x680C000)
--32338--    object doesn't have a symbol table
==32338== Syscall param write(buf) points to uninitialised byte(s)
==32338==    at 0x4051FAB: (within /lib/libpthread-2.5.so)
==32338==    by 0x4FE246E: _X11TransWrite (in /usr/lib/libX11.so.6.2.0)
==32338==    by 0x4FE8096: (within /usr/lib/libX11.so.6.2.0)
==32338==    by 0x4FE816A: _XReply (in /usr/lib/libX11.so.6.2.0)
==32338==    by 0x4FDF419: XSync (in /usr/lib/libX11.so.6.2.0)
==32338==    by 0x4DB5771: (within /opt/gnome/lib/libgdk-x11-2.0.so.0.1000.6)
==32338==    by 0x4D88EBD: (within /opt/gnome/lib/libgdk-x11-2.0.so.0.1000.6)
==32338==    by 0x4D891F2: (within /opt/gnome/lib/libgdk-x11-2.0.so.0.1000.6)
==32338==    by 0x4D94940: (within /opt/gnome/lib/libgdk-x11-2.0.so.0.1000.6)
==32338==    by 0x4D94EFE: gdk_draw_rgb_image (in /opt/gnome/lib/libgdk-x11-2.0.so.0.1000.6)
==32338==  Address 0x530D0C0 is 2,128 bytes inside a block of size 16,384 alloc'd
==32338==    at 0x402272F: calloc (in /usr/lib/valgrind/x86-linux/vgpreload_memcheck.so)
==32338==    by 0x4FD3216: XOpenDisplay (in /usr/lib/libX11.so.6.2.0)
==32338==    by 0x4DA3131: gdk_display_open (in /opt/gnome/lib/libgdk-x11-2.0.so.0.1000.6)
==32338==    by 0x4D80CBE: gdk_display_open_default_libgtk_only (in /opt/gnome/lib/libgdk-x11-2.0.so.0.1000.6)
==32338==    by 0x4B5629E: gtk_init_check (in /opt/gnome/lib/libgtk-x11-2.0.so.0.1000.6)
==32338==    by 0x43AE8B3: wxApp::Initialize(int&, wchar_t**) (in /usr/local/lib/libwx_gtk2u_core-2.8.so.0.0.0)
==32338==    by 0x46F6E22: wxEntryStart(int&, wchar_t**) (in /usr/local/lib/libwx_baseu-2.8.so.0.0.0)
==32338==    by 0x46F706B: wxEntry(int&, wchar_t**) (in /usr/local/lib/libwx_baseu-2.8.so.0.0.0)
==32338==    by 0x46F7155: wxEntry(int&, char**) (in /usr/local/lib/libwx_baseu-2.8.so.0.0.0)
==32338==    by 0x820C1A5: main (amule-gui.cpp:95)
==32338==
==32338== ---- Attach to debugger ? --- [Return/N/n/Y/y/C/c] ---- y
starting debugger
==32338== starting debugger with cmd: /usr/bin/gdb -nw /proc/32344/fd/1024 32344
GNU gdb 6.5
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i586-suse-linux"...Using host libthread_db library "/lib/libthread_db.so.1".

Attaching to program: /proc/32344/fd/1024, process 32344
Failed to read a valid object file image from memory.
0x040008b2 in ?? ()
(gdb) q
The program is running.  Quit anyway (and detach it)? (y or n) y
Detaching from program: /proc/32344/fd/1024, process 32344
==32338==
==32338== Debugger has detached.  Valgrind regains control.  We continue.
==32338==
==32338== ---- Print suppression ? --- [Return/N/n/Y/y/C/c] ---- y
{
   
   Memcheck:Param
   write(buf)
   obj:/lib/libpthread-2.5.so
   fun:_X11TransWrite
   obj:/usr/lib/libX11.so.6.2.0
   fun:_XReply
   fun:XSync
   obj:/opt/gnome/lib/libgdk-x11-2.0.so.0.1000.6
   obj:/opt/gnome/lib/libgdk-x11-2.0.so.0.1000.6
   obj:/opt/gnome/lib/libgdk-x11-2.0.so.0.1000.6
   obj:/opt/gnome/lib/libgdk-x11-2.0.so.0.1000.6
   fun:gdk_draw_rgb_image
}
--32338-- Reading syms from /opt/gnome/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-xpm.so (0x6874000)
--32338--    object doesn't have a symbol tableInitialising aMule
Checking if there is an instance already running...
No other instances are running.
HTTP download thread started
--32338-- memcheck GC: 1024 nodes, 1024 survivors (100.0%)
--32338-- memcheck GC: increase table size to 2048
--32338-- Reading syms from /opt/gnome/lib/gtk-2.0/2.10.0/engines/libqtcurve.so (0x66EB000)
--32338--    object doesn't have a symbol table
--32338-- Reading syms from /opt/gnome/lib/gtk-2.0/2.10.0/immodules/im-xim.so (0x680C000)
--32338--    object doesn't have a symbol table
==32338== Syscall param write(buf) points to uninitialised byte(s)
==32338==    at 0x4051FAB: (within /lib/libpthread-2.5.so)
==32338==    by 0x4FE246E: _X11TransWrite (in /usr/lib/libX11.so.6.2.0)
==32338==    by 0x4FE8096: (within /usr/lib/libX11.so.6.2.0)
==32338==    by 0x4FE816A: _XReply (in /usr/lib/libX11.so.6.2.0)
==32338==    by 0x4FDF419: XSync (in /usr/lib/libX11.so.6.2.0)
==32338==    by 0x4DB5771: (within /opt/gnome/lib/libgdk-x11-2.0.so.0.1000.6)
==32338==    by 0x4D88EBD: (within /opt/gnome/lib/libgdk-x11-2.0.so.0.1000.6)
==32338==    by 0x4D891F2: (within /opt/gnome/lib/libgdk-x11-2.0.so.0.1000.6)
==32338==    by 0x4D94940: (within /opt/gnome/lib/libgdk-x11-2.0.so.0.1000.6)
==32338==    by 0x4D94EFE: gdk_draw_rgb_image (in /opt/gnome/lib/libgdk-x11-2.0.so.0.1000.6)
==32338==  Address 0x530D0C0 is 2,128 bytes inside a block of size 16,384 alloc'd
==32338==    at 0x402272F: calloc (in /usr/lib/valgrind/x86-linux/vgpreload_memcheck.so)
==32338==    by 0x4FD3216: XOpenDisplay (in /usr/lib/libX11.so.6.2.0)
==32338==    by 0x4DA3131: gdk_display_open (in /opt/gnome/lib/libgdk-x11-2.0.so.0.1000.6)
==32338==    by 0x4D80CBE: gdk_display_open_default_libgtk_only (in /opt/gnome/lib/libgdk-x11-2.0.so.0.1000.6)
==32338==    by 0x4B5629E: gtk_init_check (in /opt/gnome/lib/libgtk-x11-2.0.so.0.1000.6)
==32338==    by 0x43AE8B3: wxApp::Initialize(int&, wchar_t**) (in /usr/local/lib/libwx_gtk2u_core-2.8.so.0.0.0)
==32338==    by 0x46F6E22: wxEntryStart(int&, wchar_t**) (in /usr/local/lib/libwx_baseu-2.8.so.0.0.0)
==32338==    by 0x46F706B: wxEntry(int&, wchar_t**) (in /usr/local/lib/libwx_baseu-2.8.so.0.0.0)
==32338==    by 0x46F7155: wxEntry(int&, char**) (in /usr/local/lib/libwx_baseu-2.8.so.0.0.0)
==32338==    by 0x820C1A5: main (amule-gui.cpp:95)
==32338==
==32338== ---- Attach to debugger ? --- [Return/N/n/Y/y/C/c] ---- y
starting debugger
==32338== starting debugger with cmd: /usr/bin/gdb -nw /proc/32344/fd/1024 32344
GNU gdb 6.5
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i586-suse-linux"...Using host libthread_db library "/lib/libthread_db.so.1".

Attaching to program: /proc/32344/fd/1024, process 32344
Failed to read a valid object file image from memory.
0x040008b2 in ?? ()
(gdb) q
The program is running.  Quit anyway (and detach it)? (y or n) y
Detaching from program: /proc/32344/fd/1024, process 32344
==32338==
==32338== Debugger has detached.  Valgrind regains control.  We continue.
==32338==
==32338== ---- Print suppression ? --- [Return/N/n/Y/y/C/c] ---- y
{
   
   Memcheck:Param
   write(buf)
   obj:/lib/libpthread-2.5.so
   fun:_X11TransWrite
   obj:/usr/lib/libX11.so.6.2.0
   fun:_XReply
   fun:XSync
   obj:/opt/gnome/lib/libgdk-x11-2.0.so.0.1000.6
   obj:/opt/gnome/lib/libgdk-x11-2.0.so.0.1000.6
   obj:/opt/gnome/lib/libgdk-x11-2.0.so.0.1000.6
   obj:/opt/gnome/lib/libgdk-x11-2.0.so.0.1000.6
   fun:gdk_draw_rgb_image
}
--32338-- Reading syms from /opt/gnome/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-xpm.so (0x6874000)
--32338--    object doesn't have a symbol table

I'll add the suppression to my sup file, but thought it might be important for this...

is there a command in gdb you'd like me to try at this stage?

I'll let this instance continue running until it crashes...
Title: Re: Daily CVS 20061225
Post by: phoenix on January 25, 2007, 01:27:05 AM
Well, you must let the program run until an error occurs inside aMule. I will attach my aMule suppression file, but I don't know if it is good for your system.

I had to add the extension txt to it otherwise the forum won't accept the attachment.
Title: Re: Daily CVS 20061225
Post by: bhunji42 on January 26, 2007, 12:19:53 AM
I'm not sure that, that sup file will work, i found a similar entry for the first suppression in my sup file, but it was listed slightly different.

like yours has fun:malloc and obj:/usr/lib/libgdk-x11-2.0.so.0.600.10
where mine has fun:_vgrZU_libcZdsoZa_malloc and obj:/opt/gnome/lib/libgdk-x11-2.0.so.0.1000.6

I'm not sure if the difference in numbers matters...

I looked for the next couple but I don't have anything with libz yet...

my sup file seems a tad larger than the one you have...  I'll add it as an attachment if you want to compare. but the first one in your list and the sixth one in mine seem similar but not the same...

I'll continue adding to my sup file as I receive suppressions...
Title: Re: Daily CVS 20061225
Post by: phoenix on January 26, 2007, 01:42:01 PM
Ok, but just try not to suppress what you are looking for ;)
Title: Re: Daily CVS 20061225
Post by: bhunji42 on June 22, 2007, 03:44:17 AM
Hey,

Just an update...

I wasn't able to get amule to run properly within valgrind on my machine, it was to slow to load the servers and establsh a connection, seemed like it was timing out. So I gave up on it.

I noticed the following though, the crashes seem to only occur after I preview a video in mplayer, but not directly after.

After previewing the video if I try to do a search it sometimes crashes or if a file is near completion, as a few times when I restart amule after a crash a file will complete.

I updated aMule to 20070516 and still have the same problem.