Print

Print


Hello,

On one of our xrootd (5.1.0) managers, if the cmsd is already running it is quite often seen that the xrootd crashes moments after a restart.

```
(gdb) where
#0  XrdNet::Trim (this=0x0, hname=hname@entry=0x7f8d1db9a5a0 "xcache-redirector.cern.ch")
    at /data/dhsmith/xrootd4/xrootd-510-rebuild/src/XrdNet/XrdNet.cc:348
#1  0x00007f8d248df2b2 in XrdLinkCtl::Alloc (peer=..., opts=opts@entry=0)
    at /data/dhsmith/xrootd4/xrootd-510-rebuild/src/Xrd/XrdLinkCtl.cc:158
#2  0x00007f8d248ddf81 in XrdInet::Connect (this=0x7f8d1f8a4150, host=<optimized out>, port=1213, 
    opts=opts@entry=0, tmo=tmo@entry=-1) at /data/dhsmith/xrootd4/xrootd-510-rebuild/src/Xrd/XrdInet.cc:198
#3  0x00007f8d24bd7043 in XrdCmsClientMan::Hookup (this=this@entry=0x7f8d1fb45000)
    at /data/dhsmith/xrootd4/xrootd-510-rebuild/src/XrdCms/XrdCmsClientMan.cc:347
#4  0x00007f8d24bd7880 in XrdCmsClientMan::Start (this=0x7f8d1fb45000)
    at /data/dhsmith/xrootd4/xrootd-510-rebuild/src/XrdCms/XrdCmsClientMan.cc:230
#5  0x00007f8d248a5947 in XrdSysThread_Xeq (myargs=0x7f8d1f874760)
    at /data/dhsmith/xrootd4/xrootd-510-rebuild/src/XrdSys/XrdSysPthread.cc:86
#6  0x00007f8d24451ea5 in start_thread () from /lib64/libpthread.so.0
#7  0x00007f8d237529fd in clone () from /lib64/libc.so.6
```

last few lines in xrootd.log:

```
Config warning: HTTPS functionality was not configured.
210307 16:03:24 29835 sysConfig: XRDROLE:  manager
210307 16:03:24 29835 sysConfig: Configured as HTTP(s) redirector.
------ HTTP protocol initialization completed.
------ xrootd [log in to unmask]:1094 initialization completed.
```

Possibly XrdGlobal::XrdNetTCP is not set in time for the XrdCmsStartManager thread.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/xrootd/xrootd/issues/1421

########################################################################
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