Selfserv failed/crashed during stress test.

NEW
Unassigned

Status

NSS
Tools
--
critical
8 years ago
3 years ago

People

(Reporter: Slavomir Katuscak, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

8 years ago
Build:
nssmac3 Darwin 64bit OPT on 2009/06/25 17:07:07 (Tinderbox)

Log:
ssl.sh: Stress SSL3 ECDHE-ECDSA AES 128 CBC with SHA (no reuse) ----
selfserv starting at Thu Jun 25 17:31:02 PDT 2009
selfserv -D -p 8444 -d ../ext_server -n nssmac3.red.iplanet.com  \
         -e nssmac3.red.iplanet.com-ec -w nss -c :C009 -i ../tests_pid.46296  &
trying to connect to selfserv at Thu Jun 25 17:31:02 PDT 2009
tstclnt -p 8444 -h nssmac3.red.iplanet.com -B -s -q \
        -d ../ext_client -v < /export/tinderlight/data/nssmac3_64_OPT/mozilla/security/nss/tests/ssl/sslreq.dat
tstclnt: connecting to nssmac3.red.iplanet.com:8444 (address=192.18.120.176)
kill -0 65478 >/dev/null 2>/dev/null
selfserv with PID 65478 found at Thu Jun 25 17:31:02 PDT 2009
selfserv with PID 65478 started at Thu Jun 25 17:31:02 PDT 2009
strsclnt -q -p 8444 -d ../ext_client -B -s -w nss -c 100 -C :C009 -N -T \
          nssmac3.red.iplanet.com
strsclnt started at Thu Jun 25 17:31:02 PDT 2009
strsclnt: -- SSL: Server Certificate Validated.
strsclnt: -- SSL: Server Certificate Validated.
strsclnt: -- SSL: Server Certificate Validated.
strsclnt: -- SSL: Server Certificate Validated.
strsclnt: PR_Send returned error -5938:
Encountered end of file.
strsclnt: PR_Send returned error -5938:
Encountered end of file.
strsclnt: PR_Send returned error -5938:
Encountered end of file.
strsclnt: PR_Send returned error -5961:
TCP connection reset by peer.
strsclnt: PR_Send returned error -5961:
TCP connection reset by peer.
strsclnt: PR_Send returned error -5938:
Encountered end of file.
strsclnt: PR_Send returned error -5938:
Encountered end of file.
strsclnt: PR_Send returned error -5961:
TCP connection reset by peer.
strsclnt: 0 cache hits; 4 cache misses, 0 cache not reusable
          0 stateless resumes
strsclnt: NoReuse - 4 server certificates tested.
./ssl.sh: line 421: 65478 Segmentation fault      ${PROFTOOL} ${BINDIR}/selfserv -D -p ${PORT} -d ${P_R_SERVERDIR} -n ${HOSTADDR} ${SERVER_OPTIONS} ${ECC_OPTIONS} -w nss ${sparam} -i ${R_SERVERPID} $verbose
strsclnt completed at Thu Jun 25 17:31:11 PDT 2009
ssl.sh: #2012: Stress SSL3 ECDHE-ECDSA AES 128 CBC with SHA (no reuse) produced a returncode of 1, expected is 0.  - FAILED

Core:

Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x00000001706c9760
Crashed Thread:  0

Thread 0 Crashed:
0   libSystem.B.dylib                   0x00007fff83695d50 pthread_self + 0
1   libnspr4.dylib                      0x000000010022ca2c PR_StackPop + 28
2   libnspr4.dylib                      0x00000001002235ec _PR_Getfd + 284
3   libnspr4.dylib                      0x000000010023cfa6 pt_SetMethods + 38
4   libnspr4.dylib                      0x000000010023d156 pt_Accept + 166
5   libssl3.dylib                       0x000000010003fa2d ssl_Accept + 109
6   selfserv                            0x00000001000026f4 do_accepts + 164
7   selfserv                            0x0000000100002e6c server_main + 524
8   selfserv                            0x00000001000040a0 main + 2976
9   selfserv                            0x0000000100000c14 start + 52

Thread 1:
0   libSystem.B.dylib                   0x00007fff83691dc2 __semwait_signal + 10
1   libnspr4.dylib                      0x000000010023a16c PR_WaitCondVar + 284
2   selfserv                            0x0000000100001ed7 jobLoop + 1575
3   selfserv                            0x0000000100001319 thread_wrapper + 25
4   libnspr4.dylib                      0x000000010023f260 _pt_root + 160
5   libSystem.B.dylib                   0x00007fff836b8e8b _pthread_start + 316
6   libSystem.B.dylib                   0x00007fff836b8d4d thread_start + 13

Thread 2:
0   libSystem.B.dylib                   0x00007fff836d6582 select$DARWIN_EXTSN + 10
1   libnspr4.dylib                      0x00000001002415b3 poll + 371
2   libnspr4.dylib                      0x000000010023ae34 pt_Continue + 596
3   libnspr4.dylib                      0x000000010023c2a4 pt_Recv + 276
4   libssl3.dylib                       0x0000000100035535 ssl_DefRecv + 37
5   libssl3.dylib                       0x00000001000308df ssl3_GatherCompleteHandshake + 127
6   libssl3.dylib                       0x000000010003201b ssl_GatherRecord1stHandshake + 43
7   libssl3.dylib                       0x00000001000383e5 ssl_Do1stHandshake + 21
8   libssl3.dylib                       0x00000001000398c7 ssl_SecureRecv + 167
9   libssl3.dylib                       0x000000010003dc82 ssl_Read + 98
10  selfserv                            0x0000000100001a33 jobLoop + 387
11  selfserv                            0x0000000100001319 thread_wrapper + 25
12  libnspr4.dylib                      0x000000010023f260 _pt_root + 160
13  libSystem.B.dylib                   0x00007fff836b8e8b _pthread_start + 316
14  libSystem.B.dylib                   0x00007fff836b8d4d thread_start + 13

Thread 3:
0   libSystem.B.dylib                   0x00007fff836d6582 select$DARWIN_EXTSN + 10
1   libnspr4.dylib                      0x00000001002415b3 poll + 371
2   libnspr4.dylib                      0x000000010023ae34 pt_Continue + 596
3   libnspr4.dylib                      0x000000010023c2a4 pt_Recv + 276
4   libssl3.dylib                       0x0000000100035535 ssl_DefRecv + 37
5   libssl3.dylib                       0x00000001000308df ssl3_GatherCompleteHandshake + 127
6   libssl3.dylib                       0x000000010003201b ssl_GatherRecord1stHandshake + 43
7   libssl3.dylib                       0x00000001000383e5 ssl_Do1stHandshake + 21
8   libssl3.dylib                       0x00000001000398c7 ssl_SecureRecv + 167
9   libssl3.dylib                       0x000000010003dc82 ssl_Read + 98
10  selfserv                            0x0000000100001a33 jobLoop + 387
11  selfserv                            0x0000000100001319 thread_wrapper + 25
12  libnspr4.dylib                      0x000000010023f260 _pt_root + 160
13  libSystem.B.dylib                   0x00007fff836b8e8b _pthread_start + 316
14  libSystem.B.dylib                   0x00007fff836b8d4d thread_start + 13

Thread 4:
0   libSystem.B.dylib                   0x00007fff836d6582 select$DARWIN_EXTSN + 10
1   libnspr4.dylib                      0x00000001002415b3 poll + 371
2   libnspr4.dylib                      0x000000010023ae34 pt_Continue + 596
3   libnspr4.dylib                      0x000000010023c2a4 pt_Recv + 276
4   libssl3.dylib                       0x0000000100035535 ssl_DefRecv + 37
5   libssl3.dylib                       0x00000001000308df ssl3_GatherCompleteHandshake + 127
6   libssl3.dylib                       0x000000010003201b ssl_GatherRecord1stHandshake + 43
7   libssl3.dylib                       0x00000001000383e5 ssl_Do1stHandshake + 21
8   libssl3.dylib                       0x00000001000398c7 ssl_SecureRecv + 167
9   libssl3.dylib                       0x000000010003dc82 ssl_Read + 98
10  selfserv                            0x0000000100001a33 jobLoop + 387
11  selfserv                            0x0000000100001319 thread_wrapper + 25
12  libnspr4.dylib                      0x000000010023f260 _pt_root + 160
13  libSystem.B.dylib                   0x00007fff836b8e8b _pthread_start + 316
14  libSystem.B.dylib                   0x00007fff836b8d4d thread_start + 13

Thread 5:
0   libSystem.B.dylib                   0x00007fff836d6582 select$DARWIN_EXTSN + 10
1   libnspr4.dylib                      0x00000001002415b3 poll + 371
2   libnspr4.dylib                      0x000000010023ae34 pt_Continue + 596
3   libnspr4.dylib                      0x000000010023c2a4 pt_Recv + 276
4   libssl3.dylib                       0x0000000100035535 ssl_DefRecv + 37
5   libssl3.dylib                       0x00000001000308df ssl3_GatherCompleteHandshake + 127
6   libssl3.dylib                       0x000000010003201b ssl_GatherRecord1stHandshake + 43
7   libssl3.dylib                       0x00000001000383e5 ssl_Do1stHandshake + 21
8   libssl3.dylib                       0x00000001000398c7 ssl_SecureRecv + 167
9   libssl3.dylib                       0x000000010003dc82 ssl_Read + 98
10  selfserv                            0x0000000100001a33 jobLoop + 387
11  selfserv                            0x0000000100001319 thread_wrapper + 25
12  libnspr4.dylib                      0x000000010023f260 _pt_root + 160
13  libSystem.B.dylib                   0x00007fff836b8e8b _pthread_start + 316
14  libSystem.B.dylib                   0x00007fff836b8d4d thread_start + 13

Thread 6:
0   libSystem.B.dylib                   0x00007fff83691dc2 __semwait_signal + 10
1   libnspr4.dylib                      0x000000010023a16c PR_WaitCondVar + 284
2   selfserv                            0x0000000100001ed7 jobLoop + 1575
3   selfserv                            0x0000000100001319 thread_wrapper + 25
4   libnspr4.dylib                      0x000000010023f260 _pt_root + 160
5   libSystem.B.dylib                   0x00007fff836b8e8b _pthread_start + 316
6   libSystem.B.dylib                   0x00007fff836b8d4d thread_start + 13

Thread 7:
0   libSystem.B.dylib                   0x00007fff83691dc2 __semwait_signal + 10
1   libnspr4.dylib                      0x000000010023a16c PR_WaitCondVar + 284
2   selfserv                            0x0000000100001ed7 jobLoop + 1575
3   selfserv                            0x0000000100001319 thread_wrapper + 25
4   libnspr4.dylib                      0x000000010023f260 _pt_root + 160
5   libSystem.B.dylib                   0x00007fff836b8e8b _pthread_start + 316
6   libSystem.B.dylib                   0x00007fff836b8d4d thread_start + 13

Thread 8:
0   libSystem.B.dylib                   0x00007fff83691dc2 __semwait_signal + 10
1   libnspr4.dylib                      0x000000010023a16c PR_WaitCondVar + 284
2   selfserv                            0x0000000100001ed7 jobLoop + 1575
3   selfserv                            0x0000000100001319 thread_wrapper + 25
4   libnspr4.dylib                      0x000000010023f260 _pt_root + 160
5   libSystem.B.dylib                   0x00007fff836b8e8b _pthread_start + 316
6   libSystem.B.dylib                   0x00007fff836b8d4d thread_start + 13

Full crash log is kept on machine (nssmac3) in file:
/Library/Logs/CrashReporter/selfserv_2009-06-25-173103_nssmac3.crash

This crash was seen only once and only on this machine.
(Reporter)

Updated

8 years ago
Duplicate of this bug: 503330
(Reporter)

Comment 2

8 years ago
Build:
standard boy MINGW32_NT-5.2 64bit DBG on 2010/01/06 18:48:24 (Tinderbox)

Failure found:

ssl.sh: SSL Stress Test  - server bypass/client bypass  - with ECC ===============================
ssl.sh: Stress SSL2 RC4 128 with MD5 ----
selfserv starting at Wed Jan  6 21:34:40 PST 2010
selfserv -D -p 8333 -d ../server -n BOY.red.iplanet.com -B -s \
         -e BOY.red.iplanet.com-ec -w nss   -i ../tests_pid.4068  &
trying to connect to selfserv at Wed Jan  6 21:34:40 PST 2010
tstclnt -p 8333 -h BOY.red.iplanet.com -B -s -q \
        -d ../client -v < /export/tinderlight/data/boy_64_DBG/mozilla/security/nss/tests/ssl/sslreq.dat
tstclnt.exe: connecting to BOY.red.iplanet.com:8333 (address=192.18.72.154)
kill -0 2240 >/dev/null 2>/dev/null
selfserv with PID 2240 found at Wed Jan  6 21:34:41 PST 2010
selfserv with PID 2240 started at Wed Jan  6 21:34:41 PST 2010
strsclnt -q -p 8333 -d ../client -B -s -w nss -c 1000 -C A \
          BOY.red.iplanet.com
strsclnt started at Wed Jan  6 21:34:41 PST 2010
strsclnt: SSL2 - 9 server certificates tested.
strsclnt: -- SSL: Server Certificate Validated.
strsclnt: PR_Send returned error -5938:
Encountered end of file.
strsclnt: -- SSL: Server Certificate Validated.
strsclnt: -- SSL: Server Certificate Validated.
strsclnt: PR_Send returned error -5938:
Encountered end of file.
strsclnt: PR_Send returned error -5938:
Encountered end of file.
strsclnt: -- SSL: Server Certificate Validated.
strsclnt: -- SSL: Server Certificate Validated.
strsclnt: -- SSL: Server Certificate Validated.
strsclnt: -- SSL: Server Certificate Validated.
strsclnt: PR_Send returned error -5938:
Encountered end of file.
strsclnt: PR_Send returned error -5938:
Encountered end of file.
strsclnt: PR_Send returned error -5938:
Encountered end of file.
strsclnt: PR_Send returned error -5938:
Encountered end of file.
strsclnt: -- SSL: Server Certificate Validated.
strsclnt: -- SSL: Server Certificate Validated.
strsclnt: PR_Send returned error -5938:
Encountered end of file.
strsclnt: PR_Send returned error -5938:
Encountered end of file.
strsclnt completed at Wed Jan  6 21:34:41 PST 2010
ssl.sh: #5184: Stress SSL2 RC4 128 with MD5 produced a returncode of 1, expected is 0.  - FAILED
trying to kill selfserv with PID 2240 at Wed Jan  6 21:34:42 PST 2010
kill 2240
./ssl.sh: line 207:  2240 Terminated              ${PROFTOOL} ${BINDIR}/selfserv -D -p ${PORT} -d ${P_R_SERVERDIR} -n ${HOSTADDR} ${SERVER_OPTIONS} ${ECC_OPTIONS} -w nss ${sparam} -i ${R_SERVERPID} $verbose
selfserv with PID 2240 killed at Wed Jan  6 21:34:42 PST 2010

Expected output should look like:

ssl.sh: Stress SSL3 RC4 128 with MD5 ----
selfserv starting at Wed Jan  6 21:34:43 PST 2010
selfserv -D -p 8333 -d ../server -n BOY.red.iplanet.com -B -s \
         -e BOY.red.iplanet.com-ec -w nss   -i ../tests_pid.4068  &
trying to connect to selfserv at Wed Jan  6 21:34:43 PST 2010
tstclnt -p 8333 -h BOY.red.iplanet.com -B -s -q \
        -d ../client -v < /export/tinderlight/data/boy_64_DBG/mozilla/security/nss/tests/ssl/sslreq.dat
tstclnt.exe: connecting to BOY.red.iplanet.com:8333 (address=192.18.72.154)
kill -0 4092 >/dev/null 2>/dev/null
selfserv with PID 4092 found at Wed Jan  6 21:34:43 PST 2010
selfserv with PID 4092 started at Wed Jan  6 21:34:43 PST 2010
strsclnt -q -p 8333 -d ../client -B -s -w nss -c 1000 -C c -T \
          BOY.red.iplanet.com
strsclnt started at Wed Jan  6 21:34:43 PST 2010
strsclnt: 999 cache hits; 1 cache misses, 0 cache not reusable
          0 stateless resumes
strsclnt: -- SSL: Server Certificate Validated.
strsclnt: 0 cache hits; 1 cache misses, 0 cache not reusable
          0 stateless resumes
strsclnt completed at Wed Jan  6 21:34:48 PST 2010
ssl.sh: #5185: Stress SSL3 RC4 128 with MD5 produced a returncode of 0, expected is 0.  - PASSED
trying to kill selfserv with PID 4092 at Wed Jan  6 21:34:48 PST 2010
kill 4092
./ssl.sh: line 207:  4092 Terminated              ${PROFTOOL} ${BINDIR}/selfserv -D -p ${PORT} -d ${P_R_SERVERDIR} -n ${HOSTADDR} ${SERVER_OPTIONS} ${ECC_OPTIONS} -w nss ${sparam} -i ${R_SERVERPID} $verbose
selfserv with PID 4092 killed at Wed Jan  6 21:34:48 PST 2010

Together for this build there were 26 failures with very similar output. Failure was not detected, but reported errors were very similar.
OS: Mac OS X → All
Hardware: x86_64 → All
(Reporter)

Updated

8 years ago
Summary: Selfserv crashed during stress test. → Selfserv failed/crashed during stress test.
Assignee: nelson → nobody
Target Milestone: 3.12.4 → ---
You need to log in before you can comment on or make changes to this bug.