From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx0a-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by sourceware.org (Postfix) with ESMTPS id 3321B3858D35 for ; Thu, 25 Nov 2021 17:02:41 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 3321B3858D35 Received: from pps.filterd (m0098419.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 1APGMXKT002250; Thu, 25 Nov 2021 17:02:40 GMT Received: from ppma03wdc.us.ibm.com (ba.79.3fa9.ip4.static.sl-reverse.com [169.63.121.186]) by mx0b-001b2d01.pphosted.com with ESMTP id 3cjb874cba-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 25 Nov 2021 17:02:40 +0000 Received: from pps.filterd (ppma03wdc.us.ibm.com [127.0.0.1]) by ppma03wdc.us.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 1APGrLw8026315; Thu, 25 Nov 2021 17:02:39 GMT Received: from b01cxnp22035.gho.pok.ibm.com (b01cxnp22035.gho.pok.ibm.com [9.57.198.25]) by ppma03wdc.us.ibm.com with ESMTP id 3cernc1jwv-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 25 Nov 2021 17:02:39 +0000 Received: from b01ledav004.gho.pok.ibm.com (b01ledav004.gho.pok.ibm.com [9.57.199.109]) by b01cxnp22035.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 1APH2bfa54133222 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 25 Nov 2021 17:02:37 GMT Received: from b01ledav004.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id A95C711206B; Thu, 25 Nov 2021 17:02:37 +0000 (GMT) Received: from b01ledav004.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 3783611206D; Thu, 25 Nov 2021 17:02:37 +0000 (GMT) Received: from linux.ibm.com (unknown [9.163.48.214]) by b01ledav004.gho.pok.ibm.com (Postfix) with ESMTP; Thu, 25 Nov 2021 17:02:36 +0000 (GMT) From: Tulio Magno Quites Machado Filho To: Adhemerval Zanella , libc-alpha@sourceware.org Cc: Nemanja Ivanovic Subject: Re: [PATCH] powerpc: Define USE_PPC64_NOTOC iff compiler and linker also supports it In-Reply-To: <00d2e9c8-6018-c8ad-4306-09526376c74c@linaro.org> References: <20211108113316.8867-1-adhemerval.zanella@linaro.org> <87pmqwywf8.fsf@linux.ibm.com> <00d2e9c8-6018-c8ad-4306-09526376c74c@linaro.org> User-Agent: Notmuch/0.34.1 (http://notmuchmail.org) Emacs/27.2 (x86_64-redhat-linux-gnu) Date: Thu, 25 Nov 2021 14:02:35 -0300 Message-ID: <87o868p3ro.fsf@linux.ibm.com> Content-Type: text/plain X-TM-AS-GCONF: 00 X-Proofpoint-GUID: wsdxJT7PE2X1lV6sRYtNqoH76qGAOphF X-Proofpoint-ORIG-GUID: wsdxJT7PE2X1lV6sRYtNqoH76qGAOphF X-Proofpoint-UnRewURL: 0 URL was un-rewritten MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.790,Hydra:6.0.425,FMLib:17.0.607.475 definitions=2021-11-25_06,2021-11-25_01,2020-04-07_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 suspectscore=0 mlxlogscore=999 spamscore=0 mlxscore=0 lowpriorityscore=0 malwarescore=0 bulkscore=0 priorityscore=1501 adultscore=0 clxscore=1015 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2110150000 definitions=main-2111250093 X-Spam-Status: No, score=-3.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_EF, RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Nov 2021 17:02:42 -0000 Adhemerval Zanella via Libc-alpha writes: > On 19/11/2021 12:52, Tulio Magno Quites Machado Filho wrote: >> 2. LLD itself crashes while linking the tests. >> I need to collect more details. > > Do you have a log of what is happening? Could it be something related to the > debian provided LLD? Could you check with the official package? Using the official package and --with-cpu=power9, I'm able to build and run the tests. I get: FAIL: elf/ifuncmain1pic FAIL: elf/ifuncmain1pie FAIL: elf/ifuncmain1vis FAIL: elf/ifuncmain1vispic FAIL: elf/ifuncmain1vispie FAIL: elf/ifuncmain3 FAIL: elf/ifuncmain6pie XPASS: elf/tst-protected1a XPASS: elf/tst-protected1b FAIL: elf/tst-tlsopt-powerpc UNSUPPORTED: math/test-fesetexcept-traps UNSUPPORTED: math/test-fexcept-traps UNSUPPORTED: misc/tst-adjtimex UNSUPPORTED: misc/tst-clock_adjtime UNSUPPORTED: misc/tst-ntp_adjtime UNSUPPORTED: misc/tst-pkey FAIL: nptl/tst-execstack UNSUPPORTED: time/tst-clock_settime UNSUPPORTED: time/tst-settimeofday Summary of test results: 9 FAIL 4663 PASS 8 UNSUPPORTED 16 XFAIL 2 XPASS All the 9 failures are unexpected. I had to kill elf/ifuncmain1pie by hand because it was stuck in an infinite loop in foo_protected, constantly loading its own address and jumping to it. The contents of the function are not what I expected. It's almost identical to its __plt_ counterpart except that it doesn't save r2: 0000000000010d90 : 10d90: 01 00 82 3d addis r12,r2,1 10d94: a0 80 8c e9 ld r12,-32608(r12) 10d98: a6 03 89 7d mtctr r12 10d9c: 20 04 80 4e bctr ======= Going back to the discussion around the crashes, I can only reproduce them with the Debian build and using a high number of jobs (e.g -j150). That generates an unusable log that I can only distinguish that a few lld processes received SIGABRT. If I use a lower -j value, e.g. -j10, the crashes do not happen. This is what I managed to parse: terminate called after throwing an instance of 'std::system_error' what(): Resource temporarily unavailable PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash backtrace. /usr/lib/powerpc64le-linux-gnu/libLLVM-13.so.1(_ZN4llvm3sys15PrintStackTraceERNS_11raw_ostreamEi+0x4 c)[0x7fffb262c50c] ... <= Hard to understand what is going on here collect2: fatal error: ld terminated with signal 6 [Aborted] compilation terminated. make[2]: *** [../Rules:277: /build/glibc-build.lld/math/test-signgam-ullong-static] Error 1 make[2]: *** [../Rules:277: /build/glibc-build.lld/math/atest-exp] Error 1 make[2]: *** [../Rules:277: /build/glibc-build.lld/math/atest-sincos] Error 1 make[2]: *** [../Rules:230: /build/glibc-build.lld/math/test-matherr] Error 1 make[2]: *** [../Rules:230: /build/glibc-build.lld/math/test-matherr-2] Error 1 make[2]: *** [../Rules:230: /build/glibc-build.lld/math/test-math-isinff] Error 1 make[2]: *** [../Rules:277: /build/glibc-build.lld/math/test-signgam-ullong-init-static] Error 1 -- Tulio Magno