Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing stack frame titles #79268

Open
sindresorhus opened this issue Oct 17, 2024 · 11 comments
Open

Missing stack frame titles #79268

sindresorhus opened this issue Oct 17, 2024 · 11 comments

Comments

@sindresorhus
Copy link

Platform

macOS

Environment

Production

Installed

Swift Package Manager

Version

8.38.0

Xcode Version

16.0

Did it work on previous versions?

No response

Steps to Reproduce

Many stack trace frames show a ? instead of a symbol reference.

Example:

Image

Expected Result

I expected the stack frame to show the method/property at that location.

Actual Result

Stack trace: https://sindresorhus.sentry.io/share/issue/784ced2af05b481d864831afb7c66548/

Are you willing to submit a PR?

No response

@philipphofmann
Copy link
Member

philipphofmann commented Oct 17, 2024

This looks more like a problem with symbolication. I'm going to transfer this issue to the main repo. This could be related to getsentry/symbolic#873.

@philipphofmann philipphofmann transferred this issue from getsentry/sentry-cocoa Oct 17, 2024
@getsantry
Copy link
Contributor

getsantry bot commented Oct 17, 2024

Routing to @getsentry/product-owners-issues-source-maps for triage ⏲️

@getsantry
Copy link
Contributor

getsantry bot commented Oct 17, 2024

Auto-routing to @getsentry/product-owners-issues for triage ⏲️

@jangjodi
Copy link
Member

It looks like our symbolication logic is handled by @getsentry/product-owners-processing , so I will transfer it there

@getsantry
Copy link
Contributor

getsantry bot commented Oct 17, 2024

Routing to @getsentry/product-owners-processing for triage ⏲️

@loewenheim
Copy link
Contributor

Hi, thank you for the report. We'll investigate as soon as possible.

@jjbayer
Copy link
Member

jjbayer commented Dec 3, 2024

@sindresorhus sorry for the long wait. We are investigating whether the question marks show up because the function names in question are actually missing for the dSYM that you uploaded, or if there is a bug in getsentry/symbolic that prevents us from showing the correct name. Would you be able to share with us one of the function names that you expect to show instead of ?? That will help us look for the function in the dSYM file. Thanks!

@sindresorhus
Copy link
Author

+0x1cd155 ? (AX.swift:982)

Points to:

try value(for: attribute, as: [AXUIElement].self)?.map { T($0) } ?? []

in:

extension AX.Element {
	func elements<T: AX.Element>(
		for attribute: NSAccessibility.Attribute,
		as type: T.Type
	) throws(AXError) -> [T] {
		try value(for: attribute, as: [AXUIElement].self)?.map { T($0) } ?? []
	}
}

@getsantry getsantry bot moved this to Waiting for: Product Owner in GitHub Issues with 👀 3 Dec 4, 2024
@loewenheim
Copy link
Contributor

In the DWARF we can see the name init (of type Supercharge::Window) for this code location. The link from the inlined function to the original entry contains an indirection via a DW_AT_specification entry. It's possible that we aren't following this indirection correctly and can't resolve the name for this reason.

@jjbayer
Copy link
Member

jjbayer commented Dec 4, 2024

Thanks @loewenheim, I will see if I can figure out where exactly in code this fails and if it can be fixed.

@loewenheim
Copy link
Contributor

Wrote up everything we have so far https://www.notion.so/sentry/Missing-DWARF-function-names-1528b10e4b5d80ee9962e337c64a2b0c

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

No branches or pull requests

5 participants