Buy commercial curl support. We
help you work out your issues, debug your libcurl applications, use the API,
port to new platforms, add new features and more. With a team lead by the
curl founder Daniel himself.
8.14.1: Test 1542 racy?
- Contemporary messages sorted: [ by date ] [ by thread ] [ by subject ] [ by author ] [ by messages with attachments ]
From: Christian Weisgerber via curl-library <curl-library_at_lists.haxx.se>
Date: Sat, 7 Jun 2025 22:20:00 +0200
On OpenBSD, when I run 8.14.1's test 1542 on its own, it succeeds:
---------------------------->
srcdir=. /usr/bin/perl -I. ./runtests.pl 1542
Using curl: ../src/curl
********* System characteristics ********
* curl 8.14.1 (x86_64-unknown-openbsd7.7)
* libcurl/8.14.1 LibreSSL/4.1.0 zlib/1.3.1.1-motley nghttp2/1.65.0 ngtcp2/1.13.0 nghttp3/1.10.1
* Protocols: dict file ftp ftps gopher gophers http https imap imaps ipfs ipns mqtt pop3 pop3s rtsp smb smbs smtp smtps telnet tftp ws wss
* Features: alt-svc AsynchDNS HSTS HTTP2 HTTP3 HTTPS-proxy IPv6 Largefile libz NTLM SSL threadsafe UnixSockets
* Disabled: xattr, win32-ca-searchpath, win32-ca-search-safe, override-dns
* Host: ariolc.mips.inka.de
* System: OpenBSD ariolc.mips.inka.de 7.7 GENERIC.MP#0 amd64
* OS: openbsd
* Perl: v5.40.1 (/usr/bin/perl)
* diff: available
* Args: 1542
* Env:
* Seed: 205968
* buildinfo.configure.tool: configure
* buildinfo.configure.args: '--disable-ldap' '--with-openssl' '--with-ca-bundle=/etc/ssl/cert.pem' '--without-brotli' '--without-libgsasl' '--without-libidn2' '--without-libpsl' '--without-libssh' '--without-libssh2' '--with-ngtcp2' '--without-zstd' '--with-zsh-functions-dir' '--with-fish-functions-dir' '--prefix=/usr/local' '--sysconfdir=/etc' '--mandir=/usr/local/man' '--infodir=/usr/local/info' '--localstatedir=/var' '--disable-silent-rules' '--disable-gtk-doc' 'CC=cc' 'CFLAGS=-O2 -pipe -g'
* buildinfo.host: x86_64-unknown-openbsd7.7
* buildinfo.host.cpu: x86_64
* buildinfo.host.os: openbsd7.7
* buildinfo.target: x86_64-unknown-openbsd7.7
* buildinfo.target.cpu: x86_64
* buildinfo.target.os: openbsd7.7
* buildinfo.target.flags: UNIX BSD UNIX BSD
* buildinfo.compiler: CLANG
* buildinfo.compiler.version: 19.1
* buildinfo.sysroot:
* Servers: HTTP-IPv6 HTTP-unix FTP-IPv6
*****************************************
test 1542...[connection reuse with CURLOPT_MAXLIFETIME_CONN]
--p---oe--- OK (1 out of 1 , remaining: 00:00, took 3.066s, duration: 00:03)
TESTDONE: 1 tests were considered during 3 seconds.
TESTDONE: 1 tests out of 1 reported OK: 100%
<----------------------------
But when I run all tests, it keeps failing:
---------------------------->
test 1542...[connection reuse with CURLOPT_MAXLIFETIME_CONN]
1542: output (log/stderr1542) FAILED:
--- log/check-expected Sat Jun 7 21:51:39 2025
+++ log/check-generated Sat Jun 7 21:51:39 2025
_at__at_ -1,5 +1,4 _at__at_
== Info: Connection #0 to host 127.0.0.1 left intact[CR][LF]
== Info: Connection #0 to host 127.0.0.1 left intact[CR][LF]
== Info: Connection #0 to host 127.0.0.1 left intact[CR][LF]
-== Info: shutting down connection #0[CR][LF]
-== Info: Connection #1 to host 127.0.0.1 left intact[CR][LF]
+== Info: Connection #0 to host 127.0.0.1 left intact[CR][LF]
- abort tests
<----------------------------
Seems like some kind of race condition?
Date: Sat, 7 Jun 2025 22:20:00 +0200
On OpenBSD, when I run 8.14.1's test 1542 on its own, it succeeds:
---------------------------->
srcdir=. /usr/bin/perl -I. ./runtests.pl 1542
Using curl: ../src/curl
********* System characteristics ********
* curl 8.14.1 (x86_64-unknown-openbsd7.7)
* libcurl/8.14.1 LibreSSL/4.1.0 zlib/1.3.1.1-motley nghttp2/1.65.0 ngtcp2/1.13.0 nghttp3/1.10.1
* Protocols: dict file ftp ftps gopher gophers http https imap imaps ipfs ipns mqtt pop3 pop3s rtsp smb smbs smtp smtps telnet tftp ws wss
* Features: alt-svc AsynchDNS HSTS HTTP2 HTTP3 HTTPS-proxy IPv6 Largefile libz NTLM SSL threadsafe UnixSockets
* Disabled: xattr, win32-ca-searchpath, win32-ca-search-safe, override-dns
* Host: ariolc.mips.inka.de
* System: OpenBSD ariolc.mips.inka.de 7.7 GENERIC.MP#0 amd64
* OS: openbsd
* Perl: v5.40.1 (/usr/bin/perl)
* diff: available
* Args: 1542
* Env:
* Seed: 205968
* buildinfo.configure.tool: configure
* buildinfo.configure.args: '--disable-ldap' '--with-openssl' '--with-ca-bundle=/etc/ssl/cert.pem' '--without-brotli' '--without-libgsasl' '--without-libidn2' '--without-libpsl' '--without-libssh' '--without-libssh2' '--with-ngtcp2' '--without-zstd' '--with-zsh-functions-dir' '--with-fish-functions-dir' '--prefix=/usr/local' '--sysconfdir=/etc' '--mandir=/usr/local/man' '--infodir=/usr/local/info' '--localstatedir=/var' '--disable-silent-rules' '--disable-gtk-doc' 'CC=cc' 'CFLAGS=-O2 -pipe -g'
* buildinfo.host: x86_64-unknown-openbsd7.7
* buildinfo.host.cpu: x86_64
* buildinfo.host.os: openbsd7.7
* buildinfo.target: x86_64-unknown-openbsd7.7
* buildinfo.target.cpu: x86_64
* buildinfo.target.os: openbsd7.7
* buildinfo.target.flags: UNIX BSD UNIX BSD
* buildinfo.compiler: CLANG
* buildinfo.compiler.version: 19.1
* buildinfo.sysroot:
* Servers: HTTP-IPv6 HTTP-unix FTP-IPv6
*****************************************
test 1542...[connection reuse with CURLOPT_MAXLIFETIME_CONN]
--p---oe--- OK (1 out of 1 , remaining: 00:00, took 3.066s, duration: 00:03)
TESTDONE: 1 tests were considered during 3 seconds.
TESTDONE: 1 tests out of 1 reported OK: 100%
<----------------------------
But when I run all tests, it keeps failing:
---------------------------->
test 1542...[connection reuse with CURLOPT_MAXLIFETIME_CONN]
1542: output (log/stderr1542) FAILED:
--- log/check-expected Sat Jun 7 21:51:39 2025
+++ log/check-generated Sat Jun 7 21:51:39 2025
_at__at_ -1,5 +1,4 _at__at_
== Info: Connection #0 to host 127.0.0.1 left intact[CR][LF]
== Info: Connection #0 to host 127.0.0.1 left intact[CR][LF]
== Info: Connection #0 to host 127.0.0.1 left intact[CR][LF]
-== Info: shutting down connection #0[CR][LF]
-== Info: Connection #1 to host 127.0.0.1 left intact[CR][LF]
+== Info: Connection #0 to host 127.0.0.1 left intact[CR][LF]
- abort tests
<----------------------------
Seems like some kind of race condition?
-- Christian "naddy" Weisgerber naddy_at_mips.inka.de -- Unsubscribe: https://lists.haxx.se/mailman/listinfo/curl-library Etiquette: https://curl.se/mail/etiquette.htmlReceived on 2025-06-07