[Issue 22114] Fatal Token Parser Error at Line 914 for Version 2.097.0
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Jul 9 11:26:50 UTC 2021
https://issues.dlang.org/show_bug.cgi?id=22114
--- Comment #2 from moonlightsentinel at disroot.org ---
Not a parser error, the trace output suggests an error in the backend.
But the code fails with current master in the CTFE engine:
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Program received signal SIGSEGV, Segmentation fault.
0x0000000008377354 in
_D3dmd10dinterpret16scrubReturnValueFKxSQBm7globals3LocCQCc10expression10ExpressionZ7scrubSEMFCQDpQBn16StructLiteralExpZQCn
(__capture=0x7ffffffecc50, sle=0x84f2d9b
<Visitor::visit(ClassReferenceExp*)+31>) at src/dmd/dinterpret.d:6548
6548 sle.ownedByCtfe = OwnedBy.code;
#0 0x0000000008377354 in
_D3dmd10dinterpret16scrubReturnValueFKxSQBm7globals3LocCQCc10expression10ExpressionZ7scrubSEMFCQDpQBn16StructLiteralExpZQCn
(__capture=0x7ffffffecc50, sle=0x84f2d9b
<Visitor::visit(ClassReferenceExp*)+31>) at src/dmd/dinterpret.d:6548
#1 0x0000000008376fa8 in
_D3dmd10dinterpret16scrubReturnValueFKxSQBm7globals3LocCQCc10expression10ExpressionZQBd
(e=0x7ffffffece70, loc=...) at src/dmd/dinterpret.d:6563
#2 0x00000000083772ff in
_D3dmd10dinterpret16scrubReturnValueFKxSQBm7globals3LocCQCc10expression10ExpressionZ10scrubArrayMFPSQDu4root5array__T5ArrayTQCrZQlbZQCz
(__capture=0x7ffffffecda0, structlit=true, elems=0x7ffffdf664e0) at
src/dmd/dinterpret.d:6538
#3 0x0000000008377386 in
_D3dmd10dinterpret16scrubReturnValueFKxSQBm7globals3LocCQCc10expression10ExpressionZ7scrubSEMFCQDpQBn16StructLiteralExpZQCn
(__capture=0x7ffffffecda0, sle=0x7ffffdf66650) at src/dmd/dinterpret.d:6553
#4 0x0000000008376fa8 in
_D3dmd10dinterpret16scrubReturnValueFKxSQBm7globals3LocCQCc10expression10ExpressionZQBd
(e=0x7ffffdf666b0, loc=...) at src/dmd/dinterpret.d:6563
#5 0x00000000083772ff in
_D3dmd10dinterpret16scrubReturnValueFKxSQBm7globals3LocCQCc10expression10ExpressionZ10scrubArrayMFPSQDu4root5array__T5ArrayTQCrZQlbZQCz
(__capture=0x7ffffffecef0, structlit=true, elems=0x7ffffdf66460) at
src/dmd/dinterpret.d:6538
#6 0x0000000008377386 in
_D3dmd10dinterpret16scrubReturnValueFKxSQBm7globals3LocCQCc10expression10ExpressionZ7scrubSEMFCQDpQBn16StructLiteralExpZQCn
(__capture=0x7ffffffecef0, sle=0x7ffffdf666e0) at src/dmd/dinterpret.d:6553
#7 0x0000000008376fa8 in
_D3dmd10dinterpret16scrubReturnValueFKxSQBm7globals3LocCQCc10expression10ExpressionZQBd
(e=0x7ffffdf665c0, loc=...) at src/dmd/dinterpret.d:6563
#8 0x0000000008363872 in
_D3dmd10dinterpret13ctfeInterpretFCQBh10expression10ExpressionZQBd
(e=0x7ffffdf665c0) at src/dmd/dinterpret.d:102
#9 0x000000000840efc1 in Expression::ctfeInterpret() (this=0x7ffffdf665c0) at
src/dmd/expression.d:1598
#10 0x0000000008464fd1 in
_D3dmd7initsem19initializerSemanticRCQBj4init11InitializerPSQCg6dscope5ScopeKCQCy5mtype4TypeEQDnQCe13NeedInterpretZ8visitExpMFCQEvQDm14ExpInitializerZQEk
(__capture=0x7ffffffed0f0, i=0x7fffff6c7f10) at src/dmd/initsem.d:571
#11 0x0000000008462fa6 in initializerSemantic(Initializer*, Scope*, Type*&,
NeedInterpret) (init=0x7fffff6c7f10, sc=0x7ffffdf61e60, tx=@0x7fffff6c7fc0:
0x7ffffdf5d100, needInterpret=<incomplete type>) at src/dmd/initsem.d:811
#12 0x00000000084b50f2 in Semantic2Visitor::visit(VarDeclaration*)
(this=0x7ffffffed190, vd=0x7fffff6c7f40) at src/dmd/semantic2.d:259
#13 0x000000000835fcc2 in VarDeclaration::accept(Visitor*)
(this=0x7fffff6c7f40, v=0x7ffffffed190) at src/dmd/declaration.d:1610
#14 0x00000000084b495e in semantic2(Dsymbol*, Scope*) (dsym=0x7fffff6c7f40,
sc=0x7ffffdf61e60) at src/dmd/semantic2.d:79
#15 0x00000000084b5e7d in Semantic2Visitor::visit(AggregateDeclaration*)
(this=0x7ffffffed270, ad=0x7fffff6c8080) at src/dmd/semantic2.d:612
#16 0x00000000084b5ef1 in Semantic2Visitor::visit(ClassDeclaration*)
(this=0x7ffffffed270, cd=0x7fffff6c8080) at src/dmd/semantic2.d:669
#17 0x000000000835bf5e in ClassDeclaration::accept(Visitor*)
(this=0x7fffff6c8080, v=0x7ffffffed270) at src/dmd/dclass.d:995
#18 0x00000000084b495e in semantic2(Dsymbol*, Scope*) (dsym=0x7fffff6c8080,
sc=0x7ffffdf61d30) at src/dmd/semantic2.d:79
#19 0x00000000084b5b7f in Semantic2Visitor::visit(AttribDeclaration*)
(this=0x7ffffffed340, ad=0x7fffff6c83d0) at src/dmd/semantic2.d:522
#20 0x00000000084b1abf in
ParseTimeVisitor<ASTCodegen>::visit(VisibilityDeclaration*)
(this=0x7ffffffed340, s=0x7fffff6c83d0) at src/dmd/parsetimevisitor.d:76
#21 0x000000000832489a in VisibilityDeclaration::accept(Visitor*)
(this=0x7fffff6c83d0, v=0x7ffffffed340) at src/dmd/attrib.d:685
#22 0x00000000084b495e in semantic2(Dsymbol*, Scope*) (dsym=0x7fffff6c83d0,
sc=0x7ffffdf5f990) at src/dmd/semantic2.d:79
#23 0x00000000084b5486 in Semantic2Visitor::visit(Module*)
(this=0x7ffffffed3f0, mod=0x7fffff6c50d0) at src/dmd/semantic2.d:337
#24 0x000000000838217a in Module::accept(Visitor*) (this=0x7fffff6c50d0,
v=0x7ffffffed3f0) at src/dmd/dmodule.d:1527
#25 0x00000000084b495e in semantic2(Dsymbol*, Scope*) (dsym=0x7fffff6c50d0,
sc=0x0) at src/dmd/semantic2.d:79
#26 0x000000000830caf8 in _D3dmd4mars7tryMainFmPPxaKSQz7globals5ParamZi
(params=..., argv=0x7ffffffeddb8, argc=4) at src/dmd/mars.d:495
#27 0x000000000830eb4a in D main (_param_0=...) at src/dmd/mars.d:1070
--
More information about the Digitalmars-d-bugs
mailing list