|
From: Igmar P. <mai...@jd...> - 2003-08-06 07:52:49
|
> Yep... how about this: > > Q. My program dies with a segmentation fault, but Valgrind doesn't give > any error messages before it, or none that look related. > > A. The one kind of segmentation fault that Valgrind won't give any > warnings about is writes to read-only memory. Maybe your program is > writing to a static string like this: > > char* s = "hello"; > s[0] = 'j'; > > or something similar. > > Seem reasonable? Fine with me, if you're not experienced in debugging writing read-only mem and not knowing about it can give you a bad headache :) We might to add that writing to read-only mem makes LinuxThreads behave odd. Igmarx |