From nobody@FreeBSD.org  Sun Sep 17 08:14:59 2006
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id D3DFB16A415
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 17 Sep 2006 08:14:59 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 7A26243D5E
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 17 Sep 2006 08:14:59 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k8H8Et71019510
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 17 Sep 2006 08:14:55 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id k8H8EsM4019509;
	Sun, 17 Sep 2006 08:14:55 GMT
	(envelope-from nobody)
Message-Id: <200609170814.k8H8EsM4019509@www.freebsd.org>
Date: Sun, 17 Sep 2006 08:14:55 GMT
From: Angelescu Ovidiu <mrhsaacdoh@yahoo.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: create_compressed_fs error ( Zlib memory allocation error ? )
X-Send-Pr-Version: www-2.3

>Number:         103321
>Category:       kern
>Synopsis:       create_compressed_fs error ( Zlib memory allocation error ? )
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    itetcu
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Sep 17 08:20:13 GMT 2006
>Closed-Date:    Mon Sep 18 19:58:32 GMT 2006
>Last-Modified:  Mon Sep 18 19:58:32 GMT 2006
>Originator:     Angelescu Ovidiu
>Release:        FreeBSD-6.1 Release
>Organization:
www.rofreesbie.org
>Environment:
FreeBSD RoFreeSBIE 6.1-STABLE FreeBSD 6.1-STABLE #0: Sat Sep  9 03:44:09 UTC 2006     root@RoFreeSBIE:/usr/src/sys/i386/compile/RoFreeSBIE_Live_CD  i386

>Description:
I am the RoFreeSBIE developer ( the first Live DVD FreeBSD based )and working at
it i have encontered an error.
For RoFreeSBIE i need compressed iso9660 images to be decompressed on the fly by
geom_uzip.ko.
For doing the compressed iso_images i have installed cloop-utils-2.01.2.
When i need to compress a large file tree create_compressed_fs give 
the following error when the create_comppressed_fs used memory is greater than 500MB:

Error -4 compressing block blocknumber !
   
As I have saw in /usr/src/lib/libz that error is a memory alocation error.

I mention that the computer have 2GB of ram and in the compression process and the system don't use swap.

Also trying to compress a file tree about three time greater in linux with the same cloop-utils-2.01.2 it was working.
>How-To-Repeat:
Install a FreeBSD System ,mkisofs and cloop-utils-2.01.2 .

Try to make a compressed iso image using create_compressed_fs for a large file tree > 2GB .

When the used memory by create_compressed_fs is about 500MB the create_compressed_fs crashes with error -4 wich seems to be a zlib or kernel bug.

I have tested that only on an i386 architecture.

 

>Fix:
Don't know until yet !
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->itetcu 
Responsible-Changed-By: itetcu 
Responsible-Changed-When: Sun Sep 17 21:48:32 UTC 2006 
Responsible-Changed-Why:  
tack it for now. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=103321 
State-Changed-From-To: open->closed 
State-Changed-By: itetcu 
State-Changed-When: Mon Sep 18 19:58:30 UTC 2006 
State-Changed-Why:  
This is not a bug, the solution is to increase  kern.maxdisz in 
/boot/loader.conf 

http://www.freebsd.org/cgi/query-pr.cgi?pr=103321 
>Unformatted:
