Sometimes, kdiff3 crashes on startup. (This is especially visible in some setups of the OS/2 port that I am working on.)
I determined that this is because in DiffTextWindowData::draw() and DiffTextWindowFrame::setFirstLine() may try to compute log10(0) which is crashing with some C-library implemetations. The attached patch should fix this problem.
Never call log10 with <=0 argument.