[Openmcl-devel] killing foreign thread in CCL::PREPARE-TO-QUIT

Ivan Shvedunov ivan4th at gmail.com
Sun Jun 3 17:47:36 PDT 2012

  I've noticed an unpleasant effect when working with recent Qt
versions using CommonQt library. Namely, when using QtWebKit which
tends to start some extra worker threads Qt 4.7.4 produces strange
warning about unexpected exception and Qt 4.8/4.8.1 crashes after
calling CCL:QUIT, sometimes losing some unflushed output. After
spending many hours trying to debug the problem, I've discovered
that exempting foreign threads from being killed in CCL::PREPARE-TO-QUIT
prevents the app from the crash. Apparently the way CCL tries
to kill them doesn't play well with QThread / QThreadPool mechanisms.
What would you advice? Maybe CCL really shouldn't try to kill foreign
threads? I'm afraid it's very difficult to force Qt to kill all
these threads before quitting.

Ivan Shvedunov <ivan4th at gmail.com>
;; My GPG fingerprint is: 2E61 0748 8E12 BB1A 5AB9  F7D0 613E C0F8 0BC5 2807

More information about the Openmcl-devel mailing list