Re: after upgrade: glibc detected *** /usr/bin/perl: double free or corruption
Graham Barr <[email protected]>
| Newsgroups | gmane.comp.lang.perl.modules.ldap,gmane.comp.lang.perl.beginners |
|---|---|
| Message-ID | <[email protected]> |
On Oct 3, 2008, at 8:03 AM, Peter Karman wrote: > Peter Daum wrote on 10/03/2008 07:35 AM: >> Peter Daum wrote: >>> I recently upgraded a system (as far as perl is concerned from 5.8.8 >>> to 5.10.0). Afterwards I ran into a mysterious problem. I could >>> eventually >>> find a workaround, but still don't really understand, what is >>> going on. >>> >>> After the upgrade, a perl program wouldn't run anymore - it crashed >>> with a message:"*** glibc detected *** /usr/bin/perl: double free or >>> corruption (fasttop): ..." and a memory map suggesting some >>> problem on >>> the heap. > > I've seen that error message when the version of glibc changes. Have > you > tried re-installing Net::LDAP so that is is compiled against the same > libs that your perl is? Net::LDAP itself is pure perl, so that would not make a difference. Also this is not due to the library any program is linked to. In newer versions of glibc they added a this warning for when free() is called multiple times. I forget the versions, but we saw this in a lot of apps at a previous employer when they upgraded RHEL, which introduced the new glibc Graham.