bug-guile
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#12808: segfault with (weird use of) make-struct and make-vtable


From: Andy Wingo
Subject: bug#12808: segfault with (weird use of) make-struct and make-vtable
Date: Tue, 05 Mar 2013 18:23:46 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux)

On Mon 05 Nov 2012 22:24, Areth Unknown <address@hidden> writes:

> This code makes guile segfault, tested in the versions 2.0.6.49 and
> 2.0.6.66 ..
>
> --------
> (define v-blocks (make-vtable "pR")) ;; note that this is a protected
> tail array read-only
>
> (define block-2 (make-struct v-blocks 1 ;; note that this only has one
> element
>                              '((0 2 2 0)
>                                (0 2 2 0)
>                                (0 0 0 0)
>                                (0 0 0 0))))
>
> ;; (struct-ref block-2 0)
> ;; => Segmentation fault (core dumped)
> ------

Thanks for the report; will be fixed in 2.0.8.

Andy
-- 
http://wingolog.org/

reply via email to

[Prev in Thread] Current Thread [Next in Thread]