Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 25 Jul 2020 15:30:48 +0000
From:      bugzilla-noreply@freebsd.org
To:        emulation@FreeBSD.org
Subject:   [Bug 248225] Linuxulator: pthread_join crash
Message-ID:  <bug-248225-4077-fLvqP4k1zX@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-248225-4077@https.bugs.freebsd.org/bugzilla/>
References:  <bug-248225-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=248225

--- Comment #1 from Alex S <iwtcex@gmail.com> ---
Turns out pthread_join in glibc calls this bit of code [1]:

  if (__builtin_expect (stack_cache_actsize > stack_cache_maxsize, 0))
    __free_stacks (stack_cache_maxsize);

Consequently, `limit stacksize 8192` (the default value on Linux) gets rid of
crash.

[1]
https://sourceware.org/git/?p=glibc.git;a=blob;f=nptl/allocatestack.c;h=4ae4b5a9862f35f7f42ceb775094c85320203cce;hb=7ebd114211dcd290efd54e610bbde0765bd7764c#l312

-- 
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-248225-4077-fLvqP4k1zX>