Skip to content

@check_allocs macro doesn't return correct line number in backtrace #95

Description

@rekabrnalla

I haven't figured out what is happening here to make a mwe. Wondering if it is a function of having a module with multiple "include" lines in that bring in other files into the mix.

The clickable backtrace error and line number doesn't match where the allocation error is coming in. It could also be @inlining that is messing this up on some of the functions.

Even when I went in and took out the @inlines to make @check_allocs since it doesn't work with @inline, the line number returned for the offending piece of code is not correct. I can at least see which function is the offender though, but it required me to mark each function in the file with the @check_allocs macro instead of just marking the top level function.

So, information for you incase it is something obvious. I'll see if I come up with a simpler example that reproduces the problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions