Graphviz Issue Tracker
Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0002356graphvizGraph Librariespublic2013-09-06 17:262013-09-06 18:32
Reportertimboj 
Assigned To 
PrioritynormalSeverityimportantReproducibilityalways
StatusnewResolutionopen 
PlatformLinuxOSUbuntuOS Version12.04
Summary0002356: Lots of valgrind issues caused by gvLayout
DescriptionSimple program to load a dot file, call layout using fdp then write an .svg file causes lots of valgrind errors:

#include <gvc.h>
#include <iostream>
int main(int argc, const char* argv[]){

    if (argc < 2){
        std::cout << "Pass a .dot file as an argument." << std::endl;
        return(1);
    }
    GVC_t* gvc = gvContext();
    FILE* fp = fopen(argv[1], "r");
    Agraph_t* g = agread(fp, 0);
    gvLayout (gvc, g, "fdp");
    gvRenderFilename (gvc, g, "svg", "mygraph.svg");
    gvFreeLayout(gvc, g);
    agclose(g);
    gvFreeContext(gvc);
    fclose(fp);
    return(0);
}
Steps To Reproducecompile:

g++ -g `pkg-config libgvc --cflags` src/test_gviz.cpp -o bin/test_gviz `pkg-config libcgraph libgvc --libs`

valgrind:
valgrind --tool=memcheck --leak-check=yes --show-reachable=yes --num-callers=20 --track-origins=yes --track-fds=yes bin/test_gviz test.dot

dot file:

