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: attempt to copy freed scalar via @ARGV on stack, Getopt::Long + Carp::longmess #15959
Comments
From @nthykierCreated by @nthykierHi, I discovered that after a change to a project of mine, perl started Some observations: * @ARGV must be passed to a sub and @ARGV must be non-empty Running the test case: """ The definition of run.pl: """ use strict; use Getopt::Long(); my %OPT; sub tool_main { sub load_state_cache { sub usage { exit(0); tool_main(@ARGV); # Has to be here to trigger the error # Local Variables: """ Perl Info
|
From zefram@fysh.orgniels@thykier.net wrote:
It's another stack-not-refcounted bug. GetOptions() mutates @ARGV, -zefram |
The RT System itself - Status changed from 'new' to 'open' |
From slade@openmailbox.orgWorkaround: Replace `tool_main(@ARGV)` with `tool_main(@ARGV = @ARGV)`. |
Migrated from rt.perl.org#131192 (status was 'open')
Searchable as RT131192$
The text was updated successfully, but these errors were encountered: