Date: Tue, 20 Feb 2018 14:14:24 +0000 From: rhonda.stewart@rearson.com To: freebsd-ppc@freebsd.org Subject: Google AdWords Users List Message-ID: <f4f5e806f3a07ea89b0565a56dff@google.com>
next in thread | raw e-mail | index | archive | help
PGRpdiBkaXI9Imx0ciI+PHAgY2xhc3M9ImdtYWlsLW1zb25vc3BhY2luZyI+PHNwYW4gIA0Kc3R5 bGU9ImZvbnQtc2l6ZToxMXB0O2ZvbnQtZmFtaWx5OkNhbGlicmksc2Fucy1zZXJpZjtjb2xvcjpy Z2IoMzEsNzgsMTIxKSI+SGVsbG8gIA0KdGhlcmUswqA8YnI+DQo8YnI+DQpJIHdvdWxkIGxpa2Ug dG8ga25vdyBpZiB5b3UgYXJlIGludGVyZXN0ZWQgaW4gYWNxdWlyaW5nwqA8Yj5Hb29nbGUgQWRX b3JkcyAgDQpVc2Vyc8KgTGlzdDwvYj4/wqA8L3NwYW4+PHNwYW4gIA0Kc3R5bGU9ImZvbnQtc2l6 ZToxMXB0O2ZvbnQtZmFtaWx5OkNhbGlicmksc2Fucy1zZXJpZiI+PHNwYW4+PC9zcGFuPjwvc3Bh bj48L3A+DQoNCjxwIGNsYXNzPSJnbWFpbC1tc29ub3NwYWNpbmciPjxiPjxzcGFuICANCnN0eWxl PSJmb250LXNpemU6MTFwdDtmb250LWZhbWlseTpDYWxpYnJpLHNhbnMtc2VyaWY7Y29sb3I6cmdi KDMxLDc4LDEyMSkiPkxpc3QgIA0KQ29udGFpbnM6PC9zcGFuPjwvYj48c3BhbiAgDQpzdHlsZT0i Zm9udC1zaXplOjExcHQ7Zm9udC1mYW1pbHk6Q2FsaWJyaSxzYW5zLXNlcmlmO2NvbG9yOnJnYigz MSw3OCwxMjEpIj7CoE5hbWUsDQpDb21wYW55JiMzOTtzIE5hbWUsIFBob25lIE51bWJlciwgRmF4 IE51bWJlciwgSm9iIFRpdGxlLCBFbWFpbCBhZGRyZXNzLCAgDQpDb21wbGV0ZQ0KTWFpbGluZyBB ZGRyZ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AgNDBweCAwOyBwYWRkaW5nOiAgDQoxMHB4OyBmb250LXNpemU6IDFlbTsgdGV4dC1hbGlnbjog Y2VudGVyOyBib3JkZXI6IDA7IGJvcmRlci10b3A6IDFweCBzb2xpZCAgDQpncmF5OyAnIGhyZWY9 J2h0dHBzOi8vZ29vLmdsLzJrc2RSdic+cG93ZXJlZCBieSBHU00uIEZyZWUgbWFpbCBtZXJnZSBh bmQgIA0KZW1haWwgbWFya2V0aW5nIHNvZnR3YXJlIGZvciBHbWFpbC48L2E+DQo= From owner-freebsd-ppc@freebsd.org Wed Feb 21 00:28:26 2018 Return-Path: <owner-freebsd-ppc@freebsd.org> Delivered-To: freebsd-ppc@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7A46DF15A69 for <freebsd-ppc@mailman.ysv.freebsd.org>; Wed, 21 Feb 2018 00:28:26 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 139C379CB4 for <freebsd-ppc@FreeBSD.org>; Wed, 21 Feb 2018 00:28:26 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 4C4852596D for <freebsd-ppc@FreeBSD.org>; Wed, 21 Feb 2018 00:28:25 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w1L0SPrp057781 for <freebsd-ppc@FreeBSD.org>; Wed, 21 Feb 2018 00:28:25 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w1L0SPsU057780 for freebsd-ppc@FreeBSD.org; Wed, 21 Feb 2018 00:28:25 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: freebsd-ppc@FreeBSD.org Subject: [Bug 225321] dtrace/powerpc64: System crash Date: Wed, 21 Feb 2018 00:28:25 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: breno.leitao@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-ppc@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: <bug-225321-21-b2AD3zVL08@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-225321-21@https.bugs.freebsd.org/bugzilla/> References: <bug-225321-21@https.bugs.freebsd.org/bugzilla/> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Porting FreeBSD to the PowerPC <freebsd-ppc.freebsd.org> List-Unsubscribe: <https://lists.freebsd.org/mailman/options/freebsd-ppc>, <mailto:freebsd-ppc-request@freebsd.org?subject=unsubscribe> List-Archive: <http://lists.freebsd.org/pipermail/freebsd-ppc/>; List-Post: <mailto:freebsd-ppc@freebsd.org> List-Help: <mailto:freebsd-ppc-request@freebsd.org?subject=help> List-Subscribe: <https://lists.freebsd.org/mailman/listinfo/freebsd-ppc>, <mailto:freebsd-ppc-request@freebsd.org?subject=subscribe> X-List-Received-Date: Wed, 21 Feb 2018 00:28:26 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D225321 --- Comment #3 from Breno Leitao <breno.leitao@gmail.com> --- I did some further debugs, and this is what I found now: 1) The very first problem is that we are not able to leave kdb, if we just = get in into kdb, and 'c' continue, we get: db> c=20=20=20 fatal kernel trap: exception =3D 0x400 (instruction storage interrupt) virtual address =3D 0x426f6f7420666c60 srr0 =3D 0x426f6f7420666c60 (0x426f6f7420666c60) srr1 =3D 0x8000000040001032 lr =3D 0x426f6f7420666c61 (0x426f6f7420666c61) curthread =3D 0x1441460 pid =3D 0, comm =3D=20 We are going to an address that means "boot fla", which is clearly wrong. Debugging the code, I found exactly what is happening. On dbtrap->dbleave, we call FRAME_LEAVE(), which does leaves SRR0 =3D 0x661= 6r8 and SRR1 =3D 0x8000000000001032 and then call rfid. SRR0 and SRR1 are sane. SRR0 is part of the kdb_enter function, as showed: 0x0000000000661658 in kdb_enter (why=3D0xf68968 "bootflags", msg=3D0x80 "") The kdb_enter() function follows: void kdb_enter(const char *why, const char *msg) { if (kdb_dbbe !=3D NULL && kdb_active =3D=3D 0) { if (msg !=3D NULL) printf("KDB: enter: %s\n", msg); kdb_why =3D why; breakpoint(); kdb_why =3D KDB_WHY_UNSET; } } After the rfid we get into 0xf68968 that executes: 0x0000000000661668 <+112>: ld r0,16(r1) 0x000000000066166c <+116>: mtlr r0 ... 0x000000000066167c <+132>: blr In this case, lr has 0x426f6f7420666c61, which is clearly wrong and causes = the trap. It appears that r1 does not point to the proper stack, since it contains: r1 =3D 0xf68958 0xf68958: 0x6b65726e 0x656c6e61 0x6d650000 0x00000000 0xf68968: 0x626f6f74 0x666c6167 0x73000000 0x00000000 0xf68978: 0x426f6f74 0x20666c61 Anyway, clearly the kdb_enter() has a wrong stack pointer (r1) after calling breakpoint. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?f4f5e806f3a07ea89b0565a56dff>