and exit with an exit code of 0.
This is the result of uncommenting line 15, and commenting line 14. (Remember to restore the conformance to I in line 38 if removed).
Environment
This affects at least macOS and Ubuntu (20).
Toolchains from 2023-12-07a (and possibly earlier) to 2024-06-08 are affected.
Additional information
A multi-package version of this reproducer was generating a runtime segfault when attempting to dereference pointer 0x0 rather than 0x10 when attempting to perform the Dictionary lookup.
Description
The code below crashes during runtime. A second, distinct runtime crash can be generated by editing one line in the reproducer below.
Reproduction
Compile the code below in Debug mode and attempt to run it.
Stack dump
Expected behavior
The program should print at least
and exit with an exit code of 0. This is the result of uncommenting line 15, and commenting line 14. (Remember to restore the conformance to
I
in line 38 if removed).Environment
This affects at least macOS and Ubuntu (20). Toolchains from 2023-12-07a (and possibly earlier) to 2024-06-08 are affected.
Additional information
A multi-package version of this reproducer was generating a runtime segfault when attempting to dereference pointer
0x0
rather than0x10
when attempting to perform the Dictionary lookup.