embedded perl causes problems when dynamically loaded #1339
Created by email@example.com
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 dynamically loaded since the perl free routine 'shows up' after memory has already been managed by the libc routines. This might be fixable by passing different flags to the dynamic loader, but I do not have access to that routine since it is controled by a third party tool.
I consider it a bug that perl redefines malloc and free. I think they should be perl_malloc and perl_free or something like that.
As long as the names are not changed, it will be impossible to dynamically load a perl interpreter.
On Tue, 14 Mar 2000 09:27:21 PST, Adrian Harris wrote:
This issue has been fixed for good for Perl 5.6.0. #define EMBEDMYMALLOC
On Tue, 14 Mar 2000, Adrian Harris wrote:
This is odd. Since you are not using perl's malloc(), perl doesn't
In 5.6.0, even with usemymalloc=y, perl also won't redefine malloc() for
Andy Dougherty firstname.lastname@example.org