Bug 22779 – druntime: Calling __delete with null pointer-to-struct segfaults
Status
RESOLVED
Resolution
FIXED
Severity
critical
Priority
P1
Component
druntime
Product
D
Version
D2
Platform
All
OS
All
Creation time
2022-02-16T11:38:58Z
Last change time
2022-03-01T10:32:14Z
Assigned to
No Owner
Creator
Iain Buclaw
Comments
Comment #0 by ibuclaw — 2022-02-16T11:38:58Z
---
import core.memory;
A *aptr;
__delete(aptr);
---
This differs from both the documentation of __delete and the old delete behaviour which is to return with no effect.
Comment #1 by dlang-bot — 2022-02-16T11:43:30Z
@ibuclaw created dlang/druntime pull request #3745 "Issue 22779 - druntime: Calling __delete with null pointer-to-struct segfaults" mentioning this issue:
- Issue 22779 - druntime: Calling __delete with null pointer-to-struct segfaults
https://github.com/dlang/druntime/pull/3745
Comment #2 by dlang-bot — 2022-02-16T12:25:44Z
dlang/druntime pull request #3745 "fix Issue 22779 - druntime: Calling __delete with null pointer-to-struct segfaults" was merged into stable:
- ed0e0dbf706dd0b9aaab6b47ad9fe61b48524cc0 by Iain Buclaw:
fix Issue 22779 - druntime: Calling __delete with null pointer-to-struct segfaults
https://github.com/dlang/druntime/pull/3745
Comment #3 by dlang-bot — 2022-03-01T10:32:14Z
dlang/druntime pull request #3764 "merge stable" was merged into master:
- cc1f52689f4091cb3eb608659b71c0d9a51415ff by Iain Buclaw:
fix Issue 22779 - druntime: Calling __delete with null pointer-to-struct segfaults
https://github.com/dlang/druntime/pull/3764