kern/103321: create_compressed_fs error ( Zlib memory allocation error ? )

Angelescu Ovidiu mrhsaacdoh at yahoo.com
Sun Sep 17 01:20:17 PDT 2006


>Number:         103321
>Category:       kern
>Synopsis:       create_compressed_fs error ( Zlib memory allocation error ? )
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Sep 17 08:20:13 GMT 2006
>Closed-Date:
>Last-Modified:
>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 at 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:
>Unformatted:


More information about the freebsd-bugs mailing list