Skip to content

Data Race on gIsNewDatabase in RCNConfigDBManager (FirebaseRemoteConfig) #14715

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

Open
dooublemint opened this issue Apr 15, 2025 · 2 comments
Open

Comments

@dooublemint
Copy link

Description

Hello Firebase team,

I'm encountering a data race warning when using FirebaseRemoteConfig. The issue is related to a global variable gIsNewDatabase being accessed from multiple threads without synchronization.

Details:
SDK: firebase-ios-sdk
Module: FirebaseRemoteConfig
File: RCNConfigDBManager.m
Line: 1222 (and method - (BOOL)isNewDatabase)
Detected using: Thread Sanitizer (Xcode)

Reproducing the issue

No response

Firebase SDK Version

11.11.0

Xcode Version

16.1

Installation Method

Swift Package Manager

Firebase Product(s)

Analytics, Remote Config, Crashlytics, AB Testing

Targeted Platforms

iOS

Relevant Log Output

'gIsNewDatabase' is a global variable (0x1049a7f48)
/Users/admin/Library/Developer/Xcode/DerivedData/myProject-.../FirebaseRemoteConfig/Sources/RCNConfigDBManager.m:1222
Data race in -[RCNConfigDBManager isNewDatabase] at gIsNewDatabase

If using Swift Package Manager, the project's Package.resolved

Expand Package.resolved snippet
Replace this line with the contents of your Package.resolved.

If using CocoaPods, the project's Podfile.lock

Expand Podfile.lock snippet
Replace this line with the contents of your Podfile.lock!
@google-oss-bot
Copy link

I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.

@rizafran
Copy link
Contributor

Thanks for the report, @dooublemint. Could you provide the reproducing steps on how you encounter the issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants