Ticket #4733 (closed defect: duplicate)
Opened 5 years ago
Last modified 5 years ago
threads using QRegExp have to use QThread instead of pthread
| Reported by: | janne | Owned by: | janne |
|---|---|---|---|
| Priority: | minor | Milestone: | 0.22 |
| Component: | mythtv | Version: | unknown |
| Severity: | medium | Keywords: | |
| Cc: | Ticket locked: | no |
Description
Quoting http://doc.trolltech.com/3.3/qregexp.html#details
In case of multi-threaded programming, note that QRegExp depends on QThreadStorage internally. For that reason, QRegExp should only be used with threads started with QThread, i.e. not with threads started with platform-specific APIs.
Attachments
Change History
comment:1 Changed 5 years ago by janne
comment:2 Changed 5 years ago by janne
(In [16274]) Merges [16191] from trunk: Convert EITScanner pthread from pthread to QThread
From: David <david at unsolicited point net> Fixes a segfault in the EITFixup QRegExps. QRegExp depends on QThreadStorage which can only be used in threads created by QThread.
I'm just converting the EITScanner thread due to the near release date. Other threads using QRegExp should be converted too or maybe not. I have not seen the same warning in the qt 4.3 docs. Refs #4695, Refs #4733
Changed 5 years ago by janne
- Attachment eitcrash.diff added
original patch converting most of the threads to QThread from David

(In [16191]) Convert EITScanner pthread from pthread to QThread
From: David <david at unsolicited point net> Fixes a segfault in the EITFixup QRegExps. QRegExp depends on QThreadStorage which can only be used in threads created by QThread.
I'm just converting the EITScanner thread due to the near release date. Other threads using QRegExp should be converted too or maybe not. I have not seen the same warning in the qt 4.3 docs. Refs #4695, Refs #4733