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
fatal undef warning in eval in sort crashes perl #16882
Comments
From @wchristianThis is a bug report for perl from walde.christian@gmail.com, The following script makes my Perl crash: perl -e 'use warnings FATAL => q[uninitialized]; print sort { eval { $c <=> 1 } } 1, 2' Output: panic: restartop in perl_run Flags: Site configuration information for perl 5.28.0: Configured by strawberry-perl at Sat Jun 23 13:56:45 2018. Summary of my perl5 (revision 5 version 28 subversion 0) configuration: Platform: @INC for perl 5.28.0: Environment for perl 5.28.0: |
From @jkeenanOn Sat, 09 Mar 2019 09:53:47 GMT, walde.christian@gmail.com wrote:
Trying this program with different versions of perl from perlbrew, I got the panic from perl-5.6.2 through perl-5.16.3. The program DWIMmed on perl-5.18.4, then once again began panicking with perl-5.20.0. ##### $ perlbrew use perl-5.20.0;perl -e 'use warnings FATAL => q[uninitialized]; print sort { eval { $c <=> 1 } } 1, 2' I have not yet figured out how to bisect this. My first attempt: ##### But I immediately got: ##### Suggestions? Thank you very much. -- |
The RT System itself - Status changed from 'new' to 'open' |
From @TuxOn Sat, 09 Mar 2019 05:51:39 -0800, "James E Keenan via RT"
I've summarized a full run for all perl versions since 5.6.0, and it
Running perl-all -e 'use warnings FATAL=>q[uninitialized];print sort{eval{$c<=>1}}1,2' === base/perl5.6.0 5.006 x86_64-linux (I do not have the most recent development versions due to disk space) -- |
From Vadim.Konovalov@dell.com
AFAIR from reading related docs, sort comparator should "behave", but in the |
Migrated from rt.perl.org#133916 (status was 'open')
Searchable as RT133916$
The text was updated successfully, but these errors were encountered: