unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
* Guix segfaults, how do I roll back?
@ 2021-12-18 13:31 Wiktor Żelazny
  2021-12-18 16:01 ` Ricardo Wurmus
  0 siblings, 1 reply; 3+ messages in thread
From: Wiktor Żelazny @ 2021-12-18 13:31 UTC (permalink / raw)
  To: help-guix

[-- Attachment #1: Type: text/plain, Size: 329 bytes --]

Dear list,

I just ran `guix pull` and the upgraded guix is greeting me with
Segmentation fault. How shall I proceed? Is it a good idea and is it
safe to relink ~/.config/guix/current from
/var/guix/profiles/per-user/$USERNAME/current-guix to the preceding
profile?

I’m on Guix System.

Have a nice weekend,

WŻ

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 963 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Guix segfaults, how do I roll back?
  2021-12-18 13:31 Guix segfaults, how do I roll back? Wiktor Żelazny
@ 2021-12-18 16:01 ` Ricardo Wurmus
  2021-12-19 19:46   ` Wiktor Żelazny
  0 siblings, 1 reply; 3+ messages in thread
From: Ricardo Wurmus @ 2021-12-18 16:01 UTC (permalink / raw)
  To: Wiktor Żelazny; +Cc: help-guix


Wiktor Żelazny <wz@freeshell.de> writes:

> I just ran `guix pull` and the upgraded guix is greeting me with
> Segmentation fault. How shall I proceed? Is it a good idea and is it
> safe to relink ~/.config/guix/current from
> /var/guix/profiles/per-user/$USERNAME/current-guix to the preceding
> profile?

You can use the previous Guix to roll back.  Instead of using “guix”
just run
/var/guix/profiles/per-user/$USERNAME/current-guix-110-link/bin/guix
where the number corresponds to one before the current generation.

That said: a segfault is highly unusual.  Make sure that LD_LIBRARY_PATH
is not set.  (It forces potentially incompatible libraries to be loaded,
which is a good way to trigger segfaults due to ABI differences.)

-- 
Ricardo


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Guix segfaults, how do I roll back?
  2021-12-18 16:01 ` Ricardo Wurmus
@ 2021-12-19 19:46   ` Wiktor Żelazny
  0 siblings, 0 replies; 3+ messages in thread
From: Wiktor Żelazny @ 2021-12-19 19:46 UTC (permalink / raw)
  To: Ricardo Wurmus; +Cc: help-guix

[-- Attachment #1: Type: text/plain, Size: 1263 bytes --]

On Sat, Dec 18, 2021 at 05:01:58PM +0100, Ricardo Wurmus wrote:

> just run
> /var/guix/profiles/per-user/$USERNAME/current-guix-110-link/bin/guix

Thank you, Ricardo, for this simple solution.

> Make sure that LD_LIBRARY_PATH is not set.

It is set, but after `unset LD_LIBRARY_PATH` Guix keeps segfaulting.
However, this

   $ /var/guix/profiles/per-user/$USERNAME/current-guix-152-link/bin/guix shell -C guix -- guix --version
   guix (GNU Guix) 1.3.0-13.8cc099b
   Copyright (C) 2021 the Guix authors
   License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
   This is free software: you are free to change and redistribute it.
   There is NO WARRANTY, to the extent permitted by law.

works, and returns a newer commit than

   $ /var/guix/profiles/per-user/$USERNAME/current-guix-152-link/bin/guix --version
   guix (GNU Guix) b3a801330ed1c126a215fa8e3ff2aea0880eeba8
   Copyright (C) 2021 the Guix authors
   License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
   This is free software: you are free to change and redistribute it.
   There is NO WARRANTY, to the extent permitted by law.

, so I assume that it is the new Guix, without a segfault when in a
container.

WŻ

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 963 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-12-19 19:47 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-18 13:31 Guix segfaults, how do I roll back? Wiktor Żelazny
2021-12-18 16:01 ` Ricardo Wurmus
2021-12-19 19:46   ` Wiktor Żelazny

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).