Re: libpthread problem when using custom stack

2020-09-21 Thread Joerg Sonnenberger
On Tue, Sep 22, 2020 at 12:34:12AM +0200, Thomas Klausner wrote: > According to the NetBSD man page for pthread_attr_setguardsize(), the > effect of this function is ignored when pthread_attr_setstack() is > used. This does not seem to be the case here. That's not exactly what happens. libpthread

libpthread problem when using custom stack

2020-09-21 Thread Thomas Klausner
Hi! devel/p5-Coro is a perl module providing threading support. The current version 6.57 had lots of segfaults on NetBSD. I investigated with help of the author Marc Lehmann. We found that setting up the stack (i.e. the mmap()s) worked fine, but then actually using the stack lead to random