Skip to content

Perl_newATTRSUB_x: Assertion `block' failed (op.c:8410) #15081

Closed

Description

@p5pRT

Migrated from rt.perl.org#126845 (status was 'resolved')

Searchable as RT126845$

Activity

  1. p5pRT commented on Dec 8, 2015

    @p5pRT
    Author

    From @geeknik

    sub y();sub y()​:y() causes an assertion failure in Perl_newATTRSUB_x (op.c​:8410). This bug was found using American Fuzzy Lop. Perl v5.23.6 (v5.23.5-113-g406d554) was compiled as follows​:

    ./Configure -des -Dusedevel -DDEBUGGING -Dcc=afl-gcc -Doptimize=-O2\ -g && AFL_HARDEN=1 make -j6

    valgrind -q ~/perl/perl test07
    perl​: op.c​:8410​: Perl_newATTRSUB_x​: Assertion `block' failed.
    Aborted

    perl​: op.c​:8410​: Perl_newATTRSUB_x​: Assertion `block' failed.

    Program received signal SIGABRT, Aborted.
    0x00007ffff6d90165 in *__GI_raise (sig=<optimized out>) at ../nptl/sysdeps/unix/sysv/linux/raise.c​:64
    64 ../nptl/sysdeps/unix/sysv/linux/raise.c​: No such file or directory.
    (gdb) bt
    #0 0x00007ffff6d90165 in *__GI_raise (sig=<optimized out>) at ../nptl/sysdeps/unix/sysv/linux/raise.c​:64
    #1 0x00007ffff6d933e0 in *__GI_abort () at abort.c​:92
    #2 0x00007ffff6d89311 in *__GI___assert_fail (assertion=assertion@​entry=0xe812e4 "block",
      file=<optimized out>, file@​entry=0xf50f22 "op.c", line=line@​entry=8410,
      function=function@​entry=0xe96010 "Perl_newATTRSUB_x") at assert.c​:81
    #3 0x00000000004d92a5 in Perl_newATTRSUB_x (floor=39, o=0x11c8b08, proto=0x11c8ac8, attrs=0x11c8f28,
      block=0x0, o_is_gv=o_is_gv@​entry=false) at op.c​:8410
    #4 0x0000000000662984 in Perl_yyparse (gramtype=gramtype@​entry=258) at perly.y​:294
    #5 0x000000000052e625 in S_parse_body (env=env@​entry=0x0, xsinit=xsinit@​entry=0x42e190 <xs_init>)
      at perl.c​:2312
    #6 0x0000000000534737 in perl_parse (my_perl=<optimized out>, xsinit=xsinit@​entry=0x42e190 <xs_init>,
      argc=<optimized out>, argv=<optimized out>, env=env@​entry=0x0) at perl.c​:1634
    #7 0x000000000042dda8 in main (argc=2, argv=0x7fffffffe668, env=0x7fffffffe680) at perlmain.c​:114

  2. p5pRT commented on Jan 3, 2016

    @p5pRT
    Author

    From @arc

    Thanks for the report. The failing assertion seems to be incorrect, so it has been removed as of a934a4a.

    --
    Aaron Crane ** http​://aaroncrane.co.uk/

  3. p5pRT commented on Jan 3, 2016

    @p5pRT
    Author

    The RT System itself - Status changed from 'new' to 'open'

  4. p5pRT commented on Jan 3, 2016

    @p5pRT
    Author

    @arc - Status changed from 'open' to 'resolved'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions