Bug 18938 – Dmd segfault when compiling this dub package in test release

Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2018-06-03T13:40:02Z
Last change time
2018-12-16T20:53:44Z
Assigned to
No Owner
Creator
Roman

Attachments

IDFilenameSummaryContent-TypeSize
1700dustmitetest.reduced.zipDustmite resultapplication/zip2844

Comments

Comment #0 by freeslave93 — 2018-06-03T13:40:02Z
Running dub test --build=release on this dub package https://github.com/FreeSlave/icontheme/tree/6ad7252f82b1d21c43b29ef6942eeaea0b346ab7 leads to dmd segmentation fault Backtrace: #0 0x0000000000745489 in toObjFile(Dsymbol*, bool) () #1 0x0000000000734b7e in genObjFile(Module*, bool) () #2 0x000000000069219b in dmd.mars.tryMain(ulong, const(char)**) () #3 0x0000000000692eff in D main ()
Comment #1 by freeslave93 — 2018-06-03T15:10:00Z
Created attachment 1700 Dustmite result I added the reduced result produced by dustmite that can be run without dub: dmd -c icontheme-test-library.o -release -inline -Isource/ -main source/icontheme/cache.d source/icontheme/file.d source/icontheme/lookup.d source/icontheme/package.d
Comment #2 by freeslave93 — 2018-06-03T15:35:08Z
Can't reproduce on 2.079.0. So the issue can be marked as regression.
Comment #3 by freeslave93 — 2018-09-27T14:55:59Z
Still issue on dmd 2.082.0
Comment #4 by bugzilla — 2018-12-13T11:24:31Z
When I run it I get: source/inilike\file.d(45): Deprecation: `std.algorithm.setops.No` is not visible from module `inilikefile` source/inilike\file.d(32): Error: `template` has no effect in expression `map(Range)(Range r) if (isInputRange!(Unqual!Range))` and no seg fault.
Comment #5 by razvan.nitu1305 — 2018-12-13T14:47:01Z
Comment #6 by razvan.nitu1305 — 2018-12-13T14:50:57Z
(In reply to Walter Bright from comment #4) > When I run it I get: > > source/inilike\file.d(45): Deprecation: `std.algorithm.setops.No` is not > visible from module `inilikefile` > source/inilike\file.d(32): Error: `template` has no effect in expression > `map(Range)(Range r) if (isInputRange!(Unqual!Range))` > > and no seg fault. Maybe you are using a compiler < 2.0.79
Comment #7 by github-bugzilla — 2018-12-16T20:53:43Z
Commits pushed to master at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/19f49cf4216323af3f27292a243c5d576b5e857c Fix Issue 18938 - Dmd segfault when compiling this dub package in test release https://github.com/dlang/dmd/commit/e4aee5829153d5bcbe2c48d28606691865158e09 Merge pull request #9075 from RazvanN7/Issue_18938 Fix Issue 18938 - Dmd segfault when compiling this dub package in test release