Skip to content

Instantly share code, notes, and snippets.

@jgriessen
Last active December 16, 2017 15:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jgriessen/f53a9c555daced7488cd95d945988eb0 to your computer and use it in GitHub Desktop.
Save jgriessen/f53a9c555daced7488cd95d945988eb0 to your computer and use it in GitHub Desktop.
pcb-rnd-valgrind-leak-check 2 valgrind --leak-check=full --show-reachable=yes --log-file=pcb-rnd-valgrind-leak-check.log pcb-rnd
==31252== Memcheck, a memory error detector
==31252== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==31252== Using Valgrind-3.13.0 and LibVEX; rerun with -h for copyright info
==31252== Command: pcb-rnd
==31252== Parent PID: 2058
==31252==
==31252== Invalid write of size 8
==31252== at 0x3CCBBB: post_ids_assign (read.c:1461)
==31252== by 0x3CD5B9: parse_board (read.c:1651)
==31252== by 0x3CD7D8: io_lihata_parse_pcb (read.c:1697)
==31252== by 0x2531D9: pcb_parse_pcb (plug_io.c:197)
==31252== by 0x253ADD: real_load_pcb (plug_io.c:439)
==31252== by 0x25455C: pcb_load_pcb (plug_io.c:703)
==31252== by 0x1A7308: pcb_act_LoadFrom (file_act.c:138)
==31252== by 0x1C77A0: pcb_hid_actionv_ (hid_actions.c:223)
==31252== by 0x1C78A2: pcb_hid_actionv (hid_actions.c:245)
==31252== by 0x1C7681: pcb_hid_actionl (hid_actions.c:202)
==31252== by 0x43DBA5: pcb_gtk_act_load (act_fileio.c:95)
==31252== by 0x4778FD: act_load (actions.c:412)
==31252== Address 0x1ffeffe030 is on thread 1's stack
==31252== 192 bytes below stack pointer
==31252==
==31252== Invalid read of size 1
==31252== at 0x45FE86: group_vis_sync (wt_layersel.c:135)
==31252== by 0x461FC9: pcb_gtk_layersel_vis_update (wt_layersel.c:680)
==31252== by 0x45A6CB: pcb_gtk_tw_layer_vis_update (dlg_topwin.c:229)
==31252== by 0x476CE5: ghid_LayervisChanged (common.c:156)
==31252== by 0x1A34A7: pcb_event (event.c:167)
==31252== by 0x1E3E9C: pcb_layervis_change_group_vis (layer_vis.c:127)
==31252== by 0x1E4018: pcb_layervis_reset_stack (layer_vis.c:155)
==31252== by 0x253B0D: real_load_pcb (plug_io.c:443)
==31252== by 0x25455C: pcb_load_pcb (plug_io.c:703)
==31252== by 0x1A7308: pcb_act_LoadFrom (file_act.c:138)
==31252== by 0x1C77A0: pcb_hid_actionv_ (hid_actions.c:223)
==31252== by 0x1C78A2: pcb_hid_actionv (hid_actions.c:245)
==31252== Address 0x1444dbfc is 25,164 bytes inside a block of size 55,904 free'd
==31252== at 0x4C2BE1B: free (vg_replace_malloc.c:530)
==31252== by 0x175D67: pcb_board_remove (board.c:272)
==31252== by 0x253AF1: real_load_pcb (plug_io.c:440)
==31252== by 0x25455C: pcb_load_pcb (plug_io.c:703)
==31252== by 0x1A7308: pcb_act_LoadFrom (file_act.c:138)
==31252== by 0x1C77A0: pcb_hid_actionv_ (hid_actions.c:223)
==31252== by 0x1C78A2: pcb_hid_actionv (hid_actions.c:245)
==31252== by 0x1C7681: pcb_hid_actionl (hid_actions.c:202)
==31252== by 0x43DBA5: pcb_gtk_act_load (act_fileio.c:95)
==31252== by 0x4778FD: act_load (actions.c:412)
==31252== by 0x1C77A0: pcb_hid_actionv_ (hid_actions.c:223)
==31252== by 0x1C78A2: pcb_hid_actionv (hid_actions.c:245)
==31252== Block was alloc'd at
==31252== at 0x4C2CC05: calloc (vg_replace_malloc.c:711)
==31252== by 0x174B32: pcb_board_new_ (board.c:77)
==31252== by 0x253A3B: real_load_pcb (plug_io.c:413)
==31252== by 0x25455C: pcb_load_pcb (plug_io.c:703)
==31252== by 0x174E29: pcb_board_new (board.c:128)
==31252== by 0x1E7B9F: main (main.c:518)
==31252==
==31252== Invalid read of size 1
==31252== at 0x45FF95: group_vis_sync (wt_layersel.c:152)
==31252== by 0x461FC9: pcb_gtk_layersel_vis_update (wt_layersel.c:680)
==31252== by 0x45A6CB: pcb_gtk_tw_layer_vis_update (dlg_topwin.c:229)
==31252== by 0x476CE5: ghid_LayervisChanged (common.c:156)
==31252== by 0x1A34A7: pcb_event (event.c:167)
==31252== by 0x1E3E9C: pcb_layervis_change_group_vis (layer_vis.c:127)
==31252== by 0x1E4018: pcb_layervis_reset_stack (layer_vis.c:155)
==31252== by 0x253B0D: real_load_pcb (plug_io.c:443)
==31252== by 0x25455C: pcb_load_pcb (plug_io.c:703)
==31252== by 0x1A7308: pcb_act_LoadFrom (file_act.c:138)
==31252== by 0x1C77A0: pcb_hid_actionv_ (hid_actions.c:223)
==31252== by 0x1C78A2: pcb_hid_actionv (hid_actions.c:245)
==31252== Address 0x1444dbfc is 25,164 bytes inside a block of size 55,904 free'd
==31252== at 0x4C2BE1B: free (vg_replace_malloc.c:530)
==31252== by 0x175D67: pcb_board_remove (board.c:272)
==31252== by 0x253AF1: real_load_pcb (plug_io.c:440)
==31252== by 0x25455C: pcb_load_pcb (plug_io.c:703)
==31252== by 0x1A7308: pcb_act_LoadFrom (file_act.c:138)
==31252== by 0x1C77A0: pcb_hid_actionv_ (hid_actions.c:223)
==31252== by 0x1C78A2: pcb_hid_actionv (hid_actions.c:245)
==31252== by 0x1C7681: pcb_hid_actionl (hid_actions.c:202)
==31252== by 0x43DBA5: pcb_gtk_act_load (act_fileio.c:95)
==31252== by 0x4778FD: act_load (actions.c:412)
==31252== by 0x1C77A0: pcb_hid_actionv_ (hid_actions.c:223)
==31252== by 0x1C78A2: pcb_hid_actionv (hid_actions.c:245)
==31252== Block was alloc'd at
==31252== at 0x4C2CC05: calloc (vg_replace_malloc.c:711)
==31252== by 0x174B32: pcb_board_new_ (board.c:77)
==31252== by 0x253A3B: real_load_pcb (plug_io.c:413)
==31252== by 0x25455C: pcb_load_pcb (plug_io.c:703)
==31252== by 0x174E29: pcb_board_new (board.c:128)
==31252== by 0x1E7B9F: main (main.c:518)
==31252==
==31252== Conditional jump or move depends on uninitialised value(s)
==31252== at 0x248C76: pcb_text_draw_ (obj_text.c:893)
==31252== by 0x1A2190: pcb_term_label_draw (draw.c:957)
==31252== by 0x2413E8: draw_subc_mark_callback (obj_subc.c:1465)
==31252== by 0x27832B: __r_search (rtree.c:431)
==31252== by 0x2785FC: __r_search (rtree.c:482)
==31252== by 0x2785FC: __r_search (rtree.c:482)
==31252== by 0x278746: pcb_r_search (rtree.c:526)
==31252== by 0x19EDB3: DrawEverything (draw.c:371)
==31252== by 0x1A17EA: pcb_hid_expose_all (draw.c:802)
==31252== by 0x4399FB: ghid_gl_drawing_area_expose_cb (gtkhid-gl.c:929)
==31252== by 0x51D07BB: ??? (in /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0.2400.31)
==31252== by 0x6B1BF9C: g_closure_invoke (in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.5400.1)
==31252==
==31252== Conditional jump or move depends on uninitialised value(s)
==31252== at 0x248C76: pcb_text_draw_ (obj_text.c:893)
==31252== by 0x1A2190: pcb_term_label_draw (draw.c:957)
==31252== by 0x23552F: pcb_poly_draw_label (obj_poly.c:976)
==31252== by 0x1A14A7: pcb_draw_obj_label (draw.c:748)
==31252== by 0x19F7B5: pcb_draw_ppv_names (draw.c:523)
==31252== by 0x19EF6F: DrawEverything (draw.c:390)
==31252== by 0x1A17EA: pcb_hid_expose_all (draw.c:802)
==31252== by 0x4399FB: ghid_gl_drawing_area_expose_cb (gtkhid-gl.c:929)
==31252== by 0x51D07BB: ??? (in /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0.2400.31)
==31252== by 0x6B1BF9C: g_closure_invoke (in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.5400.1)
==31252== by 0x6B2ECAD: ??? (in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.5400.1)
==31252== by 0x6B36E1E: g_signal_emit_valist (in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.5400.1)
==31252==
==31252== Conditional jump or move depends on uninitialised value(s)
==31252== at 0x248C76: pcb_text_draw_ (obj_text.c:893)
==31252== by 0x1A2190: pcb_term_label_draw (draw.c:957)
==31252== by 0x20ED21: pcb_line_draw_label (obj_line.c:988)
==31252== by 0x1A148B: pcb_draw_obj_label (draw.c:746)
==31252== by 0x19F7B5: pcb_draw_ppv_names (draw.c:523)
==31252== by 0x19EF6F: DrawEverything (draw.c:390)
==31252== by 0x1A17EA: pcb_hid_expose_all (draw.c:802)
==31252== by 0x4399FB: ghid_gl_drawing_area_expose_cb (gtkhid-gl.c:929)
==31252== by 0x51D07BB: ??? (in /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0.2400.31)
==31252== by 0x6B1BF9C: g_closure_invoke (in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.5400.1)
==31252== by 0x6B2ECAD: ??? (in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.5400.1)
==31252== by 0x6B36E1E: g_signal_emit_valist (in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.5400.1)
==31252==
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment