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

Segmentation fault when optimized #3

Open
yhyadev opened this issue May 17, 2024 · 1 comment
Open

Segmentation fault when optimized #3

yhyadev opened this issue May 17, 2024 · 1 comment

Comments

@yhyadev
Copy link

yhyadev commented May 17, 2024

I had some issues lately when I optimize the code with gcc -O2 or any level above 0, It gives me segfault at arena_da_append because of accessing the memory got from arena_alloc, the weird thing is that it first made it through 4 or more allocations

@yhyadev
Copy link
Author

yhyadev commented May 17, 2024

Check the code at ycc especially parser_parse_function_body (src/parser.c:421), I let the Makefile compile it with -O0 because it worked with gcc like that but with clang it always gives segfault

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