shib native logging with RollingFileAppender

Jeremy Shapiro jnshapiro at gmail.com
Wed Sep 16 00:54:38 EDT 2015


> - are you frequently making config changes that have to be reloaded by the
> processes?
>

No.


> - do you have logger attributes in shibboleth2.xml (in which case remove
> them)?
>

I did.  I've removed them and still get the same issue.

apache2 calls ap_run_post_config twice so shib_post_config gets called
twice.  Each call creates a RollingFileAppender to native.log.  Is that
expected?

(gdb) bt

#0  log4shib::RollingFileAppender::RollingFileAppender (this=0x849feb8,
name=..., fileName=..., maxFileSize=100, maxBackupIndex=10, append=true,
mode=420)

    at RollingFileAppender.cpp:27

#1  0xf749c103 in log4shib::PropertyConfiguratorImpl::instantiateAppender
(this=0xffffd868, appenderName=...) at PropertyConfiguratorImpl.cpp:223

#2  0xf749e28b in
log4shib::PropertyConfiguratorImpl::instantiateAllAppenders
(this=0xffffd868) at PropertyConfiguratorImpl.cpp:123

#3  0xf749ea11 in log4shib::PropertyConfiguratorImpl::doConfigure
(this=0xffffd868, in=...) at PropertyConfiguratorImpl.cpp:80

#4  0xf749abb0 in log4shib::PropertyConfiguratorImpl::doConfigure
(this=0xffffd868, initFileName=...) at PropertyConfiguratorImpl.cpp:72

#5  0xf749a932 in log4shib::PropertyConfigurator::configure
(initFileName=...) at PropertyConfigurator.cpp:17

#6  0xf79866b1 in xmltooling::XMLToolingInternalConfig::log_config
(this=0x64, config=0x849d5d4
"/usr/local/httpd/shibboleth-sp/etc/shibboleth/native.logger")

    at XMLToolingConfig.cpp:350

#7  0xf7a45232 in shibsp::SPConfig::init (this=0xf7b04c80,

    catalog_path=0x81c8420
"/usr/local/httpd/shibboleth-sp/share/xml/xmltooling/catalog.xml:/usr/local/httpd/shibboleth-sp/share/xml/opensaml/saml20-catalog.xml:/usr/local/httpd/shibboleth-sp/share/xml/shibboleth/catalog.xml:"...,
inst_prefix=0x81c81be "p") at SPConfig.cpp:202

#8  0xf7a47b10 in shibsp::SPInternalConfig::init (this=0xf7b04c80,

    catalog_path=0x81c8420
"/usr/local/httpd/shibboleth-sp/share/xml/xmltooling/catalog.xml:/usr/local/httpd/shibboleth-sp/share/xml/opensaml/saml20-catalog.xml:/usr/local/httpd/shibboleth-sp/share/xml/shibboleth/catalog.xml:"...,
inst_prefix=0x81c81a0 "/usr/local/httpd/shibboleth-sp") at SPConfig.cpp:475

#9  0xf7b15715 in shib_post_config (p=0x80b90a8, s=0x80bebb0) at
mod_shib.cpp:1828

#10 0x0807acb7 in ap_run_post_config (pconf=0x80b90a8, plog=0x80bf0c0,
ptemp=0x80c10c8, s=0x80bebb0) at config.c:94

#11 0x08066103 in main (argc=8, argv=0xffffdc84) at main.c:686


....


(gdb) bt

#0  log4shib::RollingFileAppender::RollingFileAppender (this=0x845cb88,
name=..., fileName=..., maxFileSize=100, maxBackupIndex=10, append=true,
mode=420)

    at RollingFileAppender.cpp:27

#1  0xf749c103 in log4shib::PropertyConfiguratorImpl::instantiateAppender
(this=0xffffd868, appenderName=...) at PropertyConfiguratorImpl.cpp:223

#2  0xf749e28b in
log4shib::PropertyConfiguratorImpl::instantiateAllAppenders
(this=0xffffd868) at PropertyConfiguratorImpl.cpp:123

#3  0xf749ea11 in log4shib::PropertyConfiguratorImpl::doConfigure
(this=0xffffd868, in=...) at PropertyConfiguratorImpl.cpp:80

#4  0xf749abb0 in log4shib::PropertyConfiguratorImpl::doConfigure
(this=0xffffd868, initFileName=...) at PropertyConfiguratorImpl.cpp:72

#5  0xf749a932 in log4shib::PropertyConfigurator::configure
(initFileName=...) at PropertyConfigurator.cpp:17

#6  0xf79866b1 in xmltooling::XMLToolingInternalConfig::log_config
(this=0x64, config=0x8459c3c
"/usr/local/httpd/shibboleth-sp/etc/shibboleth/native.logger")

    at XMLToolingConfig.cpp:350

#7  0xf7a45232 in shibsp::SPConfig::init (this=0xf7b04c80,

    catalog_path=0x81c6418
"/usr/local/httpd/shibboleth-sp/share/xml/xmltooling/catalog.xml:/usr/local/httpd/shibboleth-sp/share/xml/opensaml/saml20-catalog.xml:/usr/local/httpd/shibboleth-sp/share/xml/shibboleth/catalog.xml:"...,
inst_prefix=0x81ca1c6 "p") at SPConfig.cpp:202

#8  0xf7a47b10 in shibsp::SPInternalConfig::init (this=0xf7b04c80,

    catalog_path=0x81c6418
"/usr/local/httpd/shibboleth-sp/share/xml/xmltooling/catalog.xml:/usr/local/httpd/shibboleth-sp/share/xml/opensaml/saml20-catalog.xml:/usr/local/httpd/shibboleth-sp/share/xml/shibboleth/catalog.xml:"...,
inst_prefix=0x81ca1a8 "/usr/local/httpd/shibboleth-sp") at SPConfig.cpp:475

#9  0xf7b15715 in shib_post_config (p=0x80b90a8, s=0x80bafb8) at
mod_shib.cpp:1828

#10 0x0807acb7 in ap_run_post_config (pconf=0x80b90a8, plog=0x80bf0c0,
ptemp=0x80c30d0, s=0x80bafb8) at config.c:94

#11 0x08066291 in main (argc=8, argv=0xffffdc84) at main.c:742

(gdb)

  Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/users/attachments/20150916/b795f51d/attachment-0001.html>


More information about the users mailing list