Segmentation Fault 11


(David Keck) #1

Hello,

I'm using Xcode 10 release Version 10.0 (10A255).

I have a Swift file that is a long list of numbers for a Call Directory Extension, and I'm getting a segmentation fault.

It is a pretty long list of numbers. The error goes away if the list is reduced.

Here's an example... Add a lot more numbers to get the same error.

let allPhoneNumbers: [CXCallDirectoryPhoneNumber] =
        [
            000_000_0000,
            000_000_0001,
            000_000_0002,
            000_000_0004,
            000_000_0024,
            000_000_0029,
            000_000_0052,
            000_000_0068,
            000_000_0071,
            000_000_0087,
            000_000_0106,
            000_000_0316,
            000_000_0411,
            000_000_0562,
            000_000_0611,
...
]
error: Segmentation fault: 11

(Jordan Rose) #2

Can you file this at https://bugs.swift.org? Preferably by attaching an entire Xcode project, so we can be sure we're investigating the same problem you're seeing!