Last Comment Bug 403470 - Strsclnt + tstclnt crashes when PKIX enabled.
: Strsclnt + tstclnt crashes when PKIX enabled.
Status: RESOLVED FIXED
:
Product: NSS
Classification: Components
Component: Libraries (show other bugs)
: trunk
: All All
: P1 blocker (vote)
: 3.12
Assigned To: Alexei Volkov
:
Mentors:
Depends on: 397832
Blocks:
  Show dependency treegraph
 
Reported: 2007-11-12 03:58 PST by Slavomir Katuscak
Modified: 2007-11-13 15:42 PST (History)
1 user (show)
See Also:
Crash Signature:
(edit)
QA Whiteboard:
Iteration: ---
Points: ---


Attachments

Description Slavomir Katuscak 2007-11-12 03:58:34 PST
After Alexei's changes related to bug 397832 (2007-11-09 17:45) many Tinderboxes hanged when testing PKIX tests. Usually selfserv starts normally, first strsclnt/tstclnt call connecting to selfserv crashes and others just can't connect there, some of them hangs, some just fails.
Comment 1 Slavomir Katuscak 2007-11-12 04:43:46 PST
selfserv starting at Fri Nov  9 21:42:58 PST 2007
selfserv -D -p 8443 -d ../server -n dositups.red.iplanet.com  \
         -e dositups.red.iplanet.com-ec -w nss -r -i ../tests_pid.12167  &
trying to connect to selfserv at Fri Nov  9 21:42:58 PST 2007
tstclnt -p 8443 -h dositups.red.iplanet.com  -q \
        -d ../client < /export/tinderbox/SunOS_5.10/mozilla/security/nss/tests/ssl/sslreq.dat
kill -0 16183 >/dev/null 2>/dev/null
selfserv with PID 16183 found at Fri Nov  9 21:42:58 PST 2007
selfserv with PID 16183 started at Fri Nov  9 21:42:58 PST 2007
tstclnt -p 8443 -h dositups.red.iplanet.com -f -d ../client \
        -w nss -n none  < /export/tinderbox/SunOS_5.10/mozilla/security/nss/tests/ssl/sslreq.dat
Segmentation Fault

ssl.sh: Stress SSL2 RC4 128 with MD5 (client auth) ----
selfserv starting at Fri Nov  9 21:44:32 PST 2007
selfserv -D -p 8443 -d ../server -n dositups.red.iplanet.com -B -s \
         -e dositups.red.iplanet.com-ec -w nss -r -r -i ../tests_pid.12167  &
trying to connect to selfserv at Fri Nov  9 21:44:32 PST 2007
tstclnt -p 8443 -h dositups.red.iplanet.com -B -s -q \
        -d ../client < /export/tinderbox/SunOS_5.10/mozilla/security/nss/tests/ssl/sslreq.dat
kill -0 2604 >/dev/null 2>/dev/null
selfserv with PID 2604 found at Fri Nov  9 21:44:32 PST 2007
selfserv with PID 2604 started at Fri Nov  9 21:44:32 PST 2007
strsclnt -q -p 8443 -d ../client -B -s -w nss -c 100 -C A -N -n TestUser \
          dositups.red.iplanet.com
strsclnt started at Fri Nov  9 21:44:32 PST 2007
strsclnt: -- SSL: Server Certificate Invalid, err -8164.
This certificate is not valid.
strsclnt: PR_Send returned error -8164:
This certificate is not valid.
strsclnt: -- SSL: Server Certificate Invalid, err -8164.
This certificate is not valid.
strsclnt: PR_Send returned error -8164:
This certificate is not valid.
selfserv: HDX PR_Read returned error -5961:
TCP connection reset by peer.
(Strsclnt hanged now).

Selfserv stacks:
(dbx) threads
 >    t@1  a  l@1   ?()   running          in  __pollsys() 
      t@2  a  l@2   _pt_root()   running          in  __pollsys() 
      t@3  a  l@3   _pt_root()   running          in  __pollsys() 
      t@4  a  l@4   _pt_root()   running          in  __pollsys() 
      t@5  a  l@5   _pt_root()   sleep on 0x8182ba4  in  __lwp_park() 
      t@6  a  l@6   _pt_root()   running          in  __pollsys() 
      t@7  a  l@7   _pt_root()   running          in  __pollsys() 
      t@8  a  l@8   _pt_root()   sleep on 0x8182ba4  in  __lwp_park() 
      t@9  a  l@9   _pt_root()   running          in  __pollsys() 
