From owner-freebsd-current@FreeBSD.ORG Wed Apr 5 19:03:29 2006 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B870B16A420; Wed, 5 Apr 2006 19:03:29 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from mail09.syd.optusnet.com.au (mail09.syd.optusnet.com.au [211.29.132.190]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1183B43D45; Wed, 5 Apr 2006 19:03:28 +0000 (GMT) (envelope-from peterjeremy@optushome.com.au) Received: from turion.vk2pj.dyndns.org (c220-239-19-236.belrs4.nsw.optusnet.com.au [220.239.19.236]) by mail09.syd.optusnet.com.au (8.12.11/8.12.11) with ESMTP id k35J3Q5I004923 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Thu, 6 Apr 2006 05:03:26 +1000 Received: from turion.vk2pj.dyndns.org (localhost.vk2pj.dyndns.org [127.0.0.1]) by turion.vk2pj.dyndns.org (8.13.4/8.13.4) with ESMTP id k35J3QO2003101; Thu, 6 Apr 2006 05:03:26 +1000 (EST) (envelope-from peter@turion.vk2pj.dyndns.org) Received: (from peter@localhost) by turion.vk2pj.dyndns.org (8.13.4/8.13.4/Submit) id k35J3PKu003100; Thu, 6 Apr 2006 05:03:25 +1000 (EST) (envelope-from peter) Date: Thu, 6 Apr 2006 05:03:25 +1000 From: Peter Jeremy To: Jason Evans Message-ID: <20060405190325.GK699@turion.vk2pj.dyndns.org> References: <4433DCF6.8060802@webges.com> <4433E915.1090509@FreeBSD.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4433E915.1090509@FreeBSD.org> X-PGP-Key: http://members.optusnet.com.au/peterjeremy/pubkey.asc User-Agent: Mutt/1.5.11 Cc: Michael Zach , freebsd-current@freebsd.org Subject: Re: make buildworld error 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: Wed, 05 Apr 2006 19:03:29 -0000 On Wed, 2006-Apr-05 08:58:13 -0700, Jason Evans wrote: >Michael Zach wrote: >>/usr/src/lib/libc/stdlib/malloc.c: In function `arena_run_reg_alloc': >>/usr/src/lib/libc/stdlib/malloc.c:1540: warning: control reaches end of >>a non-void function ... >>If needed a script-snippet is available. Actually I'm running out of >>ideas what could raise the error since line 1540 in malloc.c is an >>"assert(0);" ... > >Do you have non-standard compiler flags set? I don't see this warning. I get the same error with malloc.c v1.123. The compiler warning makes sense. arena_run_reg_alloc() should return a void* but ends with assert(0);. This is not safe because assert() can be compiled out by setting 'NDEBUG'. You should probably use abort() rather than assert(0). -- Peter Jeremy