Ticket #232 (closed defect: fixed)
Static string in WKBReader causes glibc errors when Geos is statically linked
| Reported by: | yvesdaemen | Owned by: | strk |
|---|---|---|---|
| Priority: | major | Milestone: | 3.2.0 |
| Component: | Default | Version: | 3.0.3 |
| Severity: | Unassigned | Keywords: | |
| Cc: | dfuhry@… |
Description
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.
Change History
Note: See
TracTickets for help on using
tickets.
