sentry-cocoa icon indicating copy to clipboard operation
sentry-cocoa copied to clipboard

Strange 'Redacted' statements in crash logs

Open caglaruslu opened this issue 7 years ago • 15 comments

Platform:

  • iOS
  • [ ] tvOS
  • [ ] MacOS
  • [ ] watchOS

Swift:

  • Yes -> 4.2
  • [ ] No

sentry-cocoa installed with:

  • CocoaPods
  • [ ] Carthage
  • [ ] Manually

Version of sentry-cocoa: 4.1.0


I have following issue:

I use 'sentry.io' to list the crash logs. One of the logs has some strange 'redacted' statements as shown in the screenshot. I can't even tell if the log could be symbolicated by Sentry. I did some research and found that; https://stackoverflow.com/questions/12809174/how-to-stop-symbolicate-adding-redacted-pieces-to-ios-crash-log

So I thought the problem may be caused by Sentry.

screen shot 2019-01-12 at 20 02 43

URL for this issue: https://sentry.io/drive-buddy-6o/dev-ios/issues/834358382/?query=is%3Aunresolved%20dist%3A3.0.1635

caglaruslu avatar Jan 12 '19 17:01 caglaruslu

bump, the same problem

d2vydov avatar Dec 06 '19 09:12 d2vydov

AFAIK this only happens if A) crash is reported from the simulator and not a device B) symbols are missing: haven't been uploaded to sentry. or have been uploaded after the crash report was sent to sentry.io (sadly they aren't reprocessed after a new dsym arrives).

if that's not the case, I would need more info, to verify/fix.

naturally, the sentry issue linked in the description doesn't exist anymore.

those things would help:

  • device and ios version
  • full "" stack trace
  • full stack trace from Xcode when running on the same device in debug mode. if possible.

fetzig avatar Dec 06 '19 15:12 fetzig

@fetzig Is there any way to get crash files for processed it manually?

Eysner avatar Jan 12 '20 17:01 Eysner

@caglaruslu and @d2vydov do you still experience problems with this or is it fixed now and we can close this issue?

philippsuess avatar May 29 '20 10:05 philippsuess

@Eysner We don't really want our users to have to manually process the crash files. If you are interested in how we do this checkout SentryCrashReportConverter.

philippsuess avatar May 29 '20 10:05 philippsuess

As we didn't receive new information for quite a while, we close this now.

philippsuess avatar Aug 28 '20 08:08 philippsuess

@philipphofmann sorry for inactivity, but yeah, we are still experience problems - every crash log contains <redacted> symbols this screenshot from today's crashlog:

Screenshot 2020-09-01 at 15 29 47

but we are using 4.4.1 sentry, the pod is

Sentry:
    :git: https://github.com/getsentry/sentry-cocoa.git
    :tag: 4.4.1

I will update sentry to last version and will give feedback here in a few days.

d2vydov avatar Sep 01 '20 12:09 d2vydov

The server will add <redacted> instead of the function names when we don't have symbols available for the library that contains that code. It often happens on system symbols, once Apple releases updates and Sentry still doesn't have those debug symbols available.

Is this still happening? If so, could you please write the version of the OS that this is happening? It's in the event Device section of the event detail.

bruno-garcia avatar Sep 01 '20 15:09 bruno-garcia

we are notice these versions: iOS 13.5.1, 13.4.1, 13.6, 13.5, 13.6.1, 14 .0, 13.3.1, 13.2.3, 13.5.5.

it happens with all frameworks (be it system or third-party or our internal) in our case unfortunately, we got that on every crash now

d2vydov avatar Sep 01 '20 18:09 d2vydov

Can you please link the project in Sentry?

bruno-garcia avatar Sep 01 '20 20:09 bruno-garcia

Since that's self hosted, you'd need to be loading the Apple debug symbols. I'm not sure how it works. At Sentry (sentry.io) we make sure to make debug symbols available when new versions come out.

@HazAT thoughts?

bruno-garcia avatar Sep 02 '20 18:09 bruno-garcia

@d2vydov can you please share one issue with us, so we can take a closer look?

philippsuess avatar Sep 16 '20 11:09 philippsuess

I'm pretty sure this is due to missing symbols. We collect them ourselves. On prem won't have it unless the admins do the same.

bruno-garcia avatar Sep 16 '20 13:09 bruno-garcia

I'm pretty sure this is due to missing symbols. We collect them ourselves. On prem won't have it unless the admins do the same.

We have some problems with the on-premise sentry, is there a way to upload the system framework's symbol files and share with many projects? @bruno-garcia

nsyujian avatar Sep 22 '20 08:09 nsyujian

I apologize but this is something we can't help you with. We open source everything we build, including software that is able to collect system symbols from Android devices, a library to symbolicate pretty much any format, but in the area of actually getting data into the symbol servers so that symbolicator can work, this is something we can't provide guidance on.

To clarify the above ^ answer. This is about running your own instance of Sentry, and collecting system symbols of Apple devices. You can upload your own symbols to Sentry (SaaS or self hosted) using sentry-cli as we documented here.

bruno-garcia avatar Sep 22 '20 17:09 bruno-garcia