D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 18938 - Dmd segfault when compiling this dub package in test release
Summary: Dmd segfault when compiling this dub package in test release
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P1 regression
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-06-03 13:40 UTC by Roman
Modified: 2018-12-16 20:53 UTC (History)
2 users (show)

See Also:


Attachments
Dustmite result (2.78 KB, application/zip)
2018-06-03 15:10 UTC, Roman
Details

Note You need to log in before you can comment on or make changes to this issue.
Description Roman 2018-06-03 13:40:02 UTC
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 Roman 2018-06-03 15:10:00 UTC
Created attachment 1700 [details]
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 Roman 2018-06-03 15:35:08 UTC
Can't reproduce on 2.079.0. So the issue can be marked as regression.
Comment 3 Roman 2018-09-27 14:55:59 UTC
Still issue on dmd 2.082.0
Comment 4 Walter Bright 2018-12-13 11:24:31 UTC
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 RazvanN 2018-12-13 14:47:01 UTC
I can reproduce it.

PR: https://github.com/dlang/dmd/pull/9075
Comment 6 RazvanN 2018-12-13 14:50:57 UTC
(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 github-bugzilla 2018-12-16 20:53:43 UTC
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