Index: TODO/valgrind-export.txt =================================================================== --- TODO/valgrind-export.txt (revision 37730) +++ TODO/valgrind-export.txt (nonexistent) @@ -1,97 +0,0 @@ -$ valgrind pcb-rnd -==11515== Memcheck, a memory error detector -==11515== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al. -==11515== Using Valgrind-3.15.0 and LibVEX; rerun with -h for copyright info -==11515== Command: pcb-rnd -==11515== ---11515-- WARNING: unhandled amd64-linux syscall: 315 ---11515-- You may be able to write your own handler. ---11515-- Read the file README_MISSING_SYSCALL_OR_IOCTL. ---11515-- Nevertheless we consider this a bug. Please report ---11515-- it at http://valgrind.org/support/bug_reports.html. - -(pcb-rnd:11515): GLib-GIO-CRITICAL **: 00:11:25.011: g_dbus_proxy_new: assertion 'G_IS_DBUS_CONNECTION (connection)' failed -==11515== Syscall param writev(vector[...]) points to uninitialised byte(s) -==11515== at 0x50794BD: __writev (writev.c:26) -==11515== by 0x50794BD: writev (writev.c:24) -==11515== by 0x764EEC8: ??? (in /usr/lib/x86_64-linux-gnu/libxcb.so.1.1.0) -==11515== by 0x764F328: ??? (in /usr/lib/x86_64-linux-gnu/libxcb.so.1.1.0) -==11515== by 0x764F3C7: xcb_writev (in /usr/lib/x86_64-linux-gnu/libxcb.so.1.1.0) -==11515== by 0x64E390D: _XSend (in /usr/lib/x86_64-linux-gnu/libX11.so.6.3.0) -==11515== by 0x64D8966: ??? (in /usr/lib/x86_64-linux-gnu/libX11.so.6.3.0) -==11515== by 0x64D8B4D: XPutImage (in /usr/lib/x86_64-linux-gnu/libX11.so.6.3.0) -==11515== by 0x722EDDF: XcursorImageLoadCursor (in /usr/lib/x86_64-linux-gnu/libXcursor.so.1.0.2) -==11515== by 0x5605073: gdk_cursor_new_from_pixbuf (in /usr/lib/x86_64-linux-gnu/libgdk-x11-2.0.so.0.2400.32) -==11515== by 0x49FAB73: rnd_gtk_reg_mouse_cursor (in_mouse.c:344) -==11515== by 0x4A0529A: rnd_gtkg_reg_mouse_cursor (glue_hid.c:465) -==11515== by 0x48BD879: rnd_tool_gui_init (tool.c:210) -==11515== Address 0x13f8e978 is 104 bytes inside a block of size 2,344 alloc'd -==11515== at 0x483B7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==11515== by 0x7230A41: XcursorImageCreate (in /usr/lib/x86_64-linux-gnu/libXcursor.so.1.0.2) -==11515== by 0x5604FF0: gdk_cursor_new_from_pixbuf (in /usr/lib/x86_64-linux-gnu/libgdk-x11-2.0.so.0.2400.32) -==11515== by 0x49FAB73: rnd_gtk_reg_mouse_cursor (in_mouse.c:344) -==11515== by 0x4A0529A: rnd_gtkg_reg_mouse_cursor (glue_hid.c:465) -==11515== by 0x48BD879: rnd_tool_gui_init (tool.c:210) -==11515== by 0x48B3C24: hidlib_gui_init_ev (hid_init.c:593) -==11515== by 0x4ACA0E4: rnd_event (event.c:258) -==11515== by 0x4904DDD: rnd_hid_announce_gui_init (lib_hid_common.c:59) -==11515== by 0x4A03EE5: rnd_gtkg_gui_inited (glue_hid.c:103) -==11515== by 0x4A0401B: rnd_gtkg_drawing_area_configure_event_cb (glue_hid.c:118) -==11515== by 0x49E62A2: gtkc_resize_dwg_cb (compat.c:10) -==11515== -==11515== Invalid read of size 4 -==11515== at 0x4FDB8A6: __vfprintf_internal (vfprintf-internal.c:1328) -==11515== by 0x4FC6C69: fprintf (fprintf.c:32) -==11515== by 0x4E0ADA: scad_new_layer (export_openscad.c:304) -==11515== by 0x4E13C2: openscad_set_drawing_mode (export_openscad.c:506) -==11515== by 0x1AC23A: pcb_crosshair_draw_attached (crosshair.c:738) -==11515== by 0x49E434B: ghid_gl_drawing_area_expose_cb_common (gtk_gl_common.c:484) -==11515== by 0x49E587D: ghid_gl_drawing_area_expose_cb (gtkhid-gl.c:285) -==11515== by 0x5294B9A: ??? (in /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0.2400.32) -==11515== by 0x56AA801: g_closure_invoke (in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.6400.6) -==11515== by 0x56BE813: ??? (in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.6400.6) -==11515== by 0x56C947C: g_signal_emit_valist (in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.6400.6) -==11515== by 0x56CA0F2: g_signal_emit (in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.6400.6) -==11515== Address 0xc0 is not stack'd, malloc'd or (recently) free'd -==11515== -==11515== -==11515== Process terminating with default action of signal 11 (SIGSEGV) -==11515== Access not within mapped region at address 0xC0 -==11515== at 0x4FDB8A6: __vfprintf_internal (vfprintf-internal.c:1328) -==11515== by 0x4FC6C69: fprintf (fprintf.c:32) -==11515== by 0x4E0ADA: scad_new_layer (export_openscad.c:304) -==11515== by 0x4E13C2: openscad_set_drawing_mode (export_openscad.c:506) -==11515== by 0x1AC23A: pcb_crosshair_draw_attached (crosshair.c:738) -==11515== by 0x49E434B: ghid_gl_drawing_area_expose_cb_common (gtk_gl_common.c:484) -==11515== by 0x49E587D: ghid_gl_drawing_area_expose_cb (gtkhid-gl.c:285) -==11515== by 0x5294B9A: ??? (in /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0.2400.32) -==11515== by 0x56AA801: g_closure_invoke (in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.6400.6) -==11515== by 0x56BE813: ??? (in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.6400.6) -==11515== by 0x56C947C: g_signal_emit_valist (in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.6400.6) -==11515== by 0x56CA0F2: g_signal_emit (in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.6400.6) -==11515== If you believe this happened as a result of a stack -==11515== overflow in your program's main thread (unlikely but -==11515== possible), you can try to increase the size of the -==11515== main thread stack using the --main-stacksize= flag. -==11515== The main thread stack size used in this run was 8388608. -==11515== -==11515== HEAP SUMMARY: -==11515== in use at exit: 15,471,030 bytes in 146,197 blocks -==11515== total heap usage: 951,502 allocs, 805,305 frees, 86,908,937 bytes allocated -==11515== -==11515== LEAK SUMMARY: -==11515== definitely lost: 68,826 bytes in 1,723 blocks -==11515== indirectly lost: 362,272 bytes in 3,115 blocks -==11515== possibly lost: 468,721 bytes in 2,960 blocks -==11515== still reachable: 12,516,891 bytes in 124,296 blocks -==11515== of which reachable via heuristic: -==11515== length64 : 6,928 bytes in 103 blocks -==11515== newarray : 2,048 bytes in 48 blocks -==11515== suppressed: 0 bytes in 0 blocks -==11515== Rerun with --leak-check=full to see details of leaked memory -==11515== -==11515== Use --track-origins=yes to see where uninitialised values come from -==11515== For lists of detected and suppressed errors, rerun with: -s -==11515== ERROR SUMMARY: 10 errors from 2 contexts (suppressed: 2 from 2) -Segmentation fault (core dumped) -