[Mapserver-users] Segmentation fault - fedora

Daniel Morissette dmorissette at dmsolutions.ca
Wed Feb 4 14:03:14 EST 2004


Can you try against the latest 4.1 (CVS) source and see if that seg 
fault happens with that version as well?

If the crash still happens with V4.1, then try including the 
--enable-debug option and recompile MapServer.  You will then be able to 
see exactly where in msReturnQuery() the crash happens (in gdb).  With 
this information we may be able to figure the source of the problem, if 
the gdb output doesn't give enough info then you may have to file a bug 
in bugzilla with a mapfile/dataset that can be used to reproduce the 
problem.

Daniel



Shannon Scott wrote:
>  
> 
> Greetings.
> 
> We recently upgraded from RedHat 8.0 to the fedora OS.
> 
> Since then we have had trouble with one of our map files.
> 
>  
> 
> I searched for the error in the apache log “Premature end of script 
> headers: mapserv”, but found no solution.
> 
> Then I tried the debugger.
> 
> I got this:
> 
>  
> 
> $ gdb mapserv
> 
> GNU gdb Red Hat Linux (5.3.90-0.20030710.41rh)
> 
> Copyright 2003 Free Software Foundation, Inc.
> 
> GDB is free software, covered by the GNU General Public License, and you are
> 
> welcome to change it and/or distribute copies of it under certain 
> conditions.
> 
> Type "show copying" to see the conditions.
> 
> There is absolutely no warranty for GDB.  Type "show warranty" for details.
> 
> This GDB was configured as "i386-redhat-linux-gnu"...(no debugging 
> symbols found)...Using host libthread_db library 
> "/lib/tls/libthread_db.so.1".
> 
>  
> 
> (gdb) run 
> "QUERY_STRING=map=/var/tomcat4/webapps/ROOT/static/mcht/mltn_query.map&mode=itemquery&qlayer=mltntrim&qitem=id&qstring=([id]=38)"
> 
> Starting program: /usr/local/mapserv_fedora/mapserver-4.0.1/mapserv 
> "QUERY_STRING=map=/var/tomcat4/webapps/ROOT/static/mcht/mltn_query.map&mode=itemquery&qlayer=mltntrim&qitem=id&qstring=([id]=38)"
> 
>  
> 
> Program received signal SIGSEGV, Segmentation fault.
> 
> 0x080566d9 in msReturnQuery ()
> 
> (gdb) backtrace
> 
> #0  0x080566d9 in msReturnQuery ()
> 
> #1  0x08051019 in msReturnTemplateQuery ()
> 
> #2  0x0804ec72 in main ()
> 
> (gdb)
> 
>  
> 
>  
> 
> Then I changed to itemnquery and got this:
> 
>  
> 
> $ gdb mapserv
> 
> GNU gdb Red Hat Linux (5.3.90-0.20030710.41rh)
> 
> Copyright 2003 Free Software Foundation, Inc.
> 
> GDB is free software, covered by the GNU General Public License, and you are
> 
> welcome to change it and/or distribute copies of it under certain 
> conditions.
> 
> Type "show copying" to see the conditions.
> 
> There is absolutely no warranty for GDB.  Type "show warranty" for details.
> 
> This GDB was configured as "i386-redhat-linux-gnu"...(no debugging 
> symbols found)...Using host libthread_db library 
> "/lib/tls/libthread_db.so.1".
> 
>  
> 
> (gdb) run 
> "QUERY_STRING=map=/var/tomcat4/webapps/ROOT/static/mcht/mltn_query.map&mode=itemnquery&qlayer=mltntrim&qitem=id&qstring=([id]=38)"
> 
> Starting program: /usr/local/mapserv_fedora/mapserver-4.0.1/mapserv 
> "QUERY_STRING=map=/var/tomcat4/webapps/ROOT/static/mcht/mltn_query.map&mode=itemnquery&qlayer=mltntrim&qitem=id&qstring=([id]=38)"
> 
> Content-type: text/html
> 
>  
> 
> <!-- MapServer version 4.0.1 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP 
> SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER INPUT=TIFF 
> INPUT=EPPL7 INPUT=JPEG INPUT=GDAL INPUT=SHAPEFILE -->
> 
>  
> 
> Program received signal SIGSEGV, Segmentation fault.
> 
> 0x0031c153 in strlen () from /lib/tls/libc.so.6
> 
> (gdb) backtrace
> 
> #0  0x0031c153 in strlen () from /lib/tls/libc.so.6
> 
> #1  0x0035d23a in regexec () from /lib/tls/libc.so.6
> 
> #2  0x08055db4 in msReturnPage ()
> 
> #3  0x08056489 in msReturnQuery ()
> 
> #4  0x08051019 in msReturnTemplateQuery ()
> 
> #5  0x0804ec72 in main ()
> 
> (gdb)
> 
>  
> 
>  
> 
> How should I proceed?
> 
> Any help or advice is greatly appreciated.
> 
> Thank You.
> 
> Shannon
> 
>  
> 




More information about the mapserver-users mailing list