Skip to content

tree-sitter-c2rust causes stack overflow (infinite recursion) #5

@mainrs

Description

@mainrs

Sorry to hijack this issue tracker. But I didn't know how to contact you.

I've been trying to use tree-sitter-c2rust to create a typst plugin. They support WASM plugins. The issue I encounter is that, as soon as I call into the library, my process crashes due to an infinite recursion. For example creating a parser using Parser::new().

The runtime in question is wasmi. They have a pretty big stack size of 2MB by default. And I still hit the stack overflow. That's why I think it is caused by infinite recursion.

Did you happen to have a similar issue when working on this project?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions