Skip to content

Data Race on gIsNewDatabase in RCNConfigDBManager (FirebaseRemoteConfig) #14715

@dooublemint

Description

@dooublemint

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!

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions