Modify

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

eitcrash.diff (7.3 KB) - added by janne 5 years ago.
original patch converting most of the threads to QThread from David

Change History

comment:1 Changed 5 years ago by janne

(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

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

original patch converting most of the threads to QThread from David

comment:3 Changed 5 years ago by stuartm

  • Status changed from new to closed
  • Resolution set to duplicate

Duplicate of #5501

View

Add a comment

Modify Ticket

Action
as closed
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.