Skip to content

Stack overflow in RuleBuilder #63

@kLabz

Description

@kLabz

While working with haxe language server, I ended up with a compilation server blocked a few times with a Stack overflow error. Third time gave me a call stack from hxparse macros:

Uncaught exception Stack overflow
/opt/haxe/std/haxe/macro/Context.hx:439: characters 10-30 : Called from here
/git/vshaxe/.haxelib/hxparse/git/src/hxparse/RuleBuilder.hx:190: characters 11-28 : Called from here
/git/vshaxe/.haxelib/hxparse/git/src/hxparse/RuleBuilder.hx:38: characters 21-42 : Called from here
/git/vshaxe/.haxelib/hxparse/git/src/hxparse/RuleBuilder.hx:49: characters 4-11 : Called from here
/git/vshaxe/.haxelib/haxeparser/git/src/haxeparser/HaxeLexer.hx:26: character 1 : Called from here

Sadly it happened right when I renamed the configuration that enabled the recording, so I have no recording of this.

Edit: got a 11k lines repro script 😆

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions