Giter Site home page Giter Site logo

Comments (5)

xrme avatar xrme commented on August 20, 2024

It is sufficient to start up with ccl -I saved_acl2.fx86cl64 to show that (ccl:static-cons 1 2) fails.

from ccl.

xrme avatar xrme commented on August 20, 2024

Other observed weirdness:

? (ccl:static-cons 1 2)
(1 . 2)                         ;it works?
? (ccl:static-cons 1 2)
> Error: The value #<Package "X86"> is not of the expected type LIST.
> While executing: STATIC-CONS, in process listener(1).
> Type :POP to abort, :R for a list of available restarts.
> Type :? for other options.
                                ;nope, it doesn't work
? (ccl:static-cons 1 2)
(1 . 2)
? (ccl:static-cons 1 2)
> Error: The value #<Unbound> is not of the expected type LIST.
> While executing: STATIC-CONS, in process listener(1).
> Type :POP to abort, :R for a list of available restarts.
> Type :? for other options.

from ccl.

xrme avatar xrme commented on August 20, 2024

Doing (gc) first thing after starting up the lisp seems to avoid all of these problems, so maybe some kind of initialization bug?

from ccl.

xrme avatar xrme commented on August 20, 2024

It may be that FreeBSD's ASLR implementation (which is the default on 64-bit since 13.2) is the culprit here.

from ccl.

xrme avatar xrme commented on August 20, 2024

As of FreeBSD 13.2, I believe, ASLR (address space layout randomization; see https://www.freebsd.org/releases/14.0R/relnotes/) is on by default for 64-bit executables. Mostly CCL worked anyway, because we would relocate the saved image when we didn't get the initial IMAGE_BASE_ADDRESS that we wanted from mmap.

We were not relocating the static cons area or the head of the static cons freelist. I think I did the right thing in 23a7158 so that we handle that case now.

There's a way to opt out of the ASLR mitigation, via elfctl(1). We run that now after building the fx86cl64 binary. When ASLR is disabled, we typically don't have to relocate the lisp image.

from ccl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.