[mapserver-users] gmap demo segfault
Caffeinate The World
mochaexpress@yahoo.com
Sun, 24 Nov 2002 12:12:05 -0800 (PST)
--0-1933337712-1038168725=:4519
Content-Type: text/plain; charset=us-ascii
I turned on --enable-debug on the mapsever compile only.. php cgi currently doesn't have it turned on:
...
Reading symbols from /usr/local/lib/libproj.so...done.
Reading symbols from /usr/pkg/lib/libtiff.so.3...done.
#0 0x16220d06c in drawTIFF (map=0x0, layer=0x1a5, img=0x120456000,
filename=0x0) at mapraster.c:828
---Type <return> to continue, or q <return> to quit---
828 vv=buf[xi+boffset];
(gdb) bt
#0 0x16220d06c in drawTIFF (map=0x0, layer=0x1a5, img=0x120456000,
filename=0x0) at mapraster.c:828
warning: Hit heuristic-fence-post without finding
warning: enclosing function for address 0x1202fd370
This warning occurs if you are debugging a function without any symbols
(for example, in a stripped executable). In that case, you may wish to
increase the size of the search with the `set heuristic-fence-post' command.
Caffeinate The World <mochaexpress@yahoo.com> wrote:
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
---------------------------------
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now
--0-1933337712-1038168725=:4519
Content-Type: text/html; charset=us-ascii
<P>I turned on --enable-debug on the mapsever compile only.. php cgi currently doesn't have it turned on:
<P>...<BR>Reading symbols from /usr/local/lib/libproj.so...done.<BR>Reading symbols from /usr/pkg/lib/libtiff.so.3...done.<BR>#0 0x16220d06c in drawTIFF (map=0x0, layer=0x1a5, img=0x120456000,<BR> filename=0x0) at mapraster.c:828<BR>---Type <return> to continue, or q <return> to quit---<BR>828 vv=buf[xi+boffset];<BR>(gdb) bt<BR>#0 0x16220d06c in drawTIFF (map=0x0, layer=0x1a5, img=0x120456000,<BR> filename=0x0) at mapraster.c:828<BR>warning: Hit heuristic-fence-post without finding<BR>warning: enclosing function for address 0x1202fd370<BR>This warning occurs if you are debugging a function without any symbols<BR>(for example, in a stripped executable). In that case, you may wish to<BR>increase the size of the search with the `set heuristic-fence-post' command.</P>
<P>
<P> <B><I>Caffeinate The World <mochaexpress@yahoo.com></I></B> wrote:
<BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">
<P>I narrowed the segfault down to this section of gmap75.map:
<P>LAYER<BR> NAME grid<BR> METADATA<BR> "DESCRIPTION" "Grid"<BR> END<BR> TYPE LINE<BR> STATUS OFF<BR> DATA grid<BR> CLASS<BR> NAME "Graticule"<BR> COLOR 0 0 0<BR> 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> <B><I>Caffeinate The World <mochaexpress@yahoo.com></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 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" below :</P>
<P>function GMapDrawMap()<BR>{<BR> GLOBAL $gpoMap, $gbShowQueryResults;<BR> GLOBAL $gbIsHtmlMode;<BR> GLOBAL $gszCommand, $gszZoomBoxExt;<BR> GLOBAL $gAppletImgFmt, $gImagesFmt;</P>
<P> if ($gbShowQueryResults)<BR> $img = $gpoMap->drawQuery();<BR> else<BR> $img = $gpoMap->draw(); //<--------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></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-1933337712-1038168725=:4519--