From owner-freebsd-current@FreeBSD.ORG Tue Apr 22 10:15:08 2003 Return-Path: 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 6B73237B404 for ; Tue, 22 Apr 2003 10:15:08 -0700 (PDT) Received: from castle.jp.FreeBSD.org (castle.jp.FreeBSD.org [210.226.20.15]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5EC1643F85 for ; Tue, 22 Apr 2003 10:15:07 -0700 (PDT) (envelope-from matusita@jp.FreeBSD.org) Received: from localhost (localhost [::1])h3MHGGY70118; Wed, 23 Apr 2003 02:16:16 +0900 (JST) (envelope-from matusita@jp.FreeBSD.org) In-Reply-To: <3EA533DC.5070200@jocose.org> References: <3EA44847.90205@jocose.org> <20030422110541W.matusita@jp.FreeBSD.org> <3EA533DC.5070200@jocose.org> X-User-Agent: Mew/1.94.2 Emacs/21.3 X-FaceAnim: (-O_O-)(O_O- )(_O- )(O- )(- -)( -O)( -O_)( -O_O)(-O_O-) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Dispatcher: imput version 20030322(IM144) Lines: 31 From: Makoto Matsushita To: peter@jocose.org Date: Wed, 23 Apr 2003 02:15:02 +0900 Message-Id: <20030423021502S.matusita@jp.FreeBSD.org> cc: current@FreeBSD.org Subject: The sysinstall's safe_realloc() failure X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 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: Tue, 22 Apr 2003 17:15:08 -0000 peter> Floppy via passive ftp. I've done it numerous times in the peter> past, is it not a good idea? I specifically chose the peter> snapshots server from the list. Hmm, that's exactly I'm now trying to know why. Some of guys told me that this is happen if snapshots.jp.FreeBSD.org as a ftp installation server. *** The message you've seen showss that sysinstall try to realloc() with size 0. Actual messaage is by src/usr.sbin/sysinstall/misc.c:safe_realloc(). The size 0 comes from src/usr.sbin/sysinstall/dist.c:distExtractTarball(). In this function, sysinstall checks the size of each chunk from the checksum file (*.inf). This file is not broken, and it seems that there is no problem about xfering this file. But... sysinstall parses this file decides that the chunk size is 0 -- that's the problem. Note that 4-stable doesn NOT have this problem, since 4-stable sysinstall have static buffer for chunks. 5-current sysinstall checks each chunk's size, and realloc() memory for that. I do want to know this problem depends on only ftp server or sysinstall itself, but have very little luck... Anyway thanks for informing your case. -- - Makoto `MAR' Matsushita