On Fri, Jan 11, 2013 at 05:20:55PM -0500, David Fuhry wrote: > I tried statically linking liblwgeom by changing SHLIB_LINK from > "-L/usr/local/lib -llwgeom" to "/usr/local/lib/liblwgeom.a" but the > segfault in pfree occurred just as before. Try asking valgrind about it ? --strk;