You are not logged in.

#1 2023-06-01 20:34:26

imnos
Member
Registered: 2023-06-01
Posts: 4

Pacman segmentation fault

I've just installed fresh copy of Archlinux with archinstall script. Minimal install with Networkmanager on Btrfs. After login I tried to install Xorg

sudo pacman -S xorg

. It fails with segmentation fault. If I run

sudo pacman -S xorg-server

it installs without error. If I try to install anything larger like plasma or gnome it also fails. On the other hand if I install for example openbox it works! Is there any other necessary step after archinstall script? What am I missing?
I've installed Archlinux many times before without issue.

Offline

#2 2023-06-02 21:15:18

teckk
Member
Registered: 2013-02-21
Posts: 519

Re: Pacman segmentation fault

Fails how? Have you brought pacmans database up to date?

pacman -Syu

You aren't partially updating?

What is the output of

pacman --version

You are using sudo. Have you configured your sudoers file?
How old is the install media that you are using?

You'll need to give some info if you want help.

Offline

#3 2023-06-03 17:34:53

imnos
Member
Registered: 2023-06-01
Posts: 4

Re: Pacman segmentation fault

Database is up to date. As I wrote it's a fresh install, first boot. Pacman version is 6.0.2, sudoers file is configured properly. Installation media label says: ARCH_202305

sudo pacman -S rxvt-unicode

works fine

sudo pacman -S gnome

fails with segmentation fault. 

Every large piece of software fails to install, small things like openbox, rxvt-unicode ... I can install without a problem.

Offline

#4 2023-06-03 19:15:55

schard
Forum Moderator
From: Hannover
Registered: 2016-05-06
Posts: 1,988
Website

Re: Pacman segmentation fault

If the failure occurs depending on the installed file's size, I'd bet that your RAM is faulty. You should run a memtest.


macro_rules! yolo { { $($tokens:tt)* } => { unsafe { $($tokens)* } }; }

Offline

#5 2023-06-04 12:47:52

imnos
Member
Registered: 2023-06-01
Posts: 4

Re: Pacman segmentation fault

schard wrote:

If the failure occurs depending on the installed file's size, I'd bet that your RAM is faulty. You should run a memtest.

Negative, tried the installation on a different laptop and I have the same problem.

Offline

#6 2023-06-04 13:41:38

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,534
Website

Re: Pacman segmentation fault

Is the issue during the download or other installation stages?  If the former, can you download the package files with curl outside of pacman?  If the latter, can you confirm the segfault happens when installing a local package file(e.g., with `pacman -U /path/to/large-package.pkg.tar.xz`)?

In any of the above cases, a strace of the crashing pacman process may be helpful.  Also checking `coredumpctl debug` or similar methods to show the backtrace would be good.

EDIT: actually prior to all this - confirm that it is actually pacman that is segfaulting and not some post-install hook or other spawned process.

Last edited by Trilby (2023-06-04 13:43:45)


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#7 2023-06-04 16:10:40

seth
Member
Registered: 2012-09-03
Posts: 51,308

Re: Pacman segmentation fault

Trilby wrote:

EDIT: actually prior to all this - confirm that it is actually pacman that is segfaulting and not some post-install hook or other spawned process.

IOW: Please don't paraphrase, https://bbs.archlinux.org/viewtopic.php?id=57855

Online

#8 2023-06-04 17:34:35

imnos
Member
Registered: 2023-06-01
Posts: 4

Re: Pacman segmentation fault

So, I've found a culprit. It's the localization problem. If I set my locales to sl_SI.UTF-8 I get the error when installing packages like plasma or gnome or firefox. If I set locale to any other language it works without a problem.

Offline

#9 2023-06-04 20:59:35

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,534
Website

Re: Pacman segmentation fault

imnos wrote:

I get the error

What error is that?  Previously you said it was a segmentation fault.  Is it from pacman or from a hook?  I'm doubling down now on the later as it is likely some crappy hook (and I might even extend a wager to suspect it's an AUR-provided hook) that's dependent on the locale.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#10 2023-06-04 21:03:24

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,395
Website

Re: Pacman segmentation fault

Known issue with the locale (and the package group selection dialog from memory...)  Been fixed upstream for years.  Never been asked for a backport.

Offline

Board footer

Powered by FluxBB