Regression for Allegro 8.1 causing Segmentation Fault

Bug #1395329 reported by Luís Oliveira
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
CFFI
New
Undecided
Unassigned

Bug Description

lhope said on github:

> Hi there,
>
> The following patch causes Allegro 8.1 to segfault when calling a
> function with strings (or more specifically, varargs).
>
> 53af387
>
> (cffi:defcfun ("zsocket_connect" zsocket_connect) :int
> (socket :pointer)
> (format :string)
> &rest)
>
> After the patch, calling zsocket_connect causes the segfault every
> time.
>
> If I either revert the commit, or bump up the versions to 8.2
> instead of 8.1, the problem goes away. Will you accept a pull
> request to bump the version up to 8.2? It seems safe enough to do
> so.

ffilov, the author the aforementioned commit, says:

> Sorry, but I'm no longer working on this project, so I don't have
> the tools to test this regression.
>
> I don't think bumping it to 8.2 is a solution, because the same
> problem could occur when 8.2 is used.
>
> The patch was tested with libzmq. It seems that you're using
> czmq. Could it be that varargs are not allocated in a static area,
> so GC cleans it up?

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.