D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 17179 - dmd 2.073 betas segfault while trying to build vibe.d project
Summary: dmd 2.073 betas segfault while trying to build vibe.d project
Status: RESOLVED WONTFIX
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: x86_64 Linux
: P1 regression
Assignee: No Owner
URL:
Keywords: ice-on-valid-code, industry
Depends on:
Blocks:
 
Reported: 2017-02-13 19:09 UTC by briancschott
Modified: 2018-12-13 11:32 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description briancschott 2017-02-13 19:09:35 UTC
The code in question is not public, but I do have a stack trace.

----------------
Compiling diet template 'index.dt'...

Program received signal SIGSEGV, Segmentation fault.
0x00000000006de982 in totym(Type*) ()
(gdb) bt
#0  0x00000000006de982 in totym(Type*) ()
#1  0x00000000006d9780 in ToCtypeVisitor::visit(Type*) ()
#2  0x00000000006bf912 in Visitor::visit(TypeError*) ()
#3  0x0000000000665f89 in TypeError::accept(Visitor*) ()
#4  0x00000000006da292 in ToCtypeVisitor::visit(TypeClass*) ()
#5  0x0000000000678bd9 in TypeClass::accept(Visitor*) ()
#6  0x00000000006d9b0b in ToCtypeVisitor::visit(TypeFunction*) ()
#7  0x000000000066fdd1 in TypeFunction::accept(Visitor*) ()
#8  0x00000000006e45f2 in toSymbol::ToSymbol::visit(FuncDeclaration*) ()
#9  0x0000000000606169 in FuncDeclaration::accept(Visitor*) ()
#10 0x00000000006e3b83 in toSymbol(Dsymbol*) ()
#11 0x00000000006dc713 in FuncDeclaration_toObjFile(FuncDeclaration*, bool) ()
#12 0x00000000006ec5ce in toObjFile::ToObjFile::visit(FuncDeclaration*) ()
#13 0x0000000000606169 in FuncDeclaration::accept(Visitor*) ()
#14 0x00000000006ee903 in toObjFile::ToObjFile::visit(TemplateInstance*) ()
#15 0x00000000005b9ee9 in TemplateInstance::accept(Visitor*) ()
#16 0x00000000006ec553 in toObjFile(Dsymbol*, bool) ()
#17 0x00000000006db87f in genObjFile(Module*, bool) ()
#18 0x000000000065c02c in ddmd.mars.tryMain(ulong, const(char)**) ()
#19 0x000000000065c9d3 in D main ()
----------------

The code depends on "vibe-d-0.7.30"
Comment 1 Stefan Koch 2017-02-15 17:18:52 UTC
This is too little information.
Please try to use dustmite on the issue, or compile with -v and try to isolate the function this happens on.
Comment 2 Walter Bright 2017-04-12 05:14:42 UTC
Were there any error messages prior to the fault?
Comment 3 Walter Bright 2018-12-13 11:32:53 UTC
Since this is nearly two years old, there is insufficient information, and there is no further information, I'm going to close it.