(dbx) where t@1
current thread: t@1
  [1] __pollsys(0x8046c18, 0x1, 0x8046be8, 0x0), at 0xbf85dc57 
  [2] _pollsys(0x8046c18, 0x1, 0x8046be8, 0x0), at 0xbf852ac6 
  [3] _poll(0x8046c18, 0x1, 0x1388), at 0xbf808536 
=>[4] pt_poll_now(op = 0x8046c7c), line 599 in "ptio.c"
  [5] pt_Continue(op = 0x8046c7c), line 722 in "ptio.c"
  [6] pt_Accept(fd = 0x8182cc0, addr = 0x8046d84, timeout = 4294967295U), line 1696 in "ptio.c"
  [7] ssl_Accept(fd = 0x8084a48, sockaddr = 0x8046d84, timeout = 4294967295U), line 1227 in "sslsock.c"
  [8] PR_Accept(fd = 0x8084a48, addr = 0x8046d84, timeout = 4294967295U), line 199 in "priometh.c"
  [9] do_accepts(listen_sock = 0x8084a48, model_sock = 0x8084a48, requestCert = 2), line 1246 in "selfserv.c"
  [10] server_main(listen_sock = 0x8084a48, requestCert = 2, privKey = 0x8046ee0, cert = 0x8046ef4), line 1499 in "selfserv.c"
  [11] main(argc = 18, argv = 0x8046f64), line 2082 in "selfserv.c"
