seg fault agopen

agopen seg faults using graph.h - ver < 2.3

I am modifying some old code using graph.h instead of cgraph.h, agopen seg faults, please instruct how to fix, here is the backtrace:

Program received signal SIGSEGV, Segmentation fault.
agclos (proto=0xbfffdb88) at graph.c:31
31        memclosure = memdisc->open(proto);
(gdb) bt
#0  agclos (proto=0xbfffdb88) at graph.c:31
#1  agopen (name=0x8064605 "root", desc=..., arg_disc=0xbfffdb88) at graph.c:50


`pkg-config --libs libgvc` -lgraph

Thank you.

Recent comments

Syndicate content