<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from text --><style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<div>I'd call it a bug. What version? Can you prepare a small test case?
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> mapserver-users <mapserver-users-bounces@lists.osgeo.org> on behalf of Dave Barter <dave@phased.co.uk><br>
<b>Sent:</b> Friday, August 18, 2017 5:13:29 AM<br>
<b>To:</b> mapserver-users@lists.osgeo.org<br>
<b>Subject:</b> [mapserver-users] Segfault - LINE layer</font>
<div> </div>
</div>
</div>
<font size="2"><span style="font-size:10pt;">
<div class="PlainText">This call:-<br>
<br>
/usr/lib/cgi-bin/mapserv.ngx -nh "QUERY_STRING=map=/usr/src/app/mapfiles/api/wms_osm_google_world_bw.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&SERVICE=WMS&STYLES=&BBOX=-6114.962263%2c6099063.360931%2c162657.996191%2c6267836.319384&WIDTH=276&HEIGHT=276&FORMAT=image%2fpng&SRS=EPSG%3a3857&LAYERS=roads8&transparent=false<br>
<br>
Is giving me:-<br>
<br>
Segmentation fault (core dumped)<br>
<br>
For the layer definition:-<br>
<br>
LAYER<br>
GROUP "default"<br>
STATUS ON<br>
TYPE LINE<br>
MINSCALEDENOM 1300032<br>
MAXSCALEDENOM 2600064<br>
NAME "roads8"<br>
DEBUG 5<br>
CONNECTIONTYPE postgis<br>
PROCESSING "CLOSE_CONNECTION=DEFER"<br>
{%public_map_user%}<br>
PROJECTION<br>
"init=epsg:900913"<br>
END<br>
DATA "geometry from (select osm_id,geometry,name as name,ref,type from mapping_osm.osm_new_roads_gen1 where type in ('trunk','motorway','primary') order by z_order asc) as foo using unique osm_id using srid=900913"<br>
LABELITEM "name"<br>
CLASSITEM "type"<br>
CLASS<br>
EXPRESSION {primary,primary_link}<br>
STYLE<br>
WIDTH 0.5<br>
COLOR 242 242 242<br>
END<br>
END<br>
CLASS<br>
EXPRESSION "motorway"<br>
TEXT ("[ref]")<br>
STYLE<br>
WIDTH 1<br>
OUTLINEWIDTH 0.5<br>
OUTLINECOLOR 217 217 217<br>
END<br>
STYLE<br>
WIDTH 1<br>
COLOR 242 242 242<br>
<br>
END<br>
END<br>
CLASS<br>
EXPRESSION "trunk"<br>
TEXT ("[ref]")<br>
STYLE<br>
WIDTH 1<br>
OUTLINEWIDTH 0.5<br>
OUTLINECOLOR 217 217 217<br>
END<br>
STYLE<br>
WIDTH 1<br>
COLOR 242 242 242<br>
END<br>
END<br>
END<br>
<br>
When I look in my debug file I see the following as last set of lines:-<br>
<br>
[Fri Aug 18 11:09:39 2017].945225 msPostGISReadShape: PQgetlength = 7<br>
[Fri Aug 18 11:09:39 2017].945236 msPostGISReadShape: [type] "primary"<br>
[Fri Aug 18 11:09:39 2017].945248 msPostGISReadShape: PQgetlength = 0<br>
[Fri Aug 18 11:09:39 2017].945259 msPostGISReadShape: [name] ""<br>
[Fri Aug 18 11:09:39 2017].945270 msPostGISReadShape: PQgetlength = 0<br>
[Fri Aug 18 11:09:39 2017].945281 msPostGISReadShape: [ref] ""<br>
[Fri Aug 18 11:09:39 2017].945292 msPostGISReadShape: Setting shape->index = 307691570<br>
[Fri Aug 18 11:09:39 2017].945303 msPostGISReadShape: Setting shape->resultindex = 327<br>
[Fri Aug 18 11:09:39 2017].945314 msPostGISReadShape: [index] 307691570<br>
[Fri Aug 18 11:09:39 2017].945346 msPostGISReadShape: [shape] LINESTRING (139231.1053743003285490 6233477.4797634640708566, 139274.7760105324559845 6233447.9814142314717174)<br>
[Fri Aug 18 11:09:39 2017].945369 msPostGISLayerNextShape called.<br>
[Fri Aug 18 11:09:39 2017].945383 msPostGISReadShape called.<br>
[Fri Aug 18 11:09:39 2017].94<br>
<br>
So it seems to segfault during msPostGISReadShape. <br>
<br>
I’ve checked the query and it is pulling 3110 linestrings from the database. <br>
<br>
But I am not sure why is is segfaulting? Is this a bug?<br>
<br>
Dave Barter<br>
dave@phased.co.uk<br>
@citizenfishy<br>
<a href="http://www.phased.co.uk">www.phased.co.uk</a><br>
<br>
_______________________________________________<br>
mapserver-users mailing list<br>
mapserver-users@lists.osgeo.org<br>
<a href="https://lists.osgeo.org/mailman/listinfo/mapserver-users">https://lists.osgeo.org/mailman/listinfo/mapserver-users</a></div>
</span></font>
</body>
</html>