New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
embedded perl causes problems when dynamically loaded #1339
Comments
From adrianh@adrianh.hq.tensilica.comCreated by adrianh@tensilica.comI 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. Thanks Perl Info
|
From @gsarOn 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 Sarathy |
From @doughera88On 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 doughera@lafayette.edu |
Migrated from rt.perl.org#2367 (status was 'resolved')
Searchable as RT2367$
The text was updated successfully, but these errors were encountered: