Bug 634094
Summary: | Copy/paste with Clipboard sometimes fails in 64bits because of timestamp issues | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 5 | Reporter: | Olivier Fourdan <ofourdan> | ||||||||||||
Component: | openmotif | Assignee: | Thomas Woerner <twoerner> | ||||||||||||
Status: | CLOSED ERRATA | QA Contact: | Filip Holec <fholec> | ||||||||||||
Severity: | high | Docs Contact: | |||||||||||||
Priority: | urgent | ||||||||||||||
Version: | 5.5 | CC: | cww, fholec, ihayvuk, jwest, kem, pknirsch, psplicha, syeghiay | ||||||||||||
Target Milestone: | rc | Keywords: | Patch, ZStream | ||||||||||||
Target Release: | --- | ||||||||||||||
Hardware: | x86_64 | ||||||||||||||
OS: | Linux | ||||||||||||||
Whiteboard: | |||||||||||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||||||||||
Doc Text: |
Due to 32-bit time stamp issues, attempting to copy and paste on a 64-bit architecture using the clipboard may have failed occasionally. With this update, the underlying source code has been modified to ensure the time stamp always contains a "CARD32" value, so that copy and paste on 64-bit architectures works as expected.
|
Story Points: | --- | ||||||||||||
Clone Of: | |||||||||||||||
: | 647411 (view as bug list) | Environment: | |||||||||||||
Last Closed: | 2013-10-01 00:33:21 UTC | Type: | --- | ||||||||||||
Regression: | --- | Mount Type: | --- | ||||||||||||
Documentation: | --- | CRM: | |||||||||||||
Verified Versions: | Category: | --- | |||||||||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||||||||
Embargoed: | |||||||||||||||
Bug Depends On: | |||||||||||||||
Bug Blocks: | 647399, 647411 | ||||||||||||||
Attachments: |
|
Description
Olivier Fourdan
2010-09-15 08:37:31 UTC
Created attachment 447407 [details]
Clipboard monitor tool
This is for debugging purpose.
Created attachment 447408 [details]
Simpler reproducer
Any OpenMotif program would reproduce, this example is just to show that the problem lies in OpenMotif and not in the actual program.
Created attachment 447409 [details] Proposed patch This patch fixes the issue by using CARD32 instead of Time for the timestamp internally. This is similar to the fix applied in Metacity for the same problem (see comment #0). Unlike what I stated initially in the description, the problem is actually random... Sometimes it does not happen at all, but when it's started it remains as long as the X server is running, restarting Motif apps makes no difference. When happening, only Motif apps are affected, copying from apps using other toolkits work. And only the clipboard selection, primary selection works as well (ie middle click button). Created attachment 450973 [details]
Symptom patch of time problem in XtOwnSelection
This patch fixes the symptom of the time problem in XtOwnSelection in OpenMotif without changing function prototypes of AssertClipboardSelection and InitializeSelection.
To be able to reproduce this problem, you have to set a date between "Tue Aug 17 14:22:18 CEST 2010" and "Sat Sep 11 02:37:31 CEST 2010" It is also possible to use the date "Mon Oct 30 21:03:10 CEST 2010" Then the time value of events in the server is bigger than INT_MAX. Granting Devel ACK to get this out asap. Thanks & regards, Phil Created attachment 454754 [details] Proposed patch This patch is similar to the patch in comment 7, but we make typecasting earlier after receiving data from X server. Maybe it help to avoid similar potential issues. Technical note added. If any revisions are required, please edit the "Technical Notes" field accordingly. All revisions will be proofread by the Engineering Content Services team. New Contents: Due to 32-bit time stamp issues, attempting to copy and paste on a 64-bit architecture using the clipboard may have failed occasionally. With this update, the underlying source code has been modified to ensure the time stamp always contains a "CARD32" value, so that copy and paste on 64-bit architectures works as expected. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHBA-2013-1355.html |