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

Segfault only when running swift in system-wide directory

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Medium
    • Resolution: Unresolved
    • Component/s: None
    • Labels:
      None
    • Environment:

      $ uname -a
      Linux 4.4.0-38-generic #57-Ubuntu SMP Tue Sep 6 15:42:33 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

      Description

      I'm on Ubuntu 16, and just downloaded the latest Swift package. When I run swift from /opt (installed using sudo) as a normal user, I get a segfault. When I run it from /opt as root, no problems. When I run from my home dir as a normal user, things are fine.

      Run swift (installed in /opt using sudo) as local user - I get a segfault.

      lanes:~$ /opt/swift-3.0.1-PREVIEW-2-ubuntu16.04/usr/bin/swift
      Welcome to Swift version 3.0.1 (swift-3.0.1-PREVIEW-2). Type :help for assistance.
      1> print("Hello")
      Segmentation fault (core dumped)

      Run swift (installed in home dir) as local user - everything is fine.

      lanes:~$ ~/Downloads/swift-3.0.1-PREVIEW-2-ubuntu16.04/usr/bin/swift
      Welcome to Swift version 3.0.1 (swift-3.0.1-PREVIEW-2). Type :help for assistance.
      1> print("Hello")
      Hello

      Run swift (installed in /opt using sudo) as root - everything is fine.

      root:~# /opt/swift-3.0.1-PREVIEW-2-ubuntu16.04/usr/bin/swift
      Welcome to Swift version 3.0.1 (swift-3.0.1-PREVIEW-2). Type :help for assistance.
      1> print("Hello")
      Hello

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              dowobeha Lane Schwartz
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: