From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12813 invoked by alias); 7 Aug 2013 07:16:45 -0000 Mailing-List: contact systemtap-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: systemtap-owner@sourceware.org Received: (qmail 12782 invoked by uid 89); 7 Aug 2013 07:16:43 -0000 X-Spam-SWARE-Status: No, score=-1.3 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,RDNS_NONE,SPF_PASS autolearn=no version=3.3.1 Received: from Unknown (HELO mail-de.keymile.com) (195.8.104.250) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Wed, 07 Aug 2013 07:16:13 +0000 Received: from frodo.de.keymile.net ([10.9.1.54]:57756 helo=mailrelay.de.keymile.net) by mail-de.keymile.com with esmtp (Exim 4.76) (envelope-from ) id 1V6xyU-0006Fo-0r; Wed, 07 Aug 2013 09:16:02 +0200 Received: from srvdehan1003.de.keymile.net (srvdehan1003.de.keymile.net [10.9.1.108]) by mailrelay.de.keymile.net (8.12.2/8.12.2) with ESMTP id r777DonV005964; Wed, 7 Aug 2013 09:13:50 +0200 (MEST) Received: from pc005093.de.keymile.net.de.keymile.net ([172.30.2.67]) by srvdehan1003.de.keymile.net with Microsoft SMTPSVC(6.0.3790.3959); Wed, 7 Aug 2013 09:16:02 +0200 Message-ID: <5201F432.3000800@keymile.com> Date: Wed, 07 Aug 2013 07:16:00 -0000 From: Holger Brunck User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130625 Thunderbird/17.0.7 MIME-Version: 1.0 To: Lukas Berk CC: Mark Wielaard , systemtap@sourceware.org Subject: Re: print_ubacktrace() and ppc 32 References: <51BF1C1E.7020208@keymile.com> <1371491014.4501.97.camel@bordewijk.wildebeest.org> <20130617180008.GC2219@redhat.com> <1371492348.4501.106.camel@bordewijk.wildebeest.org> <51C005AA.8010300@keymile.com> <20130803011202.GA1956@redhat.com> <51FF6667.1090404@keymile.com> <20130806190715.GA3387@redhat.com> In-Reply-To: <20130806190715.GA3387@redhat.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-SW-Source: 2013-q3/txt/msg00107.txt.bz2 On 08/06/2013 09:07 PM, Lukas Berk wrote: >> >> So there is still something missing for ppc32. > > Ah too bad it wasn't a simple plug and play :) Would you mind trying > again but running your script with the added stap option > '-DDEBUG_UNWIND=99' and supplying the output? (ie, stap -DDEBUG_UNWIND=99 > --ldd -ve 'probe... ) > probe compiled with: stap -DDEBUG_UNWIND=99 -g -a powerpc -B CROSS_COMPILE=powerpc-linux- script.stp On the target the trace output of staprun is: _stp_stack_unwind_one_user:460: STARTING user unwind 0x10000448 : foo+0x1c/0x7c [/usr/local/bin/main] _stp_stack_unwind_one_user:476: CONTINUING user unwind to depth 1 unwind:1452: pc=10000448, 10000448 unwind:1492: trying debug_frame unwind_frame:1168: Module /usr/local/bin/main: no unwind frame data unwind:1496: debug_frame failed: -5, trying eh_frame unwind_frame:1168: Module /usr/local/bin/main: no unwind frame data unwind:1504: unwinding failed: -5 _stp_stack_unwind_one_user:500: ret=-5 PC=10000448 SP=bfffd640 And the probed binary is crashing: stap_ac60c2e404cade1c833497ae4f16b820_1577: systemtap: 2.3/0.152, base: cc581000, memory: 34data/68text/3ctx/2058net/8alloc kb, probes: 1 Unable to handle kernel paging request for data at address 0xbffffb10 Faulting instruction address: 0xc04965d4 Oops: Kernel access of bad area, sig: 11 [#2] PREEMPT km82xx Modules linked in: stap_ac60c2e404cade1c833497ae4f16b820_1577(O) [last unloaded: stap_ac60c2e404cade1c833497ae4f16b820_1577] CPU: 0 PID: 407 Comm: main Tainted: G D O 3.10.0-04826-gc82c8d0-dirty #7 task: c7bab160 ti: c7b8c000 task.ti: c7b8c000 NIP: c04965d4 LR: c0000028 CTR: c03c742c REGS: c7b8de10 TRAP: 0300 Tainted: G D O (3.10.0-04826-gc82c8d0-dirty) MSR: 00009032 CR: 44000284 XER: 20000000 DAR: bffffb10, DSISR: 20000000 GPR00: c00bd950 c7b8dec0 c7bab160 c69d2104 c7b8df50 00000002 cc902209 38205350 GPR08: c0000000 c050b668 00000000 3b9aca00 28000288 10018794 00000000 00000000 GPR16: 00000000 00000000 00000000 00000000 100ab3f5 10081f20 c0440928 00000000 GPR24: c69d20d0 c69d2104 c69d20c0 00000000 c7b8c000 c7b8df50 c0000028 00000002 NIP [c04965d4] prom_init+0x28/0xfc0 LR [c0000028] __start+0x1c/0x30 Call Trace: [c7b8dec0] [c00bd950] uprobe_notify_resume+0x4dc/0x920 (unreliable) [c7b8df30] [c00099b0] do_notify_resume+0x78/0x94 [c7b8df40] [c0010848] do_user_signal+0x74/0xc4 --- Exception: 700 at 0x10000448 LR = 0x100004ec Instruction dump: 9361004c 7cbb2b78 93a10054 7c9d2378 93c10058 7fc802a6 93e1005c 7cbf2b78 90010064 91c10018 93810050 91810014 <821efae8> 823eff98 88040000 829efaec ---[ end trace e21ded4f2ec79037 ]--- Segmentation fault Version numbers: Kernel: v3.10 gcc: powerpc-gcc (GCC) 4.6.4 20120303 (prerelease) systemtap: 2.3-32645 Best regards Holger