OK, here we go - hope this helps..
(gdb) bt
#0 0x00007fd7c4fec704 in XrdOucHash<XrdSutCacheEntry>::Find (this=0x7fd7c51f5a90, KeyVal=0x7fd7c54b1b60 "5168735f.0:1", KeyTime=0x0) at /usr/src/debug/xrootd-4.8.3/src/XrdOuc/XrdOucHash.icc:173
#1 0x00007fd7c4fdf3cc in Get (cahash=0x7fd7c54320f0 "5168735f.0", cf=0x7fd7c47ff640, hs=0x7fd7c542f160) at /usr/src/debug/xrootd-4.8.3/src/XrdSut/XrdSutCache.hh:97
#2 XrdSecProtocolgsi::GetCA (cahash=0x7fd7c54320f0 "5168735f.0", cf=0x7fd7c47ff640, hs=0x7fd7c542f160) at /usr/src/debug/xrootd-4.8.3/src/XrdSecgsi/XrdSecProtocolgsi.cc:4264
#3 0x00007fd7c4fe032b in XrdSecProtocolgsi::ParseCAlist (this=0x7fd7c5447500, calist=...) at /usr/src/debug/xrootd-4.8.3/src/XrdSecgsi/XrdSecProtocolgsi.cc:4530
#4 0x00007fd7c4fe7ffa in XrdSecProtocolgsi::ClientDoInit (this=0x7fd7c5447500, br=<value optimized out>, bm=<value optimized out>, emsg=...) at /usr/src/debug/xrootd-4.8.3/src/XrdSecgsi/XrdSecProtocolgsi.cc:2896
#5 0x00007fd7c4fe855d in XrdSecProtocolgsi::ParseClientInput (this=<value optimized out>, br=0x7fd7c54351d0, bm=0x7fd7d13fd8d0, cmsg=...) at /usr/src/debug/xrootd-4.8.3/src/XrdSecgsi/XrdSecProtocolgsi.cc:2807
#6 0x00007fd7c4fe892e in XrdSecProtocolgsi::getCredentials (this=0x7fd7c5447500, parm=<value optimized out>, ei=0x7fd7d13fd970) at /usr/src/debug/xrootd-4.8.3/src/XrdSecgsi/XrdSecProtocolgsi.cc:1379
#7 0x00007fd7da988c31 in XrdCl::XRootDTransport::GetCredentials (this=<value optimized out>, credentials=@0x7fd7d13fe230, hsData=0x7fd7d38693d0, info=0x7fd7d386a3c0) at /usr/src/debug/xrootd-4.8.3/src/XrdCl/XrdClXRootDTransport.cc:1879
#8 0x00007fd7da9897e9 in XrdCl::XRootDTransport::DoAuthentication (this=0x7fd7d384c5e0, hsData=0x7fd7d38693d0, info=0x7fd7d386a3c0) at /usr/src/debug/xrootd-4.8.3/src/XrdCl/XrdClXRootDTransport.cc:1650
#9 0x00007fd7da98a176 in XrdCl::XRootDTransport::HandShakeMain (this=0x7fd7d384c5e0, handShakeData=0x7fd7d38693d0, channelData=<value optimized out>) at /usr/src/debug/xrootd-4.8.3/src/XrdCl/XrdClXRootDTransport.cc:417
#10 0x00007fd7da98a343 in XrdCl::XRootDTransport::HandShake (this=0x7fd7d384c5e0, handShakeData=0x7fd7d38693d0, channelData=...) at /usr/src/debug/xrootd-4.8.3/src/XrdCl/XrdClXRootDTransport.cc:326
#11 0x00007fd7da9d129b in XrdCl::AsyncSocketHandler::OnReadWhileHandshaking (this=0x7fd7d386a280) at /usr/src/debug/xrootd-4.8.3/src/XrdCl/XrdClAsyncSocketHandler.cc:779
#12 0x00007fd7da9d1618 in XrdCl::AsyncSocketHandler::Event (this=0x7fd7d386a280, type=1 '\001') at /usr/src/debug/xrootd-4.8.3/src/XrdCl/XrdClAsyncSocketHandler.cc:234
#13 0x00007fd7da97c143 in (anonymous namespace)::SocketCallBack::Event (this=0x7fd7d384c560, chP=<value optimized out>, cbArg=<value optimized out>, evFlags=<value optimized out>) at /usr/src/debug/xrootd-4.8.3/src/XrdCl/XrdClPollerBuiltIn.cc:82
#14 0x00007fd7da6cabb8 in XrdSys::IOEvents::Poller::CbkXeq (this=0x7fd7d3bed1e0, cP=0x7fd7d3839200, events=1, eNum=0, eTxt=0x0) at /usr/src/debug/xrootd-4.8.3/src/XrdSys/XrdSysIOEvents.cc:693
#15 0x00007fd7da6cad89 in XrdSys::IOEvents::PollE::Dispatch (this=0x7fd7d3bed1e0, cP=0x7fd7d3839200, pollEv=<value optimized out>) at /usr/src/debug/xrootd-4.8.3/src/XrdSys/XrdSysIOEventsPollE.icc:270
#16 0x00007fd7da6cb013 in XrdSys::IOEvents::PollE::Begin (this=0x7fd7d3bed1e0, syncsem=<value optimized out>, retcode=<value optimized out>, eTxt=<value optimized out>) at /usr/src/debug/xrootd-4.8.3/src/XrdSys/XrdSysIOEventsPollE.icc:225
#17 0x00007fd7da6c97cd in XrdSys::IOEvents::BootStrap::Start (parg=0x7fff7aae6600) at /usr/src/debug/xrootd-4.8.3/src/XrdSys/XrdSysIOEvents.cc:131
#18 0x00007fd7da6c6a6f in XrdSysThread_Xeq (myargs=0x7fd7d384c7e0) at /usr/src/debug/xrootd-4.8.3/src/XrdSys/XrdSysPthread.cc:86
#19 0x00007fd7da485aa1 in start_thread () from /lib64/libpthread.so.0
#20 0x00007fd7d7e00bcd in clone () from /lib64/libc.so.6
#0 0x00007fd7c4fec704 in XrdOucHash<XrdSutCacheEntry>::Find (this=0x7fd7c51f5a90, KeyVal=0x7fd7c54b1b60 "5168735f.0:1", KeyTime=0x0) at /usr/src/debug/xrootd-4.8.3/src/XrdOuc/XrdOucHash.icc:173
173 if ((hip = hashtable[kent]))
(gdb) info locals
khash = 6273236213436711438
kent = 126
hip = <value optimized out>
lifetime = 0
phip = <value optimized out>
(gdb) print hashtable[kent]
Cannot access memory at address 0x3f0
(gdb) print hashtable
$1 = (XrdOucHash_Item<XrdSutCacheEntry> **) 0x0
(gdb) up
#1 0x00007fd7c4fdf3cc in Get (cahash=0x7fd7c54320f0 "5168735f.0", cf=0x7fd7c47ff640, hs=0x7fd7c542f160) at /usr/src/debug/xrootd-4.8.3/src/XrdSut/XrdSutCache.hh:97
97 if (!(cent = table.Find(tag))) {
(gdb) print table
$2 = {hashtable = 0x0, prevtablesize = 89, hashtablesize = 144, hashnum = 0, hashmax = 115, hashload = 80}
(gdb) up
#2 XrdSecProtocolgsi::GetCA (cahash=0x7fd7c54320f0 "5168735f.0", cf=0x7fd7c47ff640, hs=0x7fd7c542f160) at /usr/src/debug/xrootd-4.8.3/src/XrdSecgsi/XrdSecProtocolgsi.cc:4264
4264 XrdSutCacheEntry *cent = cacheCA.Get(tag.c_str(), rdlock, GetCACheck, (void *) &arg);
(gdb) print tag
$3 = {_vptr.XrdOucString = 0x749050, str = 0x7fd7c54b1b60 "5168735f.0:1", len = 12, siz = 21, static blksize = -1}
(gdb) print arg
$4 = {arg1 = 1, arg2 = 86400, arg3 = 1527719441, arg4 = -1}
(gdb) up
#3 0x00007fd7c4fe032b in XrdSecProtocolgsi::ParseCAlist (this=0x7fd7c5447500, calist=...) at /usr/src/debug/xrootd-4.8.3/src/XrdSecgsi/XrdSecProtocolgsi.cc:4530
4530 if (GetCA(cahash.c_str(), sessionCF, hs) == 0)
(gdb) print cahash
$5 = {_vptr.XrdOucString = 0x749050, str = 0x7fd7c54320f0 "5168735f.0", len = 10, siz = 11, static blksize = -1}
This CA cert file has apparently /not/ been changed around the time of the crash:
~$ locate 5168735f.0 | xargs ls -l
lrwxrwxrwx. 1 root root 15 May 22 09:23 /etc/grid-security/certificates/5168735f.0 -> CERN-GridCA.pem
-r--r--r--. 1 root root 3341 May 17 08:02 /etc/openldap/cacerts/5168735f.0
-r--r--r--. 1 root root 3341 May 17 08:02 /etc/pki/tls/certs/5168735f.0
~$ ls -l /etc/grid-security/certificates/CERN-GridCA.pem
-rw-r--r--. 1 root root 3341 May 4 19:26 /etc/grid-security/certificates/CERN-GridCA.pem
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
{"@context":"http://schema.org","@type":"EmailMessage","potentialAction":{"@type":"ViewAction","target":"https://github.com/xrootd/xrootd/issues/661#issuecomment-394599677","url":"https://github.com/xrootd/xrootd/issues/661#issuecomment-394599677","name":"View Issue"},"description":"View this Issue on GitHub","publisher":{"@type":"Organization","name":"GitHub","url":"https://github.com"}}
{"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://assets-cdn.github.com/images/email/message_cards/header.png","avatar_image_url":"https://assets-cdn.github.com/images/email/message_cards/avatar.png","action":{"name":"Open in GitHub","url":"https://github.com/xrootd/xrootd"}},"updates":{"snippets":[{"icon":"PERSON","message":"@jmuf in #661: OK, here we go - hope this helps..\r\n```\r\n(gdb) bt\r\n#0 0x00007fd7c4fec704 in XrdOucHash\u003cXrdSutCacheEntry\u003e::Find (this=0x7fd7c51f5a90, KeyVal=0x7fd7c54b1b60 \"5168735f.0:1\", KeyTime=0x0) at /usr/src/debug/xrootd-4.8.3/src/XrdOuc/XrdOucHash.icc:173\r\n#1 0x00007fd7c4fdf3cc in Get (cahash=0x7fd7c54320f0 \"5168735f.0\", cf=0x7fd7c47ff640, hs=0x7fd7c542f160) at /usr/src/debug/xrootd-4.8.3/src/XrdSut/XrdSutCache.hh:97\r\n#2 XrdSecProtocolgsi::GetCA (cahash=0x7fd7c54320f0 \"5168735f.0\", cf=0x7fd7c47ff640, hs=0x7fd7c542f160) at /usr/src/debug/xrootd-4.8.3/src/XrdSecgsi/XrdSecProtocolgsi.cc:4264\r\n#3 0x00007fd7c4fe032b in XrdSecProtocolgsi::ParseCAlist (this=0x7fd7c5447500, calist=...) at /usr/src/debug/xrootd-4.8.3/src/XrdSecgsi/XrdSecProtocolgsi.cc:4530\r\n#4 0x00007fd7c4fe7ffa in XrdSecProtocolgsi::ClientDoInit (this=0x7fd7c5447500, br=\u003cvalue optimized out\u003e, bm=\u003cvalue optimized out\u003e, emsg=...) at /usr/src/debug/xrootd-4.8.3/src/XrdSecgsi/XrdSecProtocolgsi.cc:2896\r\n#5 0x00007fd7c4fe855d in XrdSecProtocolgsi::ParseClientInput (this=\u003cvalue optimized out\u003e, br=0x7fd7c54351d0, bm=0x7fd7d13fd8d0, cmsg=...) at /usr/src/debug/xrootd-4.8.3/src/XrdSecgsi/XrdSecProtocolgsi.cc:2807\r\n#6 0x00007fd7c4fe892e in XrdSecProtocolgsi::getCredentials (this=0x7fd7c5447500, parm=\u003cvalue optimized out\u003e, ei=0x7fd7d13fd970) at /usr/src/debug/xrootd-4.8.3/src/XrdSecgsi/XrdSecProtocolgsi.cc:1379\r\n#7 0x00007fd7da988c31 in XrdCl::XRootDTransport::GetCredentials (this=\u003cvalue optimized out\u003e, credentials=@0x7fd7d13fe230, hsData=0x7fd7d38693d0, info=0x7fd7d386a3c0) at /usr/src/debug/xrootd-4.8.3/src/XrdCl/XrdClXRootDTransport.cc:1879\r\n#8 0x00007fd7da9897e9 in XrdCl::XRootDTransport::DoAuthentication (this=0x7fd7d384c5e0, hsData=0x7fd7d38693d0, info=0x7fd7d386a3c0) at /usr/src/debug/xrootd-4.8.3/src/XrdCl/XrdClXRootDTransport.cc:1650\r\n#9 0x00007fd7da98a176 in XrdCl::XRootDTransport::HandShakeMain (this=0x7fd7d384c5e0, handShakeData=0x7fd7d38693d0, channelData=\u003cvalue optimized out\u003e) at /usr/src/debug/xrootd-4.8.3/src/XrdCl/XrdClXRootDTransport.cc:417\r\n#10 0x00007fd7da98a343 in XrdCl::XRootDTransport::HandShake (this=0x7fd7d384c5e0, handShakeData=0x7fd7d38693d0, channelData=...) at /usr/src/debug/xrootd-4.8.3/src/XrdCl/XrdClXRootDTransport.cc:326\r\n#11 0x00007fd7da9d129b in XrdCl::AsyncSocketHandler::OnReadWhileHandshaking (this=0x7fd7d386a280) at /usr/src/debug/xrootd-4.8.3/src/XrdCl/XrdClAsyncSocketHandler.cc:779\r\n#12 0x00007fd7da9d1618 in XrdCl::AsyncSocketHandler::Event (this=0x7fd7d386a280, type=1 '\\001') at /usr/src/debug/xrootd-4.8.3/src/XrdCl/XrdClAsyncSocketHandler.cc:234\r\n#13 0x00007fd7da97c143 in (anonymous namespace)::SocketCallBack::Event (this=0x7fd7d384c560, chP=\u003cvalue optimized out\u003e, cbArg=\u003cvalue optimized out\u003e, evFlags=\u003cvalue optimized out\u003e) at /usr/src/debug/xrootd-4.8.3/src/XrdCl/XrdClPollerBuiltIn.cc:82\r\n#14 0x00007fd7da6cabb8 in XrdSys::IOEvents::Poller::CbkXeq (this=0x7fd7d3bed1e0, cP=0x7fd7d3839200, events=1, eNum=0, eTxt=0x0) at /usr/src/debug/xrootd-4.8.3/src/XrdSys/XrdSysIOEvents.cc:693\r\n#15 0x00007fd7da6cad89 in XrdSys::IOEvents::PollE::Dispatch (this=0x7fd7d3bed1e0, cP=0x7fd7d3839200, pollEv=\u003cvalue optimized out\u003e) at /usr/src/debug/xrootd-4.8.3/src/XrdSys/XrdSysIOEventsPollE.icc:270\r\n#16 0x00007fd7da6cb013 in XrdSys::IOEvents::PollE::Begin (this=0x7fd7d3bed1e0, syncsem=\u003cvalue optimized out\u003e, retcode=\u003cvalue optimized out\u003e, eTxt=\u003cvalue optimized out\u003e) at /usr/src/debug/xrootd-4.8.3/src/XrdSys/XrdSysIOEventsPollE.icc:225\r\n#17 0x00007fd7da6c97cd in XrdSys::IOEvents::BootStrap::Start (parg=0x7fff7aae6600) at /usr/src/debug/xrootd-4.8.3/src/XrdSys/XrdSysIOEvents.cc:131\r\n#18 0x00007fd7da6c6a6f in XrdSysThread_Xeq (myargs=0x7fd7d384c7e0) at /usr/src/debug/xrootd-4.8.3/src/XrdSys/XrdSysPthread.cc:86\r\n#19 0x00007fd7da485aa1 in start_thread () from /lib64/libpthread.so.0\r\n#20 0x00007fd7d7e00bcd in clone () from /lib64/libc.so.6\r\n#0 0x00007fd7c4fec704 in XrdOucHash\u003cXrdSutCacheEntry\u003e::Find (this=0x7fd7c51f5a90, KeyVal=0x7fd7c54b1b60 \"5168735f.0:1\", KeyTime=0x0) at /usr/src/debug/xrootd-4.8.3/src/XrdOuc/XrdOucHash.icc:173\r\n173\t if ((hip = hashtable[kent]))\r\n(gdb) info locals\r\nkhash = 6273236213436711438\r\nkent = 126\r\nhip = \u003cvalue optimized out\u003e\r\nlifetime = 0\r\nphip = \u003cvalue optimized out\u003e\r\n(gdb) print hashtable[kent]\r\nCannot access memory at address 0x3f0\r\n(gdb) print hashtable\r\n$1 = (XrdOucHash_Item\u003cXrdSutCacheEntry\u003e **) 0x0\r\n(gdb) up\r\n#1 0x00007fd7c4fdf3cc in Get (cahash=0x7fd7c54320f0 \"5168735f.0\", cf=0x7fd7c47ff640, hs=0x7fd7c542f160) at /usr/src/debug/xrootd-4.8.3/src/XrdSut/XrdSutCache.hh:97\r\n97\t if (!(cent = table.Find(tag))) {\r\n(gdb) print table\r\n$2 = {hashtable = 0x0, prevtablesize = 89, hashtablesize = 144, hashnum = 0, hashmax = 115, hashload = 80}\r\n(gdb) up\r\n#2 XrdSecProtocolgsi::GetCA (cahash=0x7fd7c54320f0 \"5168735f.0\", cf=0x7fd7c47ff640, hs=0x7fd7c542f160) at /usr/src/debug/xrootd-4.8.3/src/XrdSecgsi/XrdSecProtocolgsi.cc:4264\r\n4264\t XrdSutCacheEntry *cent = cacheCA.Get(tag.c_str(), rdlock, GetCACheck, (void *) \u0026arg);\r\n(gdb) print tag\r\n$3 = {_vptr.XrdOucString = 0x749050, str = 0x7fd7c54b1b60 \"5168735f.0:1\", len = 12, siz = 21, static blksize = -1}\r\n(gdb) print arg\r\n$4 = {arg1 = 1, arg2 = 86400, arg3 = 1527719441, arg4 = -1}\r\n(gdb) up\r\n#3 0x00007fd7c4fe032b in XrdSecProtocolgsi::ParseCAlist (this=0x7fd7c5447500, calist=...) at /usr/src/debug/xrootd-4.8.3/src/XrdSecgsi/XrdSecProtocolgsi.cc:4530\r\n4530\t if (GetCA(cahash.c_str(), sessionCF, hs) == 0)\r\n(gdb) print cahash\r\n$5 = {_vptr.XrdOucString = 0x749050, str = 0x7fd7c54320f0 \"5168735f.0\", len = 10, siz = 11, static blksize = -1}\r\n```\r\nThis CA cert file has apparently /not/ been changed around the time of the crash:\r\n```\r\n~$ locate 5168735f.0 | xargs ls -l\r\nlrwxrwxrwx. 1 root root 15 May 22 09:23 /etc/grid-security/certificates/5168735f.0 -\u003e CERN-GridCA.pem\r\n-r--r--r--. 1 root root 3341 May 17 08:02 /etc/openldap/cacerts/5168735f.0\r\n-r--r--r--. 1 root root 3341 May 17 08:02 /etc/pki/tls/certs/5168735f.0\r\n~$ ls -l /etc/grid-security/certificates/CERN-GridCA.pem\r\n-rw-r--r--. 1 root root 3341 May 4 19:26 /etc/grid-security/certificates/CERN-GridCA.pem\r\n```"}],"action":{"name":"View Issue","url":"https://github.com/xrootd/xrootd/issues/661#issuecomment-394599677"}}}
{
"@type": "MessageCard",
"@context": "http://schema.org/extensions",
"hideOriginalBody": "false",
"originator": "37567f93-e2a7-4e2a-ad37-a9160fc62647",
"title": "Re: [xrootd/xrootd] segfault in XrdOucHash\u003cXrdCryptoX509Chain\u003e::Find (#661)",
"sections": [
{
"text": "",
"activityTitle": "**Jan Iven**",
"activityImage": "https://assets-cdn.github.com/images/email/message_cards/avatar.png",
"activitySubtitle": "@jmuf",
"facts": [
]
}
],
"potentialAction": [
{
"name": "Add a comment",
"@type": "ActionCard",
"inputs": [
{
"isMultiLine": true,
"@type": "TextInput",
"id": "IssueComment",
"isRequired": false
}
],
"actions": [
{
"name": "Comment",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"IssueComment\",\n\"repositoryFullName\": \"xrootd/xrootd\",\n\"issueId\": 661,\n\"IssueComment\": \"{{IssueComment.value}}\"\n}"
}
]
},
{
"name": "Close issue",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"IssueClose\",\n\"repositoryFullName\": \"xrootd/xrootd\",\n\"issueId\": 661\n}"
},
{
"targets": [
{
"os": "default",
"uri": "https://github.com/xrootd/xrootd/issues/661#issuecomment-394599677"
}
],
"@type": "OpenUri",
"name": "View on GitHub"
},
{
"name": "Unsubscribe",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"MuteNotification\",\n\"threadId\": 308717323\n}"
}
],
"themeColor": "26292E"
}
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