I'm using a modified version of SGCL (backported to C++17). The following may be 'AI slop', but when it was debugging a segfault in my application, OpenAI Codex claims the issue was in SGCL. It had this to say:
"The crash happens inside SGCL’s collector thread while marking objects.
The current _mark_childs implementation simply reads each child pointer and calls _mark if the value is non‑null.
However, SGCL uses pointer tagging (low/high bits hold flags) for tracked pointers. Because the code does not strip those flags, the collector passes a tagged pointer to _mark, leading Page::page_of to dereference an invalid address and crash."
I thought I'd bring it to your attention in case it is legitimate. Apologies if it is not.
Thanks.
I'm using a modified version of SGCL (backported to C++17). The following may be 'AI slop', but when it was debugging a segfault in my application, OpenAI Codex claims the issue was in SGCL. It had this to say:
"The crash happens inside SGCL’s collector thread while marking objects.
The current _mark_childs implementation simply reads each child pointer and calls _mark if the value is non‑null.
However, SGCL uses pointer tagging (low/high bits hold flags) for tracked pointers. Because the code does not strip those flags, the collector passes a tagged pointer to _mark, leading Page::page_of to dereference an invalid address and crash."
I thought I'd bring it to your attention in case it is legitimate. Apologies if it is not.
Thanks.