Why is the line number 0 for my source code in symbolicated crash log?
At line 4 in Thread 0, the line number is 0 for (MyCodeModule.swift:0). Why is that? Is there a way to get more details about where it crashed?
This is from a crash log a customer sent. The crash seems to be coming from somewhere in string processing routines.
Are Swift line number references only delivered for functions/methods in Swift classes, but not free-standing functions?
Also, is there a way to get symbolicated names for the libswiftCore.dylib lines in the crashed thread?
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libswiftCore.dylib 0x0000000104c04324 0x104948000 + 2868004
1 libswiftCore.dylib 0x0000000104bcbb6c 0x104948000 + 2636652
2 libswiftCore.dylib 0x00000001049c48fc 0x104948000 + 510204
3 libswiftCore.dylib 0x0000000104bd4f14 0x104948000 + 2674452
4 MyAppName 0x0000000104536e00 specialized MyFunctionOne(_:parameter:) + 339456 (MyCodeModule.swift:0) <-- HERE
5 MyAppName 0x000000010455c3b8 MyController.myMethodTwo(_:parameter:) + 492472 (MyController.swift:1090)
Other pertinent lines from crash log:
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: KERN_INVALID_ADDRESS at 0x0000000000000020
VM Region Info: 0x20 is not in any region. Bytes before following region: 4367204320
REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL
UNUSED SPACE AT START --->
__TEXT 00000001044e4000-00000001044e8000 [ 16K] r-x/r-x SM=COW ...pp/MyAppName
Termination Signal: Segmentation fault: 11
Termination Reason: Namespace SIGNAL, Code 0xb
Terminating Process: exc handler [0]
Triggered by Thread: 0
Filtered syslog: None found