LISTSERV mailing list manager LISTSERV 16.5

Help for XROOTD-DEV Archives


XROOTD-DEV Archives

XROOTD-DEV Archives


XROOTD-DEV@LISTSERV.SLAC.STANFORD.EDU


View:

Message:

[

First

|

Previous

|

Next

|

Last

]

By Topic:

[

First

|

Previous

|

Next

|

Last

]

By Author:

[

First

|

Previous

|

Next

|

Last

]

Font:

Proportional Font

LISTSERV Archives

LISTSERV Archives

XROOTD-DEV Home

XROOTD-DEV Home

XROOTD-DEV  October 2012

XROOTD-DEV October 2012

Subject:

[bug #98451] Reading GSI private key occasionally dumps core (xrdgsiproxy)

From:

Justin Lewis Salmon <[log in to unmask]>

Reply-To:

xrootd developers' list for Scalla/xrootd repository and related issues <[log in to unmask]>

Date:

Thu, 25 Oct 2012 15:40:38 +0200

Content-Type:

text/plain

Parts/Attachments:

Parts/Attachments

text/plain (149 lines)

URL:
  <http://savannah.cern.ch/bugs/?98451>

                 Summary: Reading GSI private key occasionally dumps core
(xrdgsiproxy)
                 Project: XROOTD
            Submitted by: jsalmon
            Submitted on: 2012-10-25 13:40
                Severity: 3 - Normal
                Priority: 5 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
      Fixed by commit(s): 

    _______________________________________________________

Details:

I'm using the latest RPMs (SLC6) from the master branch. Running the
command:


xrdgsiproxy init -debug -cert /etc/grid-security/xrd/xrdcert.pem -key
/etc/grid-security/xrd/xrdkey.pem


occasionally segfaults (maybe 20-30% of the time) like this:


121025 15:11:51 1677 crypto_Factory::GetCryptoFactory: loading ssl crypto
factory object from libXrdCrypto.so
121025 15:11:51 1677 crypto_Factory::GetCryptoFactory: loading ssl crypto
factory object from libXrdCryptossl.so
121025 15:11:51 1677 sut_Rndm::GetBuffer: enter: len: 32
121025 15:11:51 1677 sut_Rndm::Init: taking seed from /dev/urandom
121025 15:11:51 1677 crypto_X509CreateProxy: EEC certificate loaded from
file: /etc/grid-security/xrd/xrdcert.pem
121025 15:11:51 1677 cryptossl_ASN1toUTC:  UTC: 1382703101  isdst: 1
121025 15:11:51 1677 crypto_X509CreateProxy: Your identity:
[log in to unmask]
/bin/sh: line 29:  1677 Segmentation fault      (core dumped) xrdgsiproxy
init -debug -cert /etc/grid-security/xrd/xrdcert.pem -key
/etc/grid-security/xrd/xrdkey.pem


Here's the stacktrace from the core dump:


Core was generated by `xrdgsiproxy init -debug -cert
/etc/grid-security/xrd/xrdcert.pem -key /etc/grid'.
Program terminated with signal 11, Segmentation fault.
#0  0x00007f78ebceb234 in RSA_free () from /usr/lib64/libcrypto.so.10
#0  0x00007f78ebceb234 in RSA_free () from /usr/lib64/libcrypto.so.10
#1  0x00007f78ebd1042b in ?? () from /usr/lib64/libcrypto.so.10
#2  0x00007f78ebd106cd in ?? () from /usr/lib64/libcrypto.so.10
#3  0x00007f78ebd107f9 in EVP_PKEY_assign () from /usr/lib64/libcrypto.so.10
#4  0x00007f78ebcee073 in ?? () from /usr/lib64/libcrypto.so.10
#5  0x00007f78ebd20282 in d2i_PrivateKey () from /usr/lib64/libcrypto.so.10
#6  0x00007f78ebd35380 in PEM_read_bio_PrivateKey () from
/usr/lib64/libcrypto.so.10
#7  0x00007f78ebd354a1 in PEM_read_PrivateKey () from
/usr/lib64/libcrypto.so.10
#8  0x00007f78ed43f192 in XrdSslgsiX509CreateProxy (fnc=, fnk=0xabd040
"/etc/grid-security/xrd/xrdkey.pem", pxopt=, xp=0xadb850, kp=0x7fff9c6a2f28,
fnp=0xabc1f0 "/tmp/x509up_u0") at
/usr/src/debug/xrootd/xrootd/src/XrdCrypto/XrdCryptosslgsiAux.cc:543
#9  0x000000000040522e in main (argc=, argv=) at
/usr/src/debug/xrootd/xrootd/src/XrdSecgsi/XrdSecgsiProxy.cc:178


I also get the same thing occasionally when starting xrootd. I have another
stack trace for that, but I didn't have the debuginfo package installed at
that time:


Core was generated by `/usr/bin/xrootd -l /var/log/xrootd/xrootd.log -c
/etc/xrootd/xrd_cluster_005_gs'.
Program terminated with signal 11, Segmentation fault.
#0  0x00007f0c8a61c234 in RSA_free () from /usr/lib64/libcrypto.so.10
#0  0x00007f0c8a61c234 in RSA_free () from /usr/lib64/libcrypto.so.10
#1  0x00007f0c8a64142b in ?? () from /usr/lib64/libcrypto.so.10
#2  0x00007f0c8a6416cd in ?? () from /usr/lib64/libcrypto.so.10
#3  0x00007f0c8a6417f9 in EVP_PKEY_assign () from /usr/lib64/libcrypto.so.10
#4  0x00007f0c8a61f073 in ?? () from /usr/lib64/libcrypto.so.10
#5  0x00007f0c8a651282 in d2i_PrivateKey () from /usr/lib64/libcrypto.so.10
#6  0x00007f0c8a666380 in PEM_read_bio_PrivateKey () from
/usr/lib64/libcrypto.so.10
#7  0x00007f0c8a6664a1 in PEM_read_PrivateKey () from
/usr/lib64/libcrypto.so.10
#8  0x00007f0c8ada275b in XrdCryptosslX509::XrdCryptosslX509(char const*,
char const*) () from /usr/lib64/libXrdCryptossl.so.1
#9  0x00007f0c8ad9dd54 in XrdCryptosslFactory::X509(char const*, char const*)
() from /usr/lib64/libXrdCryptossl.so.1
#10 0x00007f0c8afc84a9 in XrdSecProtocolgsi::GetSrvCertEnt(XrdCryptoFactory*,
long, XrdOucString&) () from /usr/lib64/libXrdSecgsi.so
#11 0x00007f0c8afce8ad in XrdSecProtocolgsi::Init(gsiOptions, XrdOucErrInfo*)
() from /usr/lib64/libXrdSecgsi.so
#12 0x00007f0c8afd16e7 in XrdSecProtocolgsiInit () from
/usr/lib64/libXrdSecgsi.so
#13 0x00007f0c8b1e04e1 in XrdSecPManager::ldPO(XrdOucErrInfo*, char, char
const*, char const*, char const*) () from /usr/lib64/libXrdSec.so
#14 0x00007f0c8b1e1b62 in XrdSecServer::xprot(XrdOucStream&, XrdSysError&) ()
from /usr/lib64/libXrdSec.so
#15 0x00007f0c8b1e2bab in XrdSecServer::ConfigFile(char const*) () from
/usr/lib64/libXrdSec.so
#16 0x00007f0c8b1e2e59 in XrdSecServer::Configure(char const*) () from
/usr/lib64/libXrdSec.so
#17 0x00007f0c8b1e2eec in XrdSecgetService () from /usr/lib64/libXrdSec.so
#18 0x0000000000417202 in XrdXrootdloadSecurity(XrdSysError*, char*, char*,
void**) ()
#19 0x0000000000413856 in XrdXrootdProtocol::Configure(char*,
XrdProtocol_Config*) ()
#20 0x000000000041c1cd in XrdgetProtocol ()
#21 0x00007f0c8d4ae38f in XrdProtLoad::Load(char const*, char const*, char*,
XrdProtocol_Config*) () from /usr/lib64/libXrdUtils.so.1
#22 0x00007f0c8d8fa6a6 in XrdConfig::Setup(char*) () from
/usr/lib64/libXrdMain.so.1
#23 0x00007f0c8d8fb0ea in XrdConfig::Configure(int, char**) () from
/usr/lib64/libXrdMain.so.1
#24 0x00007f0c8d8fba4d in main () from /usr/lib64/libXrdMain.so.1
#25 0x00007f0c8c315cdd in __libc_start_main () from /lib64/libc.so.6
#26 0x000000000040d249 in _start ()


Both failures seem to happen in libcrypto, so I guess they are related.




    _______________________________________________________

Reply to this item at:

  <http://savannah.cern.ch/bugs/?98451>

_______________________________________________
  Message sent via/by LCG Savannah
  http://savannah.cern.ch/

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

Top of Message | Previous Page | Permalink

Advanced Options


Options

Log In

Log In

Get Password

Get Password


Search Archives

Search Archives


Subscribe or Unsubscribe

Subscribe or Unsubscribe


Archives

August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
December 2010
November 2010
October 2010
September 2010

ATOM RSS1 RSS2



LISTSERV.SLAC.STANFORD.EDU

Secured by F-Secure Anti-Virus CataList Email List Search Powered by the LISTSERV Email List Manager

Privacy Notice, Security Notice and Terms of Use