Bug 23851 – Segfault when compiling with -profile=gc

Status
RESOLVED
Resolution
FIXED
Severity
blocker
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2023-04-22T13:33:04Z
Last change time
2023-04-24T11:36:07Z
Assigned to
No Owner
Creator
Yassine Oudjana

Attachments

IDFilenameSummaryContent-TypeSize
1871backtraceGDB backtracetext/plain8063

Comments

Comment #0 by y.oudjana — 2023-04-22T13:33:04Z
Created attachment 1871 GDB backtrace Compiling the following program with -profile=gc makes DMD segfault: ``` import std.stdio; int main(string[] args) { int[] a; a ~= 2; writeln(a); return 0; } ``` Attached a backtrace. $ dmd --version DMD64 D Compiler v2.103.0 ...
Comment #1 by razvan.nitu1305 — 2023-04-24T11:36:07Z
This has been fixed in master by: https://github.com/dlang/dmd/pull/14940 .