I haven't been able to figure out why we might be hitting #32564 (moved), so the logical solution is to try to make the diagnosis better if it happens.
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Child items
...
Show closed items
Linked items
0
Link issues together to show that they're related.
Learn more.
Is there a way to stop the compiler from optimizing away the dead store to pol->base_.magic = 0xDEAD901C; right before it gets freed?
So yeah I think that is a very good point. And gcc uses -O2 which will likely optimize it out. I did a quick test case here and it does optimize it out. And also looked at tor disassembled and it is not there in those free function.
Maybe we could set the magic to volatile which in "theory", but not enforced, should leave the variable alive on most compilers.
Trac: Status: needs_review to needs_revision Reviewer: N/Ato dgoulet
whoa -- we've actually found a compiler that optimizes out set-before-free? I know that they're allowed to do that, but previously, they didn't. How do I replicate this test you did?