Bug 4790 - XInitThreads causes japanese input method to hang (1GIRYR6)
Summary: XInitThreads causes japanese input method to hang (1GIRYR6)
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 2.0   Edit
Hardware: All Linux
: P3 normal (vote)
Target Milestone: 2.0 M4   Edit
Assignee: Silenio Quarti CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-10-11 14:23 EDT by Silenio Quarti CLA
Modified: 2002-03-07 10:55 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Silenio Quarti CLA 2001-10-11 14:23:03 EDT
On Linux RedHat 6.2 (2.2.14-5.0) Japanese, if you call XInitThreads and link
with pthread, the program will hang when the input method is started.

Here are the steps to reproduce it:

1) Compile the attached C code. The Motif home needs to be
updated in the makefile. The testcase will fail when compiled
against Open Motif from Metrolink (openmotif-2_1_30-4_MLI_i386.rpm).

2) Run the executable "test" in a japanese machine

3) When the window open, give focus to the text field

4) Start the japanese input method by pressing <Shift+Space>

5) Type some characters and press <Enter>.	 At this point, the testcase
will hang.

5) Comment the following line in the makefile

LIB_FLAGS += -lpthread

6) Recompile the tescase.

7) Run it again. It should not hang this time.

NOTES:
Comment 1 DJ Houghton CLA 2001-10-29 16:38:41 EST
PRODUCT VERSION:

Red Hat 6.2

Comment 2 Silenio Quarti CLA 2002-03-05 19:18:32 EST
This is a third part problem. The problem has been worked around
in SWT by avoiding the call to XInitThreads().