justin_skariah has asked for the wisdom of the Perl Monks concerning the following question:
I am using swig so that i can call my so library from perl. But when perl exits i am getting the following error.
the symbol buffer.17598 is present in on of the so file i am loading. but no reference is passed in or out of c. But still some how perl is getting this reference and trying to free it. How can i stop perl from doing this?==644== Warning: bad signal number 0 in sigaction() ==644== Invalid free() / delete / delete[] ==644== at 0x40057F6: free (vg_replace_malloc.c:325) ==644== by 0x8072E7F: perl_destruct (in /opt/perl/bin/perl-static) ==644== by 0x8060D6F: main (in /opt/perl/bin/perl-static) ==644== Address 0xab79180 is 0 bytes inside data symbol "buffer.17598 +"
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: perl_destruct clearing memory allocated in c library
by ikegami (Patriarch) on Mar 23, 2011 at 16:43 UTC | |
by justin_skariah (Initiate) on Mar 24, 2011 at 13:34 UTC | |
by ikegami (Patriarch) on Mar 24, 2011 at 18:58 UTC |