[mapserver-users] cgi-bin/mapserv double free error on RHEL 8.2

Jeff McKenna jmckenna at gatewaygeomatics.com
Fri Apr 16 15:29:31 PDT 2021


Some quick thoughts before the weekend:

- interesting.  And everything is fine with GDAL commands ogrinfo 
--formats etc?

- the canned response is:
   - compile with CMAKE_BUID_TYPE=DEBUG
   - run shp2img (with an error inside your mapfile) in the gdb debugger 
(https://mapserver.org/optimization/debugging.html#running-in-the-debugger)
   - paste gdb output here (using https://pastebin.com/ ) for everyone 
to review (but that is rarely super easy to solve in email)


Not sure.  I would also take a look inside your /cgi-bin/ dir and 
execute: ldd mapserv   (and look for any conflicts with libs)   but 
that's an awful guess, not easy to see (but I've been here before with 
PROJ/GeoTIFF/Spatialite lib conflicts, in this case I'm not sure what lib).

In extreme stress, I would also test with today's checkout of the 'main' 
repository from GitHub (recompile with the latest from the repository I 
mean).

Sorry, I'm sure others have better advice.

-jeff




-- 
Jeff McKenna
GatewayGeo: Developers of MS4W, MapServer Consulting and Training
co-founder of FOSS4G
http://gatewaygeo.com/




On 2021-04-16 3:31 p.m., Worth Lutz wrote:
> Hi All,
> 
> We are having a problem with the cgi mapserv executable.
> 
> Some symptoms are
> 
>   * when calling with a valid query string, a png is returned as expected
>   * when there is an error in the mapfile, nothing is returned. 
>     response headers show "Content-Type: text/xml;" but there is no xml
>     response data.
>   * running mapserv on the command line with the same query string
>     returns the expected output.
>   * running mapserv -v on the command line returns "double free or
>     corruption (out) Aborted (core dumped)"
> 
> gisusr at osagisdevl:~$ mapserv -v
> MapServer version 7.4.3 OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML SUPPORTS=PROJ 
> SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=CAIRO SUPPORTS=ICONV 
> SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT 
> SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER 
> SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS 
> SUPPORTS=POINT_Z_M SUPPORTS=PBF INPUT=JPEG INPUT=POSTGIS INPUT=OGR 
> INPUT=GDAL INPUT=SHAPEFILE
> double free or corruption (out)
> Aborted (core dumped)
> gisusr at osagisdevl:~$
> 
> This is on a compiled version of mapserver on RHEL8.  The same result 
> with mapserver 7.6.2.
> 
> Does anyone have suggestions on how to track this problem down?
> 
> -- 
> *Worth Lutz*
> 
> 
> 



More information about the MapServer-users mailing list