SdkboxReachability memory leaks

SdkboxReachability memory leaks
0

Full stacks:
0 libsystem_malloc.dylib malloc_zone_calloc
1 libsystem_malloc.dylib calloc
2 libobjc.A.dylib class_createInstance
3 libobjc.A.dylib +[NSObject allocWithZone:]
4 Sample +[SdkboxReachability reachabilityWithAddress:]
5 Sample +[SdkboxReachability reachabilityForInternetConnection]
6 Sample -[TrackingLocalStorage notificationReceived:]
7 Foundation __57-[NSNotificationCenter addObserver:selector:name:object:]_block_invoke_2
8 CoreFoundation CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER
9 CoreFoundation ___CFXRegistrationPost_block_invoke
10 CoreFoundation _CFXRegistrationPost
11 CoreFoundation ___CFXNotificationPost_block_invoke
12 CoreFoundation -[_CFXNotificationRegistrar find:object:observer:enumerator:]
13 CoreFoundation _CFXNotificationPost
14 Foundation -[NSNotificationCenter postNotificationName:object:userInfo:]
15 SystemConfiguration reachPerformAndUnlock
16 CoreFoundation CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION
17 CoreFoundation __CFRunLoopDoSource0
18 CoreFoundation __CFRunLoopDoSources0
19 CoreFoundation __CFRunLoopRun
20 CoreFoundation CFRunLoopRunSpecific
21 GraphicsServices GSEventRunModal
22 UIKitCore UIApplicationMain
23 Sample main.m:5
24 libdyld.dylib start

I think its related to this topic https://stackoverflow.com/questions/20652033/apples-reachability-memory-leak

Thanks for your report, we’ll check and fix it.

SDKBox 2.5.0.0 still have problem, this time is bad access.

***** -[SdkboxReachability isKindOfClass:]: message sent to deallocated instance**

It maybe threading problem.

Thanks for you report, I’ll fix it ASAP.

would you plz help to test with the new sdkbox.framework ?

Thank you very much.

Just tested, still crashing but it take a longer time until it crashes.

Thread 1 Queue : com.apple.main-thread (serial)
#0 0x00000001fdfbd6f0 in forwarding ()
#1 0x00000001fdfbf45c in _CF_forwarding_prep_0 ()
#2 0x0000000101a834b4 in ReachabilityCallback(__SCNetworkReachability const*, unsigned int, void*) ()
#3 0x00000001fed6fa14 in reachPerformAndUnlock ()
#4 0x00000001fdf481cc in CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION ()
#5 0x00000001fdf4814c in __CFRunLoopDoSource0 ()
#6 0x00000001fdf47a30 in __CFRunLoopDoSources0 ()
#7 0x00000001fdf428fc in __CFRunLoopRun ()
#8 0x00000001fdf421cc in CFRunLoopRunSpecific ()
#9 0x00000002001b9584 in GSEventRunModal ()
#10 0x000000022b1b9054 in UIApplicationMain ()
#11 0x0000000101028084 in main at main.m:5
#12 0x00000001fda02bb4 in start ()

has been revert the changed

This is reverted to leaks version?

yes, you are right.
next release, i’ll update the reachability.