|
From: rak <ra...@ho...> - 2005-07-26 21:30:00
|
Dirk Mueller <dmuell <at> gmx.net> writes: > > On Tuesday 26 July 2005 21:11, rak_25 wrote: > > > ==22338== Warning: client switching stacks? %esp: 0x52BFA96C --> > > 0x528FA820 . > > Do you have something in your application that does a huge allocation on the > stack or that implements threads / stack switches in userspace? > > > ==22338== Invalid write of size 4 > > its a false warning triggered by valgrind being confused about a huge jump in > stack usage. it seems to me that your app didn't actually switch the stack > but just allocated a huge amount of memory on the stack, so all following > stack-based accesses are incorrectly interpreted. > > Dirk > I do have a big chunk of array. Is there any way of getting around this warning and false memory errors without using malloc? Thanks dirk. Rak |