From owner-freebsd-ppc@freebsd.org Tue Feb 20 14:14:25 2018 Return-Path: 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 715ADF054A7 for ; Tue, 20 Feb 2018 14:14:25 +0000 (UTC) (envelope-from rhonda.stewart@rearson.com) Received: from mail-qt0-x246.google.com (mail-qt0-x246.google.com [IPv6:2607:f8b0:400d:c0d::246]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 17D527903B for ; Tue, 20 Feb 2018 14:14:24 +0000 (UTC) (envelope-from rhonda.stewart@rearson.com) Received: by mail-qt0-x246.google.com with SMTP id q7so1101354qtl.0 for ; Tue, 20 Feb 2018 06:14:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rearson.com; s=google; h=mime-version:message-id:date:subject:from:to; bh=HB6phNFATLpQ9PK2G4WiOlPU6T8OBTcL/Zdlegz7OHY=; b=ciuEEuZdKIUcAxaS//MvYWcJzJfBFTt3f0eKv7CvzMnBbgZ5LpbL1ThA5AKXnuK53l gKbtvx6N+HPaRA15p7yIgHxc7aQ786aszLfPJggiXoCNmGAbsdbCwN3o98eSIXQZmqHL cjodhamcVV/Ue7gk/HWWrCd+A8Rj1tZSab5sU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:message-id:date:subject:from:to; bh=HB6phNFATLpQ9PK2G4WiOlPU6T8OBTcL/Zdlegz7OHY=; b=tjSt9ZZHLaQG2j8gr5+kymJenLb61ye96ILpocVi9cbnRQz4yONR4juRuvBHH+S7zJ UShIiccz/hWH0IrS0UyYorFTjR7U0TuaHn3cK1B4DdYxKA66EsQPzbVCQt2a2OwBL0+E vo9pmldmLVhzr/cDO2m9lCyM3O+EQfvM7r6GlpiYqZrE9Dkrs20LCbc0sUqW5ME7Jx/p q+axxXXczAgwSXaZx39ZVvkPhlcJIRKYFlpm5IPZSsuUn52AG56S2hdi0hyiDWsbfPol tYEaG3AYhn6XSSdBJXAQI3GevUPf7Bv0LVUqqSckc5sW8NI7CMFs5rcHWbMPV/2cyr52 AE5w== X-Gm-Message-State: APf1xPDFsW2uvAtfaldt9uoZ+8iP69cWioQ2ALyTEyPw5VLx/h6Qqpem gI4sE4kjvXAAtvcxEB+k58oa7/d+Dvli X-Google-Smtp-Source: AH8x226IXtIBb+3VFZksZsH84Um4ZQlt9CrhQPTZ5pGam+PU/aBnjrSOu3YjiedvdiM2XKM2DOTyfoPLrA== MIME-Version: 1.0 X-Received: by 10.55.225.5 with SMTP id c5mr10279659qkm.5.1519136064577; Tue, 20 Feb 2018 06:14:24 -0800 (PST) Message-ID: Date: Tue, 20 Feb 2018 14:14:24 +0000 Subject: Google AdWords Users List From: rhonda.stewart@rearson.com To: freebsd-ppc@freebsd.org Content-Type: text/plain; charset="UTF-8"; format=flowed; delsp=yes Content-Transfer-Encoding: base64 X-Content-Filtered-By: Mailman/MimeDel 2.1.25 X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Feb 2018 14:14:25 -0000 PGRpdiBkaXI9Imx0ciI+PHAgY2xhc3M9ImdtYWlsLW1zb25vc3BhY2luZyI+PHNwYW4gIA0Kc3R5 bGU9ImZvbnQtc2l6ZToxMXB0O2ZvbnQtZmFtaWx5OkNhbGlicmksc2Fucy1zZXJpZjtjb2xvcjpy Z2IoMzEsNzgsMTIxKSI+SGVsbG8gIA0KdGhlcmUswqA8YnI+DQo8YnI+DQpJIHdvdWxkIGxpa2Ug dG8ga25vdyBpZiB5b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aWNpbmcuPGJyPg0KPGJyPg0KUmVnYXJkcyzCoDxicj4NClJob25kYSBTdGV3YXJ0 PGJyPg0KTWFya2V0aW5nIEV4ZWN1dGl2ZcKgPC9zcGFuPjxzcGFuICANCnN0eWxlPSJmb250LXNp emU6MTFwdDtmb250LWZhbWlseTpDYWxpYnJpLHNhbnMtc2VyaWYiPjxzcGFuPjwvc3Bhbj48L3Nw YW4+PC9wPg0KDQo8cCBjbGFzcz0iZ21haWwtbXNvbm9zcGFjaW5nIj48c3BhbiAgDQpzdHlsZT0i Zm9udC1zaXplOjExcHQ7Zm9udC1mYW1pbHk6Q2FsaWJyaSxzYW5zLXNlcmlmO2NvbG9yOnJnYigz MSw3OCwxMjEpIj50byAgDQpvcHQgb3V0LCBwbGVhc2UgcmVwbHkgd2l0aCBMZWF2ZSBPdXQgaW4g dGhlDQpTdWJqZWN0IExpbmUuPC9zcGFuPjxzcGFuICANCnN0eWxlPSJmb250LXNpemU6MTFwdDtm b250LWZhbWlseTpDYWxpYnJpLHNhbnMtc2VyaWYiPjxzcGFuPjwvc3Bhbj48L3NwYW4+PC9wPjwv ZGl2Pg0KPHA+Jm5ic3A7PC9wPjxhIHN0eWxlPSdkaXNwbGF5OiBibG9jazsgbWFyZ2luOiAzMnB4 IDAgNDBweCAwOyBwYWRkaW5nOiAgDQoxMHB4OyBmb250LXNpemU6IDFlbTsgdGV4dC1hbGlnbjog Y2VudGVyOyBib3JkZXI6IDA7IGJvcmRlci10b3A6IDFweCBzb2xpZCAgDQpncmF5OyAnIGhyZWY9 J2h0dHBzOi8vZ29vLmdsLzJrc2RSdic+cG93ZXJlZCBieSBHU00uIEZyZWUgbWFpbCBtZXJnZSBh bmQgIA0KZW1haWwgbWFya2V0aW5nIHNvZnR3YXJlIGZvciBHbWFpbC48L2E+DQo= From owner-freebsd-ppc@freebsd.org Wed Feb 21 00:28:26 2018 Return-Path: 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 ; 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 ; 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 ; 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 ; 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: In-Reply-To: References: 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-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 --- 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.=