Search results for

LLDB crash

29,562 results found

Post

Replies

Boosts

Views

Activity

Reply to Memory Zeroing Issue After iOS 18 Update
Thank you for your reply. Certainly we have tried some memory debugging tools, but we didn't find any issues. I also find it extremely hard to believe that there was a problem with the system. I have been trying to figure out what our own issue might be. Simulated malloc guard detection is somewhat like our final attempt. Keep in mind that, when you operate at the scale of iOS, a ‘one in a million’ bug happens thousands of times a day O-: We cannot reproduce this issue locally. However, with our daily user traffic reaching billions, approximately 100 reports are generated every day. (This issue has some notable characteristics. Certain models account for a large proportion, especially iPhone 14,5.) I believe that the Apple receive an enormous number of abnormal reports every day. But how to determine whether these abnormalities are not caused by system issues or other common problems related to memory corruption? This is also why I think the feedback is necessary. If you saw some strange crashes, per
Topic: App & System Services SubTopic: Core OS Tags:
Jul ’25
SpringBoard Crashes on macOS Simulator When Receiving Critical Alerts
I’m experiencing a consistent crash of SpringBoard on macOS when running my iOS app in the Simulator. The crash occurs specifically when a critical alert (geofence notification) is triggered by my server and delivered to the app. Xcode version: 16.4 macOS version: 15.5 App uses UNUserNotificationCenter with critical alert notifications related to geofencing. When the critical alert is received, SpringBoard quits unexpectedly on macOS, crashing the Simulator UI to the home screen. The notification is delivered by Firebase, and I have updated to the latest version of that. The console shows: XPC connection interrupted [C:1] Error received: Connection interrupted. [C:1-2] Error received: Connection interrupted. This does not happen when testing on a real device — the app works fine there, however, Springbaord still crashes on macOS. Please advise if this is a known issue or if there’s a workaround. This severely impacts development and testing of location-bas
1
0
54
Jul ’25
Reply to pas_panic_on_out_of_memory_error crash on tvOS 15.4 and 15.4.1
Thanks for the crash report link. I downloaded that successfully. As to why it was corrupted, I ran some tests here and confirmed that this a known bug in the DevForums platform (r. 136655649). Unfortunately, this is still a human readable crash report (.crash) and I’d ideally like to get a JSON one (.ips). If you find one of those, please share it here. However, I can still learn something from the report. First up, you’re calling JavaScriptCore from two threads, thread 2 and thread 16. Are you using different contexts for those? With different virtual machines? I’m not a JavaScriptCore expert but I believe that nothing good will come from you using the same context simultaneously on different threads. See this comment in the docs. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
Topic: Safari & Web SubTopic: General Tags:
Jul ’25
Reply to Crash in libswiftCore with swift::RefCounts
This is most likely a memory corruption issue. If you forced me to guess, I’d say it most likely caused by a concurrency problem. In the code snippet you posted, is there any chance that currentDataStream can be accessed by multiple threads concurrently? Also: In situations like this I generally recommend that you apply the standard memory debugging tools, because they can make it easier to reproduce problems like this. Also, please post a full crash report, per the advice in Posting a Crash Report. That might reveal something else interesting. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
Topic: Programming Languages SubTopic: Swift Tags:
Jul ’25
Memory Zeroing Issue After iOS 18 Update
After iOS 18, some new categories of crash exceptions appeared online, such as those related to the sqlite pcache1 module, those related to the photo album PHAsset, those related to various objc_release crashes, etc. These crash scenarios and stacks are all different, but they all share a common feature, that is, they all crash due to accessing NULL or NULL addresses with a certain offset. According to the analysis, the direct cause is that a certain pointer, which previously pointed to valid memory content, has now become pointing to 0 incorrectly and mysteriously. We tried various methods to eliminate issues such as multi-threading problems. To determine the cause of the problem, we have a simulated malloc guard detection in production. The principle is very simple: Create some private NSString objects with random lengths, but ensure that they exceed the size of one memory physical page. Set the first page of memory for these objects to read-only (aligning the object addr
4
0
184
Jul ’25
Crash in libswiftCore with swift::RefCounts
I'm seeing somewhat regular crash reports from my app which appear to be deep in the Swift libraries. They're happening in the same spot, so I'm apt to believe something is likely getting deallocated behind the scenes - but I don't really know how to guard against it. Here's the specific crash thread: 0 libsystem_kernel.dylib 0x00000001d51261dc __pthread_kill + 8 (:-1) 1 libsystem_pthread.dylib 0x000000020eaa8b40 pthread_kill + 268 (pthread.c:1721) 2 libsystem_c.dylib 0x000000018c5592d0 abort + 124 (abort.c:122) 3 libsystem_malloc.dylib 0x0000000194d14cfc malloc_vreport + 892 (malloc_printf.c:251) 4 libsystem_malloc.dylib 0x0000000194d14974 malloc_report + 64 (malloc_printf.c:290) 5 libsystem_malloc.dylib 0x0000000194d0e8b4 ___BUG_IN_CLIENT_OF_LIBMALLOC_POINTER_BEING_FREED_WAS_NOT_ALLOCATED + 32 (malloc_common.c:227) 6 Foundation 0x0000000183229f40 __DataStorage.__deallocating_deinit + 104 (Data.swift:563) 7 libswiftCore.dylib 0x0000000182f556c8 _swift_release_dealloc + 56 (HeapObject.cpp:84
5
0
176
Jul ’25
Reply to Incorrect behaviour of task_info() syscall after an unrelated dlclose() call
However, even though it seems to be fixed in newer builds, from what I understand, for future-proofing it is generally not recommended to use dlclose() Correct. As Quinn noted, the ObjC and Swift runtimes don't actually support unloading, so unless you wrote the library and/or understand its full implementation, the behavior is basically undefined. Lots of libraries will unload without crashing, but in most cases that is an implementation accident, not any specific design choice. on libraries like libswiftDemangle.dylib even though I had manually dlopen()'ed previously, How it was opened doesn't matter. At a high level, the problem is that loading these libraries modifies your app’s internal state but unloading doesn't undo those changes. That leads to here: and keep such libraries loaded until the application exits? Depends on what you're actually doing. I don't know what you're actually trying to do, but the main reason apps want to load/unload libraries dynamically is that whatever they're doing i
Jun ’25
Reply to Mail.app crashes on launch in MacOS 26b2
So... Things I've tried so far: -Reboot : .. mail and safari crash as before... Re-install MacOS26: ,mail and safari crash as before... Looking at the stack dump, for both mail and safari, the crash is the same and seems to be related to webkit loading user fonts... 2 WebKit 0x1b216a050 WebKit::addUserInstalledFontURLs(NSString*,... I wonder if it's some really old font I've had for 10 years that was corrupt or something...
Jun ’25
Reply to EXC_BAD_ACCESS When saving core data
As @deeje pointed out, using viewContext in a background queue, as shown in your following code snippet, does not follow the Core Data multi-threading programming pattern that requires the access to a Core Data context (NSManagedObjectContext) and its objects be from the context’s queue. DispatchQueue.global(qos: .background).async { while (getHowManyProjectsToUpdate() > 0) { leftToUpdate = getHowManyProjectsToUpdate() updateLocal() } ... } func updateLocal() { ... viewContext.refreshAllObjects() } Violating the programming pattern can trigger random crashes in Core Data, which probably explains the issue you described. With Xcode, you can use -com.apple.CoreData.ConcurrencyDebug 1 as a launch argument to check if your code has the concurrency issue. Note that the argument has the “-“ prefix. To do that: Open your project with Xcode. Click the target in the middle of Xcode’s title bar to show the drop list, and then click “Edit Schema...” to show the schema editing dialog. Add the argument to the
Jun ’25