From owner-freebsd-bugs@FreeBSD.ORG Wed Dec 17 06:40:02 2008 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 117411065672 for ; Wed, 17 Dec 2008 06:40:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id E4F4D8FC2D for ; Wed, 17 Dec 2008 06:40:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id mBH6e1T7061363 for ; Wed, 17 Dec 2008 06:40:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id mBH6e1nC061362; Wed, 17 Dec 2008 06:40:01 GMT (envelope-from gnats) Resent-Date: Wed, 17 Dec 2008 06:40:01 GMT Resent-Message-Id: <200812170640.mBH6e1nC061362@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Bruce Cran Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CC28F106567D for ; Wed, 17 Dec 2008 06:30:14 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id BD7D48FC16 for ; Wed, 17 Dec 2008 06:30:14 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id mBH6UEZL015753 for ; Wed, 17 Dec 2008 06:30:14 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id mBH6UEhX015752; Wed, 17 Dec 2008 06:30:14 GMT (envelope-from nobody) Message-Id: <200812170630.mBH6UEhX015752@www.freebsd.org> Date: Wed, 17 Dec 2008 06:30:14 GMT From: Bruce Cran To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: bin/129706: top(1) corrupts SIZE field when a process allocates 2048GB memory X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Dec 2008 06:40:02 -0000 >Number: 129706 >Category: bin >Synopsis: top(1) corrupts SIZE field when a process allocates 2048GB memory >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Dec 17 06:40:01 UTC 2008 >Closed-Date: >Last-Modified: >Originator: Bruce Cran >Release: 7.1-RC1 >Organization: >Environment: FreeBSD 7.1-RC1 amd64 >Description: When a process allocates over 2TB, top can corrupt the SIZE field and display a series of characters instead. It only appears to happen on TB boundaries - i.e 2048GB, 3072GB etc. 7.1-RC1 and 8-CURRENT (from 2008-12-15) both show the problem. >How-To-Repeat: Compile the following code and once running run top to see the process listed. #include int main(void) { char *c = malloc(2048LL*1024*1024*1024); getchar(); return 0; } >Fix: >Release-Note: >Audit-Trail: >Unformatted: