Thread overview
[Issue 19704] Segmentation fault in DMD
Feb 27, 2019
Stefan Koch
Mar 05, 2019
RazvanN
Mar 05, 2019
Basile-z
Mar 05, 2019
RazvanN
Mar 05, 2019
Basile-z
Mar 21, 2020
Basile-z
February 27, 2019
https://issues.dlang.org/show_bug.cgi?id=19704

Stefan Koch <uplink.coder@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |uplink.coder@gmail.com

--- Comment #1 from Stefan Koch <uplink.coder@gmail.com> ---
firstly the code above has to import std.range;
which is missing from the code.

the segfault is a null-pointer-deref inside the semantic handling of CondExp.
(CondExp.econd == null)
which happens because we try to run the semantic-routines on an invalid and
therefore unexpected AST.

--
March 05, 2019
https://issues.dlang.org/show_bug.cgi?id=19704

RazvanN <razvan.nitu1305@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |razvan.nitu1305@gmail.com

--- Comment #2 from RazvanN <razvan.nitu1305@gmail.com> ---
I cannot reproduce on Ubuntu 16.04 git HEAD.

--
March 05, 2019
https://issues.dlang.org/show_bug.cgi?id=19704

Basile-z <b2.temp@gmx.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |b2.temp@gmx.com
         Resolution|---                         |WORKSFORME

--- Comment #3 from Basile-z <b2.temp@gmx.com> ---
I've made a bugfix the other day that prevented this CondExp

--
March 05, 2019
https://issues.dlang.org/show_bug.cgi?id=19704

--- Comment #4 from RazvanN <razvan.nitu1305@gmail.com> ---
(In reply to Basile-z from comment #3)
> I've made a bugfix the other day that prevented this CondExp

Great! Thank you!

--
March 05, 2019
https://issues.dlang.org/show_bug.cgi?id=19704

--- Comment #5 from Basile-z <b2.temp@gmx.com> ---
For reference it was this one https://github.com/dlang/dmd/pull/9404/files. Here `[Fields]` was causing the crash when DMD tried to find a common type.

--
March 21, 2020
https://issues.dlang.org/show_bug.cgi?id=19704

Basile-z <b2.temp@gmx.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|b2.temp@gmx.com             |

--