Opened 16 years ago
Closed 15 years ago
#2849 closed defect (invalid)
segfault in libgdal1.5.0.so.1.12.2 on ubuntu 8.10
Reported by: | mzanfardino | Owned by: | warmerdam |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | GDAL Support | Version: | svn-trunk (development) |
Severity: | normal | Keywords: | segfault, premature, headers, mapserv, libgdal |
Cc: | unicoletti |
Description
Linux ubuntu-ibex 2.6.27-9-generic #1 SMP Thu Nov 20 21:57:00 UTC 2008 i686 GNU/Linux MapServer version 5.0.3 Apache/2.2.9 (Ubuntu) built: Sep 19 2008 13:43:21
After installing ubuntu 8.10 (intrepid ibex) and mapserver from repo's several WMS map layers would not render. Apache generate "internal error 500" when attempting to render a specific layer via a browser call to mapserv.
Searching apache2.log revealed "Premature end of script headers: mapserv". Further research in syslog reveals "segfault at bf7a8fec ip b7898d4b sp bf7a8fe0 error 6 in libgdal1.5.0.so.1.12.2[b77d6000+4df000]".
Issued shp2img command to verify error with the following results:
shp2img -m sm.map -l labels_1 png -o labels.png -all_debug 9 msPOSTGISLayerOpen called datastatement: the_geom FROM (SELECT * FROM city WHERE NOT exclude) AS foo USING UNIQUE gid USING SRID=-1 MSPOSTGISLayerOpen -- shared connection not available. msConnPoolRegister(labels_1,user=postgres password=******** dbname=sm_gis host=localhost port=5432,0x9471210) msPOSTGISLayerFreeItemInfo called msPOSTGISLayerInitItemInfo called msPOSTGISLayerWhichShapes called msPOSTGISLayerParseData: unique column = gid, srid='-1', geom_column_name = the_geom, table_name=(SELECT * FROM city WHERE NOT exclude) AS foo query_string_0_6:DECLARE mycursor BINARY CURSOR FOR SELECT "area"::text,"name"::text,asbinary(force_collection(force_2d(the_geom)),'NDR'),gid::text from (SELECT * FROM city WHERE NOT exclude) AS foo WHERE the_geom && setSRID('BOX3D(-122.681423690205 37.34,-122.058576309795 37.71)'::BOX3D, -1 ) msPOSTGISLayerFreeItemInfo called msPOSTGISLayerClose datastatement: the_geom FROM (SELECT * FROM city WHERE NOT exclude) AS foo USING UNIQUE gid USING SRID=-1 msPOSTGISLayerClose -- closing query_result msConnPoolRelease(labels_1,user=postgres password=******** dbname=sm_gis host=localhost port=5432,0x9471210) msConnPoolClose(user=postgres password=1qaz2wsx dbname=sm_gis host=localhost port=5432,0x9471210) msDrawMap(): Layer 41 (labels_1), 0.788s Segmentation fault
Replacing libgdal1.5.0.so.1.12.2 (installed from repo's) with libgdal.so.1.12.3 (gdal-1.5.3 built from source) resolved the segment fault; previously failing layers will now render without error.
This does not appear to be strictly a mapserver issue as the solution came from building a more recent version of gdal. This may be better served as a ticket for either gdal or canonical. Please advise.
Change History (2)
comment:1 by , 15 years ago
Cc: | added |
---|---|
Version: | 5.0 → svn-trunk (development) |
comment:2 by , 15 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
Not a mapserver problem, but a gdal problem:
http://trac.osgeo.org/gdal/ticket/2497
solution is upgrade to gdal 1.5.2 or greater. Closing as invalid.
This happens also for the version in trunk. The trace refers to sincos () from /usr/lib/libgdal1.5.0.so.1