public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Kamil Dudka <kdudka@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/curl] curl-v8.21.0-9: test3026: avoid pthread_create() failure due to resource exhaustion on i386
Date: Mon, 02 Nov 2026 14:31:37 GMT	[thread overview]
Message-ID: <179362989792.1.54932439030909151.rpms-curl-f052e58217c1@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/curl
Branch : curl-v8.21.0-9
Commit : f052e58217c1c715344ec5f7e2ab1187fe2c0ec7
Author : Kamil Dudka <kdudka@redhat.com>
Date   : 2022-06-28T09:04:19+02:00
Stats  : +21/-0 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/curl/c/f052e58217c1c715344ec5f7e2ab1187fe2c0ec7?branch=curl-v8.21.0-9

Log:
test3026: avoid pthread_create() failure due to resource exhaustion on i386

---
diff --git a/0102-curl-7.84.0-test3026.patch b/0102-curl-7.84.0-test3026.patch
index d92ed07..e00ef94 100644
--- a/0102-curl-7.84.0-test3026.patch
+++ b/0102-curl-7.84.0-test3026.patch
@@ -53,3 +53,18 @@ index fb80cc8..01f2ba5 100644
 -- 
 2.35.3
 
+diff --git a/tests/libtest/lib3026.c b/tests/libtest/lib3026.c
+index 43fe335..70cd7a4 100644
+--- a/tests/libtest/lib3026.c
++++ b/tests/libtest/lib3026.c
+@@ -63,8 +63,8 @@ int test(char *URL)
+   for(i = 0; i < tid_count; i++) {
+     int res = pthread_create(&tids[i], NULL, run_thread, &results[i]);
+     if(res) {
+-      fprintf(stderr, "%s:%d Couldn't create thread, errno %d\n",
+-              __FILE__, __LINE__, res);
++      fprintf(stderr, "%s:%d Couldn't create thread, i=%u, errno %d\n",
++              __FILE__, __LINE__, i, res);
+       tid_count = i;
+       test_failure = -1;
+       goto cleanup;

diff --git a/curl.spec b/curl.spec
index f3a2169..b2fd81e 100644
--- a/curl.spec
+++ b/curl.spec
@@ -227,6 +227,12 @@ printf "702\n703\n716\n" >> tests/data/DISABLED
 printf "3000\n3001\n" >> tests/data/DISABLED
 %endif
 
+# test3026: avoid pthread_create() failure due to resource exhaustion on i386
+%ifarch %{ix86}
+sed -e 's|NUM_THREADS 1000$|NUM_THREADS 256|' \
+    -i tests/libtest/lib3026.c
+%endif
+
 # adapt test 323 for updated OpenSSL
 sed -e 's|^35$|35,52|' -i tests/data/test323
 

                 reply	other threads:[~2026-11-02 14:31 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179362989792.1.54932439030909151.rpms-curl-f052e58217c1@fedoraproject.org \
    --to=kdudka@redhat.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox