chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] swig, Chicken and double free errors


From: felix winkelmann
Subject: Re: [Chicken-users] swig, Chicken and double free errors
Date: Wed, 8 Nov 2006 08:12:08 +0100

On 11/7/06, Dan <address@hidden> wrote:
Hi all,

I have a project that wraps some C library using Swig.
The library is called from Chicken scheme code. The
library has functions to allocate certain objects,
operate on them, and free them:

t1 *t1_alloc ();
void t1_mod (t1 *x);
void t1_free (t1 *x);

There are no special Swig wrappers; the swig.i file
simply imports the C headers.

This project used to work before Chicken 2.41, but now
it produces an abundance of double-free crashes, as in

*** glibc detected *** double free or corruption (out)
***

What could be the cause, and what's the easiest fix ?


Did the version of SWIG change between your earlier
attempts (with Chicken.2.41)? And what swig options are
you using? Would it be possible to show the code that
you are wrapping, so that I can reproduce the problem?


cheers,
felix


--
http://galinha.ucpel.tche.br:8081/blog/blog.ssp




reply via email to

[Prev in Thread] Current Thread [Next in Thread]