Hi, Am Freitag, den 13.04.2012, 15:39 +0100 schrieb Steve McIntyre: > On Thu, Apr 05, 2012 at 03:12:33PM +0100, Steve McIntyre wrote: > >On Wed, Apr 04, 2012 at 08:15:31PM +0200, Joachim Breitner wrote: > >> * in ./compiler/ghci/LibFFI.hsc in the Haskell function > >>prepForeignCall, called by generateCCall > >>in ./compiler/ghci/ByteCodeGen.lhs. It seems that this is only relevant > >>for ghci. > >> > >>This seems to imply that normal compiled Haskell code, even code that > >>uses the Foreign Function Interface, does never call ffi_prep_cif and is > >>therefore not affected by the problem at hand. Does this sound > >>plausible? > > > >If you're reasonably sure that there's no Haskell code calling C > >through libffi (just C calling Haskell), then job done. :-) > > Bugger. > > Looking through again, I can see a call to ffi_call() in > rts/Interpreter.c after all. Is that likely to include variadics at > all?
Again, this is also only used when evaluating ByteCode, i.e. by the Haskell interpreter, and not in regular code. So my guess continues to be that variadic functions are just not called from Haskell code, and until we have actual evidence of the contrary, we should not worry about this. Greetings, Joachim -- Joachim "nomeata" Breitner Debian Developer nome...@debian.org | ICQ# 74513189 | GPG-Keyid: 4743206C JID: nome...@joachim-breitner.de | http://people.debian.org/~nomeata
signature.asc
Description: This is a digitally signed message part