Print

Print


Alright, I had a look at this with GDB on an Alma9 container. It seems that the call to XrdNetUtils::Match below returns false:

#0  XrdNetUtils::Match (HostName=HostName@entry=0x48ff6a "man1.xrootd", HostPat=HostPat@entry=0x4903c0 "man1+") at /usr/src/debug/xrootd-v5.5.5.350-1.el9.x86_64/xrootd/src/XrdNet/XrdNetUtils.cc:645
#1  0x00007ffff7e1f7c3 in XrdOucUtils::doIf (eDest=0x447eb0 <XrdGlobal::Log>, Config=..., what=what@entry=0x7ffff7e71c1f "if directive", hname=0x48ff6a "man1.xrootd", nname=0x48ff65 "anon", pname=0x48ff60 "cmsd") at /usr/src/debug/xrootd-v5.5.5.350-1.el9.x86_64/xrootd/src/XrdOuc/XrdOucUtils.cc:245
#2  0x00007ffff7e1a043 in XrdOucStream::doif (this=this@entry=0x7fffffffe230) at /usr/src/debug/xrootd-v5.5.5.350-1.el9.x86_64/xrootd/src/XrdOuc/XrdOucStream.cc:1294
#3  0x00007ffff7e1a2c2 in XrdOucStream::doelse (this=this@entry=0x7fffffffe230) at /usr/src/debug/xrootd-v5.5.5.350-1.el9.x86_64/xrootd/src/XrdOuc/XrdOucStream.cc:1244
#4  0x00007ffff7e1b210 in XrdOucStream::GetMyFirstWord (this=this@entry=0x7fffffffe230, lowcase=lowcase@entry=0) at /usr/src/debug/xrootd-v5.5.5.350-1.el9.x86_64/xrootd/src/XrdOuc/XrdOucStream.cc:724
#5  0x000000000040fc7c in XrdConfig::ConfigProc (this=0x448680 <XrdMain::Config>) at /usr/src/debug/xrootd-v5.5.5.350-1.el9.x86_64/xrootd/src/Xrd/XrdConfig.cc:894
#6  0x00000000004107a4 in XrdConfig::Configure (this=this@entry=0x448680 <XrdMain::Config>, argc=argc@entry=3, argv=argv@entry=0x7fffffffeb88) at /usr/src/debug/xrootd-v5.5.5.350-1.el9.x86_64/xrootd/src/Xrd/XrdConfig.cc:666
#7  0x000000000040a24c in main (argc=3, argv=0x7fffffffeb88) at /usr/src/debug/xrootd-v5.5.5.350-1.el9.x86_64/xrootd/src/Xrd/XrdMain.cc:181

This is because at the snippet below:

https://github.com/xrootd/xrootd/blob/master/src/XrdNet/XrdNetUtils.cc#L644-L653

The call to XrdNetAddr::Set("man1", 5, 16, 0) has a problem with getaddrinfo when called below

https://github.com/xrootd/xrootd/blob/master/src/XrdNet/XrdNetAddr.cc#L371-L378

as the returned info has a null pointer for the hostname. Then InetAddr[i].Name() returns nullptr in line 651.


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <xrootd/xrootd/issues/1990/1561357623@github.com>

[ { "@context": "http://schema.org", "@type": "EmailMessage", "potentialAction": { "@type": "ViewAction", "target": "https://github.com/xrootd/xrootd/issues/1990#issuecomment-1561357623", "url": "https://github.com/xrootd/xrootd/issues/1990#issuecomment-1561357623", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { "@type": "Organization", "name": "GitHub", "url": "https://github.com" } } ]

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