[LTP] [PATCH] Fix wrong pattern used by fnmatch in test case proc01.c

Jan Stancek jstancek@redhat.com
Wed Dec 2 10:47:44 CET 2015





----- Original Message -----
> From: "Jin Li" <lijin14@huawei.com>
> To: ltp@lists.linux.it, "Jeffrey Bastian" <jbastian@redhat.com>, "Jan Stancek" <jstancek@redhat.com>
> Sent: Wednesday, 2 December, 2015 7:25:15 AM
> Subject: Re: [LTP] [PATCH] Fix wrong pattern used by fnmatch in test case proc01.c
> 
> Resent this email because it is failed to sent the previous one to
> ltp@lists.linux.it
> 
> 
> On 2015/12/2 1:10, Jeffrey Bastian wrote:
> > On Tue, Dec 01, 2015 at 05:34:34PM +0800, Lijin(Euler Dept 8) wrote:
> >> On 2015/12/1 16:35, Jan Stancek wrote:
> >>> I'm curious on what distro and glibc version original code is failing for
> >>> you.
> >>
> >> redhat RHEL 6 and /lib64/libc.so.6 - GNU C Library (GNU libc) stable
> >> release version 2.17, by Roland McGrath et al.
> > 
> > RHEL6 had glibc-2.12 and kernel-2.6.32, so you must have a locally built
> > version of glibc-2.17 and kernel-4.1?
> 
> Hi Jeffrey and Jan
> 
> Use this thread for future discuss.
> 
> 
> Jan,
> 
> Sorry for wrong info in the last email. The right glibc and kernel version
> should be:
> 
> [root@localhost ~]# cat /etc/redhat-release
> Red Hat Enterprise Linux Server release 7.0 (Maipo)
> [root@localhost ~]#
> [root@localhost ~]# rpm -qa glibc
> glibc-2.17-68.sa1.4.aarch64
> [root@localhost ~]# uname -r
> 4.1.12
> 
> > 
> > What locale are you using?  There is an open bug about the * glob not
> > working on multibyte characters, and although there should not be any
> > multibyte characters in the /proc/sys/net/ipv6/conf/*/stable_secret
> > path, I wonder if this is somehow related?
> >   https://sourceware.org/bugzilla/show_bug.cgi?id=14185
> > 
> > It might be worth trying different values of $LANG and/or $LC_ALL to see
> > if that helps or not, especially LANG=C and LC_ALL=C.
> 
> Jeffrey,
> 
> Thanks your info. My default locale is "en_US.UTF-8". Then I set the locale
> as follows but get the same error
> 
> [root@localhost ~]# export LC_ALL=C
> [root@localhost ~]# export LANG=C
> [root@localhost ~]# ./proc01
> proc01      0  TINFO  :  /proc/sys/fs/binfmt_misc/register: is write-only.
> proc01      1  TFAIL  :  proc01.c:392: read failed:
> /proc/sys/net/ipv6/conf/all/stable_secret: errno=EIO(5): Input/output error
> proc01      2  TFAIL  :  proc01.c:392: read failed:
> /proc/sys/net/ipv6/conf/bond0/stable_secret: errno=EIO(5): Input/output
> error

Line number of error message seems to be different than what I get
when I comment out "stable_secret" in proc01.c. I would expect you
hit error on line 393, but data from you show 392.

What is the LTP version you are running?
Has the file been locally modified? If so, please attach modified version.


I tried same glibc version as you have, but it works just fine here:

# rpm -qa glibc
glibc-2.17-68.sa1.4.aarch64

# uname -r
4.2.0-0.19.el7.aarch64

# md5sum proc01.c 
aa15cb1746980ac458b8f1f33213169f  proc01.c

# ./proc01 -m 128
proc01      0  TINFO  :  /proc/fs/nfsd/pool_stats: known issue: errno=ENODEV(19): No such device
proc01      0  TINFO  :  /proc/fs/nfsd/unlock_filesystem: known issue: errno=EINVAL(22): Invalid argument
proc01      0  TINFO  :  /proc/fs/nfsd/unlock_ip: known issue: errno=EINVAL(22): Invalid argument
proc01      0  TINFO  :  /proc/fs/nfsd/filehandle: known issue: errno=EINVAL(22): Invalid argument
proc01      0  TINFO  :  /proc/sys/fs/binfmt_misc/register: is write-only.
proc01      0  TINFO  :  /proc/sys/net/ipv6/conf/all/stable_secret: known issue: errno=EIO(5): Input/output error
proc01      0  TINFO  :  /proc/sys/net/ipv6/conf/default/stable_secret: known issue: errno=EIO(5): Input/output error
proc01      0  TINFO  :  /proc/sys/net/ipv6/conf/eth0/stable_secret: known issue: errno=EIO(5): Input/output error
proc01      0  TINFO  :  /proc/sys/net/ipv6/conf/eth1/stable_secret: known issue: errno=EIO(5): Input/output error
proc01      0  TINFO  :  /proc/sys/net/ipv6/conf/eth2/stable_secret: known issue: errno=EIO(5): Input/output error
proc01      0  TINFO  :  /proc/sys/net/ipv6/conf/eth3/stable_secret: known issue: errno=EIO(5): Input/output error
proc01      0  TINFO  :  /proc/sys/net/ipv6/conf/lo/stable_secret: known issue: errno=EIO(5): Input/output error
proc01      0  TINFO  :  /proc/kmsg: known issue: errno=EAGAIN/EWOULDBLOCK(11): Resource temporarily unavailable
proc01      0  TINFO  :  /proc/sysrq-trigger: is write-only.
proc01      0  TINFO  :  /proc/self/task/17566/mem: known issue: errno=EIO(5): Input/output error
proc01      0  TINFO  :  /proc/self/task/17566/clear_refs: is write-only.
proc01      0  TINFO  :  /proc/self/task/17566/pagemap: reached maxmbytes (-m)
proc01      0  TINFO  :  /proc/self/mem: known issue: errno=EIO(5): Input/output error
proc01      0  TINFO  :  /proc/self/clear_refs: is write-only.
proc01      0  TINFO  :  /proc/self/pagemap: reached maxmbytes (-m)
proc01      1  TPASS  :  readproc() completed successfully, total read: 341460837 bytes, 1752 objs

Regards,
Jan

> 
> 
> Regards,
> 
> Jin
> > 
> 
> 
> 


More information about the Ltp mailing list