Hi

Dne Wed, 29 Jul 2009 15:22:57 +0200
"Marcin Szewczyk, Wodny" <wod...@gmail.com> napsal(a):

> You're right. Calloc has failed.
> 
> I've added some sizeof() lines.
>       printf("GSM_Phone_N6510Data Size: %u\n", (unsigned
> int)sizeof(GSM_Phone_N6510Data));
> generates:
>       GSM_Phone_N6510Data Size: 878449328

Well, we should do something about this, I just added testcase which
will fail in case any structure will grow over 100 MiB. Now is time to
dig why this one is so huge...

> > Do you have set some memory limit, so that malloc could fail?
> 
> Nothing special that I know of.

Well the problem might be in calloc, which should try to zero all
pages. So if you don't have that much of memory, it simply can not do
that.

-- 
        Michal Čihař | http://cihar.com | http://blog.cihar.com

Attachment: signature.asc
Description: PGP signature

Reply via email to