Bug 212582 - hang on tool version check
Summary: hang on tool version check
Status: RESOLVED FIXED
Alias: None
Product: k3b
Classification: Applications
Component: general (show other bugs)
Version: 1.68.0
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: Sebastian Trueg
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-01 02:12 UTC by Marcin Gryszkalis
Modified: 2009-11-09 20:02 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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