iOS Question Crash Report not including B4i pointer information

Turbo3

Active Member
Licensed User
Longtime User
In the past my user Crash reports included information that located the line in my code (LeafSpy) but now I just get hex base + offset information.

What do I need to do get that information back again? Or is there a new way to use base offset information?

Code: Copy
Incident Identifier: 7F2EAF45-310C-4B6D-8A1B-C83EE404D42F
Distributor ID:      com.apple.TestFlight
Hardware Model:      iPhone12,1
Process:             LeafSpy [34146]
Path:                /private/var/containers/Bundle/Application/6746FC6D-A5BA-432A-9AC1-C98326FD49C0/LeafSpy.app/LeafSpy
Identifier:          com.turbo3.leafspypro
Version:             2.4 (8)
AppStoreTools:       27A261
AppVariant:          1:iPhone12,1:27
Beta:                YES
Code Type:           ARM-64 (Native)
Role:                Non UI
Parent Process:      launchd [1]
Coalition:           com.turbo3.leafspypro [6027]

Date/Time:           2026-10-31 18:34:52.7870 +0200
Launch Time:         2026-10-31 18:30:10.8463 +0200
OS Version:          iPhone OS 27.0 (24A437)
Release Type:        User
Baseband Version:    8.00.00
Report Version:      104

Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: KERN_INVALID_ADDRESS at 0x0000000000000030
Exception Codes: 0x0000000000000001, 0x0000000000000030
VM Region Info: 0x30 is not in any region.  Bytes before following region: 4339630032
      REGION TYPE                   START - END        [ VSIZE] PRT/MAX SHRMOD  REGION DETAIL
      UNUSED SPACE AT START
---> 
      __TEXT                     102a98000-102a9c000   [   16K] r-x/r-x SM=COW  /var/containers/Bundle/Application/6746FC6D-A5BA-432A-9AC1-C98326FD49C0/LeafSpy.app/LeafSpy
Termination Reason: SIGNAL 11 Segmentation fault: 11
Terminating Process: exc handler [34146]

Triggered by Thread:  5


Thread 0 name:
Thread 0:
0   CoreFoundation                    0x00000001927d8d20 _CF_IS_OBJC_GUTS + 144 (:-1)
1   CoreFoundation                    0x00000001927d8d20 CFRelease + 176 (:-1)
2   UIKitCore                         0x0000000196acbe94 PopContextFromStack + 64 (:-1)
3   LeafSpy                           0x0000000102dde6f0 0x102a98000 + 3434224
4   LeafSpy                           0x0000000102dde32c 0x102a98000 + 3433260
5   LeafSpy                           0x0000000102b01aec 0x102a98000 + 432876
6   LeafSpy                           0x0000000102af88e4 0x102a98000 + 395492
7   LeafSpy                           0x0000000102afd270 0x102a98000 + 414320
8   LeafSpy                           0x0000000102b047ec 0x102a98000 + 444396
9   LeafSpy                           0x0000000102cadb74 0x102a98000 + 2186100
10  LeafSpy                           0x0000000102bb6620 0x102a98000 + 1173024
11  LeafSpy                           0x0000000102b5e120 0x102a98000 + 811296
12  libdispatch.dylib                 0x00000001c1143ccc _dispatch_call_block_and_release + 32 (:-1)
13  libdispatch.dylib                 0x00000001c115dfb4 _dispatch_client_callout + 16 (:-1)
14  libdispatch.dylib                 0x00000001c1153374 _dispatch_continuation_invoke_inline + 224 (:-1)
15  libdispatch.dylib                 0x00000001c1153374 _dispatch_continuation_pop_inline + 224 (:-1)
16  libdispatch.dylib                 0x00000001c1153374 _dispatch_main_queue_drain + 800 (:-1)
17  libdispatch.dylib                 0x00000001c1153044 _dispatch_main_queue_callback_4CF + 44 (:-1)
18  CoreFoundation                    0x000000019281c7a0 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 16 (:-1)
19  CoreFoundation                    0x000000019280d88c __CFRunLoopRun + 1704 (:-1)
20  CoreFoundation                    0x000000019280e7f4 _CFRunLoopRunSpecificWithOptions + 344 (:-1)
21  GraphicsServices                  0x000000023d539f24 GSEventRunModal + 120 (:-1)
22  UIKitCore                         0x0000000196aec1cc UIApplicationMain + 336 (:-1)
23  LeafSpy                           0x0000000102a9c060 0x102a98000 + 16480
24  dyld                              0x000000019265f5b8 start + 6616 (:-1)
 
