Re: How can I write hard-to-find bugs???



Pascal Bourguignon <pjb@xxxxxxxxxxxxxxxxx> writes:

"Lucas J. Riesau" <ion_sphere@xxxxxxxxx> writes:

I want to write a few programs with hard-to-find bugs,
so that those who're going to debug the programs
will become insane.

How can I write hard-to-find bugs???

The easiest way would be to use threads and global variables (and only
that, no semaphore, no condition, no mutex, etc).

Or better, throw in a semaphore, post it accidentally in some obscure
situation (e.g. error condition), and have this result in a hardware
lockup. Yes, I had to debug one of those just last week.

Troll group removed.

--
Måns Rullgård
mans@xxxxxxxxx
.