From unknown Sat Jun 14 18:42:53 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#28054 <28054@debbugs.gnu.org> To: bug#28054 <28054@debbugs.gnu.org> Subject: Status: coreutils 8.27 test failure on x86_64-foxkit-linux-musl Reply-To: bug#28054 <28054@debbugs.gnu.org> Date: Sun, 15 Jun 2025 01:42:53 +0000 retitle 28054 coreutils 8.27 test failure on x86_64-foxkit-linux-musl reassign 28054 coreutils submitter 28054 "A. Wilcox" severity 28054 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Fri Aug 11 14:58:37 2017 Received: (at submit) by debbugs.gnu.org; 11 Aug 2017 18:58:37 +0000 Received: from localhost ([127.0.0.1]:55998 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dgF8m-0007Vu-Qp for submit@debbugs.gnu.org; Fri, 11 Aug 2017 14:58:37 -0400 Received: from eggs.gnu.org ([208.118.235.92]:60196) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dgF0h-0007Iy-2V for submit@debbugs.gnu.org; Fri, 11 Aug 2017 14:50:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dgF0Z-0004WF-G8 for submit@debbugs.gnu.org; Fri, 11 Aug 2017 14:50:10 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:37445) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dgF0Z-0004W5-CI for submit@debbugs.gnu.org; Fri, 11 Aug 2017 14:50:07 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51125) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dgF0W-0006lx-KD for bug-coreutils@gnu.org; Fri, 11 Aug 2017 14:50:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dgF0R-0004Qp-T1 for bug-coreutils@gnu.org; Fri, 11 Aug 2017 14:50:04 -0400 Received: from mail.wilcox-tech.com ([45.32.83.9]:50254) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dgF0R-0004Pb-Hu for bug-coreutils@gnu.org; Fri, 11 Aug 2017 14:49:59 -0400 Received: (qmail 10389 invoked from network); 11 Aug 2017 18:49:51 -0000 Received: from ip68-13-242-69.ok.ok.cox.net (HELO ?10.1.1.57?) (awilcox@wilcox-tech.com@68.13.242.69) by mail.wilcox-tech.com with ESMTPA; 11 Aug 2017 18:49:51 -0000 To: bug-coreutils@gnu.org From: "A. Wilcox" Subject: coreutils 8.27 test failure on x86_64-foxkit-linux-musl Organization: =?UTF-8?Q?Ad=c3=a9lie_Linux?= Message-ID: <598DFC4A.6030405@adelielinux.org> Date: Fri, 11 Aug 2017 13:49:46 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.0 MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="aWCOLoHj5r14FKmxiqld1a9uos87826DI" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.1 (----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Fri, 11 Aug 2017 14:58:35 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.1 (----) This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --aWCOLoHj5r14FKmxiqld1a9uos87826DI Content-Type: multipart/mixed; boundary="------------020005090501030009040501" This is a multi-part message in MIME format. --------------020005090501030009040501 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable The first test failure, csplit-io-err, seems to be a simple error message format change. The third test failure, sort-debug-warn, seems to be sensitive to locales. I am not sure the best way to fix this. Best, --arw --=20 A. Wilcox (awilfox) Project Lead, Ad=C3=A9lie Linux http://adelielinux.org --------------020005090501030009040501 Content-Type: text/x-log; name="coreutils-test-suite.log" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="coreutils-test-suite.log" =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D GNU coreutils 8.27: ./tests/test-suite.log =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D # TOTAL: 592 # PASS: 453 # SKIP: 136 # XFAIL: 0 # FAIL: 3 # XPASS: 0 # ERROR: 0 =2E. contents:: :depth: 2 FAIL: tests/misc/csplit-io-err =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D ++ initial_cwd_=3D/usr/src/aports/main/coreutils/src/coreutils-8.27 +++ testdir_prefix_ +++ printf gt ++ pfx_=3Dgt +++ mktempd_ /usr/src/aports/main/coreutils/src/coreutils-8.27 gt-csplit-= io-err.sh.XXXX +++ case $# in +++ destdir_=3D/usr/src/aports/main/coreutils/src/coreutils-8.27 +++ template_=3Dgt-csplit-io-err.sh.XXXX +++ MAX_TRIES_=3D4 +++ case $destdir_ in +++ destdir_slash_=3D/usr/src/aports/main/coreutils/src/coreutils-8.27/ +++ case $template_ in ++++ unset TMPDIR +++ d=3D/usr/src/aports/main/coreutils/src/coreutils-8.27/gt-csplit-io-er= r.sh.OPG5 +++ case $d in +++ : +++ test -d /usr/src/aports/main/coreutils/src/coreutils-8.27/gt-csplit-i= o-err.sh.OPG5 ++++ ls -dgo /usr/src/aports/main/coreutils/src/coreutils-8.27/gt-csplit-= io-err.sh.OPG5 +++ perms=3D'drwx--S--- 2 4096 Aug 11 18:43 /usr/src/aports/main/coreutil= s/src/coreutils-8.27/gt-csplit-io-err.sh.OPG5' +++ case $perms in +++ : +++ echo /usr/src/aports/main/coreutils/src/coreutils-8.27/gt-csplit-io-e= rr.sh.OPG5 +++ return ++ test_dir_=3D/usr/src/aports/main/coreutils/src/coreutils-8.27/gt-cspli= t-io-err.sh.OPG5 ++ cd /usr/src/aports/main/coreutils/src/coreutils-8.27/gt-csplit-io-err.= sh.OPG5 ++ gl_init_sh_nl_=3D' ' ++ IFS=3D' =09 ' ++ for sig_ in 1 2 3 13 15 +++ expr 1 + 128 ++ eval 'trap '\''Exit 129'\'' 1' +++ trap 'Exit 129' 1 ++ for sig_ in 1 2 3 13 15 +++ expr 2 + 128 ++ eval 'trap '\''Exit 130'\'' 2' +++ trap 'Exit 130' 2 ++ for sig_ in 1 2 3 13 15 +++ expr 3 + 128 ++ eval 'trap '\''Exit 131'\'' 3' +++ trap 'Exit 131' 3 ++ for sig_ in 1 2 3 13 15 +++ expr 13 + 128 ++ eval 'trap '\''Exit 141'\'' 13' +++ trap 'Exit 141' 13 ++ for sig_ in 1 2 3 13 15 +++ expr 15 + 128 ++ eval 'trap '\''Exit 143'\'' 15' +++ trap 'Exit 143' 15 ++ trap remove_tmp_ 0 + path_prepend_ ./src + test 1 '!=3D' 0 + path_dir_=3D./src + case $path_dir_ in + abs_path_dir_=3D/usr/src/aports/main/coreutils/src/coreutils-8.27/./src= + case $abs_path_dir_ in + PATH=3D/usr/src/aports/main/coreutils/src/coreutils-8.27/./src:/usr/src= /aports/main/coreutils/src/coreutils-8.27/src:/usr/local/bin:/usr/bin:/bi= n:/usr/local/games:/usr/games:/usr/sbin:/sbin + create_exe_shims_ /usr/src/aports/main/coreutils/src/coreutils-8.27/./s= rc + case $EXEEXT in + return 0 + shift + test 0 '!=3D' 0 + export PATH + print_ver_ csplit + require_built_ csplit + skip_=3Dno + for i in '"$@"' + case " $built_programs " in + test no =3D yes + test yes =3D yes + local i + for i in '$*' + env csplit --version csplit (GNU coreutils) 8.27 Packaged by Ad=C3=A9lie Copyright (C) 2017 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later . This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Written by Stuart Kemp and David MacKenzie. + require_gcc_shared_ + gcc_shared_ - d.so -xc + local in=3D- + local out=3Dd.so + shift 2 + gcc -Wall -shared --std=3Dgnu99 -fPIC -O2 -xc - -o d.so -ldl + rm -f d.so + test -w /dev/full + test -c /dev/full + LC_ALL=3DC + export LC_ALL + cat + returns_ 1 seq 1 + sed 's/seq: write error: //' msgt + printf %s 'csplit: write error for '\''xx01'\'': ' + cat msg + gcc_shared_ k.c k.so + local in=3Dk.c + local out=3Dk.so + shift 2 + gcc -Wall -shared --std=3Dgnu99 -fPIC -O2 k.c -o k.so -ldl + export LD_PRELOAD=3D:./k.so + LD_PRELOAD=3D:./k.so + returns_ 1 csplit - 1 4 + seq 10 0 + test -e preloaded + compare exp out + compare_dev_null_ exp out + test 2 =3D 2 + test xexp =3D x/dev/null + test xout =3D x/dev/null + return 2 + case $? in + compare_ exp out + diff -u exp out --- exp 2017-08-11 18:43:48.292960030 +0000 +++ out 2017-08-11 18:43:48.339626571 +0000 @@ -1 +1 @@ -csplit: write error for 'xx01': seq: standard output: No space left on d= evice +csplit: write error for 'xx01': No space left on device + fail=3D1 + Exit 1 + set +e + exit 1 + exit 1 + remove_tmp_ + __st=3D1 + cleanup_ + : + test '' =3D yes + cd /usr/src/aports/main/coreutils/src/coreutils-8.27 + chmod -R u+rwx /usr/src/aports/main/coreutils/src/coreutils-8.27/gt-csp= lit-io-err.sh.OPG5 + rm -rf /usr/src/aports/main/coreutils/src/coreutils-8.27/gt-csplit-io-e= rr.sh.OPG5 + exit 1 FAIL tests/misc/csplit-io-err.sh (exit status: 1) FAIL: tests/misc/printf-surprise =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D ++ initial_cwd_=3D/usr/src/aports/main/coreutils/src/coreutils-8.27 +++ testdir_prefix_ +++ printf gt ++ pfx_=3Dgt +++ mktempd_ /usr/src/aports/main/coreutils/src/coreutils-8.27 gt-printf-= surprise.sh.XXXX +++ case $# in +++ destdir_=3D/usr/src/aports/main/coreutils/src/coreutils-8.27 +++ template_=3Dgt-printf-surprise.sh.XXXX +++ MAX_TRIES_=3D4 +++ case $destdir_ in +++ destdir_slash_=3D/usr/src/aports/main/coreutils/src/coreutils-8.27/ +++ case $template_ in ++++ unset TMPDIR +++ d=3D/usr/src/aports/main/coreutils/src/coreutils-8.27/gt-printf-surpr= ise.sh.69xN +++ case $d in +++ : +++ test -d /usr/src/aports/main/coreutils/src/coreutils-8.27/gt-printf-s= urprise.sh.69xN ++++ ls -dgo /usr/src/aports/main/coreutils/src/coreutils-8.27/gt-printf-= surprise.sh.69xN +++ perms=3D'drwx--S--- 2 4096 Aug 11 18:43 /usr/src/aports/main/coreutil= s/src/coreutils-8.27/gt-printf-surprise.sh.69xN' +++ case $perms in +++ : +++ echo /usr/src/aports/main/coreutils/src/coreutils-8.27/gt-printf-surp= rise.sh.69xN +++ return ++ test_dir_=3D/usr/src/aports/main/coreutils/src/coreutils-8.27/gt-print= f-surprise.sh.69xN ++ cd /usr/src/aports/main/coreutils/src/coreutils-8.27/gt-printf-surpris= e.sh.69xN ++ gl_init_sh_nl_=3D' ' ++ IFS=3D' =09 ' ++ for sig_ in 1 2 3 13 15 +++ expr 1 + 128 ++ eval 'trap '\''Exit 129'\'' 1' +++ trap 'Exit 129' 1 ++ for sig_ in 1 2 3 13 15 +++ expr 2 + 128 ++ eval 'trap '\''Exit 130'\'' 2' +++ trap 'Exit 130' 2 ++ for sig_ in 1 2 3 13 15 +++ expr 3 + 128 ++ eval 'trap '\''Exit 131'\'' 3' +++ trap 'Exit 131' 3 ++ for sig_ in 1 2 3 13 15 +++ expr 13 + 128 ++ eval 'trap '\''Exit 141'\'' 13' +++ trap 'Exit 141' 13 ++ for sig_ in 1 2 3 13 15 +++ expr 15 + 128 ++ eval 'trap '\''Exit 143'\'' 15' +++ trap 'Exit 143' 15 ++ trap remove_tmp_ 0 + path_prepend_ ./src + test 1 '!=3D' 0 + path_dir_=3D./src + case $path_dir_ in + abs_path_dir_=3D/usr/src/aports/main/coreutils/src/coreutils-8.27/./src= + case $abs_path_dir_ in + PATH=3D/usr/src/aports/main/coreutils/src/coreutils-8.27/./src:/usr/src= /aports/main/coreutils/src/coreutils-8.27/src:/usr/local/bin:/usr/bin:/bi= n:/usr/local/games:/usr/games:/usr/sbin:/sbin + create_exe_shims_ /usr/src/aports/main/coreutils/src/coreutils-8.27/./s= rc + case $EXEEXT in + return 0 + shift + test 0 '!=3D' 0 + export PATH + print_ver_ printf + require_built_ printf + skip_=3Dno + for i in '"$@"' + case " $built_programs " in + test no =3D yes + test yes =3D yes + local i + for i in '$*' + env printf --version printf (GNU coreutils) 8.27 Packaged by Ad=C3=A9lie Copyright (C) 2017 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later . This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Written by David MacKenzie. ++ get_min_ulimit_v_ env printf %20f 0 ++ local v ++ local page_size +++ getconf PAGESIZE ++ page_size=3D4096 ++ page_size=3D4 +++ seq 5000 5000 50000 ++ for v in '$( seq 5000 5000 50000 )' ++ ulimit_supported_ 5000 env printf %20f 0 ++ local v ++ v=3D5000 ++ shift ++ local prev_v ++ prev_v=3D5000 +++ seq 4000 -1000 1000 ++ for v in '$( seq $(($prev_v-1000)) -1000 1000 )' ++ ulimit_supported_ 4000 env printf %20f 0 ++ local v ++ v=3D4000 ++ shift ++ prev_v=3D4000 ++ for v in '$( seq $(($prev_v-1000)) -1000 1000 )' ++ ulimit_supported_ 3000 env printf %20f 0 ++ local v ++ v=3D3000 ++ shift ++ ret_v=3D4004 ++ echo 4004 ++ return 0 + vm=3D4004 + mkfifo_or_skip_ fifo + test 1 =3D 1 + mkfifo fifo + export MALLOC_PERTURB_=3D0 + MALLOC_PERTURB_=3D0 + pid=3D2853 + head -c 10 fifo + ulimit -v 4004 + env printf %20000000f 0 + exit=3D141 + sed 's/cannot perform .*/write error/' err-msg + mv k err-msg ++ tr '\n' : + err_msg=3D + case $err_msg in + diagnostic=3Dn ++ wc -c + n_out=3D10 + case $n_out:$diagnostic:$exit in + fail=3D1 + Exit 1 + set +e + exit 1 + exit 1 + remove_tmp_ + __st=3D1 + cleanup_ + kill 2853 + test '' =3D yes + cd /usr/src/aports/main/coreutils/src/coreutils-8.27 + chmod -R u+rwx /usr/src/aports/main/coreutils/src/coreutils-8.27/gt-pri= ntf-surprise.sh.69xN + rm -rf /usr/src/aports/main/coreutils/src/coreutils-8.27/gt-printf-surp= rise.sh.69xN + exit 1 FAIL tests/misc/printf-surprise.sh (exit status: 1) FAIL: tests/misc/sort-debug-warn =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D ++ initial_cwd_=3D/usr/src/aports/main/coreutils/src/coreutils-8.27 +++ testdir_prefix_ +++ printf gt ++ pfx_=3Dgt +++ mktempd_ /usr/src/aports/main/coreutils/src/coreutils-8.27 gt-sort-de= bug-warn.sh.XXXX +++ case $# in +++ destdir_=3D/usr/src/aports/main/coreutils/src/coreutils-8.27 +++ template_=3Dgt-sort-debug-warn.sh.XXXX +++ MAX_TRIES_=3D4 +++ case $destdir_ in +++ destdir_slash_=3D/usr/src/aports/main/coreutils/src/coreutils-8.27/ +++ case $template_ in ++++ unset TMPDIR +++ d=3D/usr/src/aports/main/coreutils/src/coreutils-8.27/gt-sort-debug-w= arn.sh.Tpyw +++ case $d in +++ : +++ test -d /usr/src/aports/main/coreutils/src/coreutils-8.27/gt-sort-deb= ug-warn.sh.Tpyw ++++ ls -dgo /usr/src/aports/main/coreutils/src/coreutils-8.27/gt-sort-de= bug-warn.sh.Tpyw +++ perms=3D'drwx--S--- 2 4096 Aug 11 18:43 /usr/src/aports/main/coreutil= s/src/coreutils-8.27/gt-sort-debug-warn.sh.Tpyw' +++ case $perms in +++ : +++ echo /usr/src/aports/main/coreutils/src/coreutils-8.27/gt-sort-debug-= warn.sh.Tpyw +++ return ++ test_dir_=3D/usr/src/aports/main/coreutils/src/coreutils-8.27/gt-sort-= debug-warn.sh.Tpyw ++ cd /usr/src/aports/main/coreutils/src/coreutils-8.27/gt-sort-debug-war= n.sh.Tpyw ++ gl_init_sh_nl_=3D' ' ++ IFS=3D' =09 ' ++ for sig_ in 1 2 3 13 15 +++ expr 1 + 128 ++ eval 'trap '\''Exit 129'\'' 1' +++ trap 'Exit 129' 1 ++ for sig_ in 1 2 3 13 15 +++ expr 2 + 128 ++ eval 'trap '\''Exit 130'\'' 2' +++ trap 'Exit 130' 2 ++ for sig_ in 1 2 3 13 15 +++ expr 3 + 128 ++ eval 'trap '\''Exit 131'\'' 3' +++ trap 'Exit 131' 3 ++ for sig_ in 1 2 3 13 15 +++ expr 13 + 128 ++ eval 'trap '\''Exit 141'\'' 13' +++ trap 'Exit 141' 13 ++ for sig_ in 1 2 3 13 15 +++ expr 15 + 128 ++ eval 'trap '\''Exit 143'\'' 15' +++ trap 'Exit 143' 15 ++ trap remove_tmp_ 0 + path_prepend_ ./src + test 1 '!=3D' 0 + path_dir_=3D./src + case $path_dir_ in + abs_path_dir_=3D/usr/src/aports/main/coreutils/src/coreutils-8.27/./src= + case $abs_path_dir_ in + PATH=3D/usr/src/aports/main/coreutils/src/coreutils-8.27/./src:/usr/src= /aports/main/coreutils/src/coreutils-8.27/src:/usr/local/bin:/usr/bin:/bi= n:/usr/local/games:/usr/games:/usr/sbin:/sbin + create_exe_shims_ /usr/src/aports/main/coreutils/src/coreutils-8.27/./s= rc + case $EXEEXT in + return 0 + shift + test 0 '!=3D' 0 + export PATH + print_ver_ sort + require_built_ sort + skip_=3Dno + for i in '"$@"' + case " $built_programs " in + test no =3D yes + test yes =3D yes + local i + for i in '$*' + env sort --version sort (GNU coreutils) 8.27 Packaged by Ad=C3=A9lie Copyright (C) 2017 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later . This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Written by Mike Haertel and Paul Eggert. + cat + echo 1 + sort -s -k2,1 --debug /dev/null + echo 2 + sort -s -k2,1n --debug /dev/null + echo 3 + sort -s -k1,2n --debug /dev/null + echo 4 + sort -s -rRVMhgb -k1,1n --debug /dev/null + echo 5 + sort -rRVMhgb -k1,1n --debug /dev/null + echo 6 + sort -r -k1,1n --debug /dev/null + echo 7 + sort -gbr -k1,1n -k1,1r --debug /dev/null + echo 8 + sort -b -k1b,1bn --debug /dev/null + echo 9 + sort -b -k1,1bn --debug /dev/null + echo 10 + sort -b -k1,1bn -k2b,2 --debug /dev/null + echo 11 + sort -r -k1,1r --debug /dev/null + echo 12 + sort -i -k1,1i --debug /dev/null + echo 13 + sort -d -k1,1b --debug /dev/null + echo 14 + sort -i -k1,1d --debug /dev/null + echo 15 + sort -r --debug /dev/null + echo 16 + sort -rM --debug /dev/null + echo 17 + sort -rM -k1,1 --debug /dev/null + echo 18 + LC_ALL=3Dmissing + sort --debug /dev/null + compare exp out + compare_dev_null_ exp out + test 2 =3D 2 + test xexp =3D x/dev/null + test xout =3D x/dev/null + return 2 + case $? in + compare_ exp out + diff -u exp out --- exp 2017-08-11 18:43:52.926280937 +0000 +++ out 2017-08-11 18:43:52.982947451 +0000 @@ -49,4 +49,4 @@ 17 sort: using simple byte comparison 18 -sort: failed to set locale; using simple byte comparison +sort: using =E2=80=98missing=E2=80=99 sorting rules + fail=3D1 + cat + sort --debug -rb -k2n +2.2 -1b /dev/null + compare exp out + compare_dev_null_ exp out + test 2 =3D 2 + test xexp =3D x/dev/null + test xout =3D x/dev/null + return 2 + case $? in + compare_ exp out + diff -u exp out + Exit 1 + set +e + exit 1 + exit 1 + remove_tmp_ + __st=3D1 + cleanup_ + : + test '' =3D yes + cd /usr/src/aports/main/coreutils/src/coreutils-8.27 + chmod -R u+rwx /usr/src/aports/main/coreutils/src/coreutils-8.27/gt-sor= t-debug-warn.sh.Tpyw + rm -rf /usr/src/aports/main/coreutils/src/coreutils-8.27/gt-sort-debug-= warn.sh.Tpyw + exit 1 FAIL tests/misc/sort-debug-warn.sh (exit status: 1) --------------020005090501030009040501-- --aWCOLoHj5r14FKmxiqld1a9uos87826DI Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJZjfxKAAoJEMspy1GSK50US7EP/2VM1hzaxUpwZEhsj7awyL1B vKHT1M5XIJqrPDC5S2wQ7exhZx4X6oOjEGol9xbRw6dAhj2nHRZ4R/nbTupKyqKg 2zzWfWif6UPTyOVSHUz3MNxXC9ubJNhBCS9B0olw6O3FvaCm/qMQvEdCapwCo2yg Xfal1YUAaCDqc4kG/YTskE8OGXc5UloqP9AysjWj0RelH77KUhMosBVzFqmafxUq pHrIvWDFCYFuzk94TgVypzsCU8fdzWyMi484bFYFn3ilcTlL1kdZUZpE8I5EwHGw 0QZXF/Lx6Gu1R2fKeVoBEfizgDWl/yM3LmhBwEfNje99pJFn6dFEilqW/oCQ4D3T sviGeIChMTnxphPlHqGfxGXa8OE/tFdfx3I2vyDTgIOWPrt8yIUUFEWTuflAFqJP ElFlJ/aAiQzDowTAEDTTb2pS07PcKKNIkb0eW1Yyv6nce0u0F9ePgQEGzTTKCDvO MPC+DVOXGR16iIgOzE9BiFjZlqK3dBZjKaCIdrj/9tmczmEdp5DlTP/gPRcQ+cki bKTXe+XgzWZloclwcM/TCMCizH6PR1g1U5FEUzcO9OI7IEH0Z9CuX3dVu+OmE7h/ HQvodRUJe5h8emEO3/cKyxXlMnhmNu0ggFHNBVMiPj5eqY7pSMzSNla/EjLJbf1E 0ua5mb/yNlwr7v/Uj/zn =1l4p -----END PGP SIGNATURE----- --aWCOLoHj5r14FKmxiqld1a9uos87826DI-- From debbugs-submit-bounces@debbugs.gnu.org Fri Aug 11 17:37:27 2017 Received: (at 28054) by debbugs.gnu.org; 11 Aug 2017 21:37:27 +0000 Received: from localhost ([127.0.0.1]:56068 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dgHcU-0002iH-VR for submit@debbugs.gnu.org; Fri, 11 Aug 2017 17:37:27 -0400 Received: from mail.wilcox-tech.com ([45.32.83.9]:55386) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dgGhY-0001Mb-HX for 28054@debbugs.gnu.org; Fri, 11 Aug 2017 16:38:37 -0400 Received: (qmail 16577 invoked from network); 11 Aug 2017 20:38:30 -0000 Received: from ip68-13-242-69.ok.ok.cox.net (HELO ?10.1.1.57?) (awilcox@wilcox-tech.com@68.13.242.69) by mail.wilcox-tech.com with ESMTPA; 11 Aug 2017 20:38:30 -0000 Subject: Re: bug#28054: coreutils 8.27 test failure on x86_64-foxkit-linux-musl To: 28054@debbugs.gnu.org References: <598DFC4A.6030405@adelielinux.org> From: "A. Wilcox" X-Enigmail-Draft-Status: N1110 Organization: =?UTF-8?Q?Ad=c3=a9lie_Linux?= Message-ID: <598E15C0.5010809@adelielinux.org> Date: Fri, 11 Aug 2017 15:38:24 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="irKmIoXSppsG8IjGecSI98SD5iXVGPS97" X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 28054 X-Mailman-Approved-At: Fri, 11 Aug 2017 17:37:24 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --irKmIoXSppsG8IjGecSI98SD5iXVGPS97 Content-Type: multipart/mixed; boundary="------------000104060802050709060209" This is a multi-part message in MIME format. --------------000104060802050709060209 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Probing further at printf-surprise.sh, it appears that the problem is: * musl is unaffected by the printf bug being tested * therefore, it does successfully output 20 MiB of blank space * `head -c 10 fifo` will read the first 10 characters of the fifo * the rest of the 20 MiB cannot be written, so SIGPIPE is received * 'exit=3D141' (- 128 =3D 13 =3D SIGPIPE) I have attached a patch that fixes both csplit-io-err and printf-surprise on my test box. --=20 A. Wilcox (awilfox) Project Lead, Ad=C3=A9lie Linux http://adelielinux.org --------------000104060802050709060209 Content-Type: text/x-patch; name="coreutils-8.27-test-fixes.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="coreutils-8.27-test-fixes.patch" --- coreutils-8.27/tests/misc/csplit-io-err.sh.old 2017-01-01 22:34:24.00= 0000000 +0000 +++ coreutils-8.27/tests/misc/csplit-io-err.sh 2017-08-11 20:07:31.094710= 635 +0000 @@ -54,6 +54,6 @@ # Get the wording of the OS-dependent ENOSPC message returns_ 1 seq 1 >/dev/full 2>msgt || framework_failure_ -sed 's/seq: write error: //' msgt > msg || framework_failure_ +sed 's/seq: .*: //' msgt > msg || framework_failure_ =20 # Create the expected error message { printf "%s" "csplit: write error for 'xx01': " ; cat msg ; } > exp \ --- coreutils-8.27/tests/misc/printf-surprise.sh.old 2017-01-21 14:53:43.= 000000000 +0000 +++ coreutils-8.27/tests/misc/printf-surprise.sh 2017-08-11 20:20:00.7697= 08921 +0000 @@ -80,6 +80,7 @@ n_out=3D$(wc -c < out) =20 case $n_out:$diagnostic:$exit in + 10:n:141) ;; # ok, succeeds w/SIGPIPE due to lots of output: Linux 10:n:0) ;; # ok, succeeds w/no diagnostic: FreeBSD 6.1 0:y:1) ;; # ok, glibc-2.8 and newer, when printf(3) fails with ENOMEM= =20 --------------000104060802050709060209-- --irKmIoXSppsG8IjGecSI98SD5iXVGPS97 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJZjhXAAAoJEMspy1GSK50UEY4P/ighwb+h6k2tpwTXldJ13LZC f+vxX6An5lv/SXVuHAIxodi2eBk9m2Cqv6n2oIOMlGpcakZIzWQK+PXVZG5Msuwz xf6kkAuvl1Fm7VbJFo36TpiZFAvWmQlqULpmR4SDJtUgh4v1pG7KR72uhDkoxhDJ DxsoFl/kV2nw0ii9pNIa8skH227UcRYMqKSsOaDVGV6HYH1JoCyo0hOot5xkEeQB 81oP/wFzmkavbITnoNwyaVKNcIbszl0nwb12KjSYF1leaKvYJVtTmuC/zmgM9mBg y5CKfQ22sdkNHEnpoEliu0fkRURaJZYnOFDbIo00vT9mImWYM/+gurArO33nKaou JlwipOHyYtpyZZ2d6CZH4cHom9yzb5u9mNx+h6X64Ju06SW6mf5th637glbv7bxX xht8Uigq+AXpa34K1xKBKWm4Hvc/980hLHy6Vavj+cnvc4bPEQHzoXE+SOrbtwN5 ZRH5OpXGzrzNNqzTmNwFggk4E5pCdbYbLrWDOoToOeRZj2ByYqk2+05SYdCbvXv/ HJ8XeI3dd7rDueRkyFk7BApcSNEPcKraX+bpGfA1EiufPyIPKMZmTdbw+oouZSA8 0gPQym3jnj2gfMG2N5KjtHMF7Xk0VFo6gyMb3wMHpQRcrLnE3MkpA+ajwu67YnqX hmxAT78wrj8wzL4MmzV+ =h4Js -----END PGP SIGNATURE----- --irKmIoXSppsG8IjGecSI98SD5iXVGPS97-- From debbugs-submit-bounces@debbugs.gnu.org Sun Aug 13 04:07:40 2017 Received: (at 28054-done) by debbugs.gnu.org; 13 Aug 2017 08:07:40 +0000 Received: from localhost ([127.0.0.1]:59152 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dgnvw-0005hq-0D for submit@debbugs.gnu.org; Sun, 13 Aug 2017 04:07:40 -0400 Received: from mail.magicbluesmoke.com ([82.195.144.49]:59550) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dgnvu-0005hk-6o for 28054-done@debbugs.gnu.org; Sun, 13 Aug 2017 04:07:38 -0400 Received: from localhost.localdomain (unknown [73.93.152.175]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.magicbluesmoke.com (Postfix) with ESMTPSA id EA8DD173; Sun, 13 Aug 2017 09:07:35 +0100 (IST) Subject: Re: bug#28054: coreutils 8.27 test failure on x86_64-foxkit-linux-musl To: "A. Wilcox" , 28054-done@debbugs.gnu.org References: <598DFC4A.6030405@adelielinux.org> From: =?UTF-8?Q?P=c3=a1draig_Brady?= Message-ID: Date: Sun, 13 Aug 2017 01:07:33 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: <598DFC4A.6030405@adelielinux.org> Content-Type: multipart/mixed; boundary="------------68793E06B032F26433AC6ED6" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 28054-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) This is a multi-part message in MIME format. --------------68793E06B032F26433AC6ED6 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit On 11/08/17 11:49, A. Wilcox wrote: > FAIL: tests/misc/csplit-io-err > ============================== This was due to an inconsistency in the errors output by seq. A fix for that buglet is attached. > FAIL: tests/misc/printf-surprise > ================================ Depending on exit 141 couples the script to the value of SIGPIPE and to the shell implementation (ksh will return 269 here for e.g.). So I've attached a solution that should hopefully work in all situations. > FAIL: tests/misc/sort-debug-warn > ================================ This was due to an assumption that for "missing" locales that sort would fail to C rather than C.UTF8. I've adjusted sort to not assume that in the attached. thanks, Pádraig --------------68793E06B032F26433AC6ED6 Content-Type: text/x-patch; name="seq-write-error.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="seq-write-error.patch" =46rom 1e1dbbe0f95c7170009f3ba4d8380c1b98ff53c8 Mon Sep 17 00:00:00 2001 From: =3D?UTF-8?q?P=3DC3=3DA1draig=3D20Brady?=3D Date: Sun, 13 Aug 2017 00:18:43 -0700 Subject: [PATCH] seq: produce consistent error messages upon write error * src/seq.c (io_error): Use the same error message as would be generated at exit time when closing the stdout stream. The inconsistency was added with commit v8.25-26-gc92585b. This was noticed due to an inconsistency in the expected error message generated by seq on musl libc. Reported by A. Wilcox. --- src/seq.c | 2 +- tests/misc/seq-epipe.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/seq.c b/src/seq.c index bb191ba..5e5b381 100644 --- a/src/seq.c +++ b/src/seq.c @@ -284,7 +284,7 @@ io_error (void) { /* FIXME: consider option to silently ignore errno=3DEPIPE */ clearerr (stdout); - die (EXIT_FAILURE, errno, _("standard output")); + die (EXIT_FAILURE, errno, _("write error")); } =20 /* Actually print the sequence of numbers in the specified range, with t= he diff --git a/tests/misc/seq-epipe.sh b/tests/misc/seq-epipe.sh index edbd563..69dd75d 100755 --- a/tests/misc/seq-epipe.sh +++ b/tests/misc/seq-epipe.sh @@ -33,7 +33,7 @@ compare exp code || fail=3D1 =20 # The error message must begin with "standard output:" # (but don't hard-code the strerror text) -grep '^seq: standard output: ' err \ +grep '^seq: write error: ' err \ || { warn_ "seq emitted incorrect error on EPIPE"; \ cat err;\ fail=3D1; } --=20 2.9.3 --------------68793E06B032F26433AC6ED6 Content-Type: text/x-patch; name="printf-musl.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="printf-musl.patch" =46rom ad5c14dcadd4603363e68da960ed0101b61439bd Mon Sep 17 00:00:00 2001 From: =3D?UTF-8?q?P=3DC3=3DA1draig=3D20Brady?=3D Date: Sat, 12 Aug 2017 23:53:33 -0700 Subject: [PATCH] tests: fix false failure with large printf formats * tests/misc/printf-surprise.sh: With musl libc the large printf format does succeed, outputting data. To avoid SIGPIPE being generated we ignore that signal and then handle the subsequent EPIPE error. Reported by A. Wilcox --- tests/misc/printf-surprise.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/misc/printf-surprise.sh b/tests/misc/printf-surprise.s= h index 2edd34c..46c0d8f 100755 --- a/tests/misc/printf-surprise.sh +++ b/tests/misc/printf-surprise.sh @@ -50,6 +50,9 @@ vm=3D$(get_min_ulimit_v_ env $prog %20f 0) \ =20 mkfifo_or_skip_ fifo =20 +(trap '' PIPE && yes | :) 2>&1 | grep -qF 'Broken pipe' || + skip_ 'trapping SIGPIPE is not supported' + # Disable MALLOC_PERTURB_, to avoid triggering this bug # https://bugs.debian.org/481543#77 export MALLOC_PERTURB_=3D0 @@ -60,11 +63,11 @@ cleanup_() { kill $pid 2>/dev/null && wait $pid; } head -c 10 fifo > out & pid=3D$! =20 # Trigger large mem allocation failure -( ulimit -v $vm && env $prog %20000000f 0 2>err-msg > fifo ) +( trap '' PIPE && ulimit -v $vm && env $prog %20000000f 0 2>err-msg > fi= fo ) exit=3D$? =20 # Map this longer, and rarer, diagnostic to the common one. -# printf: cannot perform formatted output: Cannot allocate memory" \ +# printf: cannot perform formatted output: Cannot allocate memory" sed 's/cannot perform .*/write error/' err-msg > k && mv k err-msg err_msg=3D$(tr '\n' : < err-msg) =20 @@ -81,6 +84,7 @@ n_out=3D$(wc -c < out) =20 case $n_out:$diagnostic:$exit in 10:n:0) ;; # ok, succeeds w/no diagnostic: FreeBSD 6.1 + 10:y:1) ;; # ok, fails with EPIPE diagnostic: musl libc 0:y:1) ;; # ok, glibc-2.8 and newer, when printf(3) fails with ENOMEM= =20 # With MALLOC_PERTURB_=3D0, this no longer happens. --=20 2.9.3 --------------68793E06B032F26433AC6ED6 Content-Type: text/x-patch; name="sort-debug-locale.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="sort-debug-locale.patch" =46rom b938d8966c3d1afec9730d403fd6a6eb4d856b85 Mon Sep 17 00:00:00 2001 From: =3D?UTF-8?q?P=3DC3=3DA1draig=3D20Brady?=3D Date: Sun, 13 Aug 2017 00:45:32 -0700 Subject: [PATCH] sort: handle musl locale differences in --debug reportin= g * src/sort.c (main): Don't assume hard_LC_COLLATE implies a successful setting of the locale as musl defaults to UTF8 when failing to set the specified locale. * tests/misc/sort-debug-warn.sh: Adjust for the now separated locale debug info and map the musl specific message back to the common case. Reported by A. Wilcox. --- src/sort.c | 17 +++++++++-------- tests/misc/sort-debug-warn.sh | 9 +++++++-- 2 files changed, 16 insertions(+), 10 deletions(-) diff --git a/src/sort.c b/src/sort.c index 015e40e..ba6ceac 100644 --- a/src/sort.c +++ b/src/sort.c @@ -4675,18 +4675,19 @@ main (int argc, char **argv) =20 /* Always output the locale in debug mode, since this is such a common source of confusion. */ + + /* OpenBSD can only set some categories with LC_ALL above, + so set LC_COLLATE explicitly to flag errors. */ + if (locale_ok) + locale_ok =3D !! setlocale (LC_COLLATE, ""); + if (! locale_ok) + error (0, 0, "%s", _("failed to set locale")); if (hard_LC_COLLATE) error (0, 0, _("using %s sorting rules"), quote (setlocale (LC_COLLATE, NULL))); else - { - /* OpenBSD can only set some categories with LC_ALL above, - so set LC_COLLATE explicitly to flag errors. */ - if (locale_ok) - locale_ok =3D !! setlocale (LC_COLLATE, ""); - error (0, 0, "%s%s", locale_ok ? "" : _("failed to set locale;= "), - _("using simple byte comparison")); - } + error (0, 0, "%s", _("using simple byte comparison")); + key_warnings (&gkey, gkey_only); } =20 diff --git a/tests/misc/sort-debug-warn.sh b/tests/misc/sort-debug-warn.s= h index 3602c84..8119693 100755 --- a/tests/misc/sort-debug-warn.sh +++ b/tests/misc/sort-debug-warn.sh @@ -71,7 +71,8 @@ sort: using simple byte comparison 17 sort: using simple byte comparison 18 -sort: failed to set locale; using simple byte comparison +sort: failed to set locale +sort: using simple byte comparison EOF =20 echo 1 >> out @@ -109,7 +110,11 @@ sort -rM --debug /dev/null 2>>out #no warning echo 17 >> out sort -rM -k1,1 --debug /dev/null 2>>out #no warning echo 18 >> out -LC_ALL=3Dmissing sort --debug /dev/null 2>>out +LC_ALL=3Dmissing sort --debug /dev/null 2>>out.t +# musl libc accepts "missing" and implicitly uses UTF8, +# so adjust the expected message accordingly. +sed 's/using .*missing.* sorting rules/using simple byte comparison/' \ + out.t >>out =20 compare exp out || fail=3D1 =20 --=20 2.9.3 --------------68793E06B032F26433AC6ED6-- From debbugs-submit-bounces@debbugs.gnu.org Sun Aug 13 12:23:25 2017 Received: (at 28054) by debbugs.gnu.org; 13 Aug 2017 16:23:25 +0000 Received: from localhost ([127.0.0.1]:59923 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dgvfh-0006cO-Gw for submit@debbugs.gnu.org; Sun, 13 Aug 2017 12:23:25 -0400 Received: from mail-qt0-f174.google.com ([209.85.216.174]:38270) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dgvff-0006cF-BT; Sun, 13 Aug 2017 12:23:23 -0400 Received: by mail-qt0-f174.google.com with SMTP id t37so41717559qtg.5; Sun, 13 Aug 2017 09:23:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-transfer-encoding; bh=fCOtln8Ll4u1nn9sBEtweev5hKutEwabF+gpXhdJSAI=; b=gwSL9RpWQV0xBXOkFgiGDTcy+ekkxh5+TSUro8wi2n4RMIzbMcNRS5jDsap+NLK+5i j2RVw+HlmOawHDx7NwqxjXO+VSdUUrq/HpdnN3l+zVcs50n/VCf/e8+aKwyjlw4s6L+h TDw7xi1AHs5xfODD2ZcbuTO29s2szuDcWsCp035OMDUhoEtN+ZBDa830XnP+tWiwUmd1 V65HA877fpnparC1e84USI0iohTXzlMvVVyOOU2fPV8ZU/l+tuObz7SwFYqy3hbAQp0o ZDL5XjzEVthNVeTnkhrO2DC8PD2Lc3b3Jmw7r/xhlrT0c/7pkuvi8irIeVQ5xTStfd3w H1SQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc:content-transfer-encoding; bh=fCOtln8Ll4u1nn9sBEtweev5hKutEwabF+gpXhdJSAI=; b=h9WA5p6vTFnuRoXD2Z6zkMCpa1m5FIDykm2UyzuSWmuNbBghn9G8lR6EVWF6Yegx/W wcRGUZ3ad9xbeCEVTMG5DWrhsapSjgu0ejvbBCU14jf0+4pm6nmesek0KJ9Xa1Og4vZM 7P9XugJ0oEnXGVttlDZeTmKSH86qUUY5YVBJ+Knd4nD/Ip3ZhgkSzZG5zMmpU+ZAD7WO 2LV8AXn4+7Qfq50x/KPAsH69fQ5EM0bx2r/CfAwfQDy9wK7Sbb+PyZDQJtsqiz7fmiei 5T6v6V9lMB/LAQ//mTZGdNoIZlLDkb8VQWaCdZPLTl7ttTe+rHBQEHbbQenBBWsXClvP m1WA== X-Gm-Message-State: AHYfb5icUOi5f8Ysl2kzZqwwmTDpJrlm9E1ENe7DQn3t+LKNEKc7grxc SZfAcWHPr4D8uai5KToQMaJnkPhHAQp+ X-Received: by 10.200.45.98 with SMTP id o31mr28381398qta.43.1502641396915; Sun, 13 Aug 2017 09:23:16 -0700 (PDT) MIME-Version: 1.0 Received: by 10.55.53.197 with HTTP; Sun, 13 Aug 2017 09:22:56 -0700 (PDT) In-Reply-To: References: <598DFC4A.6030405@adelielinux.org> From: Jim Meyering Date: Sun, 13 Aug 2017 09:22:56 -0700 X-Google-Sender-Auth: g-qR4SxBOwQRCU1zX3l_Oacajsc Message-ID: Subject: Re: bug#28054: coreutils 8.27 test failure on x86_64-foxkit-linux-musl To: 28054@debbugs.gnu.org, =?UTF-8?Q?P=C3=A1draig_Brady?= , awilfox@adelielinux.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.7 (/) X-Debbugs-Envelope-To: 28054 Cc: 28054-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.7 (/) On Sun, Aug 13, 2017 at 1:07 AM, P=C3=A1draig Brady wrot= e: > On 11/08/17 11:49, A. Wilcox wrote: > >> FAIL: tests/misc/csplit-io-err >> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D > This was due to an inconsistency in the errors output by seq. > A fix for that buglet is attached. > >> FAIL: tests/misc/printf-surprise >> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D > Depending on exit 141 couples the script to the value of SIGPIPE > and to the shell implementation (ksh will return 269 here for e.g.). > So I've attached a solution that should hopefully work in all situations. > >> FAIL: tests/misc/sort-debug-warn >> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D > This was due to an assumption that for "missing" locales > that sort would fail to C rather than C.UTF8. > I've adjusted sort to not assume that in the attached. Nice work. All three patches looks fine. You might want to insert "in https://bugs.gnu.org/28054" at the end of each log message. Considering the use of "yes | :", even though there's an identical prior use in tests/misc/seq-epipe.sh, I wondered if there exists a shell/system where that would infloop. Maybe paranoid overkill, but inserting a timeout would avoid the possibility. From debbugs-submit-bounces@debbugs.gnu.org Mon Aug 14 00:30:35 2017 Received: (at 28054) by debbugs.gnu.org; 14 Aug 2017 04:30:35 +0000 Received: from localhost ([127.0.0.1]:34570 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dh71P-0005xN-Gv for submit@debbugs.gnu.org; Mon, 14 Aug 2017 00:30:35 -0400 Received: from mail.magicbluesmoke.com ([82.195.144.49]:42206) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dh71N-0005xA-6I; Mon, 14 Aug 2017 00:30:33 -0400 Received: from localhost.localdomain (unknown [73.93.153.76]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.magicbluesmoke.com (Postfix) with ESMTPSA id D1ACF251; Mon, 14 Aug 2017 05:30:31 +0100 (IST) Subject: Re: bug#28054: coreutils 8.27 test failure on x86_64-foxkit-linux-musl To: Jim Meyering , 28054@debbugs.gnu.org, awilfox@adelielinux.org References: <598DFC4A.6030405@adelielinux.org> From: =?UTF-8?Q?P=c3=a1draig_Brady?= Message-ID: <263b8954-245e-6e57-a543-1d428776fd68@draigBrady.com> Date: Sun, 13 Aug 2017 21:30:29 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 28054 Cc: 28054-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) On 13/08/17 09:22, Jim Meyering wrote: > On Sun, Aug 13, 2017 at 1:07 AM, Pádraig Brady wrote: >> On 11/08/17 11:49, A. Wilcox wrote: >> >>> FAIL: tests/misc/csplit-io-err >>> ============================== >> This was due to an inconsistency in the errors output by seq. >> A fix for that buglet is attached. >> >>> FAIL: tests/misc/printf-surprise >>> ================================ >> Depending on exit 141 couples the script to the value of SIGPIPE >> and to the shell implementation (ksh will return 269 here for e.g.). >> So I've attached a solution that should hopefully work in all situations. >> >>> FAIL: tests/misc/sort-debug-warn >>> ================================ >> This was due to an assumption that for "missing" locales >> that sort would fail to C rather than C.UTF8. >> I've adjusted sort to not assume that in the attached. > > Nice work. All three patches looks fine. You might want to insert "in > https://bugs.gnu.org/28054" at the end of each log message. Good point. I'll adjust. > Considering the use of "yes | :", even though there's an identical > prior use in tests/misc/seq-epipe.sh, I wondered if there exists a > shell/system where that would infloop. Maybe paranoid overkill, but > inserting a timeout would avoid the possibility. Also good point, and I vaguely remember there being such an issue on systems where pipes were simulated using files. Though timeout would have the same portability issues as such pipes I think. I'll look at refactoring this pattern in a separate patch and cater for all uses of this pattern with a require_regular_pipe_ or equivalent. thanks, Pádraig From debbugs-submit-bounces@debbugs.gnu.org Fri Aug 18 01:35:33 2017 Received: (at 28054) by debbugs.gnu.org; 18 Aug 2017 05:35:33 +0000 Received: from localhost ([127.0.0.1]:43436 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1diZwT-0007VO-5e for submit@debbugs.gnu.org; Fri, 18 Aug 2017 01:35:33 -0400 Received: from mail.wilcox-tech.com ([45.32.83.9]:57124) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1diZJd-0006N4-GH for 28054@debbugs.gnu.org; Fri, 18 Aug 2017 00:55:26 -0400 Received: (qmail 12564 invoked from network); 18 Aug 2017 04:55:19 -0000 Received: from ip68-13-242-69.ok.ok.cox.net (HELO ?10.1.1.57?) (awilcox@wilcox-tech.com@68.13.242.69) by mail.wilcox-tech.com with ESMTPA; 18 Aug 2017 04:55:19 -0000 Subject: Re: bug#28054: coreutils 8.27 test failure on x86_64-foxkit-linux-musl To: Jim Meyering , 28054@debbugs.gnu.org, =?UTF-8?Q?P=c3=a1draig_Brady?= References: <598DFC4A.6030405@adelielinux.org> From: "A. Wilcox" Organization: =?UTF-8?Q?Ad=c3=a9lie_Linux?= Message-ID: <59967336.8040003@adelielinux.org> Date: Thu, 17 Aug 2017 23:55:18 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 28054 X-Mailman-Approved-At: Fri, 18 Aug 2017 01:35:32 -0400 Cc: 28054-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 On 13/08/17 11:22, Jim Meyering wrote: > On Sun, Aug 13, 2017 at 1:07 AM, Pádraig Brady > wrote: >> On 11/08/17 11:49, A. Wilcox wrote: >> >>> FAIL: tests/misc/csplit-io-err ============================== >> This was due to an inconsistency in the errors output by seq. A >> fix for that buglet is attached. >> >>> FAIL: tests/misc/printf-surprise >>> ================================ >> Depending on exit 141 couples the script to the value of SIGPIPE >> and to the shell implementation (ksh will return 269 here for >> e.g.). So I've attached a solution that should hopefully work in >> all situations. >> >>> FAIL: tests/misc/sort-debug-warn >>> ================================ >> This was due to an assumption that for "missing" locales that >> sort would fail to C rather than C.UTF8. I've adjusted sort to >> not assume that in the attached. > > Nice work. All three patches looks fine. You might want to insert > "in https://bugs.gnu.org/28054" at the end of each log message. > > Considering the use of "yes | :", even though there's an identical > prior use in tests/misc/seq-epipe.sh, I wondered if there exists a > shell/system where that would infloop. Maybe paranoid overkill, > but inserting a timeout would avoid the possibility. > I can confirm that seq and printf-surprise are fixed by these patches. The sort-debug-warn test still fails, because "failed to set locale" is not printed on musl (missing locales are redirected to C.UTF8). Also, the seq-epipe patch fixes the grep but not the comment directly above it. Thank you for your efforts and the fixes. Best, - --arw - -- A. Wilcox (awilfox) Project Lead, Adélie Linux http://adelielinux.org -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJZlnMzAAoJEMspy1GSK50UUsIQALmcw3yfChX9yrY/RwGTTKtP FX3K6h1IoTOh9pQRN3cO/AitUYTrQ0CMF3HyOw1eY41g2Cy7l5uFf36bZuXYOghc WkWk8K3uuvlvkJbIDbszsVzXkHjhoigAC0mcljORXPrTXCS4CpmcRLlaH/HI0niV p1pk64dvNJhgdD/O7M9vatj8s0RH86HleWf0Jl87Vl7wBXfPnB5V4Uu9hpCxRWy6 j0pfZpaOmqbAYLxjWDWfOlfJq0BOFKrtTy4SHhUF1r2CG88WVVSpr1RD/bM+SVkr R9LT/XMXw1tZ82z76AIn2+4KFaunRGhSbOulmhs2yCHORHhgc8jyomSvS8oh47yK EmMgT//VN6hJsKDBYQ2fkiFvrRd4gbf2tXKU92J1KfewoB23wgHvG1EahiSCFUA5 la9xSIZ4X8IIGIiNnHvooxITITdC8oGct8XaLcBfiHYz2GXihAyI0gX+Sc4gL7PI uyK9C2/I3Tw6zJslU+lPtCCwGVUpwLH1LWRxy0YAQn8ejI7eOeK6QNvmsX/tJXEf 5NjauAA5Hca4d11Nq6hRZxkTAsEdbvxupvOQ9EcWoRyLqIj2ayaCvP7VuBjrNYLF huL7oXUGPD81duPaDE1ALPyflG9O70NEmQdXVqv3mLSpkdmbKNzjZZJJ80UV6lXw eLgWSdw8MIQqXUNYMnmo =h0SV -----END PGP SIGNATURE----- From debbugs-submit-bounces@debbugs.gnu.org Sat Aug 19 18:51:14 2017 Received: (at 28054) by debbugs.gnu.org; 19 Aug 2017 22:51:14 +0000 Received: from localhost ([127.0.0.1]:45933 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1djCaH-0006AM-S0 for submit@debbugs.gnu.org; Sat, 19 Aug 2017 18:51:14 -0400 Received: from mail.magicbluesmoke.com ([82.195.144.49]:35808) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1djCaF-0006AC-Ah for 28054@debbugs.gnu.org; Sat, 19 Aug 2017 18:51:12 -0400 Received: from localhost.localdomain (unknown [73.93.155.95]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.magicbluesmoke.com (Postfix) with ESMTPSA id 4AD7A9785; Sat, 19 Aug 2017 23:51:07 +0100 (IST) Subject: Re: bug#28054: coreutils 8.27 test failure on x86_64-foxkit-linux-musl To: "A. Wilcox" , 28054@debbugs.gnu.org References: <598DFC4A.6030405@adelielinux.org> <59967336.8040003@adelielinux.org> From: =?UTF-8?Q?P=c3=a1draig_Brady?= Message-ID: <3979dde3-f9b7-6b29-ff27-8501e7c4ea6d@draigBrady.com> Date: Sat, 19 Aug 2017 15:51:05 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: <59967336.8040003@adelielinux.org> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 28054 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) On 17/08/17 21:55, A. Wilcox wrote: > On 13/08/17 11:22, Jim Meyering wrote: >> On Sun, Aug 13, 2017 at 1:07 AM, Pádraig Brady >> wrote: >>> On 11/08/17 11:49, A. Wilcox wrote: >>> >>>> FAIL: tests/misc/csplit-io-err ============================== >>> This was due to an inconsistency in the errors output by seq. A >>> fix for that buglet is attached. >>> >>>> FAIL: tests/misc/printf-surprise >>>> ================================ >>> Depending on exit 141 couples the script to the value of SIGPIPE >>> and to the shell implementation (ksh will return 269 here for >>> e.g.). So I've attached a solution that should hopefully work in >>> all situations. >>> >>>> FAIL: tests/misc/sort-debug-warn >>>> ================================ >>> This was due to an assumption that for "missing" locales that >>> sort would fail to C rather than C.UTF8. I've adjusted sort to >>> not assume that in the attached. > >> Nice work. All three patches looks fine. You might want to insert >> "in https://bugs.gnu.org/28054" at the end of each log message. > >> Considering the use of "yes | :", even though there's an identical >> prior use in tests/misc/seq-epipe.sh, I wondered if there exists a >> shell/system where that would infloop. Maybe paranoid overkill, >> but inserting a timeout would avoid the possibility. > > > I can confirm that seq and printf-surprise are fixed by these patches. > The sort-debug-warn test still fails, because "failed to set locale" > is not printed on musl (missing locales are redirected to C.UTF8). > > Also, the seq-epipe patch fixes the grep but not the comment directly > above it. > > Thank you for your efforts and the fixes. Ah Assaf already mentioned this musl issue on this list, and followed up with musl at: http://www.openwall.com/lists/musl/2016/04/02/1 I've installed a patch to handle these issues at: http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=4b5bc54 thanks, Pádraig From unknown Sat Jun 14 18:42:53 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 17 Sep 2017 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator