[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

RE: Strange crashes

From: Lübbe Onken <l.onken_at_rac.de>
Date: 2006-04-10 10:33:09 CEST

Hi Russell,

> But Stefan has said cacheDir is NULL after the if statement. Even if
> the object is deleted elsewhere, his pointer still won't be
> NULL unless
> something explicitly sets it to NULL. He'd still see the AV, but the
> pointer would look valid but in this case, the pointer is
> being set to NULL.

It may be a race condition, but it could also be a bug in the compiler
optimization. I often had problems when I had optimization turned on. Even
when an expression evaluated TRUE in the debugger, the code would enter the
FALSE branch. This only changed when I turned the optimization off, which I
now generally do.
A pro for a race condition bug would be that it works in the debugger every
time, but crashes non-reliably when run outside the debugger.

Cheers
- Lübbe

--
       ___
  oo  // \\      "De Chelonian Mobile"
 (_,\/ \_/ \     TortoiseSVN
   \ \_/_\_/>    The coolest Interface to (Sub)Version Control
   /_/   \_\     http://tortoisesvn.tigris.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Mon Apr 10 10:33:28 2006

This is an archived mail posted to the TortoiseSVN Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.