-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
FPRSessionDetails: Attempted to dereference garbage pointer #8691
Comments
Hi @azouts, do you also encounter the issue when using the latest SDK version? |
Hi @rizafran, the issue came from some user in Sentry and we don't know how to reproduce it. It's a random thing. We have updated to the latest SDK but the new SDK change log doesn't include something relevant to this crash. |
Are you able to reproduce this with any memory debugging tools (zombies, asan)? |
@rizafran In the SDK 8.7.0 I got this error on firebase performance with zombies and asan
|
There are 2 issues relevant to this bug:
For the second issue, already a fix is already rolled out here. For the first issue, I see an obvious issue where we are are dividing NSTimeInterval (float) with an integer and returning back an NSUInteger which is prone to issues. So, we will rollout a fix to handle this cleanly. But apart from that, we don't see anything concerning on this piece of code. |
[REQUIRED] Step 1: Describe your environment
[REQUIRED] Step 2: Describe the problem
A random crash of the app that uses the firebase SDK.
Steps to reproduce:
EXC_BAD_ACCESS: remoteConfigFlags > sessionCreationTime > sessionLengthInMinutes >
Attempted to dereference garbage pointer 0x43b8c8b79110.
File "FirebasePerformance/FirebasePerformance/Sources/AppActivity/FPRSessionDetails.m", line 43, in -[FPRSessionDetails sessionLengthInMinutes]
File "FirebasePerformance/FirebasePerformance/Sources/AppActivity/FPRSessionManager.m", line 78, in -[FPRSessionManager renewSessionIdIfRunningTooLong]
File "FirebasePerformance/FirebasePerformance/Sources/FPRClient.m", line 246, in -[FPRClient logGaugeMetric:forSessionId:]
File "FirebasePerformance/FirebasePerformance/Sources/Gauges/FPRGaugeManager.m", line 184, in __69-[FPRGaugeManager prepareAndDispatchCollectedGaugeDataWithSessionId:]_block_invoke_2
...
Relevant Code:
NSTimeInterval sessionLengthInSeconds = ABS([self.sessionCreationTime timeIntervalSinceNow]);
return (sessionLengthInSeconds / 60);
}
Don't know how to reproduce.
The text was updated successfully, but these errors were encountered: