ghc, OpenBSD and stack pointer checking

Matthias Kilian kili at outback.escape.de
Tue Mar 6 22:06:37 UTC 2018


ho,

On Mon, Jan 22, 2018 at 09:52:01PM +0100, Matthias Kilian wrote:
> On Thu, Jan 18, 2018 at 01:21:27PM -0500, Ben Gamari wrote:
> > > So, if the stack pointer checking diff to OpenBSD is correct, and
> > > if I'm not running into a completely unrelated problem: does ghc
> > > and/or the runtime library sometimes move the system stack pointer
> > > to newly allocated/mapped memory? If so, where in the code?
> > >
> > As far as I know GHC shouldn't touch x86-64's $rsp at all; we
> > specifically avoid using it for the STG stack to ease FFI.
> 
> Thanks for the information.

Little update, in case anyone is interested: with the latest version
of the diff[1] to OpenBSD, out ghc port and all the hs-ports build
and work fine. So, yes, bug in the early diff, or solar activity
during my tests ;-)

Ciao,
	Kili

[1] https://marc.info/?l=openbsd-tech&m=152035796722258&w=2


More information about the ghc-devs mailing list