DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.
[STR New]
Link: http://www.fltk.org/str.php?L2171
Version: 1.3-current
On my machine it happens with the "doublebuffer" example.
1.1.9's "doublebuffer" showed no such memory warnings.
The attached valgrind output comes from the modified
Hello World example, which uses Fl_Double_Window.
With the original Fl_Window all seems ok.
Link: http://www.fltk.org/str.php?L2171
Version: 1.3-current
/data3/CD/programme/fltk/fltk-1.3.x-r6669/test/& valgrind doublebuffer
==13344== Memcheck, a memory error detector.
==13344== Copyright (C) 2002-2007, and GNU GPL'd, by Julian Seward et al.
==13344== Using LibVEX rev 1732, a library for dynamic binary translation.
==13344== Copyright (C) 2004-2007, and GNU GPL'd, by OpenWorks LLP.
==13344== Using valgrind-3.2.3, a dynamic binary instrumentation framework.
==13344== Copyright (C) 2000-2007, and GNU GPL'd, by Julian Seward et al.
==13344== For more details, rerun with: -v
==13344==
==13344== Syscall param writev(vector[...]) points to uninitialised byte(s)
==13344== at 0x40007F2: (within /lib/ld-2.6.1.so)
==13344== by 0x44E3258: (within /usr/lib/libxcb.so.1.0.0)
==13344== by 0x44E37CA: (within /usr/lib/libxcb.so.1.0.0)
==13344== by 0x44E406D: xcb_send_request (in /usr/lib/libxcb.so.1.0.0)
==13344== by 0x40FB670: _XPutXCBBuffer (in /usr/lib/libX11.so.6.2.0)
==13344== by 0x40FBA2A: (within /usr/lib/libX11.so.6.2.0)
==13344== by 0x40D3B61: XDrawLines (in /usr/lib/libX11.so.6.2.0)
==13344== by 0x8067CDB: fl_end_line() (fl_vertex.cxx:253)
==13344== by 0x804BAA2: star(int, int, int) (doublebuffer.cxx:58)
==13344== by 0x804BB29: bad_draw(int, int, int) (doublebuffer.cxx:77)
==13344== by 0x804BFAC: single_blink_window::draw() (doublebuffer.cxx:83)
==13344== by 0x804C8AE: Fl_Window::flush() (Fl.cxx:1448)
==13344== Address 0x450EEA5 is 4,933 bytes inside a block of size 8,556 alloc'd
==13344== at 0x4021B64: calloc (in
/usr/lib/valgrind/x86-linux/vgpreload_memcheck.so)
==13344== by 0x44E3450: xcb_connect_to_fd (in /usr/lib/libxcb.so.1.0.0)
==13344== by 0x44E5D10: xcb_connect (in /usr/lib/libxcb.so.1.0.0)
==13344== by 0x40FBD29: _XConnectXCB (in /usr/lib/libX11.so.6.2.0)
==13344== by 0x40E4388: XOpenDisplay (in /usr/lib/libX11.so.6.2.0)
==13344== by 0x80596B7: fl_open_display() (Fl_x.cxx:544)
==13344== by 0x8056D37: Fl::visual(int) (Fl_visual.cxx:131)
==13344== by 0x804B57A: main (doublebuffer.cxx:97)
==13344==
==13344== Syscall param writev(vector[...]) points to uninitialised byte(s)
==13344== at 0x40007F2: (within /lib/ld-2.6.1.so)
==13344== by 0x44E3258: (within /usr/lib/libxcb.so.1.0.0)
==13344== by 0x44E37CA: (within /usr/lib/libxcb.so.1.0.0)
==13344== by 0x44E38FE: (within /usr/lib/libxcb.so.1.0.0)
==13344== by 0x44E3A4E: xcb_flush (in /usr/lib/libxcb.so.1.0.0)
==13344== by 0x40FC806: _XSend (in /usr/lib/libX11.so.6.2.0)
==13344== by 0x40FC9B1: _XFlush (in /usr/lib/libX11.so.6.2.0)
==13344== by 0x40D5E40: XFlush (in /usr/lib/libX11.so.6.2.0)
==13344== by 0x804E2BD: Fl::flush() (Fl.cxx:640)
==13344== by 0x804E500: Fl::wait(double) (Fl.cxx:431)
==13344== by 0x804E5AB: Fl::run() (Fl.cxx:449)
==13344== by 0x804B8AF: main (doublebuffer.cxx:123)
==13344== Address 0x450EEF1 is 5,009 bytes inside a block of size 8,556 alloc'd
==13344== at 0x4021B64: calloc (in
/usr/lib/valgrind/x86-linux/vgpreload_memcheck.so)
==13344== by 0x44E3450: xcb_connect_to_fd (in /usr/lib/libxcb.so.1.0.0)
==13344== by 0x44E5D10: xcb_connect (in /usr/lib/libxcb.so.1.0.0)
==13344== by 0x40FBD29: _XConnectXCB (in /usr/lib/libX11.so.6.2.0)
==13344== by 0x40E4388: XOpenDisplay (in /usr/lib/libX11.so.6.2.0)
==13344== by 0x80596B7: fl_open_display() (Fl_x.cxx:544)
==13344== by 0x8056D37: Fl::visual(int) (Fl_visual.cxx:131)
==13344== by 0x804B57A: main (doublebuffer.cxx:97)
==13344==
==13344== ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 5 from 1)
==13344== malloc/free: in use at exit: 137,306 bytes in 1,650 blocks.
==13344== malloc/free: 2,621 allocs, 971 frees, 242,429 bytes allocated.
==13344== For counts of detected errors, rerun with: -v
==13344== searching for pointers to 1,650 not-freed blocks.
==13344== checked 398,108 bytes.
==13344==
==13344== LEAK SUMMARY:
==13344== definitely lost: 53 bytes in 3 blocks.
==13344== possibly lost: 0 bytes in 0 blocks.
==13344== still reachable: 137,253 bytes in 1,647 blocks.
==13344== suppressed: 0 bytes in 0 blocks.
==13344== Rerun with --leak-check=full to see details of leaked memory.
_______________________________________________
fltk-bugs mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-bugs