Skip to content

_simplify_include_frames throws bounds error #41566

Closed

Description

Original issue: JuliaLang/PackageCompiler.jl#517

When using a sysimage, _simplify_include_frames throws a bounds error at line 804 because i is 0.

kept_frames[i:first_ignored] .= false

The immediate fix is to move the decrement to the top of the loop and start at i = length(trace) + 1. I can make a pull request for this.

This still gives really verbose stack traces when using a sysimage. I'd like to take a shot at improving that as well, but perhaps this should be done in a separate issue/pull request since it might require further discussion.

Thanks to @KristofferC for identifying the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    bugIndicates an unexpected problem or unintended behavior

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions