valgrind? electric fence?

Regan Heath regan at netmail.co.nz
Sun Jun 3 11:47:22 PDT 2007


Jason House Wrote:
> Does anyone know if valgrind or similar products can work with D?  If 
> so, how?  If not, does anyone know of the next best thing?  (like 
> running the GC after every line of code in a particular function?)
> 
> Needless to say, I have a bug that's driving me crazy.  Somewhere fairly 
> late in a loop equivalent to "for (int i=0; i<36100; i++) 
> doSomething();", my program crashes in seemingly normal code with normal 
> state.  doSomething passes all of its unit tests and passes my nieve 
> code inspection.  I could even be looking in the wrong spot since the 
> code is multithreaded...  (but the other threads are stuck in the 
> equivalent of "while(foo()==false) yield;" while waiting for the other 
> thing to finish.  (foo is a very simple function)

I'm looking for a challenge, if you want you can send me the code (my email is valid) and I'll see if I can find the bug.  If the code is closed source I'll even promise not to keep it afterwards, or leak it in any way shape or form.

Regan Heath


More information about the Digitalmars-d-learn mailing list