-
Notifications
You must be signed in to change notification settings - Fork 560
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
Assert fail w/o other symptoms - op.c:7750 Perl_cv_const_sv_or_av #15017
Comments
From @dcollinsnGreetings Porters, I have compiled bleadperl with the afl-gcc compiler using: ./Configure -Dusedevel -Dprefix='/usr/local/perl-afl' -Dcc='ccache afl-gcc' -Duselongdouble -Duse64bitall -Doptimize=-g -Uversiononly -Uman1dir -Uman3dir -des And then fuzzed the resulting binary using: AFL_NO_VAR_CHECK=1 afl-fuzz -i in -o out bin/perl @@ After reducing testcases using `afl-tmin` and performing additional minimization by hand, I have located the following testcase that triggers an assert fail in DEBUGGING perls without any other symptoms in the normal perl interpreter. The testcase is the file: sub(){sub ub(){0}ub ub This is indeed a rather odd thing to do, as it couldn't conceivably be expected to do anything but error, but since normal perls error properly, I suspect that this assert fail could be a sign that a more complex program could cause a more complex error state even in normal perls, or that normal perls could break down the line. dcollins@nightshade64:/usr/local/perl-afl$ ./bin/perl -e 'sub(){sub ub(){0}ub ub' The output with a normal perl is the expected error: dcollins@nightshade64:/usr/local/perl-afl$ ~/perl/perl -e 'sub(){sub ub(){0}ub ub' **GDB** (gdb) run Program received signal SIGABRT, Aborted. **VALGRIND** dcollins@nightshade64:/usr/local/perl-afl$ valgrind ./bin/perl -e 'sub(){sub ub(){0}ub ub' **PERL -V** dcollins@nightshade64:/usr/local/perl-afl$ ./bin/perl -V Characteristics of this binary (from libperl): |
From @tonycozOn Wed Oct 28 19:59:10 2015, dcollinsn@gmail.com wrote:
This can be simplified to: sub ub(){0} ub ub This was introduced by Author: Father Chrysostomos <sprout@cpan.org> Avoid creating GVs when subs are declared Tony |
The RT System itself - Status changed from 'new' to 'open' |
From @cpansproutOn Mon Aug 15 18:43:54 2016, tonyc wrote:
I’m looking into it. -- Father Chrysostomos |
From @cpansproutOn Mon Aug 15 19:36:18 2016, sprout wrote:
Fixed in c82de78. -- Father Chrysostomos |
@cpansprout - Status changed from 'open' to 'pending release' |
From @khwilliamsonThank you for filing this report. You have helped make Perl better. With the release today of Perl 5.26.0, this and 210 other issues have been Perl 5.26.0 may be downloaded via: If you find that the problem persists, feel free to reopen this ticket. |
@khwilliamson - Status changed from 'pending release' to 'resolved' |
Migrated from rt.perl.org#126482 (status was 'resolved')
Searchable as RT126482$
The text was updated successfully, but these errors were encountered: