<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="MSHTML 6.00.2900.3020" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2><SPAN class=758325304-04072007>Hi
all,</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=758325304-04072007></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=758325304-04072007>We're in the process
of upgrading from 4.8.1 to 4.10.2 and we are seeing </SPAN></FONT><FONT
face=Arial size=2><SPAN class=758325304-04072007>segfaults</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=758325304-04072007>when using PostGIS
layers. </SPAN></FONT><FONT face=Arial size=2><SPAN
class=758325304-04072007>I've had a look through the bug tracker and source, the
main</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=758325304-04072007>difference between
msPOSTGISLayerRetrievePK() between 4.8.1 and 4.10.2 appears</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=758325304-04072007>to be the following
(mappostgis.c revisions 1.66 to 1.77):</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=758325304-04072007></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=758325304-04072007>* Revision
1.71 2006/05/03 22:35:41 pramsey<BR> * Added schema separation
and search path awareness to the LayerRetrievePK. (towards Bug
1571)</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=758325304-04072007>Does anyone know if
this is a known issue? Is the schema patch likely to be the source of
it?</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=758325304-04072007></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=758325304-04072007> - I can
usually get two or three maps before the application server dies
completely</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=758325304-04072007> - We're using
the Java mapscript swig bindings</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=758325304-04072007> - Postgres 8.2
with PostGIS 1.2.0</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=758325304-04072007> - The segfault
occurs with 4.10.0 and 4.10.2</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=758325304-04072007> - I have not
had a chance to see if the CGI version has the same problem</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=758325304-04072007> - Reverting to
4.8.1 on the same system works fine, suggesting it's not a Postgres/PostGIS
issue</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=758325304-04072007> - Stack trace
included below</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=758325304-04072007></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=758325304-04072007>Thanks,</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=758325304-04072007><BR>Antti
Roppola</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=758325304-04072007></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2>Stack: [0x6f395000,0x6f408000),
sp=0x6f4033c4, free space=440k<BR>Native frames: (J=compiled Java code,
j=interpreted, Vv=VM code, C=native code)<BR>C [libc.so.6+0x68055]
strncpy+0x35<BR>C [libmapscript.so.4.10.2+0xcf5ae]
msPOSTGISLayerRetrievePK+0x8e<BR>C
[libmapscript.so.4.10.2+0xd0b18]<BR>C
[libmapscript.so.4.10.2+0xd1694] msPOSTGISLayerWhichShapes+0xd4<BR>C
[libmapscript.so.4.10.2+0x84f2b] msLayerWhichShapes+0x5b<BR>C
[libmapscript.so.4.10.2+0x91c79] msDrawVectorLayer+0x1c9<BR>C
[libmapscript.so.4.10.2+0x920da] msDrawLayer+0x8a<BR>C
[libmapscript.so.4.10.2+0x934d1] msDrawMap+0x1d1<BR>C
[libmapscript.so.4.10.2+0x464e5]
Java_edu_umn_gis_mapscript_mapscriptJNI_mapObj_1draw+0x35<BR>j
edu.umn.gis.mapscript.mapscriptJNI.mapObj_draw(JLedu/umn/gis/mapscript/mapObj;)J+0<BR>j
edu.umn.gis.mapscript.mapObj.draw()Ledu/umn/gis/mapscript/imageObj;+5<BR>v
~StubRoutines::call_stub</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<P><br/>------<br/>IMPORTANT - This message has been issued by The Department of Agriculture, Fisheries and Forestry (DAFF). The information transmitted is for the use of the intended recipient only and may contain confidential and/or legally privileged material. It is your responsibility to check any attachments for viruses and defects before opening or sending them on.
Any reproduction, publication, communication, re-transmission, disclosure, dissemination or other use of the information contained in this e-mail by persons or entities other than the intended recipient is prohibited. The taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this e-mail in error please notify the sender and delete all copies of this transmission together with any attachments. If you have received this e-mail as part of a valid mailing list and no longer want to receive a message such as this one advise the sender by return e-mail accordingly. Only e-mail correspondence which includes this footer, has been authorised by DAFF
<br/>------<br/>
</P></BODY></HTML>