cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Curl NSS abort

From: Kamil Dudka <kdudka_at_redhat.com>
Date: Fri, 12 Mar 2010 20:13:49 +0100

On Friday 12 of March 2010 19:50:35 Kevin Baughman wrote:
> I have seen a couple of instances of an abort with the stack trace below.
> I can not easily reproduce this, but I have been trying. Has anyone seen a
> similar issue?
>
> I get the error:
>
> *** glibc detected *** cloudvolmgr: double free or corruption (!prev):
> 0xb60d0d98 ***
>
> The core stack trace:
>
> Program terminated with signal 6, Aborted.
> #0 0x00374422 in __kernel_vsyscall ()
> Missing separate debuginfos, use: debuginfo-install
> cyrus-sasl-lib-2.1.22-22.fc11.i586 e2fsprogs-libs-1.41.4-12.fc11.i586
> glibc-2.10.2-1.i686 keyutils-libs-1.2-5.fc11. i586
> krb5-libs-1.6.3-23.fc11.i586 libgcc-4.4.1-2.fc11.i586 libidn-1.9-4.i586
> libselinux-2.0.80-1.fc11.i586 libssh2-1.0-2.fc11.i586
> libstdc++-4.4.1-2.fc11.i586 libxml2- 2.7.6-1.fc11.i586
> nspr-4.8.2-1.fc11.i586 openldap-2.4.15-6.fc11.i586
> sqlite-3.6.12-3.fc11.i586 zlib-1.2.3-22.fc11.i586 (gdb) bt
> #0 0x00374422 in __kernel_vsyscall ()
> #1 0x00d86781 in raise () from /lib/libc.so.6
> #2 0x00d8804a in abort () from /lib/libc.so.6
> #3 0x00dc4619 in __libc_message () from /lib/libc.so.6
> #4 0x00dcaa71 in malloc_printerr () from /lib/libc.so.6
> #5 0x004ccd67 in PR_Free () from /lib/libnspr4.so
> #6 0x008fa77f in nss_ZFreeIf (pointer=0xb6cdcc80) at arena.c:975
> #7 0x008eb319 in pem_mdCryptoOperationRSAPriv_Create (proto=<value
> optimized out>, mdMechanism=<value optimized out>, mdKey=0xb604d1f0,
> pError=0xb1fed57c) at prsa.c:284
> #8 0x008f95b0 in nssCKFWMechanism_SignInit (fwMechanism=0xb603ec78,
> pMechanism=0xb1fed64c, fwSession=0xb6c645c8, fwObject=0x9cb68b8) at
> mechanism.c:659 #9 0x008f57ba in NSSCKFWC_SignInit (fwInstance=0x9c446a0,
> hSession=20, pMechanism=0xb1fed64c, hKey=29) at wrap.c:3749 #10 0x008e6ed5
> in pemC_SignInit (hSession=20, pMechanism=0xb1fed64c, hKey=29) at
> ../../../../../dist/public/nss/nssck.api:1115 #11 0x01035d10 in PK11_Sign
> (key=0xb603ed40, sig=0xb1fed748, hash=0xb1fed6b4) at pk11obj.c:760 #12
> 0x00bdcbf2 in ssl3_SignHashes (hash=0xb1fed758, key=0xb603ed40,
> buf=0xb1fed748, isTLS=1) at ssl3con.c:851 #13 0x00bdd7b7 in
> ssl3_SendCertificateVerify (ss=<value optimized out>) at ssl3con.c:4520 #14
> ssl3_HandleServerHelloDone (ss=<value optimized out>) at ssl3con.c:5395 #15
> 0x00be069c in ssl3_HandleHandshakeMessage (ss=0xb6050680, b=<value
> optimized out>, length=0) at ssl3con.c:7988 #16 0x00be1f4d in
> ssl3_HandleHandshake (origBuf=<value optimized out>, ss=<value optimized
> out>) at ssl3con.c:8083 #17 ssl3_HandleRecord (origBuf=<value optimized
> out>, ss=<value optimized out>) at ssl3con.c:8346 #18 0x00be2972 in
> ssl3_GatherCompleteHandshake (ss=0xb6050680, flags=0) at ssl3gthr.c:206 #19
> 0x00be54bb in ssl_GatherRecord1stHandshake (ss=0xb6050680) at sslcon.c:1258
> #20 0x00beb6f5 in ssl_Do1stHandshake (ss=0xb6050680) at sslsecur.c:151 #21
> 0x00becda7 in SSL_ForceHandshake (fd=0xb604c308) at sslsecur.c:407 #22
> 0x00bece77 in SSL_ForceHandshakeWithTimeout (fd=0xb604c308, timeout=30000)
> at sslsecur.c:428 #23 0x003ece2e in Curl_nss_connect (conn=0xb60302a8,
> sockindex=0) at nss.c:1275 #24 0x003e3882 in Curl_ssl_connect
> (conn=0xb60302a8, sockindex=0) at sslgen.c:185 #25 0x003c26f9 in
> Curl_http_connect (conn=0xb60302a8, done=0xb1feee0e) at http.c:1795 #26
> 0x003c9f4e in Curl_protocol_connect (conn=0xb60302a8,
> protocol_done=0xb1feee0e) at url.c:3070 #27 0x003cf1af in setup_conn
> (protocol_done=<value optimized out>, hostaddr=<value optimized out>,
> conn=<value optimized out>) at url.c:4711 #28 Curl_connect
> (protocol_done=<value optimized out>, hostaddr=<value optimized out>,
> conn=<value optimized out>) at url.c:4787 #29 0x003d7e24 in connect_host
> (conn=<value optimized out>, data=<value optimized out>) at transfer.c:2488
> #30 Curl_perform (conn=<value optimized out>, data=<value optimized out>)
> at transfer.c:2626 #31 0x003d8bd3 in curl_easy_perform (curl=0xb6027798) at
> easy.c:557
>
> Version info:
>
> curl 7.19.7 (i386-redhat-linux-gnu) libcurl/7.19.7 NSS/3.12.4.5 zlib/1.2.3
> libidn/1.9 libssh2/1.0 Protocols: tftp ftp telnet dict ldap ldaps http file
> https ftps scp sftp Features: GSS-Negotiate IDN IPv6 Largefile SSL libz

It looks like a new variant of the following outstanding bug to me:

https://bugzilla.redhat.com/show_bug.cgi?id=534115#c4

Unfortunately still no progress since then...

Elio, could you please have a look at that bug? I am currently stuck
with my own job, not enough spare time for working on NSS these days.
Thanks in advance!

Kamil
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2010-03-12