On Sun, Jun 14, 2009 at 9:33 AM, Elliott Slaughter <span dir="ltr"><<a href="mailto:elliottslaughter@gmail.com">elliottslaughter@gmail.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On Sun, Jun 14, 2009 at 10:29 AM, Luís Oliveira <span dir="ltr"><<a href="mailto:luismbo@gmail.com" target="_blank">luismbo@gmail.com</a>></span> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left:1px solid rgb(204, 204, 204);margin:0pt 0pt 0pt 0.8ex;padding-left:1ex">
<div class="im">
<div>On Fri, Jun 12, 2009 at 9:24 PM, Elliott<br>
Slaughter<<a href="mailto:elliottslaughter@gmail.com" target="_blank">elliottslaughter@gmail.com</a>> wrote:</div></div><div class="im"><div><br>
> Of course, with :dont-save t, the user then has to call use-foreign-library<br>
> again when starting up from the saved image, but I find this preferable to<br>
> the crash I receive otherwise.<br>
<br>
</div>IIRC, you can close the foreign libraries before saving an image and<br>
reload them manually afterwards. Would that be an acceptable<br>
work-around?<font color="#888888"><br></font></div></blockquote></div><br>Let me see if it works; I'll get back to you after I've tried it.<br></blockquote></div><br clear="all">I'm believe I'm seeing this issue again, but none of my previous workarounds seem to be working. I am using SBCL 1.0.29 on Windows XP, and when I save and run an executable, I keep getting undefined alien errors. I have tried both the :dont-save t hack that I initially suggested, and have tried calling (close-foreign-library ...) on all of the open libraries before saving the executable, and nothing helps.<div>
<br></div><div>Can you suggest a course of action?</div><div><br></div><div>Thanks.<br><div><br></div><div>Here is the backtrace from when I try to run the executable:</div><div><br></div><div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; "><div>
This is experimental prerelease support for the Windows platform: use</div><div>at your own risk.  "Your Kitten of Death awaits!"</div><div><br></div><div>debugger invoked on a UNDEFINED-ALIEN-ERROR:</div><div>  Undefined alien: "SDL_Linked_Version"</div>
<div><br></div><div>Type HELP for debugger help, or (SB-EXT:QUIT) to exit from SBCL.</div><div><br></div><div>(no restarts: If you didn't do this on purpose, please report it as a bug.)</div><div><br></div><div>(SB-SYS:ENSURE-DYNAMIC-FOREIGN-SYMBOL-ADDRESS</div>
<div> "SDL_Linked_Version"</div><div> #<unused argument>)</div><div>0]</div><div>WARNING: Starting a select without a timeout while interrupts are disabled.</div><div>ba</div><div>0: (SB-SYS:ENSURE-DYNAMIC-FOREIGN-SYMBOL-ADDRESS</div>
<div>    "SDL_Linked_Version"</div><div>    #<unused argument>)</div><div>1: ((FLET SB-THREAD::WITH-RECURSIVE-SYSTEM-SPINLOCK-THUNK))</div><div>2: ((FLET #:WITHOUT-INTERRUPTS-BODY-[CALL-WITH-RECURSIVE-SYSTEM-SPINLOCK]196))</div>
<div>3: (SB-THREAD::CALL-WITH-RECURSIVE-SYSTEM-SPINLOCK</div><div>    #<CLOSURE (FLET SB-THREAD::WITH-RECURSIVE-SYSTEM-SPINLOCK-THUNK) {22FCDD}></div><div>    #<unavailable argument>)</div><div>4: (SB-SYS:UPDATE-LINKAGE-TABLE)</div>
<div>5: (SB-IMPL::FOREIGN-REINIT)</div><div>6: (SB-IMPL::REINIT)</div><div>7: ((LABELS SB-IMPL::RESTART-LISP))</div><div>8: ("foreign function: #x4120C4")</div><div>9: ("foreign function: #x40AF88")</div>
</span><div><br>-- <br>Elliott Slaughter<br><br>"Don't worry about what anybody else is going to do. The best way to predict the future is to invent it." - Alan Kay<br>
</div></div></div>