(dbx) where t@2
current thread: t@2
=>[1] __pollsys(0xbf388fc4, 0x1, 0xbf388f90, 0x0), at 0xbf85dc57 
  [2] _pollsys(0xbf388fc4, 0x1, 0xbf388f90, 0x0), at 0xbf852ac6 
  [3] _poll(0xbf388fc4, 0x1, 0x1388), at 0xbf808536 
  [4] pt_poll_now(op = 0xbf389028), line 599 in "ptio.c"
  [5] pt_Continue(op = 0xbf389028), line 722 in "ptio.c"
  [6] pt_Recv(fd = 0x823a010, buf = 0x81b2b58, amount = 3, flags = 0, timeout = 4294967295U), line 1863 in "ptio.c"
  [7] ssl_DefRecv(ss = 0x81b28c0, buf = 0x81b2b58 "\x80^\", len = 3, flags = 0), line 94 in "ssldef.c"
  [8] ssl2_GatherData(ss = 0x81b28c0, gs = 0x81b2b18, flags = 0), line 117 in "sslgathr.c"
  [9] ssl2_GatherRecord(ss = 0x81b28c0, flags = 0), line 397 in "sslgathr.c"
  [10] ssl_GatherRecord1stHandshake(ss = 0x81b28c0), line 1261 in "sslcon.c"
  [11] ssl_Do1stHandshake(ss = 0x81b28c0), line 151 in "sslsecur.c"
  [12] ssl_SecureRecv(ss = 0x81b28c0, buf = 0xbf38951c "", len = 10239, flags = 0), line 1089 in "sslsecur.c"
  [13] ssl_SecureRead(ss = 0x81b28c0, buf = 0xbf38951c "", len = 10239), line 1108 in "sslsecur.c"
  [14] ssl_Read(fd = 0x8239fd0, buf = 0xbf38951c, len = 10239), line 1452 in "sslsock.c"
  [15] PR_Read(fd = 0x8239fd0, buf = 0xbf38951c, amount = 10239), line 141 in "priometh.c"
  [16] handle_connection(tcp_sock = 0x8239fd0, model_sock = 0x8084a48, requestCert = 2), line 969 in "selfserv.c"
  [17] jobLoop(a = (nil), b = (nil), c = 2), line 515 in "selfserv.c"
  [18] thread_wrapper(arg = 0x817b038), line 483 in "selfserv.c"
  [19] _pt_root(arg = 0x817b230), line 221 in "ptthread.c"
  [20] _thr_setup(0xbf752400), at 0xbf85cf2f 
  [21] _lwp_start(), at 0xbf85d220
(dbx) where t@5
current thread: t@5
=>[1] __lwp_park(0x0, 0x0), at 0xbf85d27b 
  [2] cond_sleep_queue(0x8182ba4, 0x8176ea0, 0x0), at 0xbf857a08 
  [3] cond_wait_queue(0x8182ba4, 0x8176ea0, 0x0, 0x0), at 0xbf857b1a 
  [4] _cond_wait(0x8182ba4, 0x8176ea0), at 0xbf858013 
  [5] cond_wait(0x8182ba4, 0x8176ea0), at 0xbf858055 
  [6] _pthread_cond_wait(0x8182ba4, 0x8176ea0), at 0xbf85808e 
  [7] PR_WaitCondVar(cvar = 0x8182ba0, timeout = 4294967295U), line 405 in "ptsynch.c"
  [8] jobLoop(a = (nil), b = (nil), c = 2), line 503 in "selfserv.c"
  [9] thread_wrapper(arg = 0x817b08c), line 483 in "selfserv.c"
  [10] _pt_root(arg = 0x817a5c8), line 221 in "ptthread.c"
  [11] _thr_setup(0xbf170800), at 0xbf85cf2f 
  [12] _lwp_start(), at 0xbf85d220 

Threads 2,3,4,6,7,9 has identical stacks, also threads 5,8.

Strsclnt stacks:
(dbx) threads
 >    t@1  a  l@1   ?()   running          in  __lwp_wait() 
      t@2  a  l@2   _pt_root()   sleep on 0x8089670  in  __lwp_park() 
      t@4  a  l@4   _pt_root()   sleep on 0x80b5660  in  __lwp_park() 
      t@5  a  l@5   _pt_root()   sleep on 0x80b5660  in  __lwp_park() 
      t@7  a  l@7   _pt_root()   sleep on 0x8089670  in  __lwp_park() 
      t@8  a  l@8   _pt_root()   running          in  PL_ArenaAllocate() 
      t@9  a  l@9   _pt_root()   sleep on 0x80b5660  in  __lwp_park() 
(dbx) where t@1
current thread: t@1
  [1] __lwp_wait(0x2, 0x8046d80), at 0xbf85df87 
  [2] lwp_wait(0x2, 0x8046d80), at 0xbf8514d3 
  [3] _thrp_join(0x2, 0x0, 0x8046dc8, 0x1), at 0xbf85a1f0 
  [4] _pthread_join(0x2, 0x8046dc8), at 0xbf85a36f 
=>[5] PR_JoinThread(thred = 0x80e96e8), line 592 in "ptthread.c"
  [6] reap_threads(), line 493 in "strsclnt.c"
  [7] client_main(port = 8443U, connections = 100, Cert_And_Key = 0x8046f10, hostName = 0x8083c08 "dositups.red.iplanet.com"), line 1267 in "strsclnt.c"
  [8] main(argc = 18, argv = 0x8046f88), line 1461 in "strsclnt.c"
(dbx) where t@2
current thread: t@2
=>[1] __lwp_park(0x0, 0x0), at 0xbf85d27b 
  [2] mutex_lock_queue(0xbf752400, 0x0, 0x8089670, 0x0), at 0xbf856332 
  [3] slow_lock(0xbf752400, 0x8089670, 0x0), at 0xbf856bce 
  [4] mutex_lock_impl(0x8089670, 0x0), at 0xbf856cc4 
  [5] __mutex_lock(0x8089670), at 0xbf856dd0 
  [6] PR_Lock(lock = 0x8089670), line 206 in "ptsynch.c"
  [7] LockArena(), line 97 in "plarena.c"
  [8] FreeArenaList(pool = 0x81f1da0, head = 0x81f1da0, reallyFree = 0), line 282 in "plarena.c"
  [9] PL_FreeArenaPool(pool = 0x81f1da0), line 307 in "plarena.c"
  [10] PORT_FreeArena_Util(arena = 0x81f1da0, zero = 0), line 316 in "secport.c"
  [11] nssDecodedPKIXCertificate_Destroy(dc = 0x81f4488), line 546 in "pki3hack.c"
  [12] nssDecodedCert_Destroy(dc = 0x81f4488), line 112 in "certdecode.c"
  [13] nssCertificate_Destroy(c = 0x81ee988), line 161 in "certificate.c"
  [14] NSSCertificate_Destroy(c = 0x81ee988), line 185 in "certificate.c"
  [15] __CERT_NewTempCertificate(handle = 0x80b6568, derCert = 0xbf38bab0, nickname = (nil), isperm = 0, copyDER = 1), line 468 in "stanpcertdb.c"
  [16] ssl2_ClientHandleServerCert(ss = 0x8167158, certData = 0x816e5a3 "0\x82^B}0\x82^A\xe6\xa0^C^B^A^B^B^Ad0^M^F^I*\x86H\x86\xf7^M^A^A^E^E", certLen = 641), line 1943 in "sslcon.c"
  [17] ssl2_HandleServerHelloMessage(ss = 0x8167158), line 2907 in "sslcon.c"
  [18] ssl_Do1stHandshake(ss = 0x8167158), line 151 in "sslsecur.c"
  [19] ssl_SecureSend(ss = 0x8167158, buf = 0x8066c5c "GET /abc HTTP/1.0^M\n^M\n", len = 21, flags = 0), line 1152 in "sslsecur.c"
  [20] ssl_Send(fd = 0x80ca2a8, buf = 0x8066c5c, len = 21, flags = 0, timeout = 4294967295U), line 1432 in "sslsock.c"
  [21] PR_Send(fd = 0x80ca2a8, buf = 0x8066c5c, amount = 21, flags = 0, timeout = 4294967295U), line 226 in "priometh.c"
  [22] handle_connection(ssl_sock = 0x80ca2a8, tid = 0), line 689 in "strsclnt.c"
  [23] do_connects(a = 0x8046e54, b = 0x80ca048, tid = 0), line 879 in "strsclnt.c"
  [24] thread_wrapper(arg = 0x8081320), line 432 in "strsclnt.c"
  [25] _pt_root(arg = 0x80e96e8), line 221 in "ptthread.c"
  [26] _thr_setup(0xbf752400), at 0xbf85cf2f 
  [27] _lwp_start(), at 0xbf85d220 
(dbx) where t@4
current thread: t@4
=>[1] __lwp_park(0x0, 0x0), at 0xbf85d27b 
  [2] mutex_lock_queue(0xbf170400, 0x0, 0x80b5660, 0x0), at 0xbf856332 
  [3] slow_lock(0xbf170400, 0x80b5660, 0x0), at 0xbf856bce 
  [4] mutex_lock_impl(0x80b5660, 0x0), at 0xbf856cc4 
  [5] __mutex_lock(0x80b5660), at 0xbf856dd0 
  [6] PR_Lock(lock = 0x80b5660), line 206 in "ptsynch.c"
  [7] nssSession_EnterMonitor(s = 0x80b6708), line 833 in "devslot.c"
  [8] find_objects(tok = 0x80ba0f8, sessionOpt = 0x80b6708, obj_template = 0xbf16d92c, otsize = 4U, maximumOpt = 1U, statusOpt = 0xbf16d9bc), line 421 in "devtoken.c"
  [9] find_objects_by_template(token = 0x80ba0f8, sessionOpt = 0x80b6708, obj_template = 0xbf16d92c, otsize = 4U, maximumOpt = 1U, statusOpt = 0xbf16d9bc), line 556 in "devtoken.c"
  [10] nssToken_FindCertificateByIssuerAndSerialNumber(token = 0x80ba0f8, sessionOpt = 0x80b6708, issuer = 0xbf16d9f4, serial = 0xbf16d9ec, searchType = nssTokenSearchType_TokenOnly, statusOpt = 0xbf16d9bc), line 956 in "devtoken.c"
  [11] nssTrustDomain_FindCertificateByIssuerAndSerialNumber(td = 0x80b6568, issuer = 0xbf16d9f4, serial = 0xbf16d9ec), line 811 in "trustdomain.c"
  [12] nssTrustDomain_FindCertificateByEncodedCertificate(td = 0x80b6568, ber = 0xbf16da54), line 881 in "trustdomain.c"
  [13] NSSTrustDomain_FindCertificateByEncodedCertificate(td = 0x80b6568, ber = 0xbf16da54), line 893 in "trustdomain.c"
  [14] __CERT_NewTempCertificate(handle = 0x80b6568, derCert = 0xbf16dab0, nickname = (nil), isperm = 0, copyDER = 1), line 386 in "stanpcertdb.c"
  [15] ssl2_ClientHandleServerCert(ss = 0x80e9bb8, certData = 0x80f1003 "0\x82^B}0\x82^A\xe6\xa0^C^B^A^B^B^Ad0^M^F^I*\x86H\x86\xf7^M^A^A^E^E", certLen = 641), line 1943 in "sslcon.c"
  [16] ssl2_HandleServerHelloMessage(ss = 0x80e9bb8), line 2907 in "sslcon.c"
  [17] ssl_Do1stHandshake(ss = 0x80e9bb8), line 151 in "sslsecur.c"
  [18] ssl_SecureSend(ss = 0x80e9bb8, buf = 0x8066c5c "GET /abc HTTP/1.0^M\n^M\n", len = 21, flags = 0), line 1152 in "sslsecur.c"
  [19] ssl_Send(fd = 0x80ca128, buf = 0x8066c5c, len = 21, flags = 0, timeout = 4294967295U), line 1432 in "sslsock.c"
  [20] PR_Send(fd = 0x80ca128, buf = 0x8066c5c, amount = 21, flags = 0, timeout = 4294967295U), line 226 in "priometh.c"
  [21] handle_connection(ssl_sock = 0x80ca128, tid = 2), line 689 in "strsclnt.c"
  [22] do_connects(a = 0x8046e54, b = 0x80ca048, tid = 2), line 879 in "strsclnt.c"
  [23] thread_wrapper(arg = 0x8081358), line 432 in "strsclnt.c"
  [24] _pt_root(arg = 0x80e97f8), line 221 in "ptthread.c"
  [25] _thr_setup(0xbf170400), at 0xbf85cf2f 
  [26] _lwp_start(), at 0xbf85d220 
(dbx) where t@7
current thread: t@7
=>[1] __lwp_park(0x0, 0x0), at 0xbf85d27b 
  [2] mutex_lock_queue(0xbf171000, 0x0, 0x8089670, 0x0), at 0xbf856332 
  [3] slow_lock(0xbf171000, 0x8089670, 0x0), at 0xbf856bce 
  [4] mutex_lock_impl(0x8089670, 0x0), at 0xbf856cc4 
  [5] __mutex_lock(0x8089670), at 0xbf856dd0 
  [6] PR_Lock(lock = 0x8089670), line 206 in "ptsynch.c"
  [7] LockArena(), line 97 in "plarena.c"
  [8] PL_ArenaAllocate(pool = 0x81e4700, nb = 24U), line 184 in "plarena.c"
  [9] nss_zalloc_arena_locked(arena = 0x81e4700, size = 16U), line 832 in "arena.c"
  [10] nss_ZAlloc(arenaOpt = 0x81e4700, size = 16U), line 928 in "arena.c"
  [11] nss_builtins_FindObjectsInit(fwSession = 0x80b5c68, pTemplate = 0xbee6d92c, ulAttributeCount = 4U, pError = 0xbee6d7d4), line 229 in "bfind.c"
  [12] builtins_mdSession_FindObjectsInit(mdSession = 0x80b5cd8, fwSession = 0x80b5c68, mdToken = 0xbf3e32a4, fwToken = 0x80b3550, mdInstance = 0xbf3e3214, fwInstance = 0x80abd10, pTemplate = 0xbee6d92c, ulAttributeCount = 4U, pError = 0xbee6d7d4), line 64 in "bsession.c"
  [13] nssCKFWSession_FindObjectsInit(fwSession = 0x80b5c68, pTemplate = 0xbee6d92c, ulAttributeCount = 4U, pError = 0xbee6d7d4), line 1684 in "session.c"
  [14] NSSCKFWC_FindObjectsInit(fwInstance = 0x80abd10, hSession = 1U, pTemplate = 0xbee6d92c, ulCount = 4U), line 2532 in "wrap.c"
  [15] builtinsC_FindObjectsInit(hSession = 1U, pTemplate = 0xbee6d92c, ulCount = 4U), line 717 in "nssck.api"
  [16] find_objects(tok = 0x80ba0f8, sessionOpt = 0x80b6708, obj_template = 0xbee6d92c, otsize = 4U, maximumOpt = 1U, statusOpt = 0xbee6d9bc), line 424 in "devtoken.c"
  [17] find_objects_by_template(token = 0x80ba0f8, sessionOpt = 0x80b6708, obj_template = 0xbee6d92c, otsize = 4U, maximumOpt = 1U, statusOpt = 0xbee6d9bc), line 556 in "devtoken.c"
  [18] nssToken_FindCertificateByIssuerAndSerialNumber(token = 0x80ba0f8, sessionOpt = 0x80b6708, issuer = 0xbee6d9f4, serial = 0xbee6d9ec, searchType = nssTokenSearchType_TokenOnly, statusOpt = 0xbee6d9bc), line 956 in "devtoken.c"
  [19] nssTrustDomain_FindCertificateByIssuerAndSerialNumber(td = 0x80b6568, issuer = 0xbee6d9f4, serial = 0xbee6d9ec), line 811 in "trustdomain.c"
  [20] nssTrustDomain_FindCertificateByEncodedCertificate(td = 0x80b6568, ber = 0xbee6da54), line 881 in "trustdomain.c"
  [21] NSSTrustDomain_FindCertificateByEncodedCertificate(td = 0x80b6568, ber = 0xbee6da54), line 893 in "trustdomain.c"
  [22] __CERT_NewTempCertificate(handle = 0x80b6568, derCert = 0xbee6dab0, nickname = (nil), isperm = 0, copyDER = 1), line 386 in "stanpcertdb.c"
  [23] ssl2_ClientHandleServerCert(ss = 0x81a5c28, certData = 0x81ad073 "0\x82^B}0\x82^A\xe6\xa0^C^B^A^B^B^Ad0^M^F^I*\x86H\x86\xf7^M^A^A^E^E", certLen = 641), line 1943 in "sslcon.c"
  [24] ssl2_HandleServerHelloMessage(ss = 0x81a5c28), line 2907 in "sslcon.c"
  [25] ssl_Do1stHandshake(ss = 0x81a5c28), line 151 in "sslsecur.c"
  [26] ssl_SecureSend(ss = 0x81a5c28, buf = 0x8066c5c "GET /abc HTTP/1.0^M\n^M\n", len = 21, flags = 0), line 1152 in "sslsecur.c"
  [27] ssl_Send(fd = 0x80ca368, buf = 0x8066c5c, len = 21, flags = 0, timeout = 4294967295U), line 1432 in "sslsock.c"
  [28] PR_Send(fd = 0x80ca368, buf = 0x8066c5c, amount = 21, flags = 0, timeout = 4294967295U), line 226 in "priometh.c"
  [29] handle_connection(ssl_sock = 0x80ca368, tid = 5), line 689 in "strsclnt.c"
  [30] do_connects(a = 0x8046e54, b = 0x80ca048, tid = 5), line 879 in "strsclnt.c"
  [31] thread_wrapper(arg = 0x80813ac), line 432 in "strsclnt.c"
  [32] _pt_root(arg = 0x80e99d8), line 221 in "ptthread.c"
  [33] _thr_setup(0xbf171000), at 0xbf85cf2f 
  [34] _lwp_start(), at 0xbf85d220 
(dbx) where t@8
current thread: t@8
=>[1] PL_ArenaAllocate(pool = 0x80d0df8, nb = 24U), line 187 in "plarena.c"
  [2] PORT_ArenaAlloc_Util(arena = 0x80d0df8, size = 20U), line 243 in "secport.c"
  [3] PORT_ArenaZAlloc_Util(arena = 0x80d0df8, size = 20U), line 265 in "secport.c"
  [4] CERT_CreateGeneralNameList(name = 0x81fdce8), line 263 in "genname.c"
  [5] pkix_pl_GeneralName_Create(nssAltName = 0x81fdce8, pGenName = 0xbed6d6bc, plContext = 0x81eaa08), line 278 in "pkix_pl_generalname.c"
  [6] PKIX_PL_Cert_GetAllSubjectNames(cert = 0x81f417c, pAllSubjectNames = 0xbed6d7b4, plContext = 0x81eaa08), line 2000 in "pkix_pl_cert.c"
  [7] pkix_Build_InitiateBuildChain(procParams = 0x81f2e4c, pNBIOContext = 0xbed6d850, pState = 0xbed6d858, pBuildResult = 0xbed6d854, pVerifyNode = 0xbed6d8d4, plContext = 0x81eaa08), line 3919 in "pkix_build.c"
  [8] PKIX_BuildChain(procParams = 0x81f2e4c, pNBIOContext = 0xbed6d8d0, pState = 0xbed6d8cc, pBuildResult = 0xbed6d8d8, pVerifyNode = 0xbed6d8d4, plContext = 0x81eaa08), line 4364 in "pkix_build.c"
  [9] cert_BuildAndValidateChain(procParams = 0x81f2e4c, pResult = 0xbed6d918, pVerifyNode = 0xbed6d914, plContext = 0x81eaa08), line 755 in "certvfypkix.c"
  [10] cert_VerifyCertChainPkix(cert = 0x81e7578, checkSig = 1, requiredUsage = certUsageSSLServer, time = 1194673472971705ULL, wincx = (nil), log = (nil), pSigerror = (nil), pRevoked = (nil)), line 1142 in "certvfypkix.c"
  [11] cert_VerifyCertChain(handle = 0x80b6568, cert = 0x81e7578, checkSig = 1, sigerror = (nil), certUsage = certUsageSSLServer, t = 1194673472971705LL, wincx = (nil), log = (nil), revoked = (nil)), line 946 in "certvfy.c"
  [12] CERT_VerifyCertChain(handle = 0x80b6568, cert = 0x81e7578, checkSig = 1, certUsage = certUsageSSLServer, t = 1194673472971705LL, wincx = (nil), log = (nil)), line 958 in "certvfy.c"
  [13] CERT_VerifyCert(handle = 0x80b6568, cert = 0x81e7578, checkSig = 1, certUsage = certUsageSSLServer, t = 1194673472971705LL, wincx = (nil), log = (nil)), line 1556 in "certvfy.c"
  [14] CERT_VerifyCertNow(handle = 0x80b6568, cert = 0x81e7578, checkSig = 1, certUsage = certUsageSSLServer, wincx = (nil)), line 1607 in "certvfy.c"
  [15] SSL_AuthCertificate(arg = 0x80b6568, fd = 0x80ca248, checkSig = 1, isServer = 0), line 255 in "sslauth.c"
  [16] mySSLAuthCertificate(arg = 0x80b6568, fd = 0x80ca248, checkSig = 1, isServer = 0), line 273 in "strsclnt.c"
  [17] ssl2_HandleServerHelloMessage(ss = 0x8147bf0), line 2932 in "sslcon.c"
  [18] ssl_Do1stHandshake(ss = 0x8147bf0), line 151 in "sslsecur.c"
  [19] ssl_SecureSend(ss = 0x8147bf0, buf = 0x8066c5c "GET /abc HTTP/1.0^M\n^M\n", len = 21, flags = 0), line 1152 in "sslsecur.c"
  [20] ssl_Send(fd = 0x80ca248, buf = 0x8066c5c, len = 21, flags = 0, timeout = 4294967295U), line 1432 in "sslsock.c"
  [21] PR_Send(fd = 0x80ca248, buf = 0x8066c5c, amount = 21, flags = 0, timeout = 4294967295U), line 226 in "priometh.c"
  [22] handle_connection(ssl_sock = 0x80ca248, tid = 6), line 689 in "strsclnt.c"
  [23] do_connects(a = 0x8046e54, b = 0x80ca048, tid = 6), line 879 in "strsclnt.c"
  [24] thread_wrapper(arg = 0x80813c8), line 432 in "strsclnt.c"
  [25] _pt_root(arg = 0x80e9a78), line 221 in "ptthread.c"
  [26] _thr_setup(0xbf171400), at 0xbf85cf2f 
  [27] _lwp_start(), at 0xbf85d220 

Threads 4,5,9 has identical stacks.
Comment 2 Slavomir Katuscak 2007-11-12 04:50:42 PST
Additional information from Linux platform:
strsclnt -q -p 8443 -d /export/tinderbox/Linux_2.6.9-42.ELsmp/mozilla/tests_results/security/dopushups.1/pkix/client_memleak -w nss -c 1000 -C A dopushups.re
d.iplanet.com
-1208120400[9bad528]: Assertion failure: a->base <= a->avail && a->avail <= a->limit, at ../../../lib/ds/plarena.c:263
Assertion failure: a->base <= a->avail && a->avail <= a->limit, at ../../../lib/ds/plarena.c:263
./memleak.sh: line 358: 24835 Aborted                 strsclnt ${STRSCLNT_ATTR}
Comment 3 Slavomir Katuscak 2007-11-12 07:57:30 PST
See also bug 399304.
Comment 4 Alexei Volkov 2007-11-13 15:28:53 PST
Integration of a patch for pkix_pl_pk11certstore.c introduce a regression: used arena was deallocated twice. Fix. Tinderbox is green now.
Comment 5 Nelson Bolyard (seldom reads bugmail) 2007-11-13 15:42:53 PST
*** Bug 403685 has been marked as a duplicate of this bug. ***

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