unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
* bug#13074: VM Segfaults with Bad `Call' Instruction
@ 2012-12-04  3:06 Noah Lavine
  2012-12-05  3:26 ` Noah Lavine
  0 siblings, 1 reply; 8+ messages in thread
From: Noah Lavine @ 2012-12-04  3:06 UTC (permalink / raw)
  To: 13074

[-- Attachment #1: Type: text/plain, Size: 594 bytes --]

Hello,

This is an interesting bug, because the only way to hit it (as far as I can
tell) is to mess up when writing a compiler. However, I did mess up, and I
discover that I can generate a `call' instruction in the trunk VM where the
procedure to call will be 0x0. Then the VM will try to check whether the
procedure is really a procedure, and Guile will segfault at line 796 of
v-i-system.c.

I think the correct behavior would be to throw a `vm-bad-instruction' error
instead. The fix should be pretty simple - just check if program is 0x0 and
jump to vm-bad-instruction in that case.

Noah

[-- Attachment #2: Type: text/html, Size: 694 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2012-12-11 13:32 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-04  3:06 bug#13074: VM Segfaults with Bad `Call' Instruction Noah Lavine
2012-12-05  3:26 ` Noah Lavine
2012-12-05 14:10   ` Ludovic Courtès
2012-12-05 14:54     ` Noah Lavine
2012-12-05 22:14       ` Ludovic Courtès
2012-12-11  4:16         ` Noah Lavine
2012-12-11  9:42           ` Ludovic Courtès
2012-12-11 13:32             ` Noah Lavine

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).