[Kommander-devel] Fun with debugging

Michal Rudolf mrudolf at kdewebdev.org
Sun Aug 13 12:58:34 EDT 2006


Some time ago, a crash was reported by Jeremy West

Command causing crash was:
 listStorage.setText(exec("awk 'BEGIN{getline;getline} {print "/dev/" 
$4 }' /proc/partitions"))

Supposed reason was problem with quotation mark handling. I tried to debug the 
error and found that it wasn't the reason. 

Solution is, of course... divide by zero.
we have "string" / dev / "string", that is, we are dividing string (evaluated 
as 0) by variable dev, which is 0 too...
-- 
Michal Rudolf


More information about the Kommander-devel mailing list