Bug 235735 - lang/go14 fails to build with ASLR
Summary: lang/go14 fails to build with ASLR
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Julien Laffaye
Depends on:
Blocks: 208580
  Show dependency treegraph
Reported: 2019-02-14 12:47 UTC by Antoine Brodin
Modified: 2019-02-14 14:15 UTC (History)
2 users (show)

See Also:
bugzilla: maintainer-feedback? (jlaffaye)


Note You need to log in before you can comment on or make changes to this bug.
Description Antoine Brodin freebsd_committer 2019-02-14 12:47:00 UTC
Failure log:


Peter reports that this patch fixes it:

+++ src/runtime/mem_freebsd.c   2019-02-14 01:27:32.087512000 -0800
-               p = runtime.mmap(v, n, PROT_READ|PROT_WRITE, MAP_ANON|MAP_PRIVATE, -1, 0);
+               p = runtime.mmap(v, n, PROT_READ|PROT_WRITE, MAP_ANON|MAP_FIXED|MAP_PRIVATE, -1, 0);
Comment 1 Konstantin Belousov freebsd_committer 2019-02-14 12:54:51 UTC
https://reviews.freebsd.org/D19194 is the supposed fix.  Or set vm.cluster_anon to 0.