hello all,
why is it that when i do something like
(alien:with-alien ((var1 char) (var2 integer))
; blahblah
(unix:unix-read fd (alien:addr var2) 4)
)
it segfaults? i'm using the latest from debian (18e-7).
it only happens when there are two or more variables declared,
when there is only 1, it's ok.
also, on other times (sorry, i'm forgot to take note of
what i changed) when i did
(mutliple-value-bind (result err) (unix:unix-read fd (alien:addr var2) 4)
(unless err (print err)))
i got 14, which is EFAULT here.
thanks,
jon