[mapserver-users] gmap demo segfault

Caffeinate The World mochaexpress@yahoo.com
Sun, 24 Nov 2002 03:53:13 -0800 (PST)


--0-2127039636-1038138793=:57180
Content-Type: text/plain; charset=us-ascii


I narrowed the segfault down to this section of gmap75.map:
LAYER
  NAME grid
  METADATA
    "DESCRIPTION" "Grid"
  END
  TYPE LINE
  STATUS OFF
  DATA grid
  CLASS
    NAME "Graticule"
    COLOR 0 0 0
  END
END # Layer
I still don't know what's causing the segfault. The php.core I have doesn't have debug on to do a backtrace.
 Caffeinate The World <mochaexpress@yahoo.com> wrote:
mapserver-3.6.3
php-4.2.2 (cgi and apache  mod)
NetBSD-Alpha-1.5.2
Apache-1.3.22

I got mapserver going and the default demo working. Then I tried the gmap-3.6 demo and it segmentation fault at the line denoted by "HERE" below :

function GMapDrawMap()
{
    GLOBAL $gpoMap, $gbShowQueryResults;
    GLOBAL $gbIsHtmlMode;
    GLOBAL $gszCommand, $gszZoomBoxExt;
    GLOBAL $gAppletImgFmt, $gImagesFmt;

    if ($gbShowQueryResults)
        $img = $gpoMap->drawQuery();
    else
        $img = $gpoMap->draw(); //<--------HERE



---------------------------------
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now


---------------------------------
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now
--0-2127039636-1038138793=:57180
Content-Type: text/html; charset=us-ascii

<P>I narrowed the segfault down to this section of gmap75.map:
<P>LAYER<BR>&nbsp; NAME grid<BR>&nbsp; METADATA<BR>&nbsp;&nbsp;&nbsp; "DESCRIPTION" "Grid"<BR>&nbsp; END<BR>&nbsp; TYPE LINE<BR>&nbsp; STATUS OFF<BR>&nbsp; DATA grid<BR>&nbsp; CLASS<BR>&nbsp;&nbsp;&nbsp; NAME "Graticule"<BR>&nbsp;&nbsp;&nbsp; COLOR 0 0 0<BR>&nbsp; END<BR>END # Layer
<P>I still don't know what's causing the segfault. The php.core I have doesn't have debug on to do a backtrace.
<P>&nbsp;<B><I>Caffeinate The World &lt;mochaexpress@yahoo.com&gt;</I></B> wrote:
<BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">
<P>mapserver-3.6.3<BR>php-4.2.2 (cgi and apache&nbsp; mod)<BR>NetBSD-Alpha-1.5.2<BR>Apache-1.3.22</P>
<P>I got mapserver going and the default demo working. Then I tried the gmap-3.6 demo and it segmentation fault at the line denoted by "HERE"&nbsp;below&nbsp;:</P>
<P>function GMapDrawMap()<BR>{<BR>&nbsp;&nbsp;&nbsp; GLOBAL $gpoMap, $gbShowQueryResults;<BR>&nbsp;&nbsp;&nbsp; GLOBAL $gbIsHtmlMode;<BR>&nbsp;&nbsp;&nbsp; GLOBAL $gszCommand, $gszZoomBoxExt;<BR>&nbsp;&nbsp;&nbsp; GLOBAL $gAppletImgFmt, $gImagesFmt;</P>
<P>&nbsp;&nbsp;&nbsp; if ($gbShowQueryResults)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $img = $gpoMap-&gt;drawQuery();<BR>&nbsp;&nbsp;&nbsp; else<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $img = $gpoMap-&gt;draw(); //&lt;--------HERE</P>
<P><BR>
<HR SIZE=1>
Do you Yahoo!?<BR><A href="http://rd.yahoo.com/mail/mailsig/*http://mailplus.yahoo.com">Yahoo! Mail Plus</A> - Powerful. Affordable. <A href="http://rd.yahoo.com/mail/mailsig/*http://mailplus.yahoo.com">Sign up now</A></BLOCKQUOTE><p><br><hr size=1>Do you Yahoo!?<br>
<a href="http://rd.yahoo.com/mail/mailsig/*http://mailplus.yahoo.com">Yahoo! Mail Plus</a> - Powerful. Affordable. <a href="http://rd.yahoo.com/mail/mailsig/*http://mailplus.yahoo.com">Sign up now</a>
--0-2127039636-1038138793=:57180--