[prev in list] [next in list] [prev in thread] [next in thread]
List: squid-dev
Subject: Re: failed when not with "squid -k debug"
From: Henrik Nordstrom <hno () squid-cache ! org>
Date: 2004-03-25 9:06:47
Message-ID: Pine.LNX.4.44.0403251003070.10552-100000 () localhost ! localdomain
[Download RAW message or body]
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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic