From: Balazs R. <ba...@ra...> - 2004-01-17 21:37:19
|
First of all let me thank you guys for valgrind; it's been a life saver many times for me, begining C programmer. There's only one thing I cannot figure out: I get this error in my program: ==7819== Warning: client switching stacks? %esp: 0xBFFFF4FC --> 0xBFC2EBB4 ==7819== 1 errors in context 1 of 24: ==7819== Invalid write of size 4 ==7819== at 0x8049F69: create_cache_file (test.c:480) ==7819== Address 0xBFC2EBD0 is on thread 1's stack I'm not using any threads; my program crunches numbers. I get these errors after malloc-ing a huge chunk of memory; that's what triggers the 'client switching stacks' message. Is it a glitch in valgrind or am I compiling my program with incorrect switches ? I've got valgrind-2.0.0 and a stock Mandrake 9.1 system with 2.4.21-0.13mdk kernel. Thanks, Balazs |