Angus Leeming wrote:

> Could someone running something other than Fedora 1 repeat the
> exercise with current CVS of both LyX and of XForms?

I don't have xforms cvs, but I get basically the same + 2 strncpy errors
with lyx cvs and xforms-1.0-218 on SuSE 9.0 (german locale). This was with
valgrind 2.0.0, but 2.1.1 does not show any difference.


Georg
==14833== Memcheck, a.k.a. Valgrind, a memory error detector for x86-linux.
==14833== Copyright (C) 2002-2003, and GNU GPL'd, by Julian Seward.
==14833== Using valgrind-2.0.0, a program supervision framework for x86-linux.
==14833== Copyright (C) 2000-2003, and GNU GPL'd, by Julian Seward.
==14833== Estimated CPU clock rate is 1299 MHz
==14833== For more details, rerun with: -v
==14833== 
==14833== Source and destination overlap in strncpy(0x403374dd, 0x403374dd, 20)
==14833==    at 0x40025A03: strncpy (mac_replace_strmem.c:95)
==14833==    by 0x402DD039: fl_get_resource (in /usr/X11R6/lib/libforms.so.1.0)
==14833==    by 0x402DE909: get_app_resource (in /usr/X11R6/lib/libforms.so.1.0)
==14833==    by 0x402DE9C3: fl_get_app_resources (in /usr/X11R6/lib/libforms.so.1.0)
==14833==    by 0x402DD25A: fl_init_resources (in /usr/X11R6/lib/libforms.so.1.0)
==14833==    by 0x402DD994: fl_initialize (in /usr/X11R6/lib/libforms.so.1.0)
==14833==    by 0x81D6C31: lyx_gui::parse_init(int&, char**) (lyx_gui.C:162)
==14833==    by 0x80D8D7F: LyX::priv_exec(int&, char**) (lyx_main.C:190)
==14833==    by 0x80D8AE7: LyX::exec(int&, char**) (lyx_main.C:123)
==14833==    by 0x80542DC: main (main.C:42)
==14833==    by 0x40571D16: __libc_start_main (in /lib/i686/libc.so.6)
==14833==    by 0x80541F0: ??? (start.S:102)
==14833== 
==14833== Source and destination overlap in strncpy(0x403374dd, 0x403374dd, 20)
==14833==    at 0x40025A03: strncpy (mac_replace_strmem.c:95)
==14833==    by 0x402DD039: fl_get_resource (in /usr/X11R6/lib/libforms.so.1.0)
==14833==    by 0x402DE909: get_app_resource (in /usr/X11R6/lib/libforms.so.1.0)
==14833==    by 0x402DD25A: fl_init_resources (in /usr/X11R6/lib/libforms.so.1.0)
==14833==    by 0x402DD994: fl_initialize (in /usr/X11R6/lib/libforms.so.1.0)
==14833==    by 0x81D6C31: lyx_gui::parse_init(int&, char**) (lyx_gui.C:162)
==14833==    by 0x80D8D7F: LyX::priv_exec(int&, char**) (lyx_main.C:190)
==14833==    by 0x80D8AE7: LyX::exec(int&, char**) (lyx_main.C:123)
==14833==    by 0x80542DC: main (main.C:42)
==14833==    by 0x40571D16: __libc_start_main (in /lib/i686/libc.so.6)
==14833==    by 0x80541F0: ??? (start.S:102)
==14833== 
==14833== Syscall param write(buf) contains uninitialised or unaddressable byte(s)
==14833==    at 0x4062B108: __GI___libc_write (in /lib/i686/libc.so.6)
==14833==    by 0x403C47CE: _X11TransWrite (in /usr/X11R6/lib/libX11.so.6.2)
==14833==    by 0x403A3805: _XFlushInt (in /usr/X11R6/lib/libX11.so.6.2)
==14833==    by 0x403A4EDE: _XReply (in /usr/X11R6/lib/libX11.so.6.2)
==14833==    by 0x4038C6B3: XGetWindowAttributes (in /usr/X11R6/lib/libX11.so.6.2)
==14833==    by 0x402F8F95: init_xpm_attributes (in /usr/X11R6/lib/libforms.so.1.0)
==14833==    by 0x402F9631: fl_read_pixmapfile (in /usr/X11R6/lib/libforms.so.1.0)
==14833==    by 0x402F97EF: fl_set_pixmap_file (in /usr/X11R6/lib/libforms.so.1.0)
==14833==    by 0x8235B28: XFormsToolbar::add(FuncRequest const&, std::string const&) 
(XFormsToolbar.C:282)
==14833==    by 0x823561D: XFormsToolbar::XFormsToolbar(ToolbarBackend::Toolbar 
const&, LyXView&) (XFormsToolbar.C:172)
==14833==    by 0x8234F5C: make_toolbar(ToolbarBackend::Toolbar const&, LyXView&) 
(XFormsToolbar.C:117)
==14833==    by 0x81D44EA: Toolbars::add(ToolbarBackend::Toolbar const&) 
(Toolbars.C:115)
==14833==    by 0x81D4254: Toolbars::init() (Toolbars.C:40)
==14833==    by 0x823A7FB: XFormsView::XFormsView(int, int) (LyXView.h:83)
==14833==    by 0x81D721A: lyx_gui::start(std::string const&, std::vector<std::string, 
std::allocator<std::string> > const&) (lyx_gui.C:287)
==14833==    by 0x80D93A4: LyX::priv_exec(int&, char**) (lyx_main.C:258)
==14833==    Address 0x41BED20E is 1106 bytes inside a block of size 16384 alloc'd
==14833==    at 0x4002D1BA: calloc (vg_replace_malloc.c:284)
==14833==    by 0x40394A1D: XOpenDisplay (in /usr/X11R6/lib/libX11.so.6.2)
==14833==    by 0x402DD803: fl_initialize (in /usr/X11R6/lib/libforms.so.1.0)
==14833==    by 0x81D6C31: lyx_gui::parse_init(int&, char**) (lyx_gui.C:162)
==14833==    by 0x80D8D7F: LyX::priv_exec(int&, char**) (lyx_main.C:190)
==14833==    by 0x80D8AE7: LyX::exec(int&, char**) (lyx_main.C:123)
==14833==    by 0x80542DC: main (main.C:42)
==14833==    by 0x40571D16: __libc_start_main (in /lib/i686/libc.so.6)
==14833==    by 0x80541F0: ??? (start.S:102)
no text in updateScrollbar
==14833== discard syms in /usr/lib/gconv/ISO8859-15.so due to munmap()
==14833== discard syms in /usr/lib/gconv/ISO8859-1.so due to munmap()
==14833== discard syms in /lib/libnss_compat.so.2 due to munmap()
==14833== discard syms in /lib/libnss_nis.so.2 due to munmap()
==14833== discard syms in /lib/libnsl.so.1 due to munmap()
==14833== discard syms in /lib/libnss_files.so.2 due to munmap()
==14833== 
==14833== ERROR SUMMARY: 72 errors from 3 contexts (suppressed: 22 from 1)
==14833== malloc/free: in use at exit: 524576 bytes in 3550 blocks.
==14833== malloc/free: 30918 allocs, 27368 frees, 4524454 bytes allocated.
==14833== For counts of detected errors, rerun with: -v
==14833== searching for pointers to 3550 not-freed blocks.
==14833== checked 11157716 bytes.
==14833== 
==14833== 
==14833== 13 bytes in 1 blocks are possibly lost in loss record 21 of 167
==14833==    at 0x4002CD3C: malloc (vg_replace_malloc.c:153)
==14833==    by 0x4030114D: fl_strdup (in /usr/X11R6/lib/libforms.so.1.0)
==14833==    by 0x402DD3F1: get_command_name (in /usr/X11R6/lib/libforms.so.1.0)
==14833==    by 0x402DD638: fl_initialize (in /usr/X11R6/lib/libforms.so.1.0)
==14833==    by 0x81D6C31: lyx_gui::parse_init(int&, char**) (lyx_gui.C:162)
==14833==    by 0x80D8D7F: LyX::priv_exec(int&, char**) (lyx_main.C:190)
==14833==    by 0x80D8AE7: LyX::exec(int&, char**) (lyx_main.C:123)
==14833==    by 0x80542DC: main (main.C:42)
==14833==    by 0x40571D16: __libc_start_main (in /lib/i686/libc.so.6)
==14833==    by 0x80541F0: ??? (start.S:102)
==14833== 
==14833== 
==14833== 16 bytes in 1 blocks are definitely lost in loss record 25 of 167
==14833==    at 0x4002CD3C: malloc (vg_replace_malloc.c:153)
==14833==    by 0x403A7472: NewDatabase (in /usr/X11R6/lib/libX11.so.6.2)
==14833==    by 0x403A942B: XrmGetStringDatabase (in /usr/X11R6/lib/libX11.so.6.2)
==14833==    by 0x4038A64E: InitDefaults (in /usr/X11R6/lib/libX11.so.6.2)
==14833==    by 0x4038A7E7: XGetDefault (in /usr/X11R6/lib/libX11.so.6.2)
==14833==    by 0x4209034F: _XcursorGetDisplayInfo (in 
/usr/X11R6/lib/libXcursor.so.1.0)
==14833==    by 0x420903AC: XcursorSupportsARGB (in /usr/X11R6/lib/libXcursor.so.1.0)
==14833==    by 0x42092D6B: XcursorNoticeCreateBitmap (in 
/usr/X11R6/lib/libXcursor.so.1.0)
==14833==    by 0x4038416E: _XNoticeCreateBitmap (in /usr/X11R6/lib/libX11.so.6.2)
==14833==    by 0x4038471C: XCreatePixmap (in /usr/X11R6/lib/libX11.so.6.2)
==14833==    by 0x4038346E: XCreateBitmapFromData (in /usr/X11R6/lib/libX11.so.6.2)
==14833==    by 0x4031484A: fl_init_stipples (in /usr/X11R6/lib/libforms.so.1.0)
==14833==    by 0x402D61A3: fl_init_colormap (in /usr/X11R6/lib/libforms.so.1.0)
==14833==    by 0x402DDCC0: fl_initialize (in /usr/X11R6/lib/libforms.so.1.0)
==14833==    by 0x81D6C31: lyx_gui::parse_init(int&, char**) (lyx_gui.C:162)
==14833==    by 0x80D8D7F: LyX::priv_exec(int&, char**) (lyx_main.C:190)
==14833== 
==14833== 
==14833== 36 bytes in 1 blocks are definitely lost in loss record 57 of 167
==14833==    at 0x4002CD3C: malloc (vg_replace_malloc.c:153)
==14833==    by 0x40647F64: nss_parse_service_list (in /lib/i686/libc.so.6)
==14833==    by 0x4064780A: __GI___nss_database_lookup (in /lib/i686/libc.so.6)
==14833==    by 0x4023D3BB: ???
==14833==    by 0x4023F055: ???
==14833==    by 0x406072F4: getpwuid_r@@GLIBC_2.1.2 (in /lib/i686/libc.so.6)
==14833==    by 0x40606D0E: getpwuid (in /lib/i686/libc.so.6)
==14833==    by 0x82BA8B8: lyx::support::user_name() (userinfo.C:29)
==14833==    by 0x80F27A5: LyXRC::setDefaults() (lyxrc.C:272)
==14833==    by 0x80F232E: LyXRC::LyXRC() (lyxrc.C:176)
==14833==    by 0x80F8C85: __static_initialization_and_destruction_0(int, int) 
(lyxrc.C:2270)
==14833==    by 0x80F8D2F: 
_GLOBAL__I__ZN34_GLOBAL__N_.._.._src_lyxrc.CumsFda9lyxrcTagsE (translator.h:103)
==14833==    by 0x82E1108: (within 
/home/baum/sw/src/lyx-1.4-cvs/build-tree/src/lyx-xforms)
==14833==    by 0x8051A08: (within 
/home/baum/sw/src/lyx-1.4-cvs/build-tree/src/lyx-xforms)
==14833==    by 0x82E1040: __libc_csu_init (elf-init.c:60)
==14833==    by 0x40571CF7: __libc_start_main (in /lib/i686/libc.so.6)
==14833== 
==14833== 
==14833== 168 bytes in 1 blocks are possibly lost in loss record 101 of 167
==14833==    at 0x4002CD3C: malloc (vg_replace_malloc.c:153)
==14833==    by 0x4208E463: XcursorCursorsCreate (in /usr/X11R6/lib/libXcursor.so.1.0)
==14833==    by 0x4208F7A7: XcursorImagesLoadCursors (in 
/usr/X11R6/lib/libXcursor.so.1.0)
==14833==    by 0x4208F876: XcursorImagesLoadCursor (in 
/usr/X11R6/lib/libXcursor.so.1.0)
==14833==    by 0x42092D2F: XcursorTryShapeCursor (in /usr/X11R6/lib/libXcursor.so.1.0)
==14833==    by 0x40384089: _XTryShapeCursor (in /usr/X11R6/lib/libX11.so.6.2)
==14833==    by 0x403843F8: XCreateGlyphCursor (in /usr/X11R6/lib/libX11.so.6.2)
==14833==    by 0x403848C8: XCreateFontCursor (in /usr/X11R6/lib/libX11.so.6.2)
==14833==    by 0x402D173B: init_cursors (in /usr/X11R6/lib/libforms.so.1.0)
==14833==    by 0x402D195B: fl_get_cursor_byname (in /usr/X11R6/lib/libforms.so.1.0)
==14833==    by 0x4030DBEB: fl_create_window (in /usr/X11R6/lib/libforms.so.1.0)
==14833==    by 0x402E3985: fl_prepare_form_window (in /usr/X11R6/lib/libforms.so.1.0)
==14833==    by 0x402E3E46: fl_show_form (in /usr/X11R6/lib/libforms.so.1.0)
==14833==    by 0x823B4E8: XFormsView::show(int, int, std::string const&) 
(XFormsView.C:192)
==14833==    by 0x81D72CD: lyx_gui::start(std::string const&, std::vector<std::string, 
std::allocator<std::string> > const&) (lyx_gui.C:291)
==14833==    by 0x80D93A4: LyX::priv_exec(int&, char**) (lyx_main.C:258)
==14833== 
==14833== LEAK SUMMARY:
==14833==    definitely lost: 52 bytes in 2 blocks.
==14833==    possibly lost:   181 bytes in 2 blocks.
==14833==    still reachable: 524343 bytes in 3546 blocks.
==14833==         suppressed: 0 bytes in 0 blocks.
==14833== Reachable blocks (those to which a pointer was found) are not shown.
==14833== To see them, rerun with: --show-reachable=yes
==14833== 

Reply via email to