Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GCC 11+ __attr_dealloc problems #101

Open
stephenrkell opened this issue Dec 2, 2024 · 1 comment
Open

GCC 11+ __attr_dealloc problems #101

stephenrkell opened this issue Dec 2, 2024 · 1 comment

Comments

@stephenrkell
Copy link
Owner

The prototype of reallocarray in the stdlib.h of at least some versions (Ubuntu?) of glibc 2.35 causes an interesting problem... the function is mentioned in its own __attr_dealloc attribute. The header breaks the reference cycle by prototyping the function twice: once with plain free declared as the dealloc function, and once then with reallocarray. This is not being merged correctly by CIL.

So really this is a CIL bug -- but my fork doesn't have its own issue tracker, and I don't want to report it upstream now that Gabriel has said he considers it unmaintained, so recording the bug here for now.

@stephenrkell
Copy link
Owner Author

The workaround is to use GCC 10 or earlier, because these attributes are disabled at this GNUC prereq level.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant