[cffi-devel] Weird segfaults interfacing with libsane

Rupert Swarbrick rswarbrick at googlemail.com
Thu Jun 5 16:06:42 UTC 2008


"Luís Oliveira" <luismbo at gmail.com> writes:

> On Mon, May 26, 2008 at 9:23 PM, Rupert Swarbrick
> <rswarbrick at googlemail.com> wrote:
>> However, I tried starting up sbcl with gdb and it was a bit too
>> unpleasant - gdb reported about 5 [1] segfaults per line in the repl,
>> but everything carried on working (well until I loaded my test2.lisp
>> file [2]).
>
> <http://sbcl-internals.cliki.net/gdb> contains some (possibly
> outdated) tips. Also, I noticed that libsane seems to have a lot of
> debug statements along its code. I suggest you build a version of
> libsane with those enabled. Since your program is segfaulting very
> quickly, that should help in identifying the problem.
>

Thank you very much for the help. I'm going to try that tonight. Sorry
for the late reply - programming got put on hold rather while I sat
some university exams.

Anyway, I'll see if I can work out what's going on and hopefully let
you know.


Rupert
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 314 bytes
Desc: not available
URL: <https://mailman.common-lisp.net/pipermail/cffi-devel/attachments/20080605/c6a0b988/attachment.sig>


More information about the cffi-devel mailing list