valgrind? electric fence?

Jason House jason.james.house at gmail.com
Sun Jun 3 10:27:37 PDT 2007


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)


More information about the Digitalmars-d-learn mailing list