Daniel Stenberg <dan...@haxx.se> wrote on 2022-09-29 at 10:41:48:

> On Thu, 29 Sep 2022, Fabian Keil via curl-library wrote:
> 
> > So it seems to me that the telnet server isn't at fault here.
> 
> It's really hard to see or guess where the error is by just these 
> observations. I would presume you need to dig deeper to find out. You can run 
> the single test with gdb like this: './runtests.pl -g 1452'

Without valgrind, though.

Using gdb I get a different error:

fk@t520 ~/git/curl/tests $./runtests.pl -g 1452
[...]
Reading symbols from ../src/curl...
Argument list to give program being debugged when it is started is "--include 
--trace-ascii log/trace1452 --trace-time telnet://127.0.0.1:32151 --upload-file 
- <log/stdin-for-1452".
(gdb) r
Starting program: /home/fk/git/curl/src/curl --include --trace-ascii 
log/trace1452 --trace-time telnet://127.0.0.1:32151 --upload-file - 
<log/stdin-for-1452
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100    29    0    20    0     9  18231   8204 --:--:-- --:--:-- --:--:-- 29000
test1452[Inferior 1 (process 26707) exited normally]
(gdb) 
quit

 1452: stdout FAILED:
--- log/check-expected  2022-09-29 11:47:11.956329000 +0200
+++ log/check-generated 2022-09-29 11:47:11.956121000 +0200
@@ -1 +0,0 @@
-test1452

 - abort tests
TESTDONE: 1 tests were considered during 6 seconds.
TESTDONE: 0 tests out of 1 reported OK: 0%

TESTFAIL: These test cases failed: 1452

> Another data point is that our CI jobs run on two versions of FreeBSD (12.3 
> and 13.1) and they run test 1452 successfully.

My impression after looking at .cirrus.yml is that they
don't use valgrind, though. Unfortunately cirrus-ci.com
doesn't seem to properly render on my system so I could
not confirm this.

Without valgrind the test seems to be reliable on ElectroBSD as well.

Would it be possible to (temporarily) push the attached patch
to enable valgrind?

If not I could also try to setup a FreeBSD system myself in
the next days.

Fabian
From 23b900dbfd243b5c5153fe3dbc18ceb6769ee7dc Mon Sep 17 00:00:00 2001
From: Fabian Keil <f...@fabiankeil.de>
Date: Thu, 29 Sep 2022 11:33:15 +0200
Subject: [PATCH] .cirrus.yml: install valgrind-devel on FreeBSD

---
 .cirrus.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.cirrus.yml b/.cirrus.yml
index 62e8cdae0..a427692be 100644
--- a/.cirrus.yml
+++ b/.cirrus.yml
@@ -42,7 +42,7 @@ freebsd_task:
 
   pkginstall_script:
     - pkg update -f
-    - pkg install -y autoconf automake libtool pkgconf brotli openldap24-client heimdal libpsl libssh2 openssh-portable libidn2 librtmp libnghttp2 nghttp2 stunnel
+    - pkg install -y autoconf automake libtool pkgconf brotli openldap24-client heimdal libpsl libssh2 openssh-portable libidn2 librtmp libnghttp2 nghttp2 stunnel valgrind-devel
     - pkg delete -y curl
     - python -m ensurepip --default-pip
     - python -m pip install --upgrade pip
-- 
2.37.1

Attachment: pgpo0QupcqOG0.pgp
Description: OpenPGP digital signature

-- 
Unsubscribe: https://lists.haxx.se/listinfo/curl-library
Etiquette:   https://curl.se/mail/etiquette.html

Reply via email to