Re: How to make (ptr + len) > lim safe?
- From: Ian Collins <ian-news@xxxxxxxxxxx>
- Date: Sat, 19 Jan 2008 15:07:09 +1300
William Ahern wrote:
Paul Hsieh <websnarf@xxxxxxxxx> wrote:What benefit do you gain form this? Without some form of core file, how
On Jan 18, 12:34 pm, William Ahern <will...@xxxxxxxxxxxxxxxxxxxxxxxxx><snip>
Point being, these checks are often times counter-productive. They hideYou want bugs to be found during *development time* not just as soon
bugs. I don't want my bugs hidden. Rather, I want to find them as soon as
possible.
as circumstances arise. Your compiler is unlikely to set a policy for
buffer overrun checking that is relevant to shipping, but instead is
focused for debugging.
I disagree. I want bugs found as soon as possible. And I always ship
compiled code with debugging symbols turned on. I won't budge on this. I'll
make the release engineer's life a living hell if I have to.
can you track the bug? With a core file, you don't have to ship with
debugging symbols.
Maybe that's why windows application have such a poor reputation?
Now, poor developer is enlisted to fix the product. More than likely there's
more than 1 bug, and more than 1 bug which might possibly cause the
symptom(s). So, he investigates. Ah, bug! Fix. Give to customer. "Try this".
Customer thinks, "Speedy service, I like these people". A week or two
passes. Same thing happens. Calls back. "Its broken! I thought you guys
fixed this?"
Repeat, ad naseum.
There isn't an easy way (apart from those nagging feedback reporting
dialogue boxes) to send a detailed report back the base.
Now, if the darned progam had simply core dumped at the pointer dereference,How does the user make use of debugging symbols?
and debug symbols were turned on, then the chances of fixing this bug on the
first try are much, much beter. And even though most developers will
[rightly] cringe at the notion of asking poor customer for a core file, or
get their hands dirty, so to speak, at the end of the day the problem is
fixed.
--
Ian Collins.
.
- Follow-Ups:
- Re: How to make (ptr + len) > lim safe?
- From: William Ahern
- Re: How to make (ptr + len) > lim safe?
- References:
- How to make (ptr + len) > lim safe?
- From: Michael B Allen
- Re: How to make (ptr + len) > lim safe?
- From: Jack Klein
- Re: How to make (ptr + len) > lim safe?
- From: Michael B Allen
- Re: How to make (ptr + len) > lim safe?
- From: pete
- Re: How to make (ptr + len) > lim safe?
- From: Michael B Allen
- Re: How to make (ptr + len) > lim safe?
- From: pete
- Re: How to make (ptr + len) > lim safe?
- From: Michael B Allen
- Re: How to make (ptr + len) > lim safe?
- From: pete
- Re: How to make (ptr + len) > lim safe?
- From: Michael B Allen
- Re: How to make (ptr + len) > lim safe?
- From: William Ahern
- Re: How to make (ptr + len) > lim safe?
- From: Paul Hsieh
- Re: How to make (ptr + len) > lim safe?
- From: William Ahern
- How to make (ptr + len) > lim safe?
- Prev by Date: Re: Is Chris Hills a troll?
- Next by Date: Re: How to make (ptr + len) > lim safe?
- Previous by thread: Re: How to make (ptr + len) > lim safe?
- Next by thread: Re: How to make (ptr + len) > lim safe?
- Index(es):
Relevant Pages
|