Ticket #232 (closed defect: fixed)
Static string in WKBReader causes glibc errors when Geos is statically linked
|Reported by:||yvesdaemen||Owned by:||strk|
I am statically linking Geos against my own C program. This program runs without problems, except until the very end when a glibc errors occurs.
I have traced this back to the static string BAD_GEOM_TYPE_MSG. When I remove the static modifier and initialise the string inside the constructor, everything goes well.
I did not get this error when linking dynamically, but Valgrind complained about an invalid free. This is probably the same thing, only my program did not crash on it.