aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Pages: 1 [2]

Author Topic: Daily CVS 20061225  (Read 6243 times)

phoenix

  • Evil respawning bird from aMule Dev Team
  • Developer
  • Hero Member
  • *****
  • Karma: 44
  • Offline Offline
  • Posts: 2505
  • The last shadow you'll ever see
Re: Daily CVS 20061225
« Reply #15 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
Logged

bhunji42

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 21
Re: Daily CVS 20061225
« Reply #16 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...
« Last Edit: January 25, 2007, 12:03:24 AM by bhunji42 »
Logged

phoenix

  • Evil respawning bird from aMule Dev Team
  • Developer
  • Hero Member
  • *****
  • Karma: 44
  • Offline Offline
  • Posts: 2505
  • The last shadow you'll ever see
Re: Daily CVS 20061225
« Reply #17 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.
Logged

bhunji42

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 21
Re: Daily CVS 20061225
« Reply #18 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...
Logged

phoenix

  • Evil respawning bird from aMule Dev Team
  • Developer
  • Hero Member
  • *****
  • Karma: 44
  • Offline Offline
  • Posts: 2505
  • The last shadow you'll ever see
Re: Daily CVS 20061225
« Reply #19 on: January 26, 2007, 01:42:01 PM »

Ok, but just try not to suppress what you are looking for ;)
Logged

bhunji42

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 21
Re: Daily CVS 20061225
« Reply #20 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.

Logged
Pages: 1 [2]