[kaffe] Problem: gcMalloc: Assertion `fidx < nrTypes && size != 0' failed.

Santosh Kumar Janmanchi santosh.janmanchi@wipro.com
Thu, 25 Apr 2002 16:55:59 +0530


This is a multi-part message in MIME format.

------=_NextPart_000_0180_01C1EC7A.13705A20
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit

Hi Dalibor,
Am sending a test program that results in the same assertion problem.
The test program takes a jar file location, reads contents from each file in
the jar and prints the same to standard output. It uses ZipFile and ZipEntry
classes present in java.util.zip.* pkg.

Attachments :
Test.java --> source code of java file.
Test.jar --> dummy jar file for input to the program. This contains the same
"Test.java".

Thanks & regards,
Santosh

----- Original Message -----
From: "Dalibor Topic" <robilad@yahoo.com>
To: "Santosh Kumar Janmanchi" <santosh.janmanchi@wipro.com>;
<kaffe@kaffe.org>
Sent: Wednesday, April 24, 2002 5:27 PM
Subject: Re: [kaffe] Problem: gcMalloc: Assertion `fidx < nrTypes && size !=
0' failed.


> Hi Santosh,
>
> --- Santosh Kumar Janmanchi
> <santosh.janmanchi@wipro.com> wrote:
> > Kaffe aborts with following assertion:
> >
> > Kaffe: mem/gc-incremental.c:864: gcMalloc: Assertion
> > `fidx < nrTypes && size
> > !=
> > 0' failed.
> >
> > Has anybody encountered this problem? Any fix
> > available for it?
>
> Thanks for reporting that problem. Could you produce a
> small test case that triggers the bug?
>
> cheers,
>
> dalibor topic
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Games - play chess, backgammon, pool and more
> http://games.yahoo.com/

------=_NextPart_000_0180_01C1EC7A.13705A20
Content-Type: application/octet-stream;
	name="Test.java"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="Test.java"

import java.io.*;
import java.util.*;
import java.util.zip.*;

public class Test
{
	public static void printContents(ZipFile jarfile) throws IOException
	{
		Enumeration enEntries =3D jarfile.entries();

		for (;enEntries.hasMoreElements();)
		{
			ZipEntry entry =3D (ZipEntry)enEntries.nextElement();
			String name =3D entry.getName();

			/*
			 *Read all the contents of the Jar File
			 */

		    InputStream inStream =3D jarfile.getInputStream(entry);
			try
			{
				byte[] content =3D loadBytes(inStream, (int)entry.getSize());
				System.out.println("\n\n--------------------------------");
				System.out.println("------------" + name + "-----------");
				System.out.println(new String(content));
				System.out.println("--------------------------------\n");
			}//end of try
			finally
			{
				try
				{
					inStream.close();
				} catch (Throwable t)
				{
					System.out.println(t);
				}
			}//end of finally
		}//end of for

	}
	private static byte[] loadBytes(InputStream in, int length) throws =
IOException
	{
		byte[] buffer =3D new byte[length];
		int nRead =3D 0;
		int incr =3D 0;
		while ( (length > 0) && ((nRead =3D in.read(buffer,incr,length)) !=3D =
-1))
		{
		incr +=3DnRead;
		length -=3D nRead;
		}
		return buffer;
	}//end of method loadBytes

	public static void main(String [] args) throws ZipException, =
IOException
	{
		if(args.length !=3D 1)
		{
			System.out.println("Usage: java Test <jar file location>");
			System.exit(0);
		}

		ZipFile zf =3D new ZipFile(new File(args[0]));

		Test.printContents(zf);
	}
}
------=_NextPart_000_0180_01C1EC7A.13705A20
Content-Type: application/octet-stream;
	name="Test.jar"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
	filename="Test.jar"

UEsDBBQACAAIAJGEmSwAAAAAAAAAAAAAAAAJAAQATUVUQS1JTkYv/soAAAMAUEsHCAAAAAACAAAA
AAAAAFBLAwQUAAgACACRhJksAAAAAAAAAAAAAAAAFAAAAE1FVEEtSU5GL01BTklGRVNULk1G803M
y0xLLS7RDUstKs7Mz7NSMNQz4OVyLkpNLElN0XWqBAkY6xkoaASX5in4ZiYX5RdXFpek5hYreOYl
62nycvFyAQBQSwcIM/k1pEQAAABEAAAAUEsDBBQACAAIAGqEmSwAAAAAAAAAAAAAAAAJAAAAVGVz
dC5qYXZhjVRNb9swDD07QP4D10Mht6mTXtelhw0Z0AHbgLW7rO1BcehEgy0ZstyPDP3vo2jJToag
nYFEMq33+EiRVFVtrIPf8kFmymQnF+OR2jG1TpWHjVtV84fxqG6XpcohL2XTwA02bjz6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C7A.13705A20
Content-Type: text/plain;
	name="Wipro_Disclaimer.txt"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename="Wipro_Disclaimer.txt"

**************************Disclaimer************************************
Information contained in this E-MAIL being proprietary to Wipro Limited
is 'privileged' and 'confidential' and intended for use only by the
individual or entity to which it is addressed. You are notified that any
use, copying or dissemination of the information contained in the E-MAIL
in any manner whatsoever is strictly prohibited.
********************************************************************

------=_NextPart_000_0180_01C1EC7A.13705A20--