Date: Wed, 06 May 2026 16:58:03 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 234775] PTHREAD_STACK_MIN is too small on amd64 Message-ID: <bug-234775-227-uV2OK1Nf4h@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-234775-227@https.bugs.freebsd.org/bugzilla/>
index | next in thread | previous in thread | raw e-mail
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=234775 Eugene Grosbein <eugen@freebsd.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |eugen@freebsd.org --- Comment #8 from Eugene Grosbein <eugen@freebsd.org> --- Recently I upgraded one of my small amd64 virtual machines running with 1GB RAM only from 13.5-STABLE to 14.4-STABLE, after that net/3proxy does not start anymore crashing with SIGSERV on its first call to syslog(3) system function due to this problem. Its code calls pthread_attr_setstacksize(&pa,PTHREAD_STACK_MIN + (32768 + srv.stacksize)) in two places and problem may be fixed with a patch like following eliminating the call: --- src/proxymain.c.orig 2025-03-09 21:51:43 UTC +++ src/proxymain.c @@ -700,7 +700,9 @@ int MODULEMAINFUNC (int argc, char** argv){ #ifndef _WIN32 pthread_attr_init(&pa); +#ifndef __FreeBSD__ pthread_attr_setstacksize(&pa,PTHREAD_STACK_MIN + (32768 + srv.stacksize)); +#endif pthread_attr_setdetachstate(&pa,PTHREAD_CREATE_DETACHED); #endif -- You are receiving this mail because: You are the assignee for the bug.home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-234775-227-uV2OK1Nf4h>
