Re: Bad free() error
by Petr Pajas other posts by this author
Dec 4 2004 8:37PM messages near this date
view in the new Beta List Site
Re: Bad free() error
|
Re: Bad free() error
--nextPart9052546.9JMmctGsR8
Content-Type: text/plain;
charset="iso-8859-2"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
On Saturday 04 December 2004 20:04, Marc Lambrichs wrote:
> So it's a warning of LibXSLT I shouldn't be worrying
> about?
If I remember correctly, this may also happen if you're=20
using slightly incompatible LibXML and LibXSLT versions
(one using perl's New()/Safefree macro and the other using=20
plain C malloc/free on a system/Perl-build where this=20
distinction makes a difference). If this is the only=20
problem, then you should be quite safe.=20
=2D- Petr
> $Bill Luebkert wrote:
> > Marc Lambrichs wrote:
> >>I've got a bad_free error on my hands. If I'm not
> >> mistaken, my module wants to free some memory space
> >> that's already been freed, right? What can I do to
> >> find the exact variable that we're talking about here?
> >> What does the "2912" in the following line mean?
> >>
> >>[Sat Dec 4 18:59:20 2004] (eval 2912): freeing
> >> transformation dictionnary [Sat Dec 4 18:59:20 2004]
> >> (eval 2912): Bad free() ignored (PERL_CORE) at
> >> /var/www/general/lib/perl/Melange/Control.pm line 165.
> >
> > I believe that's the 'eval sequence number' (which I
> > hope I'm interpreting correctly) would make it the 2912
> > th eval encountered in the file.
> >
> > Explanation for second error:
> >
> > Bad free() ignored
> > (S malloc) An internal routine called free() on
> > something that had never been malloc()ed in the first
> > place. Mandatory, but can be disabled by setting
> > environment variable "PERL_BADFREE" to 0.
> >
> > This message can be seen quite often with
> > DB_File on systems with "hard" dynamic linking, like
> > "AIX" and "OS/2". It is a bug of "Berkeley DB" which is
> > left unnoticed if "DB" uses *forgiving* system
> > malloc().
>
> _______________________________________________
> Perl-XML mailing list
> Perl-XML@[...].com
> To unsubscribe:
> http://listserv.ActiveState.com/mailman/mysubs
--nextPart9052546.9JMmctGsR8
Content-Type: application/pgp-signature
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
iD8DBQBBsiAWQfxdLDi03+IRAoSfAKCQrL15Uhaz5IzOvNOG28hpIMgpKgCfS0oY
yeYkXIv81oM5vXvk2tjSNjI=
=xjTG
-----END PGP SIGNATURE-----
--nextPart9052546.9JMmctGsR8--
Attachments:
unknown1
Thread:
Marc Lambrichs
Marc Lambrichs
$Bill Luebkert
Marc Lambrichs
Petr Pajas
Marc Lambrichs
|