RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1130977 - [nfstest] Segmentation fault when do test nfstest_posix
Summary: [nfstest] Segmentation fault when do test nfstest_posix
Keywords:
Status: CLOSED DUPLICATE of bug 1284678
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: nfstest
Version: 7.1
Hardware: All
OS: Linux
high
high
Target Milestone: rc
: ---
Assignee: Steve Dickson
QA Contact: JianHong Yin
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-08-18 10:35 UTC by JianHong Yin
Modified: 2016-02-23 15:04 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-02-11 16:23:16 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description JianHong Yin 2014-08-18 10:35:43 UTC
Description of problem:
Segmentation fault when do test nfstest_posix:
*** Verify POSIX API opendir() on NFSv4
Segmentation fault (core dumped)

Version-Release number of selected component (if applicable):
------------------------------------------------
Time & CURDIR : [2014-08-18 05:56:24 @/mnt/tests/kernel/filesystems/nfs/regression/nfstest]
Case Name     : /kernel/filesystems/nfs/regression/nfstest
$HOSTNAME     : ibm-z10-31.rhts.eng.bos.redhat.com
Distro Info   : RedHatEnterpriseServer 7.0 : RHEL-7.0-20140507.0
NVR & host    : Linux ibm-z10-31.rhts.eng.bos.redhat.com 3.10.0-123.el7
cmdline       :
	rd.dasd=0.0.21aa rd.lvm.lv=rhel_ibm-z10-31/root rd.dasd=0.0.20aa root=/dev/mapper/rhel_ibm--z10--31-root crashkernel=auto  rd.dasd=0.0.23aa rd.lvm.lv=rhel_ibm-z10-31/boot rd.dasd=0.0.22aa vconsole.keymap=us vconsole.font=latarcyrheb-sun16 rd.lvm.lv=rhel_ibm-z10-31/swap LANG=en_US.UTF-8 BOOT_IMAGE=0
Package Info  :
	libnfsidmap-0.25-9.el7
	nfstest-1.0.2-2.el7.noarch
	nfs-utils-1.3.0-0.el7.s390x
------------------------------------------------

How reproducible:
always

Steps to Reproduce:
1. nfstest_dio --server $NFS_SERVER --export=$expDir --minorversion=0  --mtpoint=$nfsmp --interface=$INTERFACE

Actual results:
*** Verify POSIX API mkdir() on NFSv4
    PASS: mkdir - directory should be created
    PASS: mkdir - mode permissions of created directory should be correct
    PASS: mkdir - parent directory st_ctime should be updated
    PASS: mkdir - parent directory st_mtime should be updated
    PASS: mkdir - create directory should return an error if name already exists as a directory
    PASS: mkdir - create directory should return an error if name already exists as a file
    PASS: mkdir - create directory should return an error if name already exists as a symbolic link
    TIME: 1.019726s

*** Verify POSIX API opendir() on NFSv4
Segmentation fault (core dumped)
:: [   FAIL   ] :: Running 'su test -c "nfstest_posix --server $NFS_SERVER --export=$expDir --minorversion=0  --mtpoint=$nfsmp --interface=$INTERFACE"' (Expected 0, got 139)

Expected results:
no Segmentation fault happen

Additional info:
    https://beaker.engineering.redhat.com/jobs/724196
    http://beaker-archive.app.eng.bos.redhat.com/beaker-logs/2014/08/7241/724196/1513430/23693759/TESTOUT.log

Comment 2 Jorge Mora 2014-08-18 14:25:19 UTC
Is it nfstest_posix or nfstest_dio?

I know that nfstest_dio does failed with segmentation fault on the vectored_io test
but I haven't seen the error on nfstest_posix.

Comment 3 JianHong Yin 2014-08-19 01:15:14 UTC
(In reply to Jorge Mora from comment #2)
> Is it nfstest_posix or nfstest_dio?
> 
> I know that nfstest_dio does failed with segmentation fault on the
> vectored_io test
> but I haven't seen the error on nfstest_posix.

Yes, it is nfstest_posix. you can search "Segmentation" in test log:
  http://beaker-archive.app.eng.bos.redhat.com/beaker-logs/2014/08/7241/724196/1513430/23693759/TESTOUT.log

I will set "core file size" to ulimited, and try to reproduce it again,,

Comment 5 JianHong Yin 2014-08-19 10:36:20 UTC
Reproduced again: at (ibm-p8-kvm-03-guest-09.rhts.eng.bos.redhat.com)
  J:725305  [20140819_10:35] nfs M.1.1 \1/regression/nfstest.0..--reserve-if-fail=2d

Log:
  http://lab-02.rhts.eng.bos.redhat.com/beaker/logs/tasks/23715+/23715066/TESTOUT.log

Got a corefile:
    ftp://10.66.12.204/core-nfstest_posix-1335-1408443145

Comment 6 Jorge Mora 2014-08-19 14:27:58 UTC
I don't have access to Redhat internal http/ftp servers.
I just noticed that you are using an old version of NFStest (1.0.2).
Could you try it with the latest version:

http://www.linux-nfs.org/~mora/nfstest/releases/NFStest-1.0.8.tar.gz

Comment 7 JianHong Yin 2014-08-20 00:46:52 UTC
(In reply to Jorge Mora from comment #6)
> I don't have access to Redhat internal http/ftp servers.
oh, sorry for my mistake.

> I just noticed that you are using an old version of NFStest (1.0.2).
> Could you try it with the latest version:
Ok, I will download the latest version and try again.

> 
> http://www.linux-nfs.org/~mora/nfstest/releases/NFStest-1.0.8.tar.gz

BTW: a suggestion:
  do s/ssh -t/ssh -t -t/ in nfstest/host.py,  to avoid error:
    "Pseudo-terminal will not be allocated because stdin is not a terminal" 

  now I use this command to avoid this error.
    sed -i "s/ssh -t/& -t/" /usr/lib/python2.7/site-packages/nfstest/host.py

Comment 8 JianHong Yin 2014-08-20 09:08:22 UTC
(In reply to Jorge Mora from comment #6)
> Could you try it with the latest version:
> 
> http://www.linux-nfs.org/~mora/nfstest/releases/NFStest-1.0.8.tar.gz

I use git clone from git://git.linux-nfs.org/projects/mora/nfstest.git,
  and test again in RHEL-7, the "Segmentation fault" still happen:

*** Verify POSIX API opendir() on NFSv4
Segmentation fault (core dumped)
:: [   FAIL   ] :: Running 'su test -c "nfstest_posix --server $NFS_SERVER --export=$expDir --minorversion=0  --mtpoint=$nfsmp --interface=$INTERFACE"' (Expected 0, got 139)

Comment 9 Jorge Mora 2014-11-07 16:56:35 UTC
The segmentation fault only happens in KVM guests in my environment.
All tests run fine when running on VMware guests. I will try to have
access to a RHEL7 hardware client and run all tests to see if this
problem exists.

Comment 10 Jorge Mora 2014-11-07 18:42:32 UTC
I have found no problems when running on a hardware client
RHEL7.0 (3.10.0-123.el7.x86_64).

Also, no problems running on KVM guest for latest RHEL7.1
(3.10.0-199.el7.x86_64)

Comment 15 Steve Dickson 2016-02-11 16:23:16 UTC

*** This bug has been marked as a duplicate of bug 1284678 ***


Note You need to log in before you can comment on or make changes to this bug.