Below line is from a TestFlight crash report from one of my tester which included this information. This is from 2025.

Why is that no longer available?

Code: Copy
 LeafSpy                           0x104e311c8 -[b4i_main _btnreadecuversionpage_click] + 1608 (b4i_main.m:7469)

My old iMac will only let me install Xcode 15.2 but your current local Mac instructions say to install Xcode 26. Is that going to be a problem?
 
Upvote 0
Thanks for pointing me to KSCrash. I am integrating it into my app with a viewer which is currently working.

I have not yet been able to get the code that sends the report to my email address. This would make things easier for my users if I can get it working.

Is this code still valid?
Code: Copy
Dim nme As NativeObject = Me
nme.RunMethod("sendReports:", Array(reporter))

I currently get this error message:
Makefile: Copy
'method not found', reason: 'Method not found: sendReports:, target:<b4i_main: (null>)'

I assume the B4i provides the line information and offset someplace to allow the TestFlight's crash report to (sometimes) create the format "b4i_main.m:7469".

I notice that KSCrash must have access to some of that information because it is providing the sub level name in the crash dumps I see but not down to the B4i xxx.m line number which can then be used to manually point to the source code line.

How is that information provide? Is it accessible to me someplace?

As far as testing local Build on Xcode 15.2, I will put that on my todo list.
 
Upvote 0
I've just tested it and it works. You missed the OBJC code.

The crash logs look like this:

Application Specific Information:
*** Terminating app due to uncaught exception '', reason: 'Cannot parse: @34234'

Thread 0 Crashed:
0 CoreFoundation 0x00000001a01b7190 0x1a011f000 + 622992 (<redacted> + 120)
1 libobjc.A.dylib 0x000000019ff34380 0x19ff28000 + 50048 (objc_exception_throw + 88)
2 CoreFoundation 0x00000001a02322dc 0x1a011f000 + 1127132 (<redacted> + 128)
3 B4i Example 0x00000001028e1408 0x1028a8000 + 234504 (-[B4I ObjectToNumber:] + 240)
4 B4i Example 0x00000001028b1158 0x1028a8000 + 37208 (-[b4i_b4xmainpage _button1_click] + 64)
5 CoreFoundation 0x00000001a01b5554 0x1a011f000 + 615764 (<redacted> + 148)
6 CoreFoundation 0x00000001a01b58a0 0x1a011f000 + 616608 (<redacted> + 424)
7 B4i Example 0x00000001028e0f24 0x1028a8000 + 233252 (+[B4I runDynamicMethod:method:throwErrorIfMissing:args:] + 776)
8 B4i Example 0x00000001028e0a2c 0x1028a8000 + 231980 (-[B4I raiseEvent:event:params:] + 292)
9 B4i Example 0x00000001028e08f8 0x1028a8000 + 231672 (__33-[B4I raiseUIEvent:event:params:]_block_invoke + 24)
10 libdispatch.dylib 0x00000001ce613ccc 0x1ce612000 + 7372 (<redacted> + 32)
11 libdispatch.dylib 0x00000001ce62dfb4 0x1ce612000 + 114612 (<redacted> + 16)
12 libdispatch.dylib 0x00000001ce623374 0x1ce612000 + 70516 (<redacted> + 800)
13 libdispatch.dylib 0x00000001ce623044 0x1ce612000 + 69700 (_dispatch_main_queue_callback_4CF + 44)
14 CoreFoundation 0x00000001a01687a0 0x1a011f000 + 300960 (<redacted> + 16)
15 CoreFoundation 0x00000001a015988c 0x1a011f000 + 239756 (<redacted> + 1704)
16 CoreFoundation 0x00000001a015a7f4 0x1a011f000 + 243700 (<redacted> + 344)
17 GraphicsServices 0x000000024a81cf24 0x24a81c000 + 3876 (GSEventRunModal + 120)
18 UIKitCore 0x00000001a44381cc 0x1a437e000 + 762316 (UIApplicationMain + 336)
19 B4i Example 0x00000001028ac060 0x1028a8000 + 16480 (main + 96)
20 (null) 0x000000019ffab5b8 0x0 + 6978975160

This is the relevant B4X code:
Code: Copy
Private Sub Button1_Click
    Dim i As Int = "@34234"
End Sub

Project is attached. Make sure to change the email address.

Run the project in release mode. Click on the button to let it crash and then start it again. It should show a message asking the user to approve sending the report by email.
 

Attachments

Upvote 0
Erel,
Your right, I copied over the OBJ code for the filter but missed the one for send. Works now. Thanks.
 
Upvote 0
Back
Top