[prev in list] [next in list] [prev in thread] [next in thread] 

List:       dragonfly-bugs
Subject:    [DragonFlyBSD - Bug #3234] (Resolved) pthread - Respect RLIMIT_STACK for main thread
From:       bugtracker-admin () leaf ! dragonflybsd ! org
Date:       2020-08-18 8:20:10
Message-ID: redmine.journal-13918.20200818082009.5c77ad8473cc2276 () leaf ! dragonflybsd ! org
[Download RAW message or body]

Issue #3234 has been updated by mneumann.

Status changed from New to Resolved

Fixed in commit 4b29dd4bf14ecfcbe53cbc16a3a96e433c70d7fc

----------------------------------------
Bug #3234: pthread - Respect RLIMIT_STACK for main thread
http://bugs.dragonflybsd.org/issues/3234#change-13918

* Author: mneumann
* Status: Resolved
* Priority: Normal
* Assignee: 
* Category: Feature request
* Target version: 
----------------------------------------
The stack size of the main thread when pthread is used is limited to 4 MB (hard coded \
value). This breaks, for example, the crystal compiler (www.crystal-lang.org).

The stack size of a process not using pthread is limited by RLIMIT_STACK. As soon as \
pthread is linked in, the main thread's stack size is limited to 4 MB.

FreeBSD uses two environment variables LIBPTHREAD_BIGSTACK_MAIN and
LIBPTHREAD_SPLITSTACK_MAIN to control use of RLIMIT_STACK vs. the hard-coded
4MB and defaults to respect RLIMIT_STACK when none is specified.

This patch

https://leaf.dragonflybsd.org/~mneumann/patch-libthread_xu.diff

fixes the issue. Crystal compiles.

---Files--------------------------------
patch-libthread_xu.diff (1.59 KB)


-- 
You have received this notification because you have either subscribed to it, or are \
involved in it. To change your notification preferences, please click here: \
http://bugs.dragonflybsd.org/my/account


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic