Bug 21336 – [2.094.1] Memory corruption of TemplateInstance

Status
RESOLVED
Resolution
WORKSFORME
Severity
regression
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2020-10-22T08:56:58Z
Last change time
2022-03-31T10:30:18Z
Assigned to
No Owner
Creator
Stefan Koch

Attachments

IDFilenameSummaryContent-TypeSize
1809repro_segv.tar.gztestcase for the issue.application/gzip2046

Comments

Comment #0 by uplink.coder — 2020-10-22T08:56:58Z
Created attachment 1809 testcase for the issue. Since the new version of dmd the code in the archive attached to this bug report fails. to reproduce untar the archive cd into repro.reduced and run ../bld.sh You will see it segfault with 2.094.1 But succeeded with 2.094.0 The root cause for this, is stale data kept around in a memory pool. Introduced in https://github.com/dlang/dmd/pull/11381
Comment #1 by uplink.coder — 2020-10-22T12:56:32Z
I will have to amend my testcase as this particular one seems to fail even with the pool reverted. That means the pool is not the only issue, but certainly one of the contributing factors.
Comment #2 by razvan.nitu1305 — 2022-03-31T10:30:18Z
I cannot reproduce this. Running the script yields: "app.d-mixin-15(24,1): Deprecation: use `{ }` for an empty statement, not `;`". No segfault.