cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-tracker mailing list Archives

[ curl-Bugs-1705802 ] nss libs failing self tests

From: SourceForge.net <noreply_at_sourceforge.net>
Date: Mon, 23 Apr 2007 14:49:31 -0700

Bugs item #1705802, was opened at 2007-04-23 21:40
Message generated for change (Comment added) made by grooverdan
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=1705802&group_id=976

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: libcurl
Group: wrong behaviour
Status: Open
Resolution: None
Priority: 4
Private: No
Submitted By: Daniel Black (grooverdan)
Assigned to: Daniel Stenberg (bagder)
Summary: nss libs failing self tests

Initial Comment:
(cvs date - Mon Apr 23 10:54:39 UTC 2007)
********* System characteristics ********
* curl 7.16.3-CVS (x86_64-unknown-linux-gnu)
* libcurl/7.16.3-CVS NSS/3.11.5 zlib/1.2.3 libidn/0.6.5
* Features: IDN IPv6 Largefile SSL libz
* Host: passivegrunt
* System: Linux passivegrunt 2.6.19-gentoo-r5 #6 SMP Thu Apr 19 18:34:54 EST 2007 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 4200+ AuthenticAMD GNU/Linux

/usr/bin/nss-config --version
3.11.5

./configure --without-ssl --with-nss

....
make check
..(all OK so far)....
test 304...OK (294 out of 353, remaining: 00:30)
test 305...OK (295 out of 353, remaining: 00:29)
test 306...OK (296 out of 353, remaining: 00:40)
RUN: FTPS server failed verification
RUN: FTPS server failed verification
test 402...OK (301 out of 353, remaining: 01:01)
RUN: FTPS server failed verification
RUN: FTPS server failed verification
(tests just seem to be timing out and failing)
test 405...ftpserver.pl received SIGINT, exiting
ftpserver.pl received SIGINT, exiting
Somebody sent me a SIGINT at ./ftpserver.pl line 118.
Somebody sent me a SIGINT at ./ftpserver.pl line 118.
 exit FAILED
test 500...stunnel exited with 3!
FAILED
test 501...OK (306 out of 353, remaining: 02:03)
test 502...OK (307 out of 353, remaining: 02:00)
test 503...FAILED
test 504...OK (309 out of 353, remaining: 01:54)
test 505...FAILED
test 506...FAILED
test 507... exit FAILED
test 508...FAILED
test 510...FAILED
....

