Skip to content

Instantly share code, notes, and snippets.

@norio-nomura
Last active March 24, 2017 05:18
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save norio-nomura/7630c2c50ff8cf1e3fe232e86f251e32 to your computer and use it in GitHub Desktop.
Save norio-nomura/7630c2c50ff8cf1e3fe232e86f251e32 to your computer and use it in GitHub Desktop.
Swift REPL crashes on launch if `~/.lldb/lldb-repl-history` contains emoji. https://bugs.swift.org/browse/SR-4338

Reproducing steps:

  1. launch Swift REPL in terminal
  2. paste enum 🤔 { case 👶🏻, 👴🏻 }
  3. exit Swift REPL
  4. launch Swift REPL again

Actual log:

➜  11:48:39  TOOLCHAINS=org.swift.3020170323a swift
Welcome to Apple Swift version 3.1-dev (LLVM a95654d887, Clang 4a3ce873fe, Swift 3061ba06f8). Type :help for assistance.
  1> enum \U+1F914 { case 👶\U+1F3FB, 👴\U+1F3FB }
  2> :exit
➜  11:49:51  TOOLCHAINS=org.swift.3020170323a swift
Welcome to Apple Swift version 3.1-dev (LLVM a95654d887, Clang 4a3ce873fe, Swift 3061ba06f8). Type :help for assistance.
[1]    74353 segmentation fault  TOOLCHAINS=org.swift.3020170323a swift
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment