Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 596783 - [PEM] SIGSEGV within CreateObject()
Summary: [PEM] SIGSEGV within CreateObject()
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: nss
Version: 6.0
Hardware: All
OS: Linux
Target Milestone: rc
: ---
Assignee: Elio Maldonado Batiz
QA Contact: Eduard Benes
Depends On: 596674
TreeView+ depends on / blocked
Reported: 2010-05-27 13:59 UTC by Kamil Dudka
Modified: 2010-11-10 21:15 UTC (History)
2 users (show)

Fixed In Version: nss-3.12.6-3
Doc Type: Bug Fix
Doc Text:
Clone Of: 596674
Last Closed: 2010-11-10 21:15:17 UTC
Target Upstream Version:

Attachments (Terms of Use)
proposed fix (deleted)
2010-06-06 00:24 UTC, Kamil Dudka
no flags Details | Diff
Same fix in cvs format (deleted)
2010-06-07 15:46 UTC, Elio Maldonado Batiz
no flags Details | Diff

Description Kamil Dudka 2010-05-27 13:59:30 UTC
+++ This bug was initially created as a clone of Bug #596674 +++

Description of problem:

Steps to Reproduce:
1. have a self-signed certificate with server's private key in cert.pem
2. run 'cert --cacert cert.pem URL'
Actual results:

Expected results:
curl reports it can't connect to the server using the certificate.

--- Additional comment from on 2010-05-27 13:06:28 CEST ---

[ /etc/pki/nssdb]$ rpm -aq nss\* curl libcurl

--- Additional comment from on 2010-05-27 14:25:14 CEST ---

Created an attachment (id=417218)
my pkcs11.txt

--- Additional comment from on 2010-05-27 14:37:25 CEST ---

Created an attachment (id=417224)
cert.pem causing the segv

--- Additional comment from on 2010-05-27 15:29:07 CEST ---

#1  CreateObject (objClass=<value optimized out>, ...)                at pinst.c:239
#2  AddObjectIfNeeded (objClass=<value optimized out>, ...)           at pinst.c:307
#3  pem_CreateObject (fwInstance=<value optimized out>, ...)          at pobject.c:1147
#4  nssCKFWSession_CreateObject (fwSession=0x6a5e00, ...)             at session.c:1353
#5  NSSCKFWC_CreateObject (fwInstance=0x6a27a0, ...)                  at wrap.c:1991
#6  PK11_CreateNewObject (slot=0x6a49f0, session=1, ...)              at pk11obj.c:412
#7  PK11_CreateGenericObject (slot=0x6a49f0, ...)                     at pk11obj.c:1347
#8  nss_load_cert (ssl=0x62ac40, filename=0x62a590 "cert.pem", ...)   at nss.c:378
#9  Curl_nss_connect (conn=<value optimized out>, ...)                at nss.c:1218
#10 Curl_ssl_connect (conn=0x62ab00, sockindex=<value optimized out>) at sslgen.c:194
#11 Curl_http_connect (conn=0x62ab00, done=0x7fffffffd97e)            at http.c:1779
#12 Curl_protocol_connect (conn=0x62ab00, ...)                        at url.c:3281
#13 setup_conn (conn=0x62ab00, protocol_done=0x7fffffffd97e)          at url.c:4963
#14 Curl_async_resolved (conn=0x62ab00, ...)                          at url.c:5066
#15 connect_host (data=<value optimized out>)                         at transfer.c:1908
#16 Curl_perform (data=<value optimized out>)                         at transfer.c:2039
#17 operate (argc=<value optimized out>, argv=<value optimized out>)  at main.c:5214
#18 main (argc=<value optimized out>, argv=<value optimized out>)     at main.c:5539

--- Additional comment from on 2010-05-27 15:46:26 CEST ---

Created an attachment (id=417248)
proposed fix

Comment 1 RHEL Product and Program Management 2010-05-27 14:16:02 UTC
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux major release.  Product Management has requested further
review of this request by Red Hat Engineering, for potential inclusion in a Red
Hat Enterprise Linux Major release.  This request is not yet committed for

Comment 3 Kamil Dudka 2010-06-06 00:24:32 UTC
Created attachment 421520 [details]
proposed fix

Comment 4 Elio Maldonado Batiz 2010-06-07 15:46:30 UTC
Created attachment 421869 [details]
Same fix in cvs format

It has already been submitted in Fedora and a RHEL6 scratch build is at

Comment 7 Elio Maldonado Batiz 2010-06-09 18:20:49 UTC
Comment on attachment 421869 [details]
Same fix in cvs format

The original patch works fine

Comment 12 2010-11-10 21:15:17 UTC
Red Hat Enterprise Linux 6.0 is now available and should resolve
the problem described in this bug report. This report is therefore being closed
with a resolution of CURRENTRELEASE. You may reopen this bug report if the
solution does not work for you.

Note You need to log in before you can comment on or make changes to this bug.