digraph G {

    subgraph cluster_0 {
        style=filled;
        color=lightgrey;
        node [style=filled,color=white];
        a0 -> a1 -> a2 -> a3;
        label = "process 0000001";
    }

    subgraph cluster_1 {
        node [style=filled];
        b0 -> b1 -> b2 -> b3;
        label = "process 0000002";
        color=blue
    }
    start -> a0;
    start -> b0;
    a1 -> b3;
    b2 -> a3;
    a3 -> a0;
    a3 -> end;
    b3 -> end;

    start [shape=Mdiamond];
    end [shape=Msquare];
}
Additional Information==5322== Memcheck, a memory error detector
==5322== Copyright (C) 2002-2011, and GNU GPL'd, by Julian Seward et al.
==5322== Using Valgrind-3.7.0 and LibVEX; rerun with -h for copyright info
==5322== Command: bin/test_gviz test.dot
==5322==
==5322== Invalid read of size 4
==5322== at 0x82430D3: ??? (in /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.4.4)
==5322== by 0x8245464: FcConfigFilename (in /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.4.4)
==5322== by 0x8258A15: FcConfigParseAndLoad (in /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.4.4)
==5322== by 0x824E176: FcInitLoadConfig (in /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.4.4)
==5322== by 0x824E265: FcInitLoadConfigAndFonts (in /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.4.4)
==5322== by 0x824E484: FcInit (in /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.4.4)
==5322== by 0x824387C: FcConfigGetCurrent (in /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.4.4)
==5322== by 0x824E2D5: FcInitBringUptoDate (in /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.4.4)
==5322== by 0x82508DF: FcFontList (in /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.4.4)
==5322== by 0x75F0F28: ??? (in /usr/lib/x86_64-linux-gnu/libpangoft2-1.0.so.0.3000.0)
==5322== by 0x6F18BAC: ??? (in /usr/lib/graphviz/libgvplugin_pango.so.6.0.0)
==5322== by 0x6F18EBA: get_font_mapping (in /usr/lib/graphviz/libgvplugin_pango.so.6.0.0)
==5322== by 0x6F19B73: ??? (in /usr/lib/graphviz/libgvplugin_pango.so.6.0.0)
==5322== by 0x4E68281: textsize (in /usr/lib/libgvc.so.6.0.0)
==5322== by 0x4E7BCC8: ??? (in /usr/lib/libgvc.so.6.0.0)
==5322== by 0x4E7BDE4: make_simple_label (in /usr/lib/libgvc.so.6.0.0)
==5322== by 0x4E7BFAE: make_label (in /usr/lib/libgvc.so.6.0.0)
==5322== by 0x4E8AB2A: common_init_node (in /usr/lib/libgvc.so.6.0.0)
==5322== by 0xA33F147: fdp_init_node_edge (in /usr/lib/graphviz/libgvplugin_neato_layout.so.6.0.0)
==5322== by 0xA34162E: fdp_layout (in /usr/lib/graphviz/libgvplugin_neato_layout.so.6.0.0)
==5322== Address 0x6b56164 is 20 bytes inside a block of size 22 alloc'd
==5322== at 0x4C2B6CD: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==5322== by 0x824302C: ??? (in /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.4.4)
==5322== by 0x8245464: FcConfigFilename (in /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.4.4)
==5322== by 0x8258A15: FcConfigParseAndLoad (in /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.4.4)
==5322== by 0x824E176: FcInitLoadConfig (in /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.4.4)
==5322== by 0x824E265: FcInitLoadConfigAndFonts (in /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.4.4)
==5322== by 0x824E484: FcInit (in /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.4.4)
==5322== by 0x824387C: FcConfigGetCurrent (in /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.4.4)
==5322== by 0x824E2D5: FcInitBringUptoDate (in /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.4.4)
==5322== by 0x82508DF: FcFontList (in /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.4.4)
==5322== by 0x75F0F28: ??? (in /usr/lib/x86_64-linux-gnu/libpangoft2-1.0.so.0.3000.0)
==5322== by 0x6F18BAC: ??? (in /usr/lib/graphviz/libgvplugin_pango.so.6.0.0)
==5322== by 0x6F18EBA: get_font_mapping (in /usr/lib/graphviz/libgvplugin_pango.so.6.0.0)
==5322== by 0x6F19B73: ??? (in /usr/lib/graphviz/libgvplugin_pango.so.6.0.0)
==5322== by 0x4E68281: textsize (in /usr/lib/libgvc.so.6.0.0)
==5322== by 0x4E7BCC8: ??? (in /usr/lib/libgvc.so.6.0.0)
==5322== by 0x4E7BDE4: make_simple_label (in /usr/lib/libgvc.so.6.0.0)
==5322== by 0x4E7BFAE: make_label (in /usr/lib/libgvc.so.6.0.0)
==5322== by 0x4E8AB2A: common_init_node (in /usr/lib/libgvc.so.6.0.0)
==5322== by 0xA33F147: fdp_init_node_edge (in /usr/lib/graphviz/libgvplugin_neato_layout.so.6.0.0)
==5322==
==5322== Invalid read of size 4
==5322== at 0x82430E8: ??? (in /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.4.4)
==5322== by 0x8245464: FcConfigFilename (in /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.4.4)
==5322== by 0x8258A15: FcConfigParseAndLoad (in /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.4.4)
==5322== by 0x82590FD: ??? (in /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.4.4)
==5322== by 0x5FC66F3: ??? (in /lib/x86_64-linux-gnu/libexpat.so.1.5.2)
==5322== by 0x5FC7950: ??? (in /lib/x86_64-linux-gnu/libexpat.so.1.5.2)
==5322== by 0x5FC47C6: ??? (in /lib/x86_64-linux-gnu/libexpat.so.1.5.2)
==5322== by 0x5FC617A: ??? (in /lib/x86_64-linux-gnu/libexpat.so.1.5.2)
==5322== by 0x5FC975C: XML_ParseBuffer (in /lib/x86_64-linux-gnu/libexpat.so.1.5.2)
==5322== by 0x8258B70: FcConfigParseAndLoad (in /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.4.4)
==5322== by 0x824E176: FcInitLoadConfig (in /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.4.4)
==5322== by 0x824E265: FcInitLoadConfigAndFonts (in /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.4.4)
==5322== by 0x824E484: FcInit (in /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.4.4)
==5322== by 0x824387C: FcConfigGetCurrent (in /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.4.4)
==5322== by 0x824E2D5: FcInitBringUptoDate (in /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.4.4)
==5322== by 0x82508DF: FcFontList (in /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.4.4)
==5322== by 0x75F0F28: ??? (in /usr/lib/x86_64-linux-gnu/libpangoft2-1.0.so.0.3000.0)
==5322== by 0x6F18BAC: ??? (in /usr/lib/graphviz/libgvplugin_pango.so.6.0.0)
==5322== by 0x6F18EBA: get_font_mapping (in /usr/lib/graphviz/libgvplugin_pango.so.6.0.0)
==5322== by 0x6F19B73: ??? (in /usr/lib/graphviz/libgvplugin_pango.so.6.0.0)
==5322== Address 0x6b5e320 is 16 bytes inside a block of size 18 alloc'd
==5322== at 0x4C2B6CD: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==5322== by 0x824302C: ??? (in /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.4.4)
==5322== by 0x8245464: FcConfigFilename (in /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.4.4)
==5322== by 0x8258A15: FcConfigParseAndLoad (in /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.4.4)
==5322== by 0x82590FD: ??? (in /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.4.4)
==5322== by 0x5FC66F3: ??? (in /lib/x86_64-linux-gnu/libexpat.so.1.5.2)
==5322== by 0x5FC7950: ??? (in /lib/x86_64-linux-gnu/libexpat.so.1.5.2)
==5322== by 0x5FC47C6: ??? (in /lib/x86_64-linux-gnu/libexpat.so.1.5.2)
==5322== by 0x5FC617A: ??? (in /lib/x86_64-linux-gnu/libexpat.so.1.5.2)
==5322== by 0x5FC975C: XML_ParseBuffer (in /lib/x86_64-linux-gnu/libexpat.so.1.5.2)
==5322== by 0x8258B70: FcConfigParseAndLoad (in /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.4.4)
==5322== by 0x824E176: FcInitLoadConfig (in /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.4.4)
==5322== by 0x824E265: FcInitLoadConfigAndFonts (in /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.4.4)
==5322== by 0x824E484: FcInit (in /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.4.4)
==5322== by 0x824387C: FcConfigGetCurrent (in /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.4.4)
==5322== by 0x824E2D5: FcInitBringUptoDate (in /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.4.4)
==5322== by 0x82508DF: FcFontList (in /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.4.4)
==5322== by 0x75F0F28: ??? (in /usr/lib/x86_64-linux-gnu/libpangoft2-1.0.so.0.3000.0)
==5322== by 0x6F18BAC: ??? (in /usr/lib/graphviz/libgvplugin_pango.so.6.0.0)
==5322== by 0x6F18EBA: get_font_mapping (in /usr/lib/graphviz/libgvplugin_pango.so.6.0.0)
==5322==
==5322== Invalid read of size 4
==5322== at 0x82430E8: ??? (in /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.4.4)
==5322== by 0x8258A15: FcConfigParseAndLoad (in /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.4.4)
==5322== by 0x8258E77: FcConfigParseAndLoad (in /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.4.4)
==5322== by 0x82590FD: ??? (in /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.4.4)
==5322== by 0x5FC66F3: ??? (in /lib/x86_64-linux-gnu/libexpat.so.1.5.2)
==5322== by 0x5FC7950: ??? (in /lib/x86_64-linux-gnu/libexpat.so.1.5.2)
==5322== by 0x5FC47C6: ??? (in /lib/x86_64-linux-gnu/libexpat.so.1.5.2)
==5322== by 0x5FC617A: ??? (in /lib/x86_64-linux-gnu/libexpat.so.1.5.2)
==5322== by 0x5FC975C: XML_ParseBuffer (in /lib/x86_64-linux-gnu/libexpat.so.1.5.2)
==5322== by 0x8258B70: FcConfigParseAndLoad (in /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.4.4)
==5322== by 0x824E176: FcInitLoadConfig (in /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.4.4)
==5322== by 0x824E265: FcInitLoadConfigAndFonts (in /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.4.4)
==5322== by 0x824E484: FcInit (in /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.4.4)
==5322== by 0x824387C: FcConfigGetCurrent (in /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.4.4)
==5322== by 0x824E2D5: FcInitBringUptoDate (in /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.4.4)
==5322== by 0x82508DF: FcFontList (in /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.4.4)
==5322== by 0x75F0F28: ??? (in /usr/lib/x86_64-linux-gnu/libpangoft2-1.0.so.0.3000.0)
==5322== by 0x6F18BAC: ??? (in /usr/lib/graphviz/libgvplugin_pango.so.6.0.0)
==5322== by 0x6F18EBA: get_font_mapping (in /usr/lib/graphviz/libgvplugin_pango.so.6.0.0)
==5322== by 0x6F19B73: ??? (in /usr/lib/graphviz/libgvplugin_pango.so.6.0.0)
==5322== Address 0x6b747d8 is 40 bytes inside a block of size 42 alloc'd
==5322== at 0x4C2B6CD: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==5322== by 0x824302C: ??? (in /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.4.4)
==5322== by 0x8258A15: FcConfigParseAndLoad (in /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.4.4)
==5322== by 0x8258E77: FcConfigParseAndLoad (in /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.4.4)
==5322== by 0x82590FD: ??? (in /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.4.4)
==5322== by 0x5FC66F3: ??? (in /lib/x86_64-linux-gnu/libexpat.so.1.5.2)
==5322== by 0x5FC7950: ??? (in /lib/x86_64-linux-gnu/libexpat.so.1.5.2)
==5322== by 0x5FC47C6: ??? (in /lib/x86_64-linux-gnu/libexpat.so.1.5.2)
==5322== by 0x5FC617A: ??? (in /lib/x86_64-linux-gnu/libexpat.so.1.5.2)
==5322== by 0x5FC975C: XML_ParseBuffer (in /lib/x86_64-linux-gnu/libexpat.so.1.5.2)
==5322== by 0x8258B70: FcConfigParseAndLoad (in /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.4.4)
==5322== by 0x824E176: FcInitLoadConfig (in /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.4.4)
==5322== by 0x824E265: FcInitLoadConfigAndFonts (in /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.4.4)
==5322== by 0x824E484: FcInit (in /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.4.4)
==5322== by 0x824387C: FcConfigGetCurrent (in /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.4.4)
==5322== by 0x824E2D5: FcInitBringUptoDate (in /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.4.4)
==5322== by 0x82508DF: FcFontList (in /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.4.4)
==5322== by 0x75F0F28: ??? (in /usr/lib/x86_64-linux-gnu/libpangoft2-1.0.so.0.3000.0)
==5322== by 0x6F18BAC: ??? (in /usr/lib/graphviz/libgvplugin_pango.so.6.0.0)
==5322== by 0x6F18EBA: get_font_mapping (in /usr/lib/graphviz/libgvplugin_pango.so.6.0.0)
==5322==
==5322== Invalid read of size 4
==5322== at 0x82430D3: ??? (in /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.4.4)
==5322== by 0x8258A15: FcConfigParseAndLoad (in /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.4.4)
==5322== by 0x8258E77: FcConfigParseAndLoad (in /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.4.4)
==5322== by 0x82590FD: ??? (in /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.4.4)
==5322== by 0x5FC66F3: ??? (in /lib/x86_64-linux-gnu/libexpat.so.1.5.2)
==5322== by 0x5FC7950: ??? (in /lib/x86_64-linux-gnu/libexpat.so.1.5.2)
==5322== by 0x5FC47C6: ??? (in /lib/x86_64-linux-gnu/libexpat.so.1.5.2)
==5322== by 0x5FC617A: ??? (in /lib/x86_64-linux-gnu/libexpat.so.1.5.2)
==5322== by 0x5FC975C: XML_ParseBuffer (in /lib/x86_64-linux-gnu/libexpat.so.1.5.2)
==5322== by 0x8258B70: FcConfigParseAndLoad (in /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.4.4)
==5322== by 0x824E176: FcInitLoadConfig (in /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.4.4)
==5322== by 0x824E265: FcInitLoadConfigAndFonts (in /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.4.4)
==5322== by 0x824E484: FcInit (in /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.4.4)
==5322== by 0x824387C: FcConfigGetCurrent (in /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.4.4)
==5322== by 0x824E2D5: FcInitBringUptoDate (in /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.4.4)
==5322== by 0x82508DF: FcFontList (in /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.4.4)
==5322== by 0x75F0F28: ??? (in /usr/lib/x86_64-linux-gnu/libpangoft2-1.0.so.0.3000.0)
==5322== by 0x6F18BAC: ??? (in /usr/lib/graphviz/libgvplugin_pango.so.6.0.0)
==5322== by 0x6F18EBA: get_font_mapping (in /usr/lib/graphviz/libgvplugin_pango.so.6.0.0)
==5322== by 0x6F19B73: ??? (in /usr/lib/graphviz/libgvplugin_pango.so.6.0.0)
==5322== Address 0x6ba7fe4 is 36 bytes inside a block of size 39 alloc'd
==5322== at 0x4C2B6CD: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==5322== by 0x824302C: ??? (in /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.4.4)
==5322== by 0x8258A15: FcConfigParseAndLoad (in /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.4.4)
==5322== by 0x8258E77: FcConfigParseAndLoad (in /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.4.4)
==5322== by 0x82590FD: ??? (in /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.4.4)
==5322== by 0x5FC66F3: ??? (in /lib/x86_64-linux-gnu/libexpat.so.1.5.2)
==5322== by 0x5FC7950: ??? (in /lib/x86_64-linux-gnu/libexpat.so.1.5.2)
==5322== by 0x5FC47C6: ??? (in /lib/x86_64-linux-gnu/libexpat.so.1.5.2)
==5322== by 0x5FC617A: ??? (in /lib/x86_64-linux-gnu/libexpat.so.1.5.2)
==5322== by 0x5FC975C: XML_ParseBuffer (in /lib/x86_64-linux-gnu/libexpat.so.1.5.2)
==5322== by 0x8258B70: FcConfigParseAndLoad (in /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.4.4)
==5322== by 0x824E176: FcInitLoadConfig (in /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.4.4)
==5322== by 0x824E265: FcInitLoadConfigAndFonts (in /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.4.4)
==5322== by 0x824E484: FcInit (in /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.4.4)
==5322== by 0x824387C: FcConfigGetCurrent (in /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.4.4)
==5322== by 0x824E2D5: FcInitBringUptoDate (in /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.4.4)
==5322== by 0x82508DF: FcFontList (in /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.4.4)
==5322== by 0x75F0F28: ??? (in /usr/lib/x86_64-linux-gnu/libpangoft2-1.0.so.0.3000.0)
==5322== by 0x6F18BAC: ??? (in /usr/lib/graphviz/libgvplugin_pango.so.6.0.0)
==5322== by 0x6F18EBA: get_font_mapping (in /usr/lib/graphviz/libgvplugin_pango.so.6.0.0)
==5322==
==5322== Invalid read of size 4
==5322== at 0x82430E8: ??? (in /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.4.4)
==5322== by 0x8258A15: FcConfigParseAndLoad (in /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.4.4)
==5322== by 0x82590FD: ??? (in /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.4.4)
==5322== by 0x5FC66F3: ??? (in /lib/x86_64-linux-gnu/libexpat.so.1.5.2)
==5322== by 0x5FC7950: ??? (in /lib/x86_64-linux-gnu/libexpat.so.1.5.2)
==5322== by 0x5FC47C6: ??? (in /lib/x86_64-linux-gnu/libexpat.so.1.5.2)
==5322== by 0x5FC617A: ??? (in /lib/x86_64-linux-gnu/libexpat.so.1.5.2)
==5322== by 0x5FC975C: XML_ParseBuffer (in /lib/x86_64-linux-gnu/libexpat.so.1.5.2)
==5322== by 0x8258B70: FcConfigParseAndLoad (in /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.4.4)
==5322== by 0x8258E77: FcConfigParseAndLoad (in /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.4.4)
==5322== by 0x82590FD: ??? (in /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.4.4)
==5322== by 0x5FC66F3: ??? (in /lib/x86_64-linux-gnu/libexpat.so.1.5.2)
==5322== by 0x5FC7950: ??? (in /lib/x86_64-linux-gnu/libexpat.so.1.5.2)
==5322== by 0x5FC47C6: ??? (in /lib/x86_64-linux-gnu/libexpat.so.1.5.2)
==5322== by 0x5FC617A: ??? (in /lib/x86_64-linux-gnu/libexpat.so.1.5.2)
==5322== by 0x5FC975C: XML_ParseBuffer (in /lib/x86_64-linux-gnu/libexpat.so.1.5.2)
==5322== by 0x8258B70: FcConfigParseAndLoad (in /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.4.4)
==5322== by 0x824E176: FcInitLoadConfig (in /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.4.4)
==5322== by 0x824E265: FcInitLoadConfigAndFonts (in /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.4.4)
==5322== by 0x824E484: FcInit (in /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.4.4)
==5322== Address 0x6bcdcf8 is 24 bytes inside a block of size 27 alloc'd
==5322== at 0x4C2B6CD: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==5322== by 0x824302C: ??? (in /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.4.4)
==5322== by 0x8258A15: FcConfigParseAndLoad (in /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.4.4)
==5322== by 0x82590FD: ??? (in /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.4.4)
==5322== by 0x5FC66F3: ??? (in /lib/x86_64-linux-gnu/libexpat.so.1.5.2)
==5322== by 0x5FC7950: ??? (in /lib/x86_64-linux-gnu/libexpat.so.1.5.2)
==5322== by 0x5FC47C6: ??? (in /lib/x86_64-linux-gnu/libexpat.so.1.5.2)
==5322== by 0x5FC617A: ??? (in /lib/x86_64-linux-gnu/libexpat.so.1.5.2)
==5322== by 0x5FC975C: XML_ParseBuffer (in /lib/x86_64-linux-gnu/libexpat.so.1.5.2)
==5322== by 0x8258B70: FcConfigParseAndLoad (in /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.4.4)
==5322== by 0x8258E77: FcConfigParseAndLoad (in /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.4.4)
==5322== by 0x82590FD: ??? (in /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.4.4)
==5322== by 0x5FC66F3: ??? (in /lib/x86_64-linux-gnu/libexpat.so.1.5.2)
==5322== by 0x5FC7950: ??? (in /lib/x86_64-linux-gnu/libexpat.so.1.5.2)
==5322== by 0x5FC47C6: ??? (in /lib/x86_64-linux-gnu/libexpat.so.1.5.2)
==5322== by 0x5FC617A: ??? (in /lib/x86_64-linux-gnu/libexpat.so.1.5.2)
==5322== by 0x5FC975C: XML_ParseBuffer (in /lib/x86_64-linux-gnu/libexpat.so.1.5.2)
==5322== by 0x8258B70: FcConfigParseAndLoad (in /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.4.4)
==5322== by 0x824E176: FcInitLoadConfig (in /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.4.4)
==5322== by 0x824E265: FcInitLoadConfigAndFonts (in /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.4.4)
==5322==
==5322== Invalid read of size 4
==5322== at 0x82430D3: ??? (in /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.4.4)
==5322== by 0x8245464: FcConfigFilename (in /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.4.4)
==5322== by 0x8258A15: FcConfigParseAndLoad (in /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.4.4)
==5322== by 0x82590FD: ??? (in /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.4.4)
==5322== by 0x5FC66F3: ??? (in /lib/x86_64-linux-gnu/libexpat.so.1.5.2)
==5322== by 0x5FC7950: ??? (in /lib/x86_64-linux-gnu/libexpat.so.1.5.2)
==5322== by 0x5FC47C6: ??? (in /lib/x86_64-linux-gnu/libexpat.so.1.5.2)
==5322== by 0x5FC617A: ??? (in /lib/x86_64-linux-gnu/libexpat.so.1.5.2)
==5322== by 0x5FC975C: XML_ParseBuffer (in /lib/x86_64-linux-gnu/libexpat.so.1.5.2)
==5322== by 0x8258B70: FcConfigParseAndLoad (in /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.4.4)
==5322== by 0x8258E77: FcConfigParseAndLoad (in /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.4.4)
==5322== by 0x82590FD: ??? (in /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.4.4)
==5322== by 0x5FC66F3: ??? (in /lib/x86_64-linux-gnu/libexpat.so.1.5.2)
==5322== by 0x5FC7950: ??? (in /lib/x86_64-linux-gnu/libexpat.so.1.5.2)
==5322== by 0x5FC47C6: ??? (in /lib/x86_64-linux-gnu/libexpat.so.1.5.2)
==5322== by 0x5FC617A: ??? (in /lib/x86_64-linux-gnu/libexpat.so.1.5.2)
==5322== by 0x5FC975C: XML_ParseBuffer (in /lib/x86_64-linux-gnu/libexpat.so.1.5.2)
==5322== by 0x8258B70: FcConfigParseAndLoad (in /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.4.4)
==5322== by 0x824E176: FcInitLoadConfig (in /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.4.4)
==5322== by 0x824E265: FcInitLoadConfigAndFonts (in /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.4.4)
==5322== Address 0x6bd5d64 is 20 bytes inside a block of size 22 alloc'd
==5322== at 0x4C2B6CD: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==5322== by 0x824302C: ??? (in /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.4.4)
==5322== by 0x8245464: FcConfigFilename (in /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.4.4)
==5322== by 0x8258A15: FcConfigParseAndLoad (in /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.4.4)
==5322== by 0x82590FD: ??? (in /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.4.4)
==5322== by 0x5FC66F3: ??? (in /lib/x86_64-linux-gnu/libexpat.so.1.5.2)
==5322== by 0x5FC7950: ??? (in /lib/x86_64-linux-gnu/libexpat.so.1.5.2)
==5322== by 0x5FC47C6: ??? (in /lib/x86_64-linux-gnu/libexpat.so.1.5.2)
==5322== by 0x5FC617A: ??? (in /lib/x86_64-linux-gnu/libexpat.so.1.5.2)
==5322== by 0x5FC975C: XML_ParseBuffer (in /lib/x86_64-linux-gnu/libexpat.so.1.5.2)
==5322== by 0x8258B70: FcConfigParseAndLoad (in /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.4.4)
==5322== by 0x8258E77: FcConfigParseAndLoad (in /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.4.4)
==5322== by 0x82590FD: ??? (in /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.4.4)
==5322== by 0x5FC66F3: ??? (in /lib/x86_64-linux-gnu/libexpat.so.1.5.2)
==5322== by 0x5FC7950: ??? (in /lib/x86_64-linux-gnu/libexpat.so.1.5.2)
==5322== by 0x5FC47C6: ??? (in /lib/x86_64-linux-gnu/libexpat.so.1.5.2)
==5322== by 0x5FC617A: ??? (in /lib/x86_64-linux-gnu/libexpat.so.1.5.2)
==5322== by 0x5FC975C: XML_ParseBuffer (in /lib/x86_64-linux-gnu/libexpat.so.1.5.2)
==5322== by 0x8258B70: FcConfigParseAndLoad (in /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.4.4)
==5322== by 0x824E176: FcInitLoadConfig (in /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.4.4)
==5322==
==5322==
==5322== FILE DESCRIPTORS: 3 open at exit.
==5322== Open file descriptor 2: /media/psf/Home/Dropbox/graphs/valg.out
==5322== <inherited from parent>
==5322==
==5322== Open file descriptor 1: /media/psf/Home/Dropbox/graphs/valg.out
==5322== <inherited from parent>
==5322==
==5322== Open file descriptor 0: /dev/pts/0
==5322== <inherited from parent>
==5322==
==5322==
==5322== HEAP SUMMARY:
==5322== in use at exit: 476,224 bytes in 3,061 blocks
==5322== total heap usage: 9,560 allocs, 6,499 frees, 2,927,635 bytes allocated
==5322==
==5322== 2 bytes in 1 blocks are still reachable in loss record 1 of 842
==5322== at 0x4C2B6CD: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==5322== by 0x7CF7A78: g_malloc (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.3200.3)
==5322== by 0x7D0C2DD: g_strdup (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.3200.3)
==5322== by 0x7CCF602: g_get_language_names (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.3200.3)
==5322== by 0x7CE8E4B: ??? (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.3200.3)
==5322== by 0x7CEA62C: g_key_file_new (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.3200.3)
==5322== by 0x783A6B7: ??? (in /usr/lib/x86_64-linux-gnu/libpango-1.0.so.0.3000.0)
==5322== by 0x783B7E8: pango_config_key_get (in /usr/lib/x86_64-linux-gnu/libpango-1.0.so.0.3000.0)
==5322== by 0x7827090: pango_find_map (in /usr/lib/x86_64-linux-gnu/libpango-1.0.so.0.3000.0)
==5322== by 0x782A7C2: ??? (in /usr/lib/x86_64-linux-gnu/libpango-1.0.so.0.3000.0)
==5322== by 0x782B3B7: pango_itemize_with_base_dir (in /usr/lib/x86_64-linux-gnu/libpango-1.0.so.0.3000.0)
==5322== by 0x7832347: ??? (in /usr/lib/x86_64-linux-gnu/libpango-1.0.so.0.3000.0)
==5322== by 0x78334E5: ??? (in /usr/lib/x86_64-linux-gnu/libpango-1.0.so.0.3000.0)
==5322== by 0x6F197E6: ??? (in /usr/lib/graphviz/libgvplugin_pango.so.6.0.0)
==5322== by 0x4E68281: textsize (in /usr/lib/libgvc.so.6.0.0)
==5322== by 0x4E7BCC8: ??? (in /usr/lib/libgvc.so.6.0.0)
==5322== by 0x4E7BDE4: make_simple_label (in /usr/lib/libgvc.so.6.0.0)
==5322== by 0x4E7BFAE: make_label (in /usr/lib/libgvc.so.6.0.0)
==5322== by 0x4E8AB2A: common_init_node (in /usr/lib/libgvc.so.6.0.0)
==5322== by 0xA33F147: fdp_init_node_edge (in /usr/lib/graphviz/libgvplugin_neato_layout.so.6.0.0)
==5322==
TagsNo tags attached.
AUXILLARY-FILES
DATE-FIXED
FIX-COMMENT
FORMER-ID
INPUT-FILE
OUTPUT-FILE
STATUS-COMMENT
VERSION2.33.20130906.0446
Attached Filescpp file icon test_gviz.cpp [^] (547 bytes) 2013-09-06 17:26
? file icon valg.out [^] (1,404,399 bytes) 2013-09-06 17:29

- Relationships

-  Notes
User avatar (0000495)
timboj (reporter)
2013-09-06 17:27

Platform = x86_64 x86_64 x86_64 GNU/Linux
User avatar (0000496)
erg (administrator)
2013-09-06 18:00

We are aware of this. The problem is that most of them occur in the 3rd party libraries we use. The only leaks we can control are those purely within our code or where we misuse a library. We'll take a look at your valgrid output, but a quick glance suggests these are outside of our control.
User avatar (0000497)
timboj (reporter)
2013-09-06 18:32

Ok, thanks for the info erg.

- Issue History
Date Modified Username Field Change
2013-09-06 17:26 timboj New Issue
2013-09-06 17:26 timboj File Added: test_gviz.cpp
2013-09-06 17:27 timboj Note Added: 0000495
2013-09-06 17:29 timboj File Added: valg.out
2013-09-06 18:00 erg Note Added: 0000496
2013-09-06 18:32 timboj Note Added: 0000497


MantisBT 1.2.5[^]
Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker