www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 18645] New: DMD segmentation fault

https://issues.dlang.org/show_bug.cgi?id=18645

          Issue ID: 18645
           Summary: DMD segmentation fault
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: major
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: mihails.strasuns.contractor sociomantic.com

DMD 2.079 (but also happens with earlier versions). Happens in large private
codebase, will try to dustmite later this week. For now full stack trace: 

Program terminated with signal SIGSEGV, Segmentation fault.

    at dmd/expression.d:5036
5036            if (e1.op == TOK.dotIdentifier)
(gdb) bt

    at dmd/expression.d:5036

(this=0x7ffdec919508, 
    exp=0x7f14983db410) at dmd/expressionsem.d:8714

v=0x7ffdec919508)
    at dmd/expression.d:6841

(e=0x7f14983db410, 
    sc=0x7f149837b840) at dmd/expressionsem.d:9437

Identifier*) (
    this=0x7f149b4489d0, loc=..., id=0x7f14a04ab3a0) at dmd/denum.d:235

(this=0x2365700, 
    loc=..., ident=0x7f14a04ab3a0, flag=0) at dmd/mtype.d:7874

(this=0x7ffdec919930, 
    em=0x7f149b448d10) at dmd/dsymbolsem.d:2044

v=0x7ffdec919930)
    at dmd/denum.d:382

(dsym=0x7f149b448d10, sc=0x7f149837b840)
    at dmd/dsymbolsem.d:103

(this=0x7ffdec919ab0, 
    ed=0x7f149b4489d0) at dmd/dsymbolsem.d:1868

(this=0x7f149b4489d0, v=0x7ffdec919ab0)
    at dmd/denum.d:324

(dsym=0x7f149b4489d0, sc=0x7f149836fcc0)
    at dmd/dsymbolsem.d:103

DsymbolSemanticVisitor::attribSemantic(AttribDeclaration*) (
    this=0x7ffdec919bb0, ad=0x7f149b4492f0) at dmd/dsymbolsem.d:1290

(this=0x7ffdec919bb0, 
    atd=0x7f149b4492f0) at dmd/dsymbolsem.d:1302

(
    this=0x7ffdec919bb0, s=0x7f149b4492f0) at dmd/parsetimevisitor.d:71

(this=0x7f149b4492f0, v=0x7ffdec919bb0)
    at dmd/attrib.d:605

(dsym=0x7f149b4492f0, sc=0x7f149b449560)
    at dmd/dsymbolsem.d:103

(this=0x7ffdec919c60, 
    m=0x7f149b447f30) at dmd/dsymbolsem.d:1677

v=0x7ffdec919c60)
    at dmd/dmodule.d:1322

(dsym=0x7f149b447f30, sc=0x0)
    at dmd/dsymbolsem.d:103

(this=0x7ffdec919f80, 
    imp=0x7f149b623a30) at dmd/dsymbolsem.d:1146

v=0x7ffdec919f80)
    at dmd/dimport.d:309

(dsym=0x7f149b623a30, sc=0x7f149b63ef10)
    at dmd/dsymbolsem.d:103

(this=0x7ffdec91a030, 
    m=0x7f149b623170) at dmd/dsymbolsem.d:1677

v=0x7ffdec91a030)
    at dmd/dmodule.d:1322

(dsym=0x7f149b623170, sc=0x0)
    at dmd/dsymbolsem.d:103

(this=0x7ffdec91a350, 
    imp=0x7f149b61d130) at dmd/dsymbolsem.d:1146

v=0x7ffdec91a350)
    at dmd/dimport.d:309

(dsym=0x7f149b61d130, sc=0x7f149b622e10)
    at dmd/dsymbolsem.d:103

(this=0x7ffdec91a400, 
    m=0x7f149b61cdd0) at dmd/dsymbolsem.d:1677

v=0x7ffdec91a400)
    at dmd/dmodule.d:1322

(dsym=0x7f149b61cdd0, sc=0x0)
    at dmd/dsymbolsem.d:103

(this=0x7ffdec91a720, 
    imp=0x7f149b6178c0) at dmd/dsymbolsem.d:1146
---Type <return> to continue, or q <return> to quit---

v=0x7ffdec91a720)
    at dmd/dimport.d:309

(dsym=0x7f149b6178c0, sc=0x7f149b61a900)
    at dmd/dsymbolsem.d:103

(this=0x7ffdec91a7d0, 
    m=0x7f149b6173d0) at dmd/dsymbolsem.d:1677

v=0x7ffdec91a7d0)
    at dmd/dmodule.d:1322

(dsym=0x7f149b6173d0, sc=0x0)
    at dmd/dsymbolsem.d:103

(this=0x7ffdec91aaf0, 
    imp=0x7f149e4d3a30) at dmd/dsymbolsem.d:1146

v=0x7ffdec91aaf0)
    at dmd/dimport.d:309

(dsym=0x7f149e4d3a30, sc=0x7f149e4e6b80)
    at dmd/dsymbolsem.d:103

(this=0x7ffdec91aba0, 
    m=0x7f149e4d3540) at dmd/dsymbolsem.d:1677

v=0x7ffdec91aba0)
    at dmd/dmodule.d:1322

(dsym=0x7f149e4d3540, sc=0x0)
    at dmd/dsymbolsem.d:103

(this=0x7ffdec91aec0, 
    imp=0x7f149e4b9310) at dmd/dsymbolsem.d:1146

v=0x7ffdec91aec0)
    at dmd/dimport.d:309

(dsym=0x7f149e4b9310, sc=0x7f149e4c7fd0)
    at dmd/dsymbolsem.d:103

(this=0x7ffdec91af70, 
    m=0x7f149e4b8e20) at dmd/dsymbolsem.d:1677

v=0x7ffdec91af70)
    at dmd/dmodule.d:1322

(dsym=0x7f149e4b8e20, sc=0x0)
    at dmd/dsymbolsem.d:103

(this=0x7ffdec91b290, 
    imp=0x7f149f128840) at dmd/dsymbolsem.d:1146

v=0x7ffdec91b290)
    at dmd/dimport.d:309

(dsym=0x7f149f128840, sc=0x7f149f153c40)
    at dmd/dsymbolsem.d:103

(this=0x7ffdec91b340, 
    m=0x7f149f1282d0) at dmd/dsymbolsem.d:1677

v=0x7ffdec91b340)
    at dmd/dmodule.d:1322

(dsym=0x7f149f1282d0, sc=0x0)
    at dmd/dsymbolsem.d:103

(this=0x7ffdec91b660, 
    imp=0x7f14a04ae010) at dmd/dsymbolsem.d:1146

v=0x7ffdec91b660)
    at dmd/dimport.d:309

(dsym=0x7f14a04ae010, sc=0x7f14a04af240)
    at dmd/dsymbolsem.d:103

(this=0x7ffdec91b710, 
    m=0x7f14a04adca0) at dmd/dsymbolsem.d:1677

v=0x7ffdec91b710)
    at dmd/dmodule.d:1322

(dsym=0x7f14a04adca0, sc=0x0)
    at dmd/dsymbolsem.d:103

(argv=0x7ffdec91c748, argc=26)
    at dmd/mars.d:795



(gdb) p e1
$1 = (dmd.expression.Expression *) 0x0

--
Mar 21 2018