Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

This does not seem to play nice with image dumping #4

Open
digikar99 opened this issue Jun 25, 2023 · 0 comments
Open

This does not seem to play nice with image dumping #4

digikar99 opened this issue Jun 25, 2023 · 0 comments

Comments

@digikar99
Copy link
Owner

For example, on SBCL, after (defpymodule "matplotlib.pyplot" nil :lisp-package "PLT), I'm unable sb-ext:save-lisp-and-die:

* (ql:quickload "py4cl2-cffi")
To load "py4cl2-cffi":
  Load 1 ASDF system:
    py4cl2-cffi
; Loading "py4cl2-cffi"

("py4cl2-cffi")
* (py4cl2-cffi:defpymodule "matplotlib.pyplot" nil :lisp-package "PLT")
Defining PLT for accessing python package plt..
T
* (py4cl2-cffi:pystop) ; close the py4cl2-threads
NIL
* (sb-ext:save-lisp-and-die "plt.core" :compression 22)
  failed AVER: (SB-THREAD::THREAD-P SB-IMPL::THREAD)
This is probably a bug in SBCL itself. (Alternatively, SBCL might have been
corrupted by bad user code, e.g. by an undefined Lisp operation like
(FMAKUNBOUND 'COMPILE), or by stray pointers from alien code or from unsafe
Lisp code; or there might be a bug in the OS or hardware that SBCL is running
on.) If it seems to be a bug in SBCL itself, the maintainers would like to know
about it. Bug reports are welcome on the SBCL mailing lists, which you can find
at <http://sbcl.sourceforge.net/>.
* 

This doesn't seem like an inherent issue with the CFFI based approach, but perhaps something to do with how defpymodule works. In particular, replacing the defpymodule with import-module does not cause this issue, and core image is generated successfully.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant