GNU bug report logs -
#78789
make-struct/no-tail segfault
Previous Next
To reply to this bug, email your comments to 78789 AT debbugs.gnu.org.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-guile <at> gnu.org
:
bug#78789
; Package
guile
.
(Fri, 13 Jun 2025 21:52:06 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Ido Yariv <yarivido <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-guile <at> gnu.org
.
(Fri, 13 Jun 2025 21:52:06 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Hi,
Calling make-struct/no-tail with an incorrect layout type could lead
to a segmentation fault.
For example the following:
```
(make-struct/no-tail (make-vtable standard-vtable-fields #f) 0)
```
results in:
```
Thread 1 "guile" received signal SIGSEGV, Segmentation fault.
scm_is_valid_vtable_layout (layout=0x2) at /src/guile/libguile/struct.c:165
165 c_layout = scm_i_symbol_chars (layout);
(gdb) bt
#0 scm_is_valid_vtable_layout (layout=0x2) at /src/guile/libguile/struct.c:165
#1 0x00007ffff7f4044d in scm_i_struct_inherit_vtable_magic
(vtable=vtable <at> entry=0x7ffff7705960, obj=obj <at> entry=0x7ffff7705910)
at /src/guile/libguile/struct.c:213
#2 0x00007ffff7f406ba in scm_c_make_structv
(vtable=vtable <at> entry=0x7ffff7705960, n_tail=n_tail <at> entry=0,
n_init=n_init <at> entry=1,
init=0x7fffffffdd60) at /src/guile/libguile/struct.c:366
#3 0x00007ffff7f408e9 in scm_make_struct_no_tail
(vtable=0x7ffff7705960, init=0x304) at
/src/guile/libguile/struct.c:493
```
Thanks,
Ido.
This bug report was last modified 4 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.