[plt-scheme] Re: (ab)using ffi-call to execute assembly

From: Noel Welsh (noelwelsh at gmail.com)
Date: Mon Jul 13 11:10:52 EDT 2009

Update:

Code works in DrScheme, but not in MzScheme.

Welcome to MzScheme v4.2.0.2 [3m], Copyright (c) 2004-2009 PLT Scheme Inc.
-> (require "test.ss")
-> (run)
SIGSEGV fault on (nil)
Abort


Whereas:

Welcome to DrScheme, version 4.2.0.2-svn2jun2009 [3m].
Language: Module; memory limit: 128 megabytes.
> (run)
42

Anyone have an ideas?

Thanks,
N.

On Mon, Jul 13, 2009 at 2:08 PM, Noel Welsh<noelwelsh at gmail.com> wrote:
> Hello,
>
> Let's say I have a byte string containing some assembler. Can I abuse
> ffi-call to execute this code? I'm getting segmentation faults at the
> moment. ...


Posted on the users mailing list.