$ ./runtests.pl -v 400
********* System characteristics ********
* curl 7.16.3-CVS (x86_64-unknown-linux-gnu)
* libcurl/7.16.3-CVS NSS/3.11.5 zlib/1.2.3 libidn/0.6.5
* Features: IDN IPv6 Largefile SSL libz
* Host: passivegrunt
* System: Linux passivegrunt 2.6.19-gentoo-r5 #6 SMP Thu Apr 19 18:34:54 EST 2007 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 4200+ AuthenticAMD GNU/Linux
* Server SSL: ON
* libcurl SSL: ON
* libcurl debug: OFF
* valgrind: OFF
* HTTP IPv6 ON
* FTP IPv6 ON
* HTTP port: 8990
* FTP port: 8992
* FTP port 2: 8995
* FTPS port: 8993
* HTTPS port: 8991
* HTTP IPv6 port: 8994
* FTP IPv6 port: 8996
* TFTP port: 8997
* SCP/SFTP port: 8999
* SSL library: NSS
* Libtool lib: ON
*****************************************
startnew: perl -I. ./ftpserver.pl --pidfile .ftp.pid -s "." --port 8992
RUN: ../src/curl -m13 --silent -vg "ftp://127.0.0.1:8992/verifiedserver" 2>log/verifyftp
RUN: Verifying our test FTP server took 0 seconds
RUN: FTP server is now running PID 23186
* pid ftp => 23186 23186
startnew: perl -I. ./httpsserver.pl -p ftps -s "/usr/sbin/stunnel" -d . -r 8992 8993
RUN: ../src/curl -m13 --silent -vg -k --ftp-ssl-control "ftps://127.0.0.1:8993/verifiedserver" 2>log/verifyftp
RUN: Verifying our test FTP server took 14 seconds
RUN: ../src/curl -m13 --silent -vg -k --ftp-ssl-control "ftps://127.0.0.1:8993/verifiedserver" 2>log/verifyftp
RUN: Verifying our test FTP server took 13 seconds
RUN: ../src/curl -m13 --silent -vg -k --ftp-ssl-control "ftps://127.0.0.1:8993/verifiedserver" 2>log/verifyftp
RUN: Verifying our test FTP server took 13 seconds
RUN: ../src/curl -m13 --silent -vg -k --ftp-ssl-control "ftps://127.0.0.1:8993/verifiedserver" 2>log/verifyftp
RUN: Verifying our test FTP server took 13 seconds
RUN: ../src/curl -m13 --silent -vg -k --ftp-ssl-control "ftps://127.0.0.1:8993/verifiedserver" 2>log/verifyftp
RUN: Verifying our test FTP server took 13 seconds
RUN: FTPS server failed verification
RUN: Test server pid 23204 signalled to die
RUN: Test server pid 23209 signalled to die
test 400 SKIPPED: failed starting FTPS server (stunnel)
* kill pid for ftp => 23186
RUN: Test server pid 23186 signalled to die
TESTFAIL: No tests were performed
TESTDONE: 1 tests were considered during 76 seconds.
TESTINFO: 1 tests were skipped due to these restraints:
TESTINFO: "failed starting FTPS server (stunnel)" 1 times (400)

 $ more log/*
::::::::::::::
log/curl.log
::::::::::::::
::::::::::::::
log/curlvererr.log
::::::::::::::
::::::::::::::
log/curlverout.log
::::::::::::::
curl 7.16.3-CVS (x86_64-unknown-linux-gnu) libcurl/7.16.3-CVS NSS/3.11.5 zlib/1.2.3 libidn/0.6.5
Protocols: tftp ftp telnet dict ldap http file https ftps
Features: IDN IPv6 Largefile SSL libz
::::::::::::::
log/ftpd.log
::::::::::::::
20:56:20 FTP server listens on port IPv4/8992
20:56:20 logged pid 21030 in .ftp.pid
20:56:20 Awaiting input
20:56:21 ====> Client connect
20:56:21 > "220- _ _ ____ _ "
20:56:21 > "220- ___| | | | _ \| | "
20:56:21 > "220- / __| | | | |_) | | "
20:56:21 > "220- | (__| |_| | _ <| |___ "
20:56:21 > "220 \___|\___/|_| \_\_____|"
20:56:21 < "USER anonymous"
20:56:21 > "331 We are happy you popped in!"
20:56:21 < "PASS ftp_at_example.com"
20:56:21 > "230 Welcome you silly person"
20:56:21 < "PWD"
20:56:21 > "257 "/nowhere/anywhere" is current directory"
20:56:21 < "EPSV"
20:56:21 Run sockfilt for data on pid 21047
20:56:21 > "229 Entering Passive Mode (|||41414|)"
20:56:21 ====> Client DATA connect
20:56:21 data connection setup on port 41414
20:56:21 < "TYPE I"
20:56:21 > "200 I modify TYPE as you wanted"
20:56:21 < "SIZE verifiedserver"
20:56:21 > "213 17"
20:56:21 < "RETR verifiedserver"
20:56:21 > "150 Binary junk (17 bytes)."
20:56:21 * disconnect data connection
20:56:21 =====> Closed data connection
20:56:21 * quit sockfilt for data (pid 21047)
20:56:21 > "226 File transfer complete"
20:56:21 < "QUIT"
20:56:21 > "221 bye bye baby"
20:56:21 sockfilt said DISC
20:56:21 ====> Client disconnected
20:56:21 Awaiting input
::::::::::::::
log/server.input
::::::::::::::
USER anonymous
PASS ftp_at_example.com
PWD
EPSV
TYPE I
SIZE verifiedserver
RETR verifiedserver
QUIT
::::::::::::::
log/sockctrl.log
::::::::::::::
20:56:20.235131 Running IPv4 version
20:56:20.235887 Listening on port 8992
20:56:20.236499 Wrote pid 21031 to .sockfilt.pid
20:56:20.236881 Received PING (on stdin)
20:56:21.278478 ====> Client connect
20:56:21.279605 Received DATA (on stdin)
20:56:21.280402 > 32 bytes data, server => client
20:56:21.281171 '220- _ _ ____ _ \r\n'
20:56:21.282150 Received DATA (on stdin)
20:56:21.284962 > 32 bytes data, server => client
20:56:21.285679 '220- ___| | | | _ \| | \r\n'
20:56:21.286110 Received DATA (on stdin)
20:56:21.286479 > 32 bytes data, server => client
20:56:21.286794 '220- / __| | | | |_) | | \r\n'
20:56:21.287227 Received DATA (on stdin)
20:56:21.287609 > 32 bytes data, server => client
20:56:21.287928 '220- | (__| |_| | _ <| |___ \r\n'
20:56:21.288334 Received DATA (on stdin)
20:56:21.288750 > 32 bytes data, server => client
20:56:21.289091 '220 \___|\___/|_| \_\_____|\r\n'
20:56:21.290863 < 16 bytes data, client => server
20:56:21.291755 'USER anonymous\r\n'
20:56:21.292725 Received DATA (on stdin)
20:56:21.297195 > 33 bytes data, server => client
20:56:21.297536 '331 We are happy you popped in!\r\n'
20:56:21.298717 < 22 bytes data, client => server
20:56:21.299066 'PASS ftp_at_example.com\r\n'
20:56:21.300290 Received DATA (on stdin)
20:56:21.300732 > 30 bytes data, server => client
20:56:21.301072 '230 Welcome you silly person\r\n'
20:56:21.302400 < 5 bytes data, client => server
20:56:21.302750 'PWD\r\n'
20:56:21.303935 Received DATA (on stdin)
20:56:21.304397 > 46 bytes data, server => client
20:56:21.304744 '257 "/nowhere/anywhere" is current directory\r\n'
20:56:21.306292 < 6 bytes data, client => server
20:56:21.307071 'EPSV\r\n'
20:56:21.315251 Received DATA (on stdin)
20:56:21.316222 > 38 bytes data, server => client
20:56:21.316828 '229 Entering Passive Mode (|||41414|)\n'
20:56:21.320492 < 8 bytes data, client => server
20:56:21.321342 'TYPE I\r\n'
20:56:21.322327 Received DATA (on stdin)
20:56:21.325141 > 33 bytes data, server => client
20:56:21.325515 '200 I modify TYPE as you wanted\r\n'
20:56:21.326528 < 21 bytes data, client => server
20:56:21.327297 'SIZE verifiedserver\r\n'
20:56:21.328277 Received DATA (on stdin)
20:56:21.329093 > 8 bytes data, server => client
20:56:21.329463 '213 17\r\n'
20:56:21.330471 < 21 bytes data, client => server
20:56:21.333141 'RETR verifiedserver\r\n'
20:56:21.334093 Received DATA (on stdin)
20:56:21.334999 > 29 bytes data, server => client
20:56:21.335770 '150 Binary junk (17 bytes).\r\n'
20:56:21.343515 Received DATA (on stdin)
20:56:21.343969 > 28 bytes data, server => client
20:56:21.344318 '226 File transfer complete\r\n'
20:56:21.381445 < 6 bytes data, client => server
20:56:21.381845 'QUIT\r\n'
20:56:21.383088 Received DATA (on stdin)
20:56:21.383540 > 18 bytes data, server => client
20:56:21.383888 '221 bye bye baby\r\n'
20:56:21.385286 ====> Client disconnect
::::::::::::::
log/sockdata.log
::::::::::::::
20:56:21.311890 Running IPv4 version
20:56:21.312644 Listening on port 41414
20:56:21.313261 Wrote pid 21047 to .sockdata.pid
20:56:21.313648 Received PING (on stdin)
20:56:21.314585 Received PORT (on stdin)
20:56:21.318629 ====> Client connect
20:56:21.340004 Received DATA (on stdin)
20:56:21.340378 > 17 bytes data, server => client
20:56:21.340696 'WE ROOLZ: 21030\r\n'
20:56:21.341139 Received DISC (on stdin)
20:56:21.342220 ====> Client forcibly disconnected
20:56:21.342638 Received QUIT (on stdin)
20:56:21.342967 quits
::::::::::::::
log/verifyftp
::::::::::::::
* About to connect() to 127.0.0.1 port 8993 (#0)
* Trying 127.0.0.1... connected
* Connected to 127.0.0.1 (127.0.0.1) port 8993 (#0)
* Closing connection #0
* a timeout was reached

works fine on ./configure --without-ssl --with-gnutls

Could it be a missing ca cert bundle?
log/verifyftp (from gnutls test 400)
::::::::::::::
* About to connect() to 127.0.0.1 port 8993 (#0)
* Trying 127.0.0.1... connected
* Connected to 127.0.0.1 (127.0.0.1) port 8993 (#0)
* error reading ca cert file /usr/local/share/curl/curl-ca-bundle.crt (Error while reading file.)
*
...

let me know if you can't reproduce and i'll put more info.

----------------------------------------------------------------------

>Comment By: Daniel Black (grooverdan)
Date: 2007-04-24 07:49

Message:
Logged In: YES
user_id=612034
Originator: YES

500s work ok. Guess it was a remanent of SIGINTing the series of tests at
the 405 mark

----------------------------------------------------------------------

Comment By: Daniel Stenberg (bagder)
Date: 2007-04-24 07:02

Message:
Logged In: YES
user_id=1110
Originator: NO

I can reproduce the 400 one but the 500 series ones work for me with this
setup:

********* System characteristics ********
* curl 7.16.3-CVS (x86_64-unknown-linux-gnu)
* libcurl/7.16.3-CVS NSS/3.11.5 zlib/1.2.3 libidn/0.6.5
* Features: Debug IDN IPv6 Largefile SSL libz

test 500...[simple libcurl HTTP GET tool]
-d-p-emv OK (1 out of 3 , remaining: 00:04)
test 503...[simple multi http:// through proxytunnel with authentication
info]
-d-p-emv OK (2 out of 3 , remaining: 00:02)
test 505...[FTP upload with rename after transfer]
--up-emv OK (3 out of 3 , remaining: 00:00)
TESTDONE: 3 tests out of 3 reported OK: 100%
TESTDONE: 3 tests were considered during 9 seconds.

NSS is not widely used so I don't consider this problem extremely
important.

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=1705802&group_id=976
Received on 2007-04-23

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET