Hi All,

I am using swig so that i can call my so library from perl. But when perl exits i am getting the following error.

==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 +"
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?


In reply to perl_destruct clearing memory allocated in c library by justin_skariah

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.