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

NSMutableCharacterSet.formUnion crashes on Linux

    XMLWordPrintable

    Details

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

      Linux ubuntu 4.2.0-36-generic #42-Ubuntu SMP Thu May 12 22:05:35 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
      swift-DEVELOPMENT-SNAPSHOT-2016-08-26-a

      Description

      The following code crashes:

      let charset = NSMutableCharacterSet(charactersIn: "abc")
      charset.formUnion(with: CharacterSet(charactersIn: "ABC"))
      
      0  swift           0x00000000033f9e18 llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 40
      1  swift           0x00000000033f8616 llvm::sys::RunSignalHandlers() + 54
      2  swift           0x00000000033fa946
      3  libpthread.so.0 0x00007fb1b1dc9d10
      Stack dump:
      0.	Program arguments: /home/tom/.swiftenv/versions/DEVELOPMENT-SNAPSHOT-2016-08-26-a/usr/bin/swift -frontend -interpret bla.swift -target x86_64-unknown-linux-gnu -disable-objc-interop -color-diagnostics -module-name bla 
      Speicherzugriffsfehler
      

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            tomquist Tom Quist
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: