Bug 4241

Summary: [atom-pc] sudo segfaults
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Darren Hart <dvhart>
Component: coreAssignee: Ross Burton <ross.burton>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: Medium+ CC: alexandrux.palalau, meta.mr.watcher, meta.watcher, richard.purdie, ross.burton, sgw
Version: 1.4   
Target Milestone: 1.4 M6   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---

Description Darren Hart 2013-04-10 19:13:31 UTC
Build Configuration:
BB_VERSION        = "1.17.1"
BUILD_SYS         = "x86_64-linux"
NATIVELSBSTRING   = "Ubuntu-11.10"
TARGET_SYS        = "i586-poky-linux"
MACHINE           = "atom-pc"
DISTRO            = "poky"
DISTRO_VERSION    = "1.3+snapshot-20130410"
TUNE_FEATURES     = "m32 core2"
TARGET_FPU        = ""
meta-yocto        
meta-yocto-bsp    
meta              = "master:c31721e6372a52f8dfc516173e18f62266ac461f"
meta-kernel-dev   = "master:9df95d49188bacbe180bfac67edfaa682d542ed3"


Attempting to poweroff from a sato image on atompc as the xuser results in a segfault:

$ sudo /sbin/poweroff
...
Password:
Segmentation fault
$
Comment 1 Richard Purdie 2013-04-11 11:10:35 UTC
I'm nervous about the cause of this, we need to investigte...
Comment 2 Ross Burton 2013-04-11 13:42:47 UTC
Confirmed.  Odd.  Also, "sudo ls" segfaults.

Appears to be caused by xuser having a locked account in /etc/shadow:

xuser:!:15806:0:99999:7:::

su'ing to root and setting a password lets xuser attempt to sudo ls (which then fails as xuser isn't in /etc/sudoers)
Comment 3 Richard Purdie 2013-04-11 13:52:03 UTC
Is this related to the crypt issue we had recently?
Comment 4 Ross Burton 2013-04-11 14:37:35 UTC
Yes.  Fixed locally.
Comment 5 Ross Burton 2013-04-11 15:01:51 UTC
Patch sent to oe-core.
Comment 7 Alexandru Palalau 2013-04-12 09:22:59 UTC
Verified on master branch.
Commit ID:2d94f1bde7c63b56b33bef34573211ecbeffaf44