[postgis-users] Core dumps

strk strk at keybit.net
Tue Feb 8 09:31:23 PST 2011


On Tue, Feb 08, 2011 at 08:54:12AM +0100, Peter Hopfgartner wrote:

> >> Program terminated with signal 11, Segmentation fault.
> >> #0  0x00000035eee79c00 in strncat () from /lib64/libc.so.6
> >> (gdb) bt
> >> #0  0x00000035eee79c00 in strncat () from /lib64/libc.so.6
> >> #1  0x00002b9176d04282 in lwmessage_truncate ()
> >>     from /usr/lib64/pgsql/postgis-1.5.so
> >> #2  0x00002b9176cc95a1 in pg_parser_errhint ()
> >>     from /usr/lib64/pgsql/postgis-1.5.so
> >> #3  0x00002b9176ccf2eb in LWGEOM_in () from
> >/usr/lib64/pgsql/postgis-1.5.so


I see pg_parser_errhint is calling lwmessage_truncate and passing
it (lwg_parser_result->errlocation-1) w/out first checking 
errlocation begin <= 0 (checked shortly after).
 
 postgis/lwgeom_pg.c:68 // use
 postgis/lwgeom_pg.c:72 // checks for > 0

Could be a possible cause.

--strk;

  ()   Free GIS & Flash consultant/developer
  /\   http://strk.keybit.net/services.html



More information about the postgis-users mailing list