On Thu, 25 Mar 2004, Zhou Hong 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
Odd.. usually the situation is the reverse.
But if I am to guess then my guess it that you have placed some required
logics into a debug() statement somewhere.. debug() statements must be
written without any sideeffects or things will behave differently if
debugging is enabled or not.
> and How can I do with this situation
Using a debugger such as gdb usually helps finding this type of problems
gdb /path/to/sbin/squid
run -DNYCd3
valgrind is also quite helpful. (http://valgrind.kde.org/)
Regards
Henrik
Received on Thu Mar 25 2004 - 02:06:50 MST
This archive was generated by hypermail pre-2.1.9 : Thu Apr 01 2004 - 12:00:04 MST