From owner-freebsd-hackers@FreeBSD.ORG Wed Sep 17 16:56:11 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D4884106567F for ; Wed, 17 Sep 2008 16:56:11 +0000 (UTC) (envelope-from gahr@FreeBSD.org) Received: from cpanel03.rubas-s03.net (cpanel03.rubas-s03.net [195.182.222.73]) by mx1.freebsd.org (Postfix) with ESMTP id 924E48FC0C for ; Wed, 17 Sep 2008 16:56:11 +0000 (UTC) (envelope-from gahr@FreeBSD.org) Received: from 80-218-191-31.dclient.hispeed.ch ([80.218.191.31] helo=gahrtop.gahr.ch) by cpanel03.rubas-s03.net with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.68) (envelope-from ) id 1Kg0K0-00033K-Dg; Wed, 17 Sep 2008 18:56:08 +0200 Message-ID: <48D13695.2070000@FreeBSD.org> Date: Wed, 17 Sep 2008 18:55:49 +0200 From: Pietro Cerutti Organization: The FreeBSD Project User-Agent: Thunderbird 2.0.0.16 (X11/20080807) MIME-Version: 1.0 To: Andrew MacIntyre References: <48D12AD4.1000806@bullseye.andymac.org> In-Reply-To: <48D12AD4.1000806@bullseye.andymac.org> X-Enigmail-Version: 0.95.6 OpenPGP: id=9571F78E; url=http://gahr.ch/pgp/ Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cpanel03.rubas-s03.net X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - FreeBSD.org X-Source: X-Source-Args: X-Source-Dir: Cc: freebsd-hackers@freebsd.org Subject: Re: unexpected behaviour of malloc() on 7.0/amd64 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Sep 2008 16:56:11 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 Andrew MacIntyre wrote: [snip] | In investigating a Python 2.6rc1 regression test failure on FreeBSD | 7.0/amd64, as far as I can tell, malloc() does not return NULL when | available memory (including swap) is exhausted - the process just gets | KILLed. [snip] | The Python regression test concerned does not fail on FreeBSD 7.0/i386, | however the C program below exhibits the unexpected behaviour on both | 7.0/amd64 and 7.0/i386. The C program below does behave as | expected on FreeBSD 6.3/i386; I cannot currently test its behaviour on | FreeBSD 6.3/amd64. [snip] | Is this the intended behaviour? I can confirm something strange happening on i386/7.0-RELEASE: | ./malloc Killed | While on i386/8.0-CURRENT the behavior is as expected: | ./malloc_test chunks allocated: 2936 | [snip] | | Thanks, | Andrew. | - -- Pietro Cerutti gahr@FreeBSD.org PGP Public Key: http://gahr.ch/pgp -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iEYEAREKAAYFAkjRNpQACgkQwMJqmJVx946uhQCfcWVVNnIXOIZ5PrmnenEjgLcT gQYAoNpwNxsW94EnOpMHQoit+OOgNd02 =mGSL -----END PGP SIGNATURE-----