<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:windowtext;}
span.EmailStyle18
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='color:#1F497D'>It appears it is the postgis-2.0.so library that is causing the problem. I removed all but one call the library and it still occurred. I tried some basic queries with no problem. I’ll have to go back to my compilation. <o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>--Jack Gold<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> postgis-users-bounces@postgis.refractions.net [mailto:postgis-users-bounces@postgis.refractions.net] <b>On Behalf Of </b>Gold, Jack L (US SSA)<br><b>Sent:</b> Thursday, May 10, 2012 4:53 PM<br><b>To:</b> PostGIS Users Discussion (postgis-users@postgis.refractions.net)<br><b>Subject:</b> [postgis-users] segmentation fault<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I’m trying to rebuild my i386(RHEL5) database (PostGIS-2.0.1SVN) on x86_64 (CentOS). I’ve managed to build all of the libraries and I believe they are all installed correctly, but when I attempt to load postgis.sql, I get a seg-fault and the postmaster restarts wth:<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>…LANGUAGE 'plpgsql' IMMUTABLE STRICT;<o:p></o:p></p><p class=MsoNormal>ERROR: current transaction is aborted, commands ignored until end of transaction block<o:p></o:p></p><p class=MsoNormal>STATEMENT: CREATE OR REPLACE FUNCTION _ST_AsX3D(int4, geometry, int4, int4, text)<o:p></o:p></p><p class=MsoNormal> RETURNS TEXT<o:p></o:p></p><p class=MsoNormal> AS '$libdir/postgis-2.0','LWGEOM_asX3D'<o:p></o:p></p><p class=MsoNormal> LANGUAGE 'C' IMMUTABLE;<o:p></o:p></p><p class=MsoNormal>ERROR: current transaction is aborted, commands ignored until end of transaction block<o:p></o:p></p><p class=MsoNormal>STATEMENT: CREATE OR REPLACE FUNCTION ST_AsX3D(geom geometry, maxdecimaldigits integer DEFAULT 15, options integer DEFAULT 0)<o:p></o:p></p><p class=MsoNormal> RETURNS TEXT<o:p></o:p></p><p class=MsoNormal> AS $$SELECT _ST_AsX3D(3,$1,$2,$3,'');$$<o:p></o:p></p><p class=MsoNormal> LANGUAGE 'sql' IMMUTABLE;<o:p></o:p></p><p class=MsoNormal>LOG: received fast shutdown request<o:p></o:p></p><p class=MsoNormal>LOG: aborting any active transactions<o:p></o:p></p><p class=MsoNormal>LOG: autovacuum launcher shutting down<o:p></o:p></p><p class=MsoNormal>LOG: shutting down<o:p></o:p></p><p class=MsoNormal>LOG: database system is shut down<o:p></o:p></p><p class=MsoNormal>LOG: database system was shut down at 2012-05-10 20:42:21 UTC<o:p></o:p></p><p class=MsoNormal>LOG: autovacuum launcher started<o:p></o:p></p><p class=MsoNormal>LOG: database system is ready to accept connections<o:p></o:p></p><p class=MsoNormal>LOG: server process (PID 8543) was terminated by signal 11: Segmentation fault<o:p></o:p></p><p class=MsoNormal>LOG: terminating any other active server processes<o:p></o:p></p><p class=MsoNormal>WARNING: terminating connection because of crash of another server process<o:p></o:p></p><p class=MsoNormal>DETAIL: The postmaster has commanded this server process to roll back the current transaction and exit, because another server process exited abnormally and possibly corrupted shared memory.<o:p></o:p></p><p class=MsoNormal>HINT: In a moment you should be able to reconnect to the database and repeat your command.<o:p></o:p></p><p class=MsoNormal>LOG: all server processes terminated; reinitializing<o:p></o:p></p><p class=MsoNormal>LOG: database system was interrupted; last known up at 2012-05-10 20:42:22 UTC<o:p></o:p></p><p class=MsoNormal>LOG: database system was not properly shut down; automatic recovery in progress<o:p></o:p></p><p class=MsoNormal>LOG: record with zero length at 0/2A9A0F0<o:p></o:p></p><p class=MsoNormal>LOG: redo is not required<o:p></o:p></p><p class=MsoNormal>LOG: autovacuum launcher started<o:p></o:p></p><p class=MsoNormal>LOG: database system is ready to accept connections<o:p></o:p></p><p class=MsoNormal>LOG: server process (PID 8572) was terminated by signal 11: Segmentation fault<o:p></o:p></p><p class=MsoNormal>LOG: terminating any other active server processes<o:p></o:p></p><p class=MsoNormal>WARNING: terminating connection because of crash of another server process<o:p></o:p></p><p class=MsoNormal>DETAIL: The postmaster has commanded this server process to roll back the current transaction and exit, because another server process exited abnormally and possibly corrupted shared memory.<o:p></o:p></p><p class=MsoNormal>HINT: In a moment you should be able to reconnect to the database and repeat your command.<o:p></o:p></p><p class=MsoNormal>LOG: all server processes terminated; reinitializing<o:p></o:p></p><p class=MsoNormal>LOG: database system was interrupted; last known up at 2012-05-10 20:42:28 UTC<o:p></o:p></p><p class=MsoNormal>LOG: database system was not properly shut down; automatic recovery in progress<o:p></o:p></p><p class=MsoNormal>LOG: record with zero length at 0/2A9A148<o:p></o:p></p><p class=MsoNormal>LOG: redo is not required<o:p></o:p></p><p class=MsoNormal>LOG: autovacuum launcher started<o:p></o:p></p><p class=MsoNormal>LOG: database system is ready to accept connections<o:p></o:p></p><p class=MsoNormal>LOG: server process (PID 8581) was terminated by signal 11: Segmentation fault<o:p></o:p></p><p class=MsoNormal>LOG: terminating any other active server processes<o:p></o:p></p><p class=MsoNormal>WARNING: terminating connection because of crash of another server process<o:p></o:p></p><p class=MsoNormal>DETAIL: The postmaster has commanded this server process to roll back the current transaction and exit, because another server process exited abnormally and possibly corrupted shared memory.<o:p></o:p></p><p class=MsoNormal>HINT: In a moment you should be able to reconnect to the database and repeat your command.<o:p></o:p></p><p class=MsoNormal>LOG: all server processes terminated; reinitializing<o:p></o:p></p><p class=MsoNormal>LOG: database system was interrupted; last known up at 2012-05-10 20:42:33 UTC<o:p></o:p></p><p class=MsoNormal>LOG: database system was not properly shut down; automatic recovery in progress<o:p></o:p></p><p class=MsoNormal>LOG: record with zero length at 0/2A9A1A0<o:p></o:p></p><p class=MsoNormal>LOG: redo is not required<o:p></o:p></p><p class=MsoNormal>LOG: autovacuum launcher started<o:p></o:p></p><p class=MsoNormal>LOG: database system is ready to accept connections<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I’m looking around for more detail, but I’m not seeing anything. Any ideas where I should look next?<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>--Jack Gold<o:p></o:p></p></div></body></html>