develooper Front page | perl.perl5.porters | Postings from March 2000

Re: [ID 20000314.004] embedded perl causes problems when dynamicallyloaded

Thread Previous | Thread Next
From:
Andy Dougherty
Date:
March 15, 2000 07:31
Subject:
Re: [ID 20000314.004] embedded perl causes problems when dynamicallyloaded
Message ID:
Pine.SOL.4.10.10003151011330.22041-100000@maxwell.phys.lafayette.edu
On Tue, 14 Mar 2000, Adrian Harris wrote:

> I have had a hard time getting an embedded perl interpreter to work as
> a dynamically loaded module. I kept getting 'Bad free() ignored' at
> run time. It turns out that perl has its own memory management - fine,
> but it redefines malloc and free etc. That is bad when the library is

> Site configuration information for perl 5.00502:

>     alignbytes=4, usemymalloc=n, prototype=define

This is odd.  Since you are not using perl's malloc(), perl doesn't
redefine it for you.  I just tested it myself to confirm this.

In 5.6.0, even with usemymalloc=y, perl also won't redefine malloc() for
you.

    Andy Dougherty		doughera@lafayette.edu
    Dept. of Physics
    Lafayette College, Easton PA 18042


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About