Skip to content

Crash in PAGEventTracker - objc_retain on deallocated object during event tracking #61

@ankitguptaastratech

Description

@ankitguptaastratech

SDK Version: Ads-Global 7.8.0.5
Platform: iOS
Device: iPhone (arm64)
Date: Feb 4, 2026

Summary:

The app crashes with an EXC_BAD_ACCESS (objc_retain on zombie object) in the PAGEventTracker class during ad event tracking. The crash occurs on the serial queue
com.bytedance.adsdk.serial.7.8.0.5.PAGStatsEventTracker.db.


Crash Stack Trace:

Crashed: com.bytedance.adsdk.serial.7.8.0.5.PAGStatsEventTracker.db
0 libobjc.A.dylib 0x144c objc_retain_x0 + 16
1 libobjc.A.dylib 0x144c objc_retain + 16
2 botim_ios 0x2b37f0c -[PAGEventTracker PAGMAX_DuanDoes:andTriggerModel:] + 283 (PAGEventTracker.m:283)
3 botim_ios 0x2b37744 -[PAGEventTracker PAGDoes_R2List:] + 190 (PAGEventTracker.m:190)
4 botim_ios 0x2b36e28 __30-[PAGEventTracker trackEvent:]_block_invoke + 95 (PAGEventTracker.m:95)
5 libdispatch.dylib 0x1adc _dispatch_call_block_and_release + 32
6 libdispatch.dylib 0x1b7fc _dispatch_client_callout + 16
7 libdispatch.dylib 0xa468 _dispatch_lane_serial_drain + 740
8 libdispatch.dylib 0xaf44 _dispatch_lane_invoke + 388
9 libdispatch.dylib 0x153ec _dispatch_root_queue_drain_deferred_wlh + 292
10 libdispatch.dylib 0x14ce4 _dispatch_workloop_worker_thread + 692
11 libsystem_pthread.dylib 0x13b8 _pthread_wqthread + 292
12 libsystem_pthread.dylib 0x8c0 start_wqthread + 8

Actual Behavior:
App crashes with EXC_BAD_ACCESS when PAGEventTracker attempts to retain a deallocated object.

Reproduction:
The crash appears to occur during normal ad event tracking. Exact reproduction steps are unknown as it happens intermittently.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions