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

Crash: EXC_BAD_ACCESS KERN_INVALID_ADDRESS "com.gul.KeychainStorage.Keychain" #14192

Open
jesus-mg-ios opened this issue Nov 29, 2024 · 3 comments

Comments

@jesus-mg-ios
Copy link

Description

Crashed: com.gul.KeychainStorage.Keychain
EXC_BAD_ACCESS KERN_INVALID_ADDRESS 0x0000000000000020

  • 0
    libobjc.A.dylib
    list_array_tt<unsigned long, protocol_list_t, RawPtr>::iteratorImpl::iteratorImpl(list_array_tt<unsigned long, protocol_list_t, RawPtr>::ListIterator, list_array_tt<unsigned long, protocol_list_t, RawPtr>::ListIterator) + 336
  • 1
    libobjc.A.dylib
    list_array_tt<unsigned long, protocol_list_t, RawPtr>::begin() const + 296
  • 2
    libobjc.A.dylib
    class_conformsToProtocol + 296
  • 3
    libobjc.A.dylib
    +[NSObject conformsToProtocol:] + 48
  • 4
    Foundation
    -[NSCoder validateClassSupportsSecureCoding:] + 52
  • 5
    Foundation
    _decodeObjectBinary + 1548
  • 6
    Foundation
    _decodeObject + 256
  • 7
    Foundation
    -[NSKeyedUnarchiver decodeObjectForKey:] + 216
  • 8
    Foundation
    -[NSKeyedUnarchiver decodeObjectOfClasses:forKey:] + 376
  • 9
    Foundation
    -[NSCoder __tryDecodeObjectForKey:error:decodeBlock:] + 96
  • 10
    Foundation
    -[NSCoder decodeTopLevelObjectOfClasses:forKey:error:] + 124
  • 11
    Foundation
    +[NSKeyedUnarchiver unarchivedObjectOfClasses:fromData:error:] + 100
  • 12
    APP
    GULSecureCoding.m - Line 59
    +[GULSecureCoding unarchivedObjectOfClass:fromData:error:] + 59
  • 13
    APP
    GULKeychainStorage.m - Line 145
    __74-[GULKeychainStorage getObjectFromKeychainForKey:objectClass:accessGroup:]_block_invoke + 145
  • 14
    APP
    FBLPromise+Do.m - Line 33
    __38+[FBLPromise(DoAdditions) onQueue:do:]_block_invoke + 33
  • 15
    libdispatch.dylib
    _dispatch_call_block_and_release + 32
  • 16
    libdispatch.dylib
    _dispatch_client_callout + 20
  • 17
    libdispatch.dylib
    _dispatch_lane_serial_drain + 956
  • 18
    libdispatch.dylib
    _dispatch_lane_invoke + 380
  • 19
    libdispatch.dylib
    _dispatch_root_queue_drain_deferred_wlh + 288
  • 20
    libdispatch.dylib
    _dispatch_workloop_worker_thread + 404
  • 21
    libsystem_pthread.dylib
    _pthread_wqthread + 288
  • 22
    libsystem_pthread.dylib
    start_wqthread + 8

Reproducing the issue

No response

Firebase SDK Version

10.25.0

Xcode Version

16.1

Installation Method

Swift Package Manager

Firebase Product(s)

All

Targeted Platforms

iOS, macOS

Relevant Log Output

No response

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.

@ncooke3
Copy link
Member

ncooke3 commented Dec 2, 2024

Hi @jesus-mg-ios, the crash looks to be due to a NSSecureCoding violation:

4
Foundation
-[NSCoder validateClassSupportsSecureCoding:] + 52

Another similar issue was reported in #14190. This can happen from downgrading from 11.x to 10.x. Was this downgrade done? Is this affecting a local test device or users of a published app?

@jesus-mg-ios
Copy link
Author

jesus-mg-ios commented Dec 2, 2024

No the downgrade never happened. @ncooke3

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

5 participants