[review] FreeBSD: disable ASLR to avoid conflicts in mappings

Bug #2047655 reported by kostikbel
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SBCL
Fix Released
Undecided
Unassigned

Bug Description

This seems to be still required?

Revision history for this message
kostikbel (kostikbel-x) wrote :
Revision history for this message
Douglas Katzman (dougk) wrote :

A smaller fix might be as simple as picking a better address for static space.
We just need somewhere, anywhere below 2GB, that we can we assured that allocating about 64Kb will work.
Is that simply not possible on FreeBSD? For comparison's sake, in x86-64 Linux the OS generally gives "random" mappings a very high address, so there are actually lots of sub-2GB addresses to choose from.

Revision history for this message
kostikbel (kostikbel-x) wrote :

Typically that (64kB anywhere below 2G) would work. But kernel makes no guarantees that is will work always. It seems to be a rare failure mode.

Revision history for this message
kostikbel (kostikbel-x) wrote :

May be simplest is to run `elfctl -e +noaslr sbcl` after the linking.

Revision history for this message
kostikbel (kostikbel-x) wrote :
Revision history for this message
kostikbel (kostikbel-x) wrote :
Revision history for this message
Douglas Katzman (dougk) wrote :

applied those

Changed in sbcl:
status: New → Fix Committed
Changed in sbcl:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.