N
Norbert Leister
Hi NG,
I've the problem, that a malloc call is not returning.
<source-snip>
printf("a\n");
my_pointer = (struct_pointer)malloc(struct_size); /*size 1420*/
printf("b\n");
</source-snip>
I'm almost sure, that my program frees some memory, but if there is no
memory, the malloc should return some NULL-pointer.
The 'normal' output of the function is 'a' and 'b'. But sometimes (after
a while of running), the program stops after printing the 'a'. The other
threads of the programm are still responding to commands, but the one
who called the malloc does not reacts.
Have you somewhere had a similar problem?
Compiler: gcc-3.3.3-7 on Fedora Core 2
Greeting:
Norbert
I've the problem, that a malloc call is not returning.
<source-snip>
printf("a\n");
my_pointer = (struct_pointer)malloc(struct_size); /*size 1420*/
printf("b\n");
</source-snip>
I'm almost sure, that my program frees some memory, but if there is no
memory, the malloc should return some NULL-pointer.
The 'normal' output of the function is 'a' and 'b'. But sometimes (after
a while of running), the program stops after printing the 'a'. The other
threads of the programm are still responding to commands, but the one
who called the malloc does not reacts.
Have you somewhere had a similar problem?
Compiler: gcc-3.3.3-7 on Fedora Core 2
Greeting:
Norbert