From owner-freebsd-current@FreeBSD.ORG Sun Nov 23 23:08:30 2008 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1D8201065672 for ; Sun, 23 Nov 2008 23:08:30 +0000 (UTC) (envelope-from yanefbsd@gmail.com) Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.225]) by mx1.freebsd.org (Postfix) with ESMTP id E5F448FC13 for ; Sun, 23 Nov 2008 23:08:29 +0000 (UTC) (envelope-from yanefbsd@gmail.com) Received: by rv-out-0506.google.com with SMTP id b25so1761673rvf.43 for ; Sun, 23 Nov 2008 15:08:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type:content-transfer-encoding :content-disposition; bh=x3BiCyQvMNWKkBPdZP3BHlMRi9xPHkD5nrmIQyLoRwc=; b=VukF+baj/zQ7QZJM7xkbE92tQuee7C4Hd5tTkoU62oKP3Juq6vgr9jQ+lKyP8IXB0T ujonGuGkfnsD8UEvQON8285UbLaj9jBx3tDyp4p6OMR4OUpP+VkXmznEgQNGN2XzXzos yYTzhwC9iy64/VCorL+4W62jfnMji9k4/5BBM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition; b=qKBP5KRFwbQYsy975A4rt5jTqfwuIY4owvKkHXRQfz1V7rFJJdaaTWh85OvE63gLgT 2di2AYXN1RlE9JBAYqfIgWoLjbgU7Tovhig+6syD7ygXe5UyUojl9ZXa2Zq9q2G0bZqN JbcwQWOvxI8A0bEByE3/PV9dWz7a2sOPOXzwM= Received: by 10.140.202.21 with SMTP id z21mr1510678rvf.260.1227481709585; Sun, 23 Nov 2008 15:08:29 -0800 (PST) Received: by 10.140.158.13 with HTTP; Sun, 23 Nov 2008 15:08:29 -0800 (PST) Message-ID: <7d6fde3d0811231508g351019ffp724e9cc7e1e76c54@mail.gmail.com> Date: Sun, 23 Nov 2008 15:08:29 -0800 From: "Garrett Cooper" To: "FreeBSD Current" MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: Compiled results don't match for CURRENT and 7.0-RELEASE on amd64 / gdb weirdness with CURRENT X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 23 Nov 2008 23:08:30 -0000 Hi guys, I'm running into a weird bug where the following compiled results don't match (and this could potentially be a regression). System 1: FreeBSD 8-CURRENT, synced up as of 3 days ago. Machine uses ULE and runs off a dual-core Intel proc. System 2: FreeBSD 7.0-RELEASE, no patches, SMP enabled. Machine is a single-proc VMware Fusion image. I've made a few changes to hexdump in trying to triage the bugs under my name, and I noticed a difference in behavior between 8-CURRENT and 7.0-RELEASE, in particular the fact that 8-CURRENT doesn't appear to assert a != NULL statement, like on the 7.0-RELEASE machine, but instead chokes on an earlier statement. The patch can be found at: . OSX does the same thing as the 7.0-RELEASE machine as well, which is interesting, but there are a lot of points of variability with that machine, compared to the CURRENT box and the 7.0-RELEASE VM (compiler version, binutils versions, libc version, etc), and I don't want to go compare a vanilla Mac with FreeBSD. I'm syncing up the 7.0-RELEASE's sources to 7-RELEASE and we'll see if that fixes anything, but I'd be really curious if anyone else notes this behavior with different synced versions of CURRENT. Also, there was some gdb weirdness with the machine running CURRENT where the watch stack pointer kept on hopping around on my machine whenever I breaked on a point in the source and hit continue. I'm not sure if it's an issue with SMP, ULE, or both. I'll try rebuilding the kernel without SMP and see what happens. Thanks, -Garrett ===================== 8-CURRENT: ===================== INCOMING! `"%07.7_Ax\n"' P (0): `"%07.7_Ax\n"' ================= LEN: 10 NEWP: " FMT: `%07.7_Ax\n' P (1): `' ================= BC: `0' IC: `1' ================= INCOMING! `"%07.7_ax " 8/2 "%04x " "\n"' P (0): `"%07.7_ax " 8/2 "%04x " "\n"' ================= LEN: 9 NEWP: " 8/2 "%04x " "\n" FMT: `%07.7_ax ' P (1): `8/2 "%04x " "\n"' ================= BC: `2' IC: `8' ================= P (0): `"%04x " "\n"' ================= LEN: 5 NEWP: " "\n" FMT: `%04x ' P (1): `"\n"' ================= BC: `0' IC: `1' ================= P (0): `"\n"' ================= LEN: 2 NEWP: " FMT: `\n' P (1): `' ================= BC: `0' IC: `1' ================= hexdump: Bad format provided: `Ax\n' ===================== 7-RELEASE output: ===================== INCOMING! `"%07.7_Ax\n"' P (0): `"%07.7_Ax\n"' ================= LEN: 10 NEWP: " FMT: `' P (1): `' ================= BC: `0' IC: `1' ================= INCOMING! `"%07.7_ax " 8/2 "%04x " "\n"' P (0): `"%07.7_ax " 8/2 "%04x " "\n"' ================= LEN: 9 NEWP: " 8/2 "%04x " "\n" FMT: `%07.7_ax ' P (1): `8/2 "%04x " "\n"' ================= BC: `2' IC: `8' ================= P (0): `"%04x " "\n"' ================= LEN: 5 NEWP: " "\n" FMT: `' P (1): `"\n"' ================= BC: `0' IC: `1' ================= P (0): `"\n"' ================= LEN: 2 NEWP: " FMT: `' P (1): `' ================= BC: `0' IC: `1' ================= fmt: Assertion failed: (pr != NULL), function rewrite, file parse.c, line 559. Abort trap: 6 (core dumped)