[maplab-users] The problem exploration

Zak James zak4ms at gmail.com
Mon Feb 7 13:08:12 EST 2005


Djamel,

Those mapedit log entries aren't errors, they are just recording what
mapedit is doing. Since your segfault is occurring with the
gmapfactory-generated application, I don't think the maplab logs are
going to be helpful. In gdb, you need to actually debug the core file
because that will take you to where the segmentation fault is
occurring. Your next step should be to find out how to enable core
files on your system.

zak


On Mon, 31 Jan 2005 18:19:49 -0800, Djamel Toudert <toudert at uabc.mx> wrote:
>  
>  
> 
> The sigfault generated by url:
> http://ceagi.mxl.uabc.mx/maplab/projects/gmf_apps/MEXICO/MEXICO.phtml 
> 
> is strange!! I still looking for the coredump but I don't find anything in
> the system. 
> 
> I try to gdb the same url, the program exited normally creating in the
> tmp_ms all the images (legend, scalebar, keymap) but no the map image. I am
> attaching the result below. 
> 
> After i enable-debug in one new mapserver/Php_mapscript compilation, i get
> in the action_mapedit.log : 
> 
> [Mon.Jan.31.2005.9:50:54] gszMapName is
> /var/www/html///maplab/ejercicio//mexico.map 
> 
> [Mon.Jan.31.2005.9:50:54] gszIndex is 003 
> 
> [Mon.Jan.31.2005.9:50:54] goObjectToCopy is 
> 
> [Mon.Jan.31.2005.9:50:54] gnCurrentLayerIndex is 5 
> 
> [Mon.Jan.31.2005.9:50:54] gszFontFile is
> /var/www/html/maplab/ejercicio/etc/fonts.txt 
> 
> [Mon.Jan.31.2005.9:50:54] gszSymbolFile is
> /var/www/html/maplab/ejercicio/etc/symbols.sym 
> 
> [Mon.Jan.31.2005.9:50:54] gszCurrentState is 
> 
> [Mon.Jan.31.2005.9:50:54] gszWarehouseMapFiles is 
> 
> [Mon.Jan.31.2005.9:50:54] gszPHPMapScriptModName is php_mapscript.so 
> 
> [Mon.Jan.31.2005.9:50:54] gszImageType is PNG 
> 
> [Mon.Jan.31.2005.9:50:54] gszTmpImgPath is /var/www/html/maplab/tmp/ms_tmp/ 
> 
> [Mon.Jan.31.2005.9:50:54] gszTmpWebImgPath is
> http://148.231.55.91/maplab/tmp/ms_tmp/ 
> 
> [Mon.Jan.31.2005.9:50:54] gszTmpMapPath is /var/www/html/maplab/tmp_map/ 
> 
> [Mon.Jan.31.2005.9:50:54] gszNavigationMode is ROSA 
> 
> [Mon.Jan.31.2005.9:50:54] initializing MapEditApp 
> 
> [Mon.Jan.31.2005.9:50:54] ../../config/mapserv_40.xml 
> 
> [Mon.Jan.31.2005.9:50:54] restoring gApp from
> /tmp/sess_41fe6fc6469f9/133393409841fe6ff9d674a3.40864490 
> 
> [Mon.Jan.31.2005.9:50:54]
> O:10:"mapeditapp":7:{s:8:"oLogFile";O:7:"logfile":4:{s:16:"szLogDestination";s:43:"/var/www/html/maplab/log/action_mapedit.log";s:8:"nLogType";i:3;s:12:"nMaxLogLevel";i:3;s:12:"nIndentLevel";i:1;}s:13:"oErrorManager";O:12:"errormanager":4:{s:11:"nErrorCount";i:0;s:12:"aszErrorList";a:0:{}s:18:"mszOldErrorHandler";s:0:"";s:12:"mnErrorLevel";N;}s:11:"szScopeName";s:10:"MapEditApp";s:11:"aValidators";a:20:{s:3:"DOC";O:6:"docobj":13:{s:8:"oLogFile";N;s:13:"oErrorManager";N;s:11:"szScopeName";N;s:8:"maoTypes";a:0:{}s:7:"maoObjs";a:0:{}s:13:"maszValidObjs";a:0:{}s:7:"mszName";N;s:8:"mszTitle";N;s:8:"mszIndex";s:0:"";s:15:"mnOriginalIndex";i:-1;s:15:"mszMultiplicity";i:1;s:11:"
> ... 
> 
>   
> 
> Like you can see here,i get lots of error, any idea about what happen? 
> 
> Thanks in advance 
> 
> D. Toudert 
> 
> Ceagi2004 at uabc.mx 
> 
> GDB Results: 
> 
> --------------- 
> 
>   
> 
> [root at ceagi root]# gdb php 
> 
> GNU gdb 5.3-25mdk (Mandrake Linux) 
> 
> Copyright 2002 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 "i586-mandrake-linux-gnu"... 
> 
> (gdb) run /var/www/html/maplab/projects/gmf_apps/MEXICO/MEXICO.phtml 
> 
> Starting program: /usr/local/bin/php
> /var/www/html/maplab/projects/gmf_apps/MEXICO/MEXICO.phtml 
> 
> Content-type: text/html 
> 
> X-Powered-By: PHP/4.3.4 
> 
>   
> 
> <html> 
> 
> <head> 
> 
> <TITLE>MAPA DE MEXICO</TITLE> 
> 
> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> 
> 
> <script language="javascript"> 
> 
> /** 
> 
>  * This function runs after the form is done loading 
> 
>  **/ 
> 
> function doneLoading() 
> 
> { 
> 
>     // show the query results page if query 
> 
>     if ( document.main.QueryString.value != "" ) 
> 
>     { 
> 
>         // complete the string 
> 
>         document.main.QueryString.value = "?PrevStateKey=" +
> document.main.PrevStateKey.value + "&INPUT_COORD=" +
> document.main.INPUT_COORD.value; 
> 
>   
> 
>         // calculate the center 
> 
>         if (document.all) 
> 
>             var xMax = screen.width, yMax = screen.height; 
> 
>         else if (document.layers) 
> 
>             var xMax = window.outerWidth, yMax = window.outerHeight; 
> 
>         else 
> 
>             var xMax = 640, yMax=480; 
> 
>   
> 
>         var xOffset = (xMax - 510)/2, yOffset = (yMax - 390)/2; 
> 
>   
> 
>         // load the processing page 
> 
>         mapquery = window.open('query.phtml' +
> document.main.QueryString.value,'mapquery','scrollbars=yes,resizable=yes,width=510,height=390,screenX='+xOffset+',screenY='+yOffset+',top='+yOffset+',left='+xOffset+'');
> 
>   
> 
>         // give it focus 
> 
>         mapquery.focus(); 
> 
>   
> 
>     } 
> 
>   
> 
>     // exit 
> 
>     return; 
> 
> } 
> 
> </script> 
> 
> </head> 
> 
> <body onload="javascript:doneLoading()" bgcolor="ffffff"> 
> 
> <form name="main"> 
> 
> <!--------------------------------------> 
> 
> <!-- !!!DO NOT MODIFY THIS SECTION!!! --> 
> 
> <!--------------------------------------> 
> 
> <!----------------------> 
> 
> <!-- BEGIN MAIN TABLE --> 
> 
> <!----------------------> 
> 
> <table border="0" cellspacing="1" cellpadding="2"> 
> 
> <tr valign="top"> 
> 
> <td> 
> 
> <!-------------------------------------> 
> 
> <!-- BEGIN FIRST OF THREE SUB-TABLES --> 
> 
> <!-------------------------------------> 
> 
> <table border="0" cellspacing="0" cellpadding="1"> 
> 
> <!-----------------------> 
> 
> <!-- BEGIN DRAW LEGEND --> 
> 
> <!-----------------------> 
> 
> <tr> 
> 
> <td align=center> 
> 
> <table border=0 cellspacing=2 cellpadding=0> 
> 
> <tr> 
> 
> <td colspan=3><font face="Arial, Helvetica, sans-serif"
> size="2"><b>Legend</b></font></td> 
> 
> </tr> 
> 
> <tr> 
> 
> <td colspan=3><font face="Arial, Helvetica, sans-serif" size="2">&nbsp;<img
> src="images/icon_eye.gif" width="17"
> height="11"><b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Layer</b></font></td>
> 
> </tr> 
> 
> <tr> 
> 
> <td bgcolor="#999999" colspan=3><img src="images/a_pixel.gif" width="1"
> height="1"></td> 
> 
> </tr> 
> 
>   
> 
> <tr bgcolor="#FFFFFF"> 
> 
>   <td align="center"> 
> 
>     <input type="checkbox" name="layer_status[]" value="Grandes ciudades"
> CHECKED> 
> 
>   </td> 
> 
>   <td><img
> src="http://148.231.55.91/maplab/tmp/ms_tmp/1107197436_4_0_20_10.png"
> height=10 width=20></td> 
> 
>   <td><font face="Arial, Helvetica, sans-serif" size="2">Grandes
> ciudades</font></td> 
> 
> </tr> 
> 
>   
> 
> <tr bgcolor="#FFFFFF"> 
> 
>   <td align="center"> 
> 
>     <input type="checkbox" name="layer_status[]" value="Carreteras" CHECKED>
> 
>   </td> 
> 
>   <td><img
> src="http://148.231.55.91/maplab/tmp/ms_tmp/1107197436_3_0_20_10.png"
> height=10 width=20></td> 
> 
>   <td><font face="Arial, Helvetica, sans-serif"
> size="2">Carreteras</font></td> 
> 
> </tr> 
> 
>   
> 
> <tr bgcolor="#FFFFFF"> 
> 
>   <td align="center"> 
> 
>     <input type="checkbox" name="layer_status[]" value="Rios" CHECKED> 
> 
>   </td> 
> 
>   <td><img
> src="http://148.231.55.91/maplab/tmp/ms_tmp/1107197436_2_0_20_10.png"
> height=10 width=20></td> 
> 
>   <td><font face="Arial, Helvetica, sans-serif" size="2">Rios</font></td> 
> 
> </tr> 
> 
>   
> 
> <tr bgcolor="#FFFFFF"> 
> 
>   <td align="center"> 
> 
>     <input type="checkbox" name="layer_status[]" value="Grandes lagos"
> CHECKED> 
> 
>   </td> 
> 
>   <td><img
> src="http://148.231.55.91/maplab/tmp/ms_tmp/1107197436_1_0_20_10.png"
> height=10 width=20></td> 
> 
>   <td><font face="Arial, Helvetica, sans-serif" size="2">Grandes
> lagos</font></td> 
> 
> </tr> 
> 
>   
> 
> <tr bgcolor="#FFFFFF"> 
> 
>   <td align="center"> 
> 
>     <input type="checkbox" name="layer_status[]" value="Estados" CHECKED> 
> 
>   </td> 
> 
>   <td><img
> src="http://148.231.55.91/maplab/tmp/ms_tmp/1107197436_0_0_20_10.png"
> height=10 width=20></td> 
> 
>   <td><font face="Arial, Helvetica, sans-serif" size="2">Estados</font></td>
> 
> </tr> 
> 
> <tr> 
> 
> <td bgcolor="#999999" colspan=3><img src="images/a_pixel.gif" width="1"
> height="1"></TD> 
> 
> </tr> 
> 
> <tr> 
> 
> <td colspan=3><input type=image src="images/icon_redraw.gif" width="19"
> height="19" name=redraw border=0><font face="Arial, Helvetica, sans-serif"
> size="2">&nbsp;Redraw Map</font></td> 
> 
> </tr> 
> 
> </table> 
> 
> </td> 
> 
> </tr> 
> 
> <!---------------------> 
> 
> <!-- END DRAW LEGEND --> 
> 
> <!---------------------> 
> 
> </table> 
> 
> <!-----------------------------------> 
> 
> <!-- END FIRST OF THREE SUB-TABLES --> 
> 
> <!-----------------------------------> 
> 
> </td> 
> 
> <td align="center"> 
> 
> <!--------------------------------------> 
> 
> <!-- BEGIN SECOND OF THREE SUB-TABLES --> 
> 
> <!--------------------------------------> 
> 
> <table border="0" cellspacing="0" cellpadding="1"> 
> 
> <!---------------------> 
> 
> <!-- BEGIN MAP TITLE --> 
> 
> <!---------------------> 
> 
> <tr> 
> 
> <td align="center"><font face="Arial, Helvetica, sans-serif" color="00007f"
> size="3"><b>MAPA DE MEXICO</b></font></td> 
> 
> </tr> 
> 
> <!-------------------> 
> 
> <!-- END MAP TITLE --> 
> 
> <!-------------------> 
> 
> <tr> 
> 
> <td><hr noshade size=1></td> 
> 
> </tr> 
> 
> <!----------------------------> 
> 
> <!-- BEGIN MAP & PAN ARROWS --> 
> 
> <!----------------------------> 
> 
> <tr> 
> 
> <td align="center"> 
> 
> <table border="0" cellspacing="1" cellpadding="0"> 
> 
> <tr align="center" valign="middle"> 
> 
> <td>&nbsp;</td> 
> 
> <td><input type=image name=Pan_North src="images/icon_pan_north.gif"
> border=0 width=25 height=17></td> 
> 
> <td>&nbsp;</td> 
> 
> </tr> 
> 
> <tr align="center" valign="middle"> 
> 
> <td><input type=image name=Pan_West src="images/icon_pan_west.gif" border=0
> width=17 height=25></td> 
> 
> <td> 
> 
> <table bgcolor="00007f" border="0" cellspacing="0" cellpadding="2"> 
> 
> <tr> 
> 
> <td> 
> 
> <table width="100%" border="0" cellspacing="0" cellpadding="0"> 
> 
> <tr> 
> 
> <!-- MAIN MAP --> 
> 
> <td bgcolor="#ffffff" width="400" height="300"><input type=image
> src="http:///wrapper/drawmap.php?gszMapName=/var/www/html///maplab/ejercicio//mexico.map&gszCurrentState=BBOX=-117.59306666667,11.7502,-85.646933333333,35.7098|SRS=|MAPSIZE=400,300|LAYERS=0,1,2,3,4&map_session_mode=0&run_query=0&gszPHPMapScriptModName=php_mapscript.so&gszQueryCoords="
> border=0 width="400" height="300" name="mainmap"></td></tr> 
> 
> </table> 
> 
> </td> 
> 
> </tr> 
> 
> </table> 
> 
> </td> 
> 
> <td><input type=image name=Pan_East src="images/icon_pan_east.gif" border=0
> width=17 height=25></td> 
> 
> </tr> 
> 
> <tr align="center" valign="middle"> 
> 
> <td>&nbsp;</td> 
> 
> <td><input type=image name=Pan_South src="images/icon_pan_south.gif"
> border=0 width=25 height=17></td> 
> 
> <td>&nbsp;</td> 
> 
> </tr> 
> 
> </table> 
> 
> </td> 
> 
> </tr> 
> 
> <!--------------------------> 
> 
> <!-- END MAP & PAN ARROWS --> 
> 
> <!--------------------------> 
> 
> <tr> 
> 
> <td><hr noshade size=1></td> 
> 
> </tr> 
> 
> <!--------------------> 
> 
> <!-- BEGIN SCALEBAR --> 
> 
> <!--------------------> 
> 
> <tr> 
> 
> <td align="center"><img
> src=http://148.231.55.91/maplab/tmp/ms_tmp/110719743614702.png
> border=0></td> 
> 
> </tr> 
> 
> <!------------------> 
> 
> <!-- END SCALEBAR --> 
> 
> <!------------------> 
> 
> </table> 
> 
> <!------------------------------------> 
> 
> <!-- END SECOND OF THREE SUB-TABLES --> 
> 
> <!------------------------------------> 
> 
> </td> 
> 
> <td> 
> 
> <!-------------------------------------> 
> 
> <!-- BEGIN THIRD OF THREE SUB-TABLES --> 
> 
> <!-------------------------------------> 
> 
> <table border="0" cellspacing="0" cellpadding="1"> 
> 
> <!------------------> 
> 
> <!-- BEGIN KEYMAP --> 
> 
> <!------------------> 
> 
> <tr> 
> 
> <td align=center> 
> 
> <table border=0 cellspacing=0 cellpadding=1> 
> 
> <tr> 
> 
> <td bgcolor="#333333"><input type=image name="keymap"
> src="http://148.231.55.91/maplab/tmp/ms_tmp/110719743614701.png" width=100
> height=75 border=0></td></tr> 
> 
> </table> 
> 
> </td> 
> 
> </tr> 
> 
> <!----------------> 
> 
> <!-- END KEYMAP --> 
> 
> <!----------------> 
> 
> <tr> 
> 
> <td><hr noshade size=1></td> 
> 
> </tr> 
> 
> <!-------------------------> 
> 
> <!-- BEGIN MAPPING TOOLS --> 
> 
> <!-------------------------> 
> 
> <tr> 
> 
> <td align=center> 
> 
> <table border=0 cellspacing=2 cellpadding=0> 
> 
> <tr> 
> 
> <td><font face="Arial, Helvetica, sans-serif" size="2"><b>Map
> Tools</b></font></td> 
> 
> </tr> 
> 
> <tr> 
> 
> <td align="center"> 
> 
> <table border="0" cellspacing="0" cellpadding="1"> 
> 
> <tr> 
> 
> <td colspan=2 align=right><input type="textbox" name="txtZoomFactor"
> value="2" size="3"></td><td><font face="Arial, Helvetica, sans-serif"
> size="1">&nbsp;Zoom Factor&nbsp;&nbsp;</font></td> 
> 
> </tr> 
> 
> <tr> 
> 
> <td><input type="radio" name="ROSA_CMD" value="ZOOM_IN" CHECKED></td><td
> bgcolor="#DFF5F5"><INPUT TYPE=IMAGE name=Zoom_In
> SRC="images/icon_zoomin.gif" width="22" height="22"
> border="0"></td><td><font face="Arial, Helvetica, sans-serif"
> size="1">&nbsp;Zoom In&nbsp;&nbsp;</font></td></tr> 
> 
> <tr> 
> 
> <td><input type="radio" name="ROSA_CMD" value="ZOOM_OUT" ></td><td
> bgcolor="#DFF5F5"><INPUT TYPE=IMAGE name=Zoom_Out
> SRC="images/icon_zoomout.gif" width="22" height="22"
> border="0"></td><td><font face="Arial, Helvetica, sans-serif"
> size="1">&nbsp;Zoom Out&nbsp;&nbsp;</font></td></tr> 
> 
> <tr> 
> 
> <td><input type="radio" name="ROSA_CMD" value="ZOOM_FULL" ></td><td
> bgcolor="#DFF5F5"><INPUT TYPE=IMAGE name=Zoom_Full
> SRC="images/icon_fullextent.gif" width="22" height="22"
> border="0"></td><td><font face="Arial, Helvetica, sans-serif"
> size="1">&nbsp;Full Extents&nbsp;&nbsp;</font></td></tr> 
> 
> <tr> 
> 
> <td><input type="radio" name="ROSA_CMD" value="RECENTRE" ></td><td
> bgcolor="#DFF5F5"><img name=Recentre SRC="images/icon_recentre.gif"
> width="22" height="22" border="0"></td><td><font face="Arial, Helvetica,
> sans-serif" size="1">&nbsp;Recentre&nbsp;&nbsp;</font></td></tr> 
> 
> <font size=2 face="Courier ... [Message clipped]
> _______________________________________________
> Maplab-users mailing list
> Maplab-users at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/maplab-users
> 
> 
> 


-- 
Zak James
Applications and Software Development
DM Solutions Group Inc.
http://www.dmsolutions.ca


More information about the Maplab-users mailing list