[Bug 234775] PTHREAD_STACK_MIN is too small on amd64
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 06 May 2026 16:58:03 UTC
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.