GithubHelp home page GithubHelp logo

Comments (3)

glv2 avatar glv2 commented on July 21, 2024 1

The stream for "/dev/urandom" gets opened the first time some random data is requested, for example with random-data, random-bits or strong-random. The error you get happens when using save-lisp-and-die in a session where some random data has already been requested from Ironclad, because save-lisp-and-die closes the stream, but in a strange way.
Trying to read data from this closed stream throws a SB-INT:CLOSED-SAVED-STREAM-ERROR error, however calling open-stream-p on it returns T. Maybe that's a bug in SBCL, I'll ask the developers...

For the moment I can think of two workarounds:

  1. If that's possible in your case, use save-lisp-and-die in a session where no random data has been requested from Ironclad yet.
  2. Run (progn (close ironclad::*os-prng-stream*) (setf ironclad::*os-prng-stream* nil)) just before calling save-lisp-and-die.

from ironclad.

glv2 avatar glv2 commented on July 21, 2024 1

Using Ironclad >= 0.56 and SBCL >= 2.1.8 should solve the issue without the need for a workaround.

from ironclad.

K1D77A avatar K1D77A commented on July 21, 2024

Thanks 👍

from ironclad.

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.