Skip to content

[inrcc] math.h header segfaults when trying to include it. #1

@iDontHaveTime

Description

@iDontHaveTime

Preprocessor bug

When trying to include /usr/include/math.h the preprocessor segfaults in the Arena::alloc<T, Args>(Args&&...) function, which is called from Lexer::preprocess(const Token&, LexerTokenStack&).

I suspect this happens from a stack overflow, as valgrind said this might be a stack issue, then raising the stack limit still caused the stack limit to be reached even on 128MB of limit, which is abnormal and should not happen, and this must work on the usual stack limits as well.

Platform

This happened on x86-64 Arch Linux with glibc headers.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions