develooper Front page | perl.perl5.porters | Postings from December 2017

[perl #132553] Assertion failure in Perl__core_swash_init(utf8.c:3840)

Thread Next
From:
Brian Carpenter
Date:
December 8, 2017 23:43
Subject:
[perl #132553] Assertion failure in Perl__core_swash_init(utf8.c:3840)
Message ID:
rt-4.0.24-26548-1512776606-1638.132553-75-0@perl.org
# New Ticket Created by  Brian Carpenter 
# Please include the string:  [perl #132553]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/Ticket/Display.html?id=132553 >


This assertion failure was triggered in Perl v5.27.6-156-g5d4548b73b,
compiled with Clang 6.0.0-trunk and -fsanitize=address.

./perl test012.pl
perl: utf8.c:3840: SV *Perl__core_swash_init(const char *, const char *, SV
*, I32, I32, SV *, U8 *const): Assertion `listsv != &PL_sv_undef ||
strNE(name, "") || invlist' failed.
Aborted

#0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:58
#1  0x00007ffff6cc837a in __GI_abort () at abort.c:89
#2  0x00007ffff6cbeb47 in __assert_fail_base (fmt=<optimized out>,
assertion=assertion@entry=0xd7ea80 <.str.127> "listsv != &PL_sv_undef ||
strNE(name, \"\") || invlist", file=file@entry=0xd6f020 <.str.1> "utf8.c",
line=line@entry=3840,
    function=function@entry=0xd7eae0
<__PRETTY_FUNCTION__.Perl__core_swash_init> "SV
*Perl__core_swash_init(const char *, const char *, SV *, I32, I32, SV *, U8
*const)") at assert.c:92
#3  0x00007ffff6cbebf2 in __GI___assert_fail (assertion=0xd7ea80 <.str.127>
"listsv != &PL_sv_undef || strNE(name, \"\") || invlist", file=0xd6f020
<.str.1> "utf8.c", line=3840,
    function=0xd7eae0 <__PRETTY_FUNCTION__.Perl__core_swash_init> "SV
*Perl__core_swash_init(const char *, const char *, SV *, I32, I32, SV *, U8
*const)") at assert.c:101
#4  0x0000000000b20316 in Perl__core_swash_init (pkg=0xca3ba0 <.str.330>
"utf8", name=<optimized out>, listsv=0x1d56ad8 <PL_sv_immortals+24>,
minbits=1, none=0, invlist=0x0, flags_p=<optimized out>) at utf8.c:3840
#5  0x0000000000780570 in S_regclass (pRExC_state=0x7fffffffd3e0,
flagp=0x7fffffffcce0, depth=5, stop_at_1=true, allow_multi_folds=false,
silence_non_portable=false, strict=<optimized out>, optimizable=true,
ret_invlist=<optimized out>, return_posix_warnings=<optimized out>) at
regcomp.c:16414
#6  0x00000000007704cf in S_regatom (pRExC_state=0x7fffffffd3e0,
flagp=0x7fffffffcce0, depth=4) at regcomp.c:12960
#7  0x0000000000766f6b in S_regpiece (pRExC_state=0x7fffffffd3e0,
flagp=0x7fffffffcea0, depth=<optimized out>) at regcomp.c:11731
#8  0x0000000000757c0e in S_regbranch (pRExC_state=0x7fffffffd3e0,
flagp=0x7fffffffcfe0, first=<optimized out>, depth=3) at regcomp.c:11656
#9  0x00000000006ea0e8 in S_reg (pRExC_state=0x7fffffffd3e0, paren=0,
flagp=0x7fffffffd2a0, depth=1) at regcomp.c:11394
#10 0x00000000006d3edd in Perl_re_op_compile (patternp=<optimized out>,
pat_count=-10048, expr=<optimized out>, eng=0xc9f0e0 <PL_core_reg_engine>,
old_re=0x62100000c250, is_bare_re=0x7fffffffd260, orig_rx_flags=<optimized
out>, pm_flags=<optimized out>) at regcomp.c:7377
#11 0x0000000000520bc4 in Perl_pmruntime (o=<optimized out>,
expr=<optimized out>, repl=0x0, flags=<optimized out>, floor=0) at op.c:6904
#12 0x00000000006ab358 in Perl_yyparse (gramtype=<optimized out>) at
perly.y:1215
#13 0x00000000005a3c22 in S_parse_body (env=<optimized out>,
xsinit=<optimized out>) at perl.c:2447
#14 0x000000000059ea24 in perl_parse (my_perl=<optimized out>,
xsinit=0x5036f0 <xs_init>, argc=2, argv=<optimized out>, env=0x0) at
perl.c:1750
#15 0x0000000000503486 in main (argc=0, argv=0x7ffff6cc677f
<__GI_raise+159>, env=0x7fffffffe380) at perlmain.c:121

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About