Bug 212582

Summary: hang on tool version check
Product: [Applications] k3b Reporter: Marcin Gryszkalis <mg>
Component: generalAssignee: Sebastian Trueg <trueg>
Status: RESOLVED FIXED    
Severity: normal CC: michalm
Priority: NOR    
Version: 1.68.0   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In:

Description Marcin Gryszkalis 2009-11-01 02:12:07 UTC
Version:           1.68.0 (using KDE 4.3.2)
Compiler:          gcc 4.3.4 
OS:                Linux
Installed from:    Gentoo Packages

The problem came out when I installed num-utils package which provides its own normalize tool. K3B tries to check version numbers by calling something similar to "normalize --version" and parsing it's output. Unfortunately num-utils' normalize doesn't quit after printing version (it stays alive forever reading from stdin). K3B hangs there waiting for normalize to finish. 

I reported bug in gentoo bugzilla [1] about conflict (sound/normalize vs num-utils normalize) but I think it's still more general problem. I think K3B should use some kind of watchdog timer and kill offending tool if it doesn't behave as expected.

[1] https://bugs.gentoo.org/show_bug.cgi?id=290946
Comment 1 Michał Małek 2009-11-09 20:02:34 UTC
SVN commit 1046811 by mmalek:

* Added timeout when checking version number and features of executable
BUG: 212582

 M  +6 -2      k3bexternalbinmanager.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1046811