Skip to content

Backtrace tests are failing in apple silicon  #45784

@gbaraldi

Description

@gbaraldi

Two tests inside backtrace are failing for apple silicon. backtrace sometimes returns an empty vector.

Minimized to this.

1.8:

julia> import Base.StackTraces: lookup

julia> let
                  bt = backtrace()
                     @show bt
                     for trace in bt
                     lookup(trace)
                     end
                     end
bt = Union{Ptr{Nothing}, Base.InterpreterIP}[Ptr{Nothing} @0x0000000118c05847, Ptr{Nothing} @0x000000010472806b, Ptr{Nothing} @0x0000000100d3ba57, Ptr{Nothing} @0x0000000100d3b917, Ptr{Nothing} @0x0000000100d3c693, Ptr{Nothing} @0x0000000117bbc0e3, Ptr{Nothing} @0x000000011787f4bb, Ptr{Nothing} @0x00000001178a9883, Ptr{Nothing} @0x0000000117ab1ceb, Ptr{Nothing} @0x0000000117ab3cc7, Ptr{Nothing} @0x0000000117ab3cdb, Ptr{Nothing} @0x0000000100d08823, Ptr{Nothing} @0x00000001178a114f, Ptr{Nothing} @0x00000001178a11d3, Ptr{Nothing} @0x0000000100d08823, Ptr{Nothing} @0x0000000100d15243, Ptr{Nothing} @0x00000001179711d3, Ptr{Nothing} @0x000000011785d1c3, Ptr{Nothing} @0x000000011785ee13, Ptr{Nothing} @0x000000011785ef37, Ptr{Nothing} @0x0000000100d08823, Ptr{Nothing} @0x0000000100d61977, Ptr{Nothing} @0x0000000100d6186f]

julia> let
                  bt = backtrace()
                     @show bt
                     for trace in bt
                     lookup(trace)[1]
                     end
                     end
bt = Union{Ptr{Nothing}, Base.InterpreterIP}[Ptr{Nothing} @0x00000001048bc06f, Ptr{Nothing} @0x0000000100d3ba57, Ptr{Nothing} @0x0000000100d3b917, Ptr{Nothing} @0x0000000100d3c693, Ptr{Nothing} @0x0000000117bbc0e3, Ptr{Nothing} @0x000000011787f4bb, Ptr{Nothing} @0x00000001178a9883, Ptr{Nothing} @0x0000000117ab1ceb, Ptr{Nothing} @0x0000000117ab3cc7, Ptr{Nothing} @0x0000000117ab3cdb, Ptr{Nothing} @0x0000000100d08823, Ptr{Nothing} @0x00000001178a114f, Ptr{Nothing} @0x00000001178a11d3, Ptr{Nothing} @0x0000000100d08823, Ptr{Nothing} @0x0000000100d15243, Ptr{Nothing} @0x00000001179711d3, Ptr{Nothing} @0x000000011785d1c3, Ptr{Nothing} @0x000000011785ee13, Ptr{Nothing} @0x000000011785ef37, Ptr{Nothing} @0x0000000100d08823, Ptr{Nothing} @0x0000000100d61977, Ptr{Nothing} @0x0000000100d6186f]

master:

julia> let
           bt = backtrace()
              @show bt
              for trace in bt
              lookup(trace)
              end
              end
bt = Union{Ptr{Nothing}, Base.InterpreterIP}[Ptr{Nothing} @0x0000000128c4407b, Ptr{Nothing} @0x0000000104e9646b, Ptr{Nothing} @0x0000000104e96293, Ptr{Nothing} @0x0000000104e96f07, Ptr{Nothing} @0x000000011bcfd737, Ptr{Nothing} @0x000000011bd01153, Ptr{Nothing} @0x000000011bd0123f, Ptr{Nothing} @0x000000011bd037c7, Ptr{Nothing} @0x000000011bd03a4f, Ptr{Nothing} @0x000000011bd03a63, Ptr{Nothing} @0x0000000104e6339b, Ptr{Nothing} @0x000000011b78e587, Ptr{Nothing} @0x000000011b78e61f, Ptr{Nothing} @0x0000000104e6339b, Ptr{Nothing} @0x0000000104e702a7, Ptr{Nothing} @0x000000011b710987, Ptr{Nothing} @0x000000011b7192f3, Ptr{Nothing} @0x000000011b719853, Ptr{Nothing} @0x000000011b719943, Ptr{Nothing} @0x0000000104e6339b, Ptr{Nothing} @0x0000000104ebc9fb, Ptr{Nothing} @0x0000000104ebc8f3]

julia> let
           bt = backtrace()
              @show bt
              for trace in bt
              lookup(trace)[1]
              end
              end
bt = Union{Ptr{Nothing}, Base.InterpreterIP}[]

Metadata

Metadata

Assignees

No one assigned

    Labels

    system:apple siliconAffects Apple Silicon only (Darwin/ARM64) - e.g. M1 and other M-series chipssystem:macAffects only macOS

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions