<style>
/* Changing the layout to use less space for mobiles */
@media screen and (max-device-width: 480px), screen and (-webkit-min-device-pixel-ratio: 2) {
#email-body { min-width: 30em !important; }
#email-page { padding: 8px !important; }
#email-banner { padding: 8px 8px 0 8px !important; }
#email-avatar { margin: 1px 8px 8px 0 !important; padding: 0 !important; }
#email-fields { padding: 0 8px 8px 8px !important; }
#email-gutter { width: 0 !important; }
}
</style>
<div id="email-body">
<table id="email-wrap" align="center" border="0" cellpadding="0" cellspacing="0" style="background-color:#f0f0f0;color:#000000;width:100%;">
<tr valign="top">
<td id="email-page" style="padding:16px !important;">
<table align="center" border="0" cellpadding="0" cellspacing="0" style="background-color:#ffffff;border:1px solid #bbbbbb;color:#000000;width:100%;">
<tr valign="top">
<td bgcolor="#ffffff" style="background-color:#ffffff;color:#000000;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;line-height:1;"><img src="https://shibboleth.net/images/shib_240x83.png" alt="" style="vertical-align:top;" /></td>
</tr><tr valign="top">
<td id="email-banner" style="padding:32px 32px 0 32px;">
<table align="left" border="0" cellpadding="0" cellspacing="0" width="100%" style="width:100%;">
<tr valign="top">
<td style="color:#505050;font-family:Arial,FreeSans,Helvetica,sans-serif;padding:0;">
<img id="email-avatar" src="https://issues.shibboleth.net/jira/secure/useravatar?avatarId=10202" alt="" height="48" width="48" border="0" align="left" style="padding:0;margin: 0 16px 16px 0;" />
<div id="email-action" style="padding: 0 0 8px 0;font-size:12px;line-height:18px;">
<a class="user-hover" rel="dcardozo@idp.protectnetwork.org" id="email_dcardozo@idp.protectnetwork.org" href="https://issues.shibboleth.net/jira/secure/ViewProfile.jspa?name=dcardozo%40idp.protectnetwork.org" style="color:#326ca6;">dcardozo@idp.protectnetwork.org</a>
created <img src="https://issues.shibboleth.net/jira/images/icons/issuetypes/bug.png" height="16" width="16" border="0" align="absmiddle" alt="Bug"> <a style='color:#326ca6;text-decoration:none;' href='https://issues.shibboleth.net/jira/browse/SSPCPP-607'>SSPCPP-607</a>
</div>
<div id="email-summary" style="font-size:16px;line-height:20px;padding:2px 0 16px 0;">
<a style='color:#326ca6;text-decoration:none;' href='https://issues.shibboleth.net/jira/browse/SSPCPP-607'><strong>Apache in Solaris: Segmentation Fault - but Shibboleth SP works fine</strong></a>
</div>
</td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td id="email-fields" style="padding:0 32px 32px 32px;">
<table border="0" cellpadding="0" cellspacing="0" style="padding:0;text-align:left;width:100%;" width="100%">
<tr valign="top">
<td id="email-gutter" style="width:64px;white-space:nowrap;"></td>
<td>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr valign="top">
<td style="color:#000000;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;padding:0 10px 10px 0;white-space:nowrap;">
<strong style="font-weight:normal;color:#505050;">Issue Type:</strong>
</td>
<td style="color:#000000;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;padding:0 0 10px 0;width:100%;">
<img src="https://issues.shibboleth.net/jira/images/icons/issuetypes/bug.png" height="16" width="16" border="0" align="absmiddle" alt="Bug"> Bug
</td>
</tr> <tr valign="top">
<td style="color:#000000;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;padding:0 10px 10px 0;white-space:nowrap;">
<strong style="font-weight:normal;color:#505050;">Affects Versions:</strong>
</td>
<td style="color:#000000;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;padding:0 0 10px 0;width:100%;">
2.5.2 </td>
</tr>
<tr valign="top">
<td style="color:#000000;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;padding:0 10px 10px 0;white-space:nowrap;">
<strong style="font-weight:normal;color:#505050;">Assignee:</strong>
</td>
<td style="color:#000000;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;padding:0 0 10px 0;width:100%;">
<a class="user-hover" rel="cantor.2@osu.edu" id="email_cantor.2@osu.edu" href="https://issues.shibboleth.net/jira/secure/ViewProfile.jspa?name=cantor.2%40osu.edu" style="color:#326ca6;">Scott Cantor</a>
</td>
</tr> <tr valign="top">
<td style="color:#000000;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;padding:0 10px 10px 0;white-space:nowrap;">
<strong style="font-weight:normal;color:#505050;">Attachments:</strong>
</td>
<td style="color:#000000;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;padding:0 0 10px 0;width:100%;">
shib-install-steps.txt </td>
</tr>
<tr valign="top">
<td style="color:#000000;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;padding:0 10px 10px 0;white-space:nowrap;">
<strong style="font-weight:normal;color:#505050;">Components:</strong>
</td>
<td style="color:#000000;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;padding:0 0 10px 0;width:100%;">
Web Server Modules </td>
</tr>
<tr valign="top">
<td style="color:#000000;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;padding:0 10px 10px 0;white-space:nowrap;">
<strong style="font-weight:normal;color:#505050;">Created:</strong>
</td>
<td style="color:#000000;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;padding:0 0 10px 0;width:100%;">
13/Nov/13 7:02 PM
</td>
</tr> <tr valign="top">
<td style="color:#000000;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;padding:0 10px 10px 0;white-space:nowrap;">
<strong style="font-weight:normal;color:#505050;">Description:</strong>
</td>
<td style="color:#000000;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;padding:0 0 10px 0;width:100%;">
<p style='margin-top:0;margin-bottom:10px;'>From Shibboleth User list (<a href="http://marc.info/?l=shibboleth-users&m=138436798630717&w=2):" class="external-link">http://marc.info/?l=shibboleth-users&m=138436798630717&w=2):</a></p>
<p style='margin-top:0;margin-bottom:10px;'>I have two installations of Shibboleth SP v2.5.2 in two different Solaris 10 servers; they both exhibit the following behavior: When I load the mod_shib module in Apache and bounce Apache, a "Segmentation Fault - core dumped" message is displayed in the console and a core file is created; however, Apache does start and so far I haven't experience any other issues: I can access my applications, Shibboleth behaves as expected, etc. In other words, other than the Segmentation fault, nothing else seems wrong!!</p>
<p style='margin-top:0;margin-bottom:10px;'>I use the dbx tool to look inside the core file and here is the output:</p>
<p style='margin-top:0;margin-bottom:10px;'>-bash-3.00# dbx - /usr/local/apache2.2.17_test/bin/core<br/>
Corefile specified executable: "/usr/local/apache2.2.17_test/bin/httpd"<br/>
For information about new features see `help changes'<br/>
To remove this message, put `dbxenv suppress_startup_message 7.7' in your .dbxrc<br/>
Reading httpd<br/>
core file header read successfully<br/>
Reading ld.so.1<br/>
Reading libz.so.1<br/>
Reading libssl.so.1.0.0<br/>
Reading libcrypto.so.1.0.0<br/>
Reading libdl.so.1<br/>
Reading libm.so.2<br/>
Reading libaprutil-1.so.0.3.10<br/>
Reading libexpat.so.0.5.0<br/>
Reading libapr-1.so.0.4.2<br/>
Reading libuuid.so.1<br/>
Reading libsendfile.so.1<br/>
Reading librt.so.1<br/>
Reading libsocket.so.1<br/>
Reading libnsl.so.1<br/>
Reading libpthread.so.1<br/>
Reading libc.so.1<br/>
Reading libaio.so.1<br/>
Reading libmd.so.1<br/>
Reading libc_psr.so.1<br/>
Reading libscf.so.1<br/>
Reading libdoor.so.1<br/>
Reading libuutil.so.1<br/>
Reading libgen.so.1<br/>
Reading libmd_psr.so.1<br/>
Reading libmp.so.2<br/>
Reading mod_shib_22.so<br/>
Reading libshibsp-lite.so.6.0.2<br/>
Reading libxmltooling-lite.so.6.0.3<br/>
Reading libxerces-c-3.1.so<br/>
Reading libicuuc.so.3<br/>
Reading libicudata.so.3<br/>
Reading liblog4shib.so.1.0.8<br/>
Reading libstlport.so.1<br/>
Reading libCrun.so.1<br/>
t@1 (l@1) program terminated by signal SEGV (no mapping at the fault address)<br/>
0xfe69020c: ~locale+0x0008: ld <span class="error">[%o3 + 16]</span>, %o2<br/>
Current function is destroy_and_exit_process<br/>
272 exit(process_exit_value);<br/>
(dbx) where<br/>
current thread: t@1<br/>
<span class="error">[1]</span> std::locale::~locale(0xfe003c58, 0x2b4, 0xfdfff374, 0x0, 0xfeff2a00, 0x1c00), at 0xfe69020c<br/>
<span class="error">[2]</span> _exithandle(0xfedb7500, 0xfedb5900, 0x1c00, 0x0, 0xffbffb50, 0x0), at 0xfecc27d8<br/>
<span class="error">[3]</span> exit(0x0, 0x2710, 0x756c00, 0x756c0048, 0x80808080, 0x1010101), at 0xfecb07d0<br/>
=><span class="error">[4]</span> destroy_and_exit_process(process = 0x12b888, process_exit_value = 0), line 272 in "main.c"<br/>
<span class="error">[5]</span> main(argc = 3, argv = 0xffbffcdc), line 662 in "main.c"</p>
<p style='margin-top:0;margin-bottom:10px;'>From the above, looks like an issue in Apache when destroying child process; but again, only happens when mod_shib is loaded. Apache has been compiled with the same version of C in sunstudio12.3 as Shibboleth.</p>
<p style='margin-top:0;margin-bottom:10px;'>The attached file contains detailed info on how Shibboleth SP was compiled. Besides that, Apache itself was configured as:</p>
<ol>
        <li>export PATH=/opt/solarisstudio12.3/bin:/usr/local/ant_182/bin:/usr/bin:/usr/local/bin:/usr/local/ssl/bin:/usr/ccs/bin:/usr/bin:/usr/sbin:/usr/local/sbin:/opt/sfw/bin:/opt/sfw/sbin</li>
</ol>
<ol>
        <li>./configure --prefix=/usr/local/apache2.2.17_test --with-mpm=worker<br/>
--enable-cache --enable-mem-cache --enable-deflate --enable-disk-cache<br/>
--enable-logio --enable-ssl --with-ssl=/usr/local/ssl --disable-authn_file<br/>
--disable-authz_groupfile --disable-authz_user --disable-auth_basic<br/>
--disable-file_cache --disable-autoindex --disable-asis --disable-cgid<br/>
--disable-actions --disable-userdir --enable-rewrite</li>
        <li>make</li>
        <li>make install</li>
</ol>
<p style='margin-top:0;margin-bottom:10px;'>The Apache compiled in modules are:</p>
<ol>
        <li>/usr/local/apache2.2.17_test/bin/apachectl -l<br/>
Compiled in modules:<br/>
core.c<br/>
mod_authn_default.c<br/>
mod_authz_host.c<br/>
mod_authz_default.c<br/>
mod_cache.c<br/>
mod_disk_cache.c<br/>
mod_mem_cache.c<br/>
mod_include.c<br/>
mod_filter.c<br/>
mod_deflate.c<br/>
mod_log_config.c<br/>
mod_logio.c<br/>
mod_env.c<br/>
mod_setenvif.c<br/>
mod_version.c<br/>
mod_ssl.c<br/>
worker.c<br/>
http_core.c<br/>
mod_mime.c<br/>
mod_status.c<br/>
mod_negotiation.c<br/>
mod_dir.c<br/>
mod_alias.c<br/>
mod_rewrite.c<br/>
mod_so.c</li>
</ol>
<p style='margin-top:0;margin-bottom:10px;'>Two other modules are loaded via LoadModule directive:</p>
<p style='margin-top:0;margin-bottom:10px;'>LoadModule python_module modules/mod_python.so<br/>
LoadModule mod_shib /opt/shibboleth-sp/lib/shibboleth/mod_shib_22.so</p>
<p style='margin-top:0;margin-bottom:10px;'>The /usr/local/apache2.2.17_test/bin/envvars was modified to include the following:</p>
<p style='margin-top:0;margin-bottom:10px;'>LD_LIBRARY_PATH="/opt/shibboleth-sp/lib:/opt/solarisstudio12.3/prod/lib/stlport4:/usr/local/apache2.2.17/lib:$LD_LIBRARY_PATH"<br/>
export LD_LIBRARY_PATH</p>
<p style='margin-top:0;margin-bottom:10px;'>To reproduce the problem, you just need to execute apachectl with either stop, start or graceful options:</p>
<ol>
        <li>/usr/local/apache2.2.17_test/bin/apachectl stop<br/>
Segmentation Fault - core dumped</li>
        <li>/usr/local/apache2.2.17_test/bin/apachectl start<br/>
Segmentation Fault - core dumped</li>
        <li>/usr/local/apache2.2.17_test/bin/apachectl graceful<br/>
Segmentation Fault - core dumped</li>
</ol>
<p style='margin-top:0;margin-bottom:10px;'>In the case of start and graceful, Apache does start and is available for use; I have not seen any errors during use.</p>
<p style='margin-top:0;margin-bottom:10px;'>When the "LoadModule mod_shib /opt/shibboleth-sp/lib/shibboleth/mod_shib_22.so" directive is removed from httpd.conf, Apache does not core dump.</p>
</td>
</tr>
<tr valign="top">
<td style="color:#000000;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;padding:0 10px 10px 0;white-space:nowrap;">
<strong style="font-weight:normal;color:#505050;">Environment:</strong>
</td>
<td style="color:#000000;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;padding:0 0 10px 0;width:100%;">
<p style='margin-top:0;margin-bottom:10px;'>Solaris 10 Sparc, Apache 2.2.17</p>
</td>
</tr>
<tr valign="top">
<td style="color:#000000;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;padding:0 10px 10px 0;white-space:nowrap;">
<strong style="font-weight:normal;color:#505050;">Project:</strong>
</td>
<td style="color:#000000;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;padding:0 0 10px 0;width:100%;">
<a style="color:#326ca6;" href="https://issues.shibboleth.net/jira/browse/SSPCPP">Shibboleth SP - C++</a>
</td>
</tr> <tr valign="top">
<td style="color:#000000;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;padding:0 10px 10px 0;white-space:nowrap;">
<strong style="font-weight:normal;color:#505050;">Priority:</strong>
</td>
<td style="color:#000000;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;padding:0 0 10px 0;width:100%;">
<img src="https://issues.shibboleth.net/jira/images/icons/priorities/major.png" height="16" width="16" border="0" align="absmiddle" alt="Major"> Major
</td>
</tr>
<tr valign="top">
<td style="color:#000000;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;padding:0 10px 10px 0;white-space:nowrap;">
<strong style="font-weight:normal;color:#505050;">Reporter:</strong>
</td>
<td style="color:#000000;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;padding:0 0 10px 0;width:100%;">
<a class="user-hover" rel="dcardozo@idp.protectnetwork.org" id="email_dcardozo@idp.protectnetwork.org" href="https://issues.shibboleth.net/jira/secure/ViewProfile.jspa?name=dcardozo%40idp.protectnetwork.org" style="color:#326ca6;">dcardozo@idp.protectnetwork.org</a>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td><!-- End #email-page -->
</tr>
<tr valign="top">
<td style="color:#505050;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:10px;line-height:14px;padding: 0 16px 16px 16px;text-align:center;">
This message is automatically generated by JIRA.<br />
If you think it was sent incorrectly, please contact your JIRA administrators<br />
For more information on JIRA, see: <a style='color:#326ca6;' href='http://www.atlassian.com/software/jira'>http://www.atlassian.com/software/jira</a>
</td>
</tr>
</table><!-- End #email-wrap -->
</div><!-- End #email-body -->