Michael Schmitt wrote:
> Has anybody used the famous valgrind tool in the last couple of weeks? I
> think it would be a good if some Linux guy ran it for, say, half an hour,
> clicking on various menu items and doing some editing. Anybody
> volunteering? (I would but I don't have a Linux system anymore :-( )
Apart from the fact that I don't have the time to click for half an hour:
valgrind --tool=memcheck --workaround-gcc296-bugs=yes --leak-check=yes
-v ./lyx 2>e.log
results in a segmentation fault and the attached file e.log. Running LyX
directly works. Removing the memcheck options does not alter the result.
Do we have any valgrind expert here who can make sense of this or tell me
how I can find out where the segmentation fault happens?
Georg
==29571== Memcheck, a memory error detector for x86-linux.
==29571== Copyright (C) 2002-2004, and GNU GPL'd, by Julian Seward et al.
==29571== Using valgrind-2.2.0, a program supervision framework for x86-linux.
==29571== Copyright (C) 2000-2004, and GNU GPL'd, by Julian Seward et al.
==29571== Valgrind library directory: /usr/lib/valgrind
==29571== Command line
==29571== ./lyx
==29571== Startup, with flags:
==29571== --tool=memcheck
==29571== --workaround-gcc296-bugs=yes
==29571== --leak-check=yes
==29571== -v
==29571== Contents of /proc/version:
==29571== Linux version 2.6.8-24.16-default ([EMAIL PROTECTED]) (gcc version
3.3.4 (pre 3.3.5 20040809)) #1 Thu Jun 2 12:09:57 UTC 2005
==29571== Reading syms from
/home/baum/sw/src/lyx-1.4-clean-build/build-tree/src/lyx-qt (0x8048000)
==29571== Reading syms from /lib/ld-2.3.3.so (0x1B8E4000)
==29571== object doesn't have any debug info
==29571== Reading syms from /usr/lib/valgrind/stage2 (0xB0000000)
==29571== object doesn't have any debug info
==29571== Reading syms from /lib/ld-2.3.3.so (0xB1000000)
==29571== object doesn't have any debug info
==29571== Reading syms from /lib/libdl.so.2 (0xB1032000)
==29571== object doesn't have any debug info
==29571== Reading syms from /lib/tls/libc.so.6 (0xB1036000)
==29571== object doesn't have any debug info
==29571== Reading syms from /usr/lib/valgrind/vgskin_memcheck.so (0xB124D000)
==29571== object doesn't have any debug info
==29571== Reading suppressions file: /usr/lib/valgrind/default.supp
==29571== REDIRECT soname:libc.so.6(__GI___errno_location) to
soname:libpthread.so.0(__errno_location)
==29571== REDIRECT soname:libc.so.6(__errno_location) to
soname:libpthread.so.0(__errno_location)
==29571== REDIRECT soname:libc.so.6(__GI___h_errno_location) to
soname:libpthread.so.0(__h_errno_location)
==29571== REDIRECT soname:libc.so.6(__h_errno_location) to
soname:libpthread.so.0(__h_errno_location)
==29571== REDIRECT soname:libc.so.6(__GI___res_state) to
soname:libpthread.so.0(__res_state)
==29571== REDIRECT soname:libc.so.6(__res_state) to
soname:libpthread.so.0(__res_state)
==29571== REDIRECT soname:libc.so.6(stpcpy) to *vgpreload_memcheck.so*(stpcpy)
==29571== REDIRECT soname:libc.so.6(strnlen) to *vgpreload_memcheck.so*(strnlen)
==29571== REDIRECT soname:ld-linux.so.2(stpcpy) to
*vgpreload_memcheck.so*(stpcpy)
==29571== REDIRECT soname:ld-linux.so.2(strchr) to
*vgpreload_memcheck.so*(strchr)
==29571==
==29571== Reading syms from /usr/lib/valgrind/vg_inject.so (0x1B8FD000)
==29571== object doesn't have any debug info
==29571== Reading syms from /usr/lib/valgrind/vgpreload_memcheck.so (0x1B900000)
==29571== object doesn't have any debug info
==29571== TRANSLATE: 0x1B8F6580 redirected to 0x1B9031D0
==29571== Reading syms from /usr/lib/qt3/lib/libqt-mt.so.3.3.3 (0x1B909000)
==29571== object doesn't have any debug info
==29571== Reading syms from /usr/lib/libpng.so.3.1.2.6 (0x1C023000)
==29571== object doesn't have any debug info
==29571== Reading syms from /usr/X11R6/lib/libXi.so.6.0 (0x1C052000)
==29571== object doesn't have any debug info
==29571== Reading syms from /usr/X11R6/lib/libXrender.so.1.2.2 (0x1C05B000)
==29571== object doesn't have any debug info
==29571== Reading syms from /usr/X11R6/lib/libXrandr.so.2.0 (0x1C064000)
==29571== object doesn't have any debug info
==29571== Reading syms from /usr/X11R6/lib/libXcursor.so.1.0.2 (0x1C069000)
==29571== object doesn't have any debug info
==29571== Reading syms from /usr/X11R6/lib/libXft.so.2.1.2 (0x1C075000)
==29571== object doesn't have any debug info
==29571== Reading syms from /usr/lib/libfontconfig.so.1.0.4 (0x1C089000)
==29571== object doesn't have any debug info
==29571== Reading syms from /usr/lib/libfreetype.so.6.3.7 (0x1C0B4000)
==29571== object doesn't have any debug info
==29571== Reading syms from /usr/lib/libexpat.so.0.5.0 (0x1C124000)
==29571== object doesn't have any debug info
==29571== Reading syms from /usr/X11R6/lib/libXext.so.6.4 (0x1C144000)
==29571== object doesn't have any debug info
==29571==
==29571== Process terminating with default action of signal 11 (SIGSEGV)
==29571== at 0x1B8E967E: _dl_map_object_from_fd (in /lib/ld-2.3.3.so)
==29571== by 0x1B8EACC9: _dl_map_object (in /lib/ld-2.3.3.so)
==29571== by 0x1B8F09CD: openaux (in /lib/ld-2.3.3.so)
==29571== by 0x1B8F0D55: _dl_catch_error (in /lib/ld-2.3.3.so)
==29571==
==29571== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
==29571== malloc/free: in use at exit: 0 bytes in 0 blocks.
==29571== malloc/free: 0 allocs, 0 frees, 0 bytes allocated.
==29571==
==29571== No malloc'd blocks -- no leaks are possible.
--29571-- TT/TC: 0 tc sectors discarded.
--29571-- 942 tt_fast misses.
--29571-- translate: new 811 (15254 -> 193070; ratio 126:10)
--29571-- discard 1 (23 -> 320; ratio 139:10).
--29571-- chainings: 626 chainings, 2 unchainings.
--29571-- dispatch: 273 jumps (bb entries); of them 3085 (1130%) unchained.
--29571-- 102/1121 major/minor sched events.
--29571-- reg-alloc: 208 t-req-spill, 35872+1673 orig+spill uis,
--29571-- 4594 total-reg-rank
--29571-- sanity: 103 cheap, 5 expensive checks.
--29571-- ccalls: 2753 C calls, 51% saves+restores avoided (8424 bytes)
--29571-- 3753 args, avg 0.86 setup instrs each (1016 bytes)
--29571-- 0% clear the stack (8259 bytes)
--29571-- 1285 retvals, 24% of reg-reg movs avoided (602 bytes)