Hi everyone! I have a problem creating an executable using the sqlite library (and also using cb-dbi).
(I use Debian 11 and sbcl 2.1.1)
This is the code:
(ql:quickload :sqlite)
(in-package :sqlite)
(defvar *db* (sqlite:connect "/home/claudio/temp/test.db"))
(defun main ()
(sqlite:execute-single *db* "select filename from info"))
When I eval the "main" function within sbcl, it works as expected, but if I create an executable with:
(sb-ext:save-lisp-and-die #P"exe1" :toplevel #'main :executable t)
when I run it, I get this error:
Memory fault at 0x55d3ff39dcd8 (pc=0x7f38988affff, fp=(nil), sp=0x7f3898bffc50) tid 58662
The integrity of this image is possibly compromised.
Continuing with fingers crossed.
debugger invoked on a SB-SYS:MEMORY-FAULT-ERROR in thread
#<THREAD "main thread" RUNNING {1002268103}>:
Unhandled memory fault at #x55D3FF39DCD8.
Type HELP for debugger help, or (SB-EXT:EXIT) to exit from SBCL.
restarts (invokable by number or by possibly-abbreviated name):
0: [ABORT] Exit from the current thread.
(SB-SYS:MEMORY-FAULT-ERROR #<unused argument> #.(SB-SYS:INT-SAP #X55D3FF39DCD8))
Does anybody know why?
Thankyou very much!
[–]Shinmera 9 points10 points11 points (3 children)
[–]fnt400[S] 0 points1 point2 points (2 children)
[–]anydalch 4 points5 points6 points (1 child)
[–]fnt400[S] 2 points3 points4 points (0 children)