On Wed, 3 Nov 2004, Christopher Chamber wrote:
But now, I encountered a strange problem: the modified squid can work well if enable debug with "squid -k debug", but if don't enter "squid -k debug" after run up squid, it will collapse with a segment fault. What will cause this type of error
Most likely you have a debug() statement with side effects which is required for proper operation.
debug() statements must not have sideeffects. The arguments to a debug() statement is not evaluated at all if below the current debug level.
and How can I do with this situation,there aren't any information to help locating the error. Are there any tools to diagnose this problem?
A stack trace on where the segmentation fault occurs usually is a good start..
A good tool is gdb
Regards Henrik
