D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 22443 - OpenBSD: Fix Fiber support by adding MAP_STACK
Summary: OpenBSD: Fix Fiber support by adding MAP_STACK
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: druntime (show other issues)
Version: D2
Hardware: All Other
: P1 major
Assignee: No Owner
URL:
Keywords: pull
Depends on:
Blocks:
 
Reported: 2021-10-28 02:00 UTC by Brian Callahan
Modified: 2021-10-28 07:24 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Brian Callahan 2021-10-28 02:00:08 UTC
On OpenBSD, MAP_STACK is required for Fibers to work. Without it, code using Fibers immediately segfaults.

This patch was created by gkoehler@openbsd.org -- I am committing it for him.

The OpenBSD packages of all three D compilers are using this fix.
Comment 1 Dlang Bot 2021-10-28 02:01:27 UTC
@ibara created dlang/druntime pull request #3601 "Fix Issue 22443 - OpenBSD: Fix Fiber support by adding MAP_STACK" fixing this issue:

- Fix Issue 22443 - OpenBSD: Fix Fiber support by adding MAP_STACK

https://github.com/dlang/druntime/pull/3601
Comment 2 Dlang Bot 2021-10-28 07:24:25 UTC
dlang/druntime pull request #3601 "Fix Issue 22443 - OpenBSD: Fix Fiber support by adding MAP_STACK" was merged into stable:

- 05f8b65f52b10946d03b94c39a2f4b693cb56097 by Brian Callahan:
  Fix Issue 22443 - OpenBSD: Fix Fiber support by adding MAP_STACK

https://github.com/dlang/druntime/pull/3601