certutil -L coredumps when no permission on DB

RESOLVED FIXED in 3.4

Status

NSS
Tools
P2
normal
RESOLVED FIXED
17 years ago
17 years ago

People

(Reporter: Sonja Mirtitsch, Assigned: Robert Relyea)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

17 years ago
kentuckyderby(102)  cd
/share/builds/mccrel/nss/nsstip/builds/20011113.1/booboo_Solaris8/mozilla/security/nss/tests
kentuckyderby(103) cd common/
kentuckyderby(104) bash
bash-2.03$ . init.sh
********************************************
   Platform: SunOS5.8_DBG.OBJ
      Results: kentuckyderby.6
      ********************************************

      init.sh init: Testing PATH
.:/bin:/usr/bin:/share/builds/mccrel/nss/nsstip/builds/20011113.1/booboo_Solaris8/mozilla/dist/SunOS5.8_DBG.OBJ/bin:/share/builds/mccrel/nss/nsstip/builds/20011113.1/booboo_Solaris8/mozilla/dist/SunOS5.8_DBG.OBJ/lib:/u/sonmi/bin:/u/sonmi/bin/solaris:/tools/ns/workshop-5.0/bin:/usr/bsd:/usr/ucb/:/usr/ccs/bin:/usr/sbin:/usr/bin/X11:/usr/etc:/etc:/usr/local/bin:/usr/local/X11/bin:/tools/ns/bin:/usr/openwin/bin
against LIB
/share/builds/mccrel/nss/nsstip/builds/20011113.1/booboo_Solaris8/mozilla/dist/SunOS5.8_DBG.OBJ/lib
bash-2.03$ cd
/share/builds/mccrel/nss/nsstip/builds/20011113.1/booboo_Solaris8/mozilla/tests_results/security/kentuckyderby.1/client
bash-2.03$ certutil -L -d . -n TestCA
Assertion failure: mod != NULL, at pk11slot.c:2106
Abort (core dumped)
bash-2.03$ ls -l
total 1744
-rw-------   1 svbld    staff      32768 Nov 13 04:00 cert7.db
-rw-------   1 sonmi    staff     588916 Nov 13 16:34 core
-rw-------   1 svbld    staff      32768 Nov 13 04:00 key3.db
-rw-rw----   1 svbld    staff        457 Nov 13 04:00 req
-rw-------   1 svbld    staff      32768 Nov 13 03:59 secmod.db
-rw-rw----   1 svbld    staff        609 Nov 13 04:00 TestUser.cert
bash-2.03$ ls -ld .
drwxrwxrwx   2 svbld    staff       8192 Nov 13 16:34 .
bash-2.03$ su svbld
Password: 
kentuckyderby(1) bash
bash-2.03$ cd
/share/builds/mccrel/nss/nsstip/builds/20011113.1/booboo_Solaris8/mozilla/security/nss/tests/common
bash-2.03$ . init.sh
init.sh init: Testing PATH
.:/bin:/usr/bin:/share/builds/mccrel/nss/nsstip/builds/20011113.1/booboo_Solaris8/mozilla/dist/SunOS5.8_DBG.OBJ/bin:/share/builds/mccrel/nss/nsstip/builds/20011113.1/booboo_Solaris8/mozilla/dist/SunOS5.8_DBG.OBJ/lib:/u/sonmi/bin:/u/sonmi/bin/solaris:/tools/ns/workshop-5.0/bin:/usr/bsd:/usr/ucb/:/usr/ccs/bin:/usr/sbin:/usr/bin/X11:/usr/etc:/etc:/usr/demos:/usr/demos/bin:/usr/local/bin:/usr/local/X11/bin:/tools/ns/bin:/usr/openwin/bin:/tools/ns-arch/sparc_sun_solaris2.4/lib/sparcworks/SUNWspro/bin
against LIB
/share/builds/mccrel/nss/nsstip/builds/20011113.1/booboo_Solaris8/mozilla/dist/SunOS5.8_DBG.OBJ/lib
bash-2.03$ cd
/share/builds/mccrel/nss/nsstip/builds/20011113.1/booboo_Solaris8/mozilla/tests_results/security/kentuckyderby.1/client
bash-2.03$ certutil -L -d . -n TestCA
Certificate:
    Data:
        Version: 3 (0x2)
        Serial Number:
            00:ca:73:b1:66
        Signature Algorithm: PKCS #1 MD5 With RSA Encryption
        Issuer: CN=NSS Test CA, O=BOGUS NSS, L=Mountain View, ST=California, C=US
        Validity:
            Not Before: Tue Nov 13 12:00:10 2001
            Not After: Tue Feb 13 12:00:10 2007
        Subject: CN=NSS Test CA, O=BOGUS NSS, L=Mountain View, ST=California, C=US
        Subject Public Key Info:
            Public Key Algorithm: PKCS #1 RSA Encryption
            RSA Public Key:
                Modulus:
                    00:de:be:88:89:97:71:ee:d6:8b:a6:77:c5:c0:2f:
                    20:5f:67:4b:61:0e:06:14:44:c6:cc:f0:2c:c1:06:
                    57:df:d8:35:7b:8a:11:e9:07:63:f3:9d:02:79:63:
                    03:ae:27:62:14:b0:ec:bc:2a:8a:02:48:f3:48:c2:
                    74:c2:09:7a:84:4e:1a:13:36:08:bf:62:bc:e9:c7:
                    b5:c5:8d:54:e9:4a:d1:59:52:f7:e8:ce:36:62:75:
                    55:9b:18:cf:23:19:a8:6f:96:41:0f:46:1d:cc:ea:
                    ee:62:85:52:09:05:1e:bf:e2:69:d7:17:0b:92:80:
                    2c:00:68:9e:10:c1:ed:5c:81

----------------------
bash-2.03$ gdb certutil -core core
GDB is free software and you are welcome to distribute copies of it
 under certain conditions; type "show copying" to see the conditions.
There is absolutely no warranty for GDB; type "show warranty" for details.
GDB 4.16 (sparc-sun-solaris2.5.1), Copyright 1996 Free Software Foundation, Inc...
Core was generated by `certutil -L -d . -n TestCA'.
Program terminated with signal 9, Killed.
Reading symbols from
/share/builds/mccrel/nss/nsstip/builds/20011113.1/booboo_Solaris8/mozilla/dist/SunOS5.8_DBG.OBJ/lib/libplc4.so...done.
Reading symbols from
/share/builds/mccrel/nss/nsstip/builds/20011113.1/booboo_Solaris8/mozilla/dist/SunOS5.8_DBG.OBJ/lib/libplds4.so...done.
Reading symbols from
/share/builds/mccrel/nss/nsstip/builds/20011113.1/booboo_Solaris8/mozilla/dist/SunOS5.8_DBG.OBJ/lib/libnspr4.so...done.
Reading symbols from /usr/lib/libthread.so.1...done.
Reading symbols from /usr/lib/libnsl.so.1...done.
Reading symbols from /usr/lib/libsocket.so.1...done.
Reading symbols from /usr/lib/librt.so.1...done.
Reading symbols from /usr/lib/libdl.so.1...done.
Reading symbols from /usr/lib/libc.so.1...done.
Reading symbols from /usr/lib/libpthread.so.1...done.
Reading symbols from /usr/lib/libmp.so.2...done.
Reading symbols from /usr/lib/libaio.so.1...done.
Reading symbols from /usr/platform/SUNW,Ultra-5_10/lib/libc_psr.so.1...done.
Reading symbols from
/share/builds/mccrel/nss/nsstip/builds/20011113.1/booboo_Solaris8/mozilla/dist/SunOS5.8_DBG.OBJ/lib/libfreebl_hybrid_3.so...done.
#0  0xff339a04 in __sigprocmask ()
(gdb) bt
#0  0xff339a04 in __sigprocmask ()
#1  0xff32e460 in _resetsig ()
#2  0xff32dc00 in _sigon ()
#3  0xff330c14 in _thrp_kill ()
#4  0xff0c9b10 in raise ()
#5  0xff0b512c in abort ()
#6  0xff2a5e3c in PR_Assert (s=0x20ef64 "mod != NULL", file=0x20ef70 "pk11slot.c", 
    ln=2106) at prlog.c:495
#7  0xb62d8 in PK11_GetInternalKeySlot ()
    at
/share/builds/mccrel/nss/nsstip/builds/20011113.1/booboo_Solaris8/mozilla/security/nss/lib/pk11wrap:2106
#8  0x84ab0 in main (argc=6, argv=0xffbee94c)
    at
/share/builds/mccrel/nss/nsstip/builds/20011113.1/booboo_Solaris8/mozilla/security/nss/cmd/certutil:2554
(gdb)
(Assignee)

Comment 1

17 years ago
This one is mine.
Assignee: wtc → relyea
(Reporter)

Comment 2

17 years ago
I tried this again and could not see any problems
Status: NEW → RESOLVED
Last Resolved: 17 years ago
Priority: -- → P2
Resolution: --- → FIXED
Target Milestone: --- → 3.4
You need to log in before you can comment on or make changes to this bug.