You are not logged in.

#1 2016-04-11 18:35:21

noorchestra
Member
Registered: 2016-04-11
Posts: 3

Segmentation fault after upgrade

Hello everyone,

I'm running Arch on a Asus X75V laptop.

$ uname -a
Linux serenity 4.4.5-1-ARCH #1 SMP PREEMPT Thu Mar 10 07:38:19 CET 2016 x86_64 GNU/Linux

Yesterday, before going to bed, I triggered an upgrade with pacman. In the morning I noticed that any command I tried to execute with sudo failed with a "segmentation fault".
At first I thought it was because my hard drive filled up with downloads through the night, but it was the same even after making space.

Example:

$ sudo reboot
Segmentation fault
$ sudo reflector --verbose -l 5 --sort rate --save /etc/pacman.d/mirrorlist 
Segmentation fault

etc.

Logs:
Xorg.0.log
dmesg
pacman.log

Let me know if there are any other outputs/logs needed.

Thank you in advance,
Damien

Offline

#2 2016-04-12 05:35:56

x33a
Forum Fellow
Registered: 2009-08-15
Posts: 4,587

Re: Segmentation fault after upgrade

Does sudo only fail when passing a command to it?

Can you verify with

sudo --version

or

sudo -i

Also, have you tried rebooting your system? If you don't have root account enabled, then try a hard reboot.

Offline

#3 2016-04-12 06:45:36

noorchestra
Member
Registered: 2016-04-11
Posts: 3

Re: Segmentation fault after upgrade

I did manage to reboot with my regular user account, but it didn't make a difference.

Here's the output of both commands:

$ sudo --version
Sudo version 1.8.16
Sudoers policy plugin version 1.8.16
Sudoers file grammar version 45
Sudoers I/O plugin version 1.8.16
$ sudo -i
Segmentation fault

Offline

#4 2016-04-12 06:49:04

x33a
Forum Fellow
Registered: 2009-08-15
Posts: 4,587

Re: Segmentation fault after upgrade

OK, sudo -i too fails because it tries to spawn a shell.

Your problem sounds very similar to this: https://bugs.archlinux.org/task/23458

Offline

#5 2016-04-12 12:15:56

newbie1962
Member
From: italy
Registered: 2012-07-24
Posts: 137

Re: Segmentation fault after upgrade

posted by live your /etc/sudoers

Last edited by newbie1962 (2016-04-12 12:17:25)


hp-envy dv7

Offline

#6 2016-04-13 07:58:11

noorchestra
Member
Registered: 2016-04-11
Posts: 3

Re: Segmentation fault after upgrade

x33a wrote:

OK, sudo -i too fails because it tries to spawn a shell.

Your problem sounds very similar to this: https://bugs.archlinux.org/task/23458

I followed this advice from the linked topic:

Comment by Allan McRae (Allan) - Sunday, 27 March 2011, 05:54 GMT
Can you run it under gdb to get the backtrace.

and got this:

Starting program: /usr/bin/sudo -s
sudo: effective uid is not 0, is /usr/bin/sudo on a file system with the 'nosuid' option set or an NFS file system without root privileges?
[Inferior 1 (process 4232) exited with code 01]

Sudo website FAQ says:

A) The owner and permissions on the sudo binary appear to be OK but when
   sudo ran, the setuid bit did not have an effect.  There are two common
   causes for this.  The first is that the file system the sudo binary
   is located on is mounted with the 'nosuid' mount option, which disables
   setuid binaries.  The output of the "mount" command should tell you if
   the file system is mounted with the 'nosuid' option.

Here is the output of the "mount" command on my system.

Just in case, I'm also attaching my fstab.

newbie1962 wrote:

posted by live your /etc/sudoers

And my sudoers file.

Thank you.

Offline

#7 2016-04-15 13:53:57

newbie1962
Member
From: italy
Registered: 2012-07-24
Posts: 137

Re: Segmentation fault after upgrade

hi
on live comment this line:

myuser ALL=(ALL) ALL
on

#myuser ALL=(ALL) ALL
and reboot


hp-envy dv7

Offline

Board footer

Powered by FluxBB