Date: Sat, 13 Feb 2021 16:44:49 +0000 From: bugzilla-noreply@freebsd.org To: emulation@FreeBSD.org Subject: [Bug 253337] Linuxulator: glibc's pthread_getattr_np reports stack size as 124K Message-ID: <bug-253337-4077-EHTf9Vfl2c@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-253337-4077@https.bugs.freebsd.org/bugzilla/> References: <bug-253337-4077@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D253337 --- Comment #5 from Conrad Meyer <cem@freebsd.org> --- Ok, here's what's going on: Our rlimit value (cur) is fine; same as glibc (8MB). Glibc is parsing /proc/self/maps to limit the pthread "stack size" based on adjacent mappings, *which it assumes cannot be part of the stack*. In Free= BSD, we actually have explicit no-access mapping for the region the stack can gr= ow into (rlim_max): 00007fffdffff000-00007ffffffdf000 ---p 00000000 00:00 0 00007ffffffdf000-00007ffffffff000 rw-p 00000000 00:00 0 [stack] I.e., that earlier mapping also corresponds to the stack. Linux doesn't do this, or doesn't report it in /proc/self/maps. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-253337-4077-EHTf9Vfl2c>