From patchwork Fri Feb 3 10:06:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: mark at klomp dot org X-Patchwork-Id: 64239 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 555D33858409 for ; Fri, 3 Feb 2023 10:07:02 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 555D33858409 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1675418822; bh=nzYDI7jIiYGeOVON883joppmHeyzoRVPQWpP1L6GjkA=; h=To:Subject:Date:In-Reply-To:References:List-Id:List-Unsubscribe: List-Archive:List-Help:List-Subscribe:From:Reply-To:From; b=oZUnR8iivSyXy8mkZPEPXCyEkg4IbXXTmAwy4+LJZ/gIpSLlikpd40p25bmcLLQqH O51XkC718rGB0GVO/R2eLbLkbmeDIou3ll01zC5P5IMVk9nRjf4Q6LTXsYSljw0ygu 5jeH6bX8PV0RxXLqVZ9Y+Mzm1oRz2Bd6G4hTrLCc= X-Original-To: elfutils-devel@sourceware.org Delivered-To: elfutils-devel@sourceware.org Received: by sourceware.org (Postfix, from userid 48) id CA7E23858C52; Fri, 3 Feb 2023 10:06:53 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org CA7E23858C52 To: elfutils-devel@sourceware.org Subject: [Bug tools/30072] FAIL: run-addr2line-C-test.sh Date: Fri, 03 Feb 2023 10:06:53 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: elfutils X-Bugzilla-Component: tools X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: mark at klomp dot org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: elfutils-devel@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Elfutils-devel mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-Patchwork-Original-From: mark at klomp dot org via Elfutils-devel From: mark at klomp dot org Reply-To: mark at klomp dot org Errors-To: elfutils-devel-bounces+patchwork=sourceware.org@sourceware.org Sender: "Elfutils-devel" https://sourceware.org/bugzilla/show_bug.cgi?id=30072 --- Comment #1 from Mark Wielaard --- (In reply to Martin Liska from comment #0) > Created attachment 14650 [details] > Build log > > The test is pretty new and fails with: > > [ 30s] FAIL: run-addr2line-C-test.sh > [ 30s] ============================= > [ 30s] > [ 30s] --- addr2line.out 2023-02-03 08:59:30.572855287 +0000 > [ 30s] +++ - 2023-02-03 08:59:30.576315349 +0000 > [ 30s] @@ -8,12 +8,12 @@ > [ 30s] (inlined by) baz at /tmp/x.cpp:20 > [ 30s] 0x00000000000005e0: foobar at /tmp/x.cpp:5 > [ 30s] (inlined by) bar at /tmp/x.cpp:15 > [ 30s] - (inlined by) _Z3foov at /tmp/x.cpp:25 > [ 30s] + (inlined by) foo() at /tmp/x.cpp:25 > [ 30s] 0x00000000000005e1: fubar at /tmp/x.cpp:10 > [ 30s] (inlined by) baz at /tmp/x.cpp:20 > [ 30s] - (inlined by) _Z3foov at /tmp/x.cpp:26 > [ 30s] -0x00000000000005f0: _Z2fuv at /tmp/x.cpp:31 > [ 30s] + (inlined by) foo() at /tmp/x.cpp:26 > [ 30s] +0x00000000000005f0: fu() at /tmp/x.cpp:31 > [ 30s] 0x00000000000005f1: fubar at /tmp/x.cpp:10 > [ 30s] - (inlined by) _Z2fuv at /tmp/x.cpp:32 > [ 30s] + (inlined by) fu() at /tmp/x.cpp:32 > [ 30s] 0x00000000000005f2: foobar at /tmp/x.cpp:5 > [ 30s] - (inlined by) _Z2fuv at /tmp/x.cpp:33 > [ 30s] + (inlined by) fu() at /tmp/x.cpp:33 > [ 30s] FAIL run-addr2line-C-test.sh (exit status: 1) > [ 30s] > [ 30s] FAIL: run-addr2line-i-test.sh > [ 30s] ============================= > [ 30s] > [ 30s] --- addr2line.out 2023-02-03 08:59:30.612856288 +0000 > [ 30s] +++ - 2023-02-03 08:59:30.615130217 +0000 > [ 30s] @@ -1,6 +1,6 @@ > [ 30s] -_Z6foobari at /tmp/x.cpp:4:14 > [ 30s] - (inlined by) _Z3fooi at /tmp/x.cpp:22:16 > [ 30s] - (inlined by) _Z2fui at /tmp/x.cpp:27:13 > [ 30s] -_Z5fubari at /tmp/x.cpp:10:14 > [ 30s] - (inlined by) _Z3bari at /tmp/x.cpp:16:15 > [ 30s] - (inlined by) _Z2fui at /tmp/x.cpp:27:24 > [ 30s] +foobar(int) at /tmp/x.cpp:4:14 > [ 30s] + (inlined by) foo(int) at /tmp/x.cpp:22:16 > [ 30s] + (inlined by) fu(int) at /tmp/x.cpp:27:13 > [ 30s] +fubar(int) at /tmp/x.cpp:10:14 > [ 30s] + (inlined by) bar(int) at /tmp/x.cpp:16:15 > [ 30s] + (inlined by) fu(int) at /tmp/x.cpp:27:24 > [ 30s] FAIL run-addr2line-i-test.sh (exit status: 1) > > So somehow the output is demangled, but the test does not expected it. It looks like the other way around (but the test-suite.log is confusing). Could you check whether configure detected DEMANGLE support? libstdc++ demangle support : yes If not, then the fix would be: diff --git a/tests/run-addr2line-C-test.sh b/tests/run-addr2line-C-test.sh index 8c63d78d..1780157d 100755 --- a/tests/run-addr2line-C-test.sh +++ b/tests/run-addr2line-C-test.sh @@ -18,6 +18,11 @@ . $srcdir/test-subr.sh +if test -n "$ELFUTILS_DISABLE_DEMANGLE"; then + echo "demangler unsupported" + exit 77 +fi + # See run-addr2line-i-test.sh testfiles testfile-inlines