Pádraig Brady wrote:
> Note one can perturb the stack with gcc and clang at least
> with the -ftrivial-auto-var-init=pattern option.
> 
> I've confirmed that it triggers a segfault on my Linux system
> with this code issue.
> 
> It's lightweight, so I've added it in my default dev environment,
> but it might be worth enabling on CI systems too?

-ftrivial-auto-var-init=pattern appears to initialize e.g.
an integer variable with 0xfefefefe always. This is deterministic.
Therefore, it will _reduce_, not increase, the probability that
I notice a given bug by looking at CI results.

A non-deterministic initialization is better for this purpose.

Bruno




Reply via email to