corruption when building sbcl-1.0.54 on hardened linux (PaX)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
SBCL |
Incomplete
|
Undecided
|
Unassigned |
Bug Description
For building SBCL on Hardened Gentoo i've using this ebuild (mainstream ebuild doesnt work at all) https:/
Here is main improvement:
# To disable PaX on hardened systems
pax-mark -C "${bindir}
pax-mark -mpre "${bindir}
# Hack to disable PaX on second GENESIS stage
sed -i -e '/load/!s/^echo \/\/doing warm.*$/&\npaxctl -C \.\/src\
"${S}"/
Where pax-mark is tool for http://
And after that small patch first genesis building ok, but second returns such error:
obj/from-
obj/from-
obj/from-
[building initial core file in "output/
writing 4096 bytes [1 page] from #<SB!FASL::GSPACE :READ-ONLY>
writing 4096 bytes [1 page] from #<SB!FASL::GSPACE :STATIC>
writing 28327936 bytes [6916 pages] from #<SB!FASL::GSPACE :DYNAMIC>
/(DESCRIPTOR-BITS INITIAL-
done]
* //testing for consistency of first and second GENESIS passes
//header files match between first and second GENESIS -- good
//entering make-target-2.sh
//doing warm init - compilation phase
This is SBCL 1.0.54, an implementation of ANSI Common Lisp.
More information about SBCL is available at <http://
SBCL is free software, provided as is, with absolutely no warranty.
It is mostly in the public domain; some portions are provided under
BSD-style licenses. See the CREDITS and COPYING files in the
distribution for more information.
CORRUPTION WARNING in SBCL pid 24664(tid 3084732096):
Memory fault at 26b20 (pc=0x26b20, sp=0xb7a8ce9c)
The integrity of this image is possibly compromised.
Exiting.
The system is too badly corrupted or confused to continue at the Lisp
level. If the system had been compiled with the SB-LDB feature, we'd drop
into the LDB low-level debugger now. But there's no LDB in this build, so
we can't really do anything but just exit, sorry.
You can see whole gentoo bug here: https:/
Forgot to add, this is not impossible - I've working 1.0.45 version with such PaX improvements