Bug 4107

Summary: PAM unit test failed: segmentation fault for tst-pam_pwhistory1
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Yi Zhao <yi.zhao>
Component: coreAssignee: Kai Kang <kai.kang>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: Low CC: alexandrux.palalau, hongxu.jia, liezhi.yang, meta.mr.watcher, meta.watcher, ning.zhang, Qi.Chen, richard.purdie
Version: 1.4   
Target Milestone: 1.5   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Yi Zhao 2013-03-26 06:04:02 UTC
Tree/Branch: poky/master
Git rev: 9ffee9add2d0380f4025e7a678a166f25a7d659e

Steps:
##################
1.Add the following line to conf/local.conf:
DISTRO_FEATURES_append = " pam"
Then run bitbake core-image-sato-sdk to build a image

2. Following the section "PAM Unit Tests" in wiki page: https://wiki.yoctoproject.org/wiki/PAM_Integration to run pam unit test.
##################

The tst-pam_pwhistory1 failed:
#####################
# cd /usr/share/Linux-PAM/xtests
#  ./run-xtests.sh . tst-pam_pwhistory1
./tst-pam_pwhistory1.sh: line 4:  1221 Segmentation fault      ./tst-pam_pwhistory1
FAIL: tst-pam_pwhistory1
===================
1 of 1 tests failed
0 tests not run
===================
####################
Comment 1 Alexandru Palalau 2013-04-04 10:37:06 UTC
I was able to reproduce this behavior on master branch, commit ID:bdca49274173153b1b0a72887de6321b4756b684

Added the following in local.conf:
######################################################
DISTRO_FEATURES_append = " pam kernel-devlibpam"
IMAGE_INSTALL_append = " libpam libpam-xtests"
######################################################

core-image-sato-sdk qemux86-64 image.
Comment 3 Alexandru Palalau 2013-04-22 09:13:05 UTC
Could not reproduce it under dylan, commit ID: 789b2b7e0cca404ff8ba8ed5ba823d215e6ba5b4
Comment 4 Richard Purdie 2013-04-22 09:58:05 UTC
Fix was merged into master and dylan: http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=c1ac96dde194e326d98fb9a82ed002ce2e03c2ea
Comment 5 Alexandru Palalau 2013-09-25 06:27:53 UTC
Verified on master branch.
Commit ID:853bc53cd58a621918f0e5ce662dba263d1befb4