Thread overview
[Issue 17898] Segfault in compile with -deps and -unittest
Oct 14, 2017
Saurabh Das
Oct 16, 2017
Joakim
Dec 23, 2018
Martin Nowak
Dec 23, 2018
Martin Nowak
Dec 17, 2019
Dlang Bot
May 20, 2022
mhh
October 14, 2017
https://issues.dlang.org/show_bug.cgi?id=17898

--- Comment #1 from Saurabh Das <saurabh.das@gmail.com> ---
PS: This is also observed in DMD 2.075.1 but not on DMD 2.074.1

--
October 16, 2017
https://issues.dlang.org/show_bug.cgi?id=17898

--- Comment #2 from Joakim <dbugz@joakim.fea.st> ---
Tracked this regression down to a deps pull by bisecting dmd:

https://github.com/dlang/dmd/pull/6748

Reverting that commit fixes this issue and supposedly the similar deps bug 17601 too.

--
December 23, 2018
https://issues.dlang.org/show_bug.cgi?id=17898

Martin Nowak <code@dawg.eu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |code@dawg.eu

--- Comment #3 from Martin Nowak <code@dawg.eu> ---
Also crashes with `-debug -deps`, somewhere in IR gen.

--
December 23, 2018
https://issues.dlang.org/show_bug.cgi?id=17898

Martin Nowak <code@dawg.eu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull

--- Comment #4 from Martin Nowak <code@dawg.eu> ---
https://github.com/dlang/dmd/pull/9122

--
December 17, 2019
https://issues.dlang.org/show_bug.cgi?id=17898

--- Comment #5 from Dlang Bot <dlang-bot@dlang.rocks> ---
@MartinNowak updated dlang/dmd pull request #9122 "Fix Issue 17898 - Segfault in compile with -deps and -debug/unittest" fixing this issue:

- Fix Issue 17898 - Segfault in compile with -deps and -debug/unittest

  Revert "Merge pull request #6748 from RazvanN7/Fix_Issue_7016"

  This reverts commit afebe0c2ba89594b434d676fbe0c050389a5b48c, reversing
  changes made to a91bc973217924a47c46aca7012c10b8762bd26b.

  The original change was apparently never used for rdmd and made `-deps`
unusable
  due to causing segfault during IR-gen. Furthermore the PR killed a common
  use-case for the `-deps` switch, collecting shallow dependencies for make
et.al.

  And lastly https://dlang.org/changelog/2.079.0.html#includeimports added an
  alternative implementation for recursive compilation, so recursive
dependencies
  are no longer needed for rdmd. I'm also not aware of any other user of
  recursive dependencies.

https://github.com/dlang/dmd/pull/9122

--
May 20, 2022
https://issues.dlang.org/show_bug.cgi?id=17898

mhh <maxhaton@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |maxhaton@gmail.com
         Resolution|---                         |WORKSFORME

--- Comment #6 from mhh <maxhaton@gmail.com> ---
Closing this as a WORKSFORME as I can't reproduce.

--