This happens when a process tries to fork in the beginning, therefore the PostMaster object is not yet created. All the other objects are initizlied in the XrdCl::DefaultEnv::Initialize method.

Core was generated by `/usr/bin/tapeserverd'.
Program terminated with signal 11, Segmentation fault.
#0  XrdCl::PostMaster::Stop (this=0x0) at /usr/src/debug/xrootd/xrootd/src/XrdCl/XrdClPostMaster.cc:141
141	    if( !pInitialized )
Missing separate debuginfos, use: debuginfo-install boost-iostreams-1.53.0-26.el7.x86_64 boost-random-1.53.0-26.el7.x86_64 boost-system-1.53.0-26.el7.x86_64 boost-thread-1.53.0-26.el7.x86_64 bzip2-libs-1.0.6-13.el7.x86_64 cryptopp-5.6.2-10.el7.x86_64 glibc-2.17-157.el7_3.1.x86_64 json-c-0.11-4.el7_0.x86_64 keyutils-libs-1.5.8-3.el7.x86_64 krb5-libs-1.14.1-27.el7_3.x86_64 libattr-2.4.46-12.el7.x86_64 libblkid-2.23.2-33.el7.x86_64 libcap-2.22-8.el7.x86_64 libcom_err-1.42.9-9.el7.x86_64 libgcc-4.8.5-11.el7.x86_64 librados2-10.2.6-0.el7.x86_64 libradosstriper1-10.2.6-0.el7.x86_64 libselinux-2.5-6.el7.x86_64 libsodium-1.0.5-1.el7.x86_64 libstdc++-4.8.5-11.el7.x86_64 libuuid-2.23.2-33.el7.x86_64 libxml2-2.9.1-6.el7_2.3.x86_64 lttng-ust-2.4.1-4.el7.x86_64 nspr-4.13.1-1.0.el7_3.x86_64 nss-3.28.2-1.6.el7_3.cern.x86_64 nss-util-3.28.2-1.1.el7_3.x86_64 openpgm-5.2.122-2.el7.x86_64 openssl-libs-1.0.1e-60.el7_3.1.x86_64 pcre-8.32-15.el7_2.1.x86_64 protobuf-2.5.0-8.el7.x86_64 userspace-rcu-0.7.16-1.el7.x86_64 xz-libs-5.2.2-1.el7.x86_64 zeromq-4.1.4-5.el7.x86_64 zlib-1.2.7-17.el7.x86_64
(gdb) bt
#0  XrdCl::PostMaster::Stop (this=0x0) at /usr/src/debug/xrootd/xrootd/src/XrdCl/XrdClPostMaster.cc:141
#1  0x00007f3ef2ed0ae1 in XrdCl::ForkHandler::Prepare (this=this@entry=0x1e9e130) at /usr/src/debug/xrootd/xrootd/src/XrdCl/XrdClForkHandler.cc:48
#2  0x00007f3ef2e55df0 in prepare () at /usr/src/debug/xrootd/xrootd/src/XrdCl/XrdClDefaultEnv.cc:74
#3  0x00007f3ede12d6f2 in fork () from /lib64/libc.so.6
#4  0x00007f3ef48f8859 in castor::server::Daemon::daemonizeIfNotRunInForeground (this=0x7ffcd52f3840, runAsStagerSuperuser=true) at /usr/src/debug/castor-2.1.16-15/castor/server/Daemon.cpp:168
#5  0x00000000005256d8 in castor::tape::tapeserver::daemon::TapeDaemon::exceptionThrowingMain (this=0x7ffcd52f3840, argc=1, argv=0x7ffcd52f3ce8)
    at /usr/src/debug/castor-2.1.16-15/castor/tape/tapeserver/daemon/TapeDaemon.cpp:209
#6  0x00000000005251a3 in castor::tape::tapeserver::daemon::TapeDaemon::main (this=0x7ffcd52f3840) at /usr/src/debug/castor-2.1.16-15/castor/tape/tapeserver/daemon/TapeDaemon.cpp:170
#7  0x000000000056b2b8 in exceptionThrowingMain (argc=1, argv=0x7ffcd52f3ce8) at /usr/src/debug/castor-2.1.16-15/castor/tape/tapeserver/daemon/TapeDaemonMain.cpp:183
#8  0x000000000056aa62 in main (argc=1, argv=0x7ffcd52f3ce8) at /usr/src/debug/castor-2.1.16-15/castor/tape/tapeserver/daemon/TapeDaemonMain.cpp:75
(gdb) up
#1  0x00007f3ef2ed0ae1 in XrdCl::ForkHandler::Prepare (this=this@entry=0x1e9e130) at /usr/src/debug/xrootd/xrootd/src/XrdCl/XrdClForkHandler.cc:48
48	    pPostMaster->Stop();
(gdb) p pPostMaster
$1 = (XrdCl::PostMaster *) 0x0
(gdb) l
43	    pid_t pid = getpid();
44	    log->Debug( UtilityMsg, "Running the prepare fork handler for process %d",
45	                pid );
46	
47	    pMutex.Lock();
48	    pPostMaster->Stop();
49	    pFileTimer->Lock();
50	
51	    //--------------------------------------------------------------------------
52	    // Lock the user-level objects
(gdb) f 2
#2  0x00007f3ef2e55df0 in prepare () at /usr/src/debug/xrootd/xrootd/src/XrdCl/XrdClDefaultEnv.cc:74


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/xrootd/xrootd","title":"xrootd/xrootd","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/xrootd/xrootd"}},"updates":{"snippets":[{"icon":"DESCRIPTION","message":"XrdCl fork handler SEGV since PostMaster it not initialized (#489)"}],"action":{"name":"View Issue","url":"https://github.com/xrootd/xrootd/issues/489"}}}

Use REPLY-ALL to reply to list

To unsubscribe from the XROOTD-DEV list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=XROOTD-DEV&A=1