From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 123465 invoked by alias); 2 Jun 2017 13:26:14 -0000 Mailing-List: contact elfutils-devel-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Post: List-Help: List-Subscribe: Sender: elfutils-devel-owner@sourceware.org Received: (qmail 123410 invoked by uid 89); 2 Jun 2017 13:26:14 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Checked: by ClamAV 0.99.2 on sourceware.org X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.0 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_LOW autolearn=no version=3.3.2 spammy=H*c:application, hey, super, H*F:U*mail X-Spam-Status: No, score=-2.0 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_LOW autolearn=no version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on sourceware.org X-Spam-Level: X-HELO: dd17628.kasserver.com Received: from dd17628.kasserver.com (HELO dd17628.kasserver.com) (85.13.138.83) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 02 Jun 2017 13:26:09 +0000 Received: from agathebauer.localnet (ip5f5bd50d.dynamic.kabel-deutschland.de [95.91.213.13]) by dd17628.kasserver.com (Postfix) with ESMTPSA id 6E4906280797 for ; Fri, 2 Jun 2017 15:26:11 +0200 (CEST) From: Milian Wolff To: elfutils-devel@sourceware.org Subject: Re: How to debug broken unwinding? Date: Wed, 07 Jun 2017 12:16:00 -0000 Message-ID: <4288473.shuf9ekOC1@agathebauer> In-Reply-To: <2244170.M6KXmO4ZXp@agathebauer> References: <2244170.M6KXmO4ZXp@agathebauer> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart3137893.52arW2qF2J"; micalg="pgp-sha1"; protocol="application/pgp-signature" X-IsSubscribed: yes X-SW-Source: 2017-q2/txt/msg00236.txt.bz2 --nextPart3137893.52arW2qF2J Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Content-length: 2052 On Donnerstag, 1. Juni 2017 22:57:12 CEST Milian Wolff wrote: > Hey all, > heaptrack_gui 2228 135073.400474: 613969 cycles: > 108c8e [unknown] (/usr/lib/libQt5Core.so.5.8.0) > @@ -533,8 +529,6 @@ > 2170af [unknown] (/usr/lib/libQt5Core.so.5.8.0) > 297c53 QCoreApplicationPrivate::init (/usr/lib/ > libQt5Core.so.5.8.0) > f7cde QGuiApplicationPrivate::init > (/usr/lib/libQt5Gui.so. 5.8.0) > - 1589e8 QApplicationPrivate::init > (/usr/lib/libQt5Widgets.so. 5.8.0) > - 78622 main (/home/milian/projects/compiled/other/bin/ > heaptrack_gui) > 20439 __libc_start_main (/usr/lib/libc-2.25.so) > 78299 _start (/home/milian/projects/compiled/other/bin/ > heaptrack_gui) > > NOTE: this is super odd, it simply misses two frames in the middle?! This is really quite odd - looking at the debug output, the frames in the middle are really just skipped for some reason: unwind: access_mem addr 0x7ffca0a88330, val 4edc50, offset 2808 unwind: access_mem addr 0x7ffca0a88338, val 7f69bfce443a, offset 2816 unwind: pc: = 0x7f69c10fecde found map: 7f69c1007000 7f69c1766000 dso found: libQt5Gui.so.5.8.0 /usr/lib/libQt5Gui.so.5.8.0 reported: libQt5Gui.so.5.8.0 /usr/lib/libQt5Gui.so.5.8.0, 1 unwind: QGuiApplicationPrivate::init():ip = 0x7f69c10fecde (0xf7cde) -> so far so good, this frame is properly found inside libQt5Gui, but then: unwind: pc: = 0x7f69bfce4439 found map: 7f69bfcc4000 7f69c0069000 dso found: libc-2.25.so /usr/lib/libc-2.25.so reported: libc-2.25.so /usr/lib/libc-2.25.so, 1 unwind: __libc_start_main:ip = 0x7f69bfce4439 (0x20439) -> the next frame is is supposedly the one in libc, but what happened to the two frames in QApplicationPrivate::init and main? I also note that no calls to access_mem are occuring - is this maybe some (wrong) caching in libdw or so that interfers here? Any insight would be appreciated, thanks! -- Milian Wolff mail@milianw.de http://milianw.de --nextPart3137893.52arW2qF2J Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit Content-length: 195 -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQQ9hWiGkJfGXJj40nYMDrISzR0TkwUCWTFncgAKCRAMDrISzR0T k+11AKCdpyuL+aMTvIKg4CDPAcDM+1XNygCgt3rSOiPDZLXx9CNaNjM9krsFG9M= =NP81 -----END PGP SIGNATURE----- --nextPart3137893.52arW2qF2J--