Re: Bug? Allocation of too much memory hangs system, kernel 2.2.*

Juergen Vollmer (vollmer@cocolab.de)
Sun, 30 May 1999 11:10:30 +0200


--==_Exmh_-2034021597P
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable

> If you like you can send me your recursive proggy and I'll try to run i=
t
> here.

Please try the following:

-------------------------------------
# include "stdio.h"

static int count =3D 0;
# define MAX (1024*1024)
void foo(){
char a[MAX];
int i;

printf ("%d\n", count++);

for (i =3D 0; i < MAX; i +=3D 100) {
a[i] =3D i % 256;
}

foo();
}
int main(){
foo();
return 0;
}
-------------------------------------

after printing 375, the system stops as described in my problem report.

J=FCrgen

-------------------------------------------------------------------------=
-----
Dr. Juergen Vollmer, Viktoriastrasse 15, D-76133 Karlsruhe
office: vollmer@cocolab.de Tel: +49(721) 9204871 Fax: +49(721) =
24874
private: Juergen.Vollmer@acm.org Tel: +49(721) 24874 Fax: +49(721) =
24874
WWW: www.cocolab.de/vollmer
-------------------------------------------------------------------------=
-----

--==_Exmh_-2034021597P
Content-Type: application/pgp-signature

-----BEGIN PGP MESSAGE-----
Version: 2.6.3i
Comment: Requires PGP version 2.6 or later.

iQCVAwUBN1EAhYh48drK23N9AQGDdAP/VqZAd0esAA1fAPS9WvfGRlrTPdhn6Okn
2fQIsOMKZ+BG1LCTzC7kd5lwUavn4Y1x18R8kXuU85m5acOQk7QQduJlT3704R+4
fcdLGLzEkZHzWHNg1434gJdeqesAk57C/sJXeY2BEMiRD3+x1nYC7baV/UjqQ28T
nsTAzcgmk8A=
=sJsn
-----END PGP MESSAGE-----

--==_Exmh_-2034021597P--

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/