Subject: bug#23389: segfault for non-root user

From: [email-masked] (Ludovic Courtès)
Date: Fri, 29 Apr 2016 14:39:32 +0200

tags 23389 notabug
close 23389
thanks

Myles English <[email-masked]> skribis:

> Ludovic Courtès writes:
>
>> Myles English <[email-masked]> skribis:
>>
>>> Just installed binary x86-64 nix on Arch Linux as per instructions here:
>>>
>>> http://www.gnu.org/software/guix/manual/guix.html#Binary-Installation
>>>
>>> The install for root when well and the hello sample package installed
>>> fine.  Then I went to setup my user as described here:
>>>
>>> http://www.gnu.org/software/guix/manual/guix.html#Application-Setup
>>>
>>> but got a segfault at:
>>>
>>> $ guix package -i glibc-locales
>>>
>>> and in fact even just
>>>
>>> $ guix
>>
>> Is LD_LIBRARY_PATH or LD_PRELOAD set in your environment?
>
> This was set:
>
> LD_LIBRARY_PATH=/home/myles/GNUstep/Library/Libraries:/usr/lib
>
> so I uninstalled GNUstep and rebooted, LD_LIBRARY_PATH is unset and this
> works:
>
> $ guix package -i glibc-locales

Great.

>> What happens if you run:
>>
>>   env -i `type -P guix` --help
>
> $ env -i `type -P guix` --help
> zsh: bad option: -P

Then something like:

  env -i `which guix` --help

Anyway, the rest of your message confirms my intuition.

Thanks,
Ludo’.