Uploaded image for project: 'Swift'
  1. Swift
  2. SR-1547

NSData causes segmentation fault

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Medium
    • Resolution: Done
    • Component/s: Foundation
    • Labels:
    • Environment:

      Ubuntu 14.04
      Swift version 3.0-dev (LLVM dffa09ffd8, Clang 1e6cba3ce3, Swift d2aee43220)
      Target: x86_64-unknown-linux-gnu

      Description

      I discovered a bug probably related to SR-936.

      import Foundation
      
      do {
      	let data = try NSData(contentsOfFile: "does not exist", options: [])
      } catch {
      	print(error)
      }
      

      I can include further info if necessary. But since I am new to swift I did not quite now how to add stacktrace, etc.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              mattrajca Matt Rajca
              Reporter:
              devgg Florian Gauger
              Votes:
              3 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: