[Bug 253337] Linuxulator: glibc's pthread_getattr_np reports stack size as 124K
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Mon Feb 8 08:31:58 UTC 2021
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=253337
--- Comment #4 from Alex S <iwtcex at gmail.com> ---
Here's how this looks on Ubuntu:
xubuntu at xubuntu:~$ uname -a
Linux xubuntu 5.4.0-42-generic #46-Ubuntu SMP Fri Jul 10 00:24:02 UTC 2020
x86_64 x86_64 x86_64 GNU/Linux
xubuntu at xubuntu:~$ gcc apparent_stack_size.c -pthread -o test
xubuntu at xubuntu:~$ ./test
7feaba441000-7feaba442000 rw-p 00000000 00:00 0
7ffca0aef000-7ffca0b10000 rw-p 00000000 00:00 0
[stack]
7ffca0b6b000-7ffca0b6e000 r--p 00000000 00:00 0 [vvar]
7ffca0b6e000-7ffca0b6f000 r-xp 00000000 00:00 0 [vdso]
ffffffffff600000-ffffffffff601000 --xp 00000000 00:00 0
[vsyscall]
stack size = 8384512
xubuntu at xubuntu:~$ ulimit -s 3000
xubuntu at xubuntu:~$ ./test
7f07aa268000-7f07aa269000 rw-p 00000000 00:00 0
7ffc606ee000-7ffc6070f000 rw-p 00000000 00:00 0
[stack]
7ffc60765000-7ffc60768000 r--p 00000000 00:00 0 [vvar]
7ffc60768000-7ffc60769000 r-xp 00000000 00:00 0 [vdso]
ffffffffff600000-ffffffffff601000 --xp 00000000 00:00 0
[vsyscall]
stack size = 3063808
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list