-
Notifications
You must be signed in to change notification settings - Fork 567
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
panic: top_env from embedded perl using 'do' with unused XS calls #8975
Comments
From perlbug@daveola.comThis is a bug report for perl from perlbug@daveola.com, [Please enter your report here] I'm getting a panic: top_env I've managed to reduce the test case to the following: 1. From a C program, create/start a perl interpreter object The attempt to 'do file' in step 5 causes the panic. Here's the testcase and Makefile |
From @doyI can't reproduce this with perl 5.16.0. Is this still an issue? |
The RT System itself - Status changed from 'new' to 'open' |
From perlbug@daveola.comOn Fri Jun 22 10:01:49 2012, doy wrote:
I (Ubuntu) has finally updated to perl 5.14.2 The original issue is gone with 5.14.2, but it reveals new problems. If we actually try to call a routine in the eval/do/require'd script I've made a simpler example. We have embedded perl that 'eval's another If we change it to a require, then the require complains when it hits It seems the XS information is lost across the eval. I've attached a new example tar. -- |
From perlbug@daveola.comOn Fri Jun 22 10:01:49 2012, doy wrote:
I (Ubuntu) has finally updated to perl 5.14.2 The original issue is gone with 5.14.2, but it reveals new problems. If we actually try to call a routine in the eval/do/require'd script I've made a simpler example. We have embedded perl that 'eval's another If we change it to a require, then the require complains when it hits It seems the XS information is lost across the eval. I've attached a new example tar. -- |
From @bulk88On Sat Nov 03 00:27:16 2012, daveola wrote:
I got something else from the code you supplied. On Win32 Perl I got a
|
From @bulk88On Wed Nov 07 21:40:01 2012, bulk88 wrote:
The crash on windows is caused by a missing (see perlembed ) -- |
From perlbug@daveola.com
I've added those to the second example (the one showing a missing A third tar is attached. |
From perlbug@daveola.com
It doesn't seem that the docs really explain what PERL_SYS_INIT3 does. |
From [Unknown Contact. See original ticket]
It doesn't seem that the docs really explain what PERL_SYS_INIT3 does. |
From @bulk88On Mon Mar 11 21:08:22 2013, daveola wrote:
Tried your new version. No crashes on 5.17.7. Used (win32 platform) cl -c -nologo -GF -W3 -MD -Zi -DNDEBUG -O1 -GL -G7 -DWIN32 Running your code unmodified gave C:\Documents and Settings\Owner\Desktop\cpan libs\prtbug\bug3> In builtin.pl you wrote " my $ret = eval 'script.pl';" That doesn't do Changing the eval to a require so the line reads, " my $ret = require C:\Documents and Settings\Owner\Desktop\cpan libs\prtbug\bug3> C:\Documents and Settings\Owner\Desktop\cpan libs\prtbug\bug3> I dont see a C bug in Perl here. You used "newXSproto" and gave a |
From perlbug@daveola.com
Now that's humiliating. That's a typo from when I tried to simplify
Thanks for the fix on that.
I agree with that. There's certainly documentation missing. Should a Also - it seems near impossible to find out what is actually happening Is it vital that I call PERL_SYS_TERM? |
From perlbug@daveola.comI wrote:
It seems I am not alone, Jan brings up similar issues with PERL_SYS_TERM: |
From @bulk88On Tue Mar 12 15:06:14 2013, daveola wrote:
It should not always be under-documented. A git patch is welcome to the
Yes. What it does is different on every OS. Basically it shuts down the Make a C static counter. Each interp increases it, each interp decreases |
From perlbug@daveola.com
If I understood the perlembed system I would happily do that patch,
Is it okay to do a PERL_SYS_TERM if later other perl interpreters are |
Migrated from rt.perl.org#44051 (status was 'open')
Searchable as RT44051$
The text was updated successfully, but these errors were encountered: