Foreign-funcall issue with SBCL

Bug #622424 reported by Luís Oliveira
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
CFFI
Won't Fix
High
Unassigned

Bug Description

2010/8/6 Serhiy Yakovyn <email address hidden>:
> I have the following snippet of code that doesn’t work as expected under
> SBCL 1.0.29, CFFI 0.10.5 and Windows 7.
>
> (let ((library (cffi:load-foreign-library "user32.dll")))
>   (cffi:foreign-funcall "GetDesktopWindow" :int)
>   (cffi:close-foreign-library library)))
>
> I have also tested it under LispWorks and CCL – no issues.

Tags: sbcl
Revision history for this message
Stelian Ionescu (sionescu) wrote :

What do you mean it doesn’t work as expected ? What did you expect and what happened instead ?

Revision history for this message
nan (noncopyable) wrote :

I am not sure about him but in my case close-foreign-library crashes with "Inconsistency detected by ld.so: dl-close.c: 765: _dl_close: Assertion `map->l_init_called' failed!". No backtrace, nothing.

Archlinux sbcl-git: SBCL 1.1.5.5-203e2ac
I got the same crash with Archlinux standard sbcl package.

Revision history for this message
Michał "phoe" Herda (phoe-krk) wrote :

What do you mean, Arch Linux? The above snippet loads user32.dll, which is a Windows library.

Revision history for this message
Luís Oliveira (luismbo) wrote :

10 years later, Serhiy Yakovyn's example seems to work fine on SBCL 2.0.2 / Windows. 🎉

Changed in cffi:
status: New → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.