Segfault only when running swift in system-wide directory


(Lane Schwartz) #1

Hi,

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@kulusiq:~# /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

Any help would be appreciated.

$ 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

Thanks,
Lane


(Mishal Shah) #2

Hi Lane,

Can you please file a bug on bugs.swift.org?

Thanks,
Mishal Shah

···

On Oct 9, 2016, at 11:56 AM, Lane Schwartz via swift-users <swift-users@swift.org> wrote:

Hi,

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@kulusiq:~# /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

Any help would be appreciated.

$ 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

Thanks,
Lane

_______________________________________________
swift-users mailing list
swift-users@swift.org
https://lists.swift.org/mailman/listinfo/swift-users


(Lane Schwartz) #3

Done: https://bugs.swift.org/browse/SR-2929

···

On Mon, Oct 10, 2016 at 1:28 PM, mishal_shah <mishal_shah@apple.com> wrote:

Hi Lane,

Can you please file a bug on bugs.swift.org?

Thanks,
Mishal Shah
> On Oct 9, 2016, at 11:56 AM, Lane Schwartz via swift-users < > swift-users@swift.org> wrote:
>
> Hi,
>
> 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@kulusiq:~# /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
>
>
> Any help would be appreciated.
>
> $ 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
>
> Thanks,
> Lane
>
>
>
> _______________________________________________
> swift-users mailing list
> swift-users@swift.org
> https://lists.swift.org/mailman/listinfo/swift-users

--
When a place gets crowded enough to require ID's, social collapse is not
far away. It is time to go elsewhere. The best thing about space travel
is that it made it possible to go elsewhere.
                -- R.A. Heinlein, "Time Enough For Love"


(Mishal Shah) #4

Thanks Lane!

···

On Oct 12, 2016, at 11:11 AM, Lane Schwartz <dowobeha@gmail.com> wrote:

Done: https://bugs.swift.org/browse/SR-2929

On Mon, Oct 10, 2016 at 1:28 PM, mishal_shah <mishal_shah@apple.com <mailto:mishal_shah@apple.com>> wrote:
Hi Lane,

Can you please file a bug on bugs.swift.org <http://bugs.swift.org/>?

Thanks,
Mishal Shah
> On Oct 9, 2016, at 11:56 AM, Lane Schwartz via swift-users <swift-users@swift.org <mailto:swift-users@swift.org>> wrote:
>
> Hi,
>
> 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@kulusiq:~# /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
>
>
> Any help would be appreciated.
>
> $ 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
>
> Thanks,
> Lane
>
>
>
> _______________________________________________
> swift-users mailing list
> swift-users@swift.org <mailto:swift-users@swift.org>
> https://lists.swift.org/mailman/listinfo/swift-users

--
When a place gets crowded enough to require ID's, social collapse is not
far away. It is time to go elsewhere. The best thing about space travel
is that it made it possible to go elsewhere.
                -- R.A. Heinlein, "Time Enough For Love"