Bug 870712

Summary: A very simple MOTIF program fails with "X Error of failed request: BadWindow (invalid Window parameter)"
Product: [Fedora] Fedora Reporter: Joachim Backes <joachim.backes>
Component: motifAssignee: Thomas Woerner <twoerner>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 18CC: siddharth.kde, twoerner
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-10-29 15:00:20 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
The testprogram's source none

Description Joachim Backes 2012-10-28 06:58:06 UTC
Created attachment 634443 [details]
The testprogram's source

Description of problem:

Compiling (no error!) and starting a very simple MOTIF program on the Gnome3 desktop, but it fails immediately:


Version-Release number of selected component (if applicable):
X Error of failed request:  BadWindow (invalid Window parameter)
  Major opcode of failed request:  19 (X_DeleteProperty)
  Resource id in failed request:  0x0
  Serial number of failed request:  85
  Current serial number in output stream:  89

Motif software used:

motif-devel-2.3.4-3.fc18.x86_64
motif-2.3.4-3.fc18.x86_64



How reproducible:
alwyays

Steps to Reproduce:
1. Compile link the attached source file by "gcc -lXt -lXm xmhallo.c"
2. ./a.out
3.
  
Actual results:
Version-Release number of selected component (if applicable):
X Error of failed request:  BadWindow (invalid Window parameter)
  Major opcode of failed request:  19 (X_DeleteProperty)
  Resource id in failed request:  0x0
  Serial number of failed request:  85
  Current serial number in output stream:  89

Expected results:
the window is shown

Additional info:

Comment 1 Joachim Backes 2012-10-28 07:11:37 UTC
Same (bad) results if using MWM as windowmanager instead of gnome-shell.

Comment 2 Thomas Woerner 2012-10-29 15:00:20 UTC
Please use the proper order of the needed libraries:

gcc -lXm -lXt xmhallo.c

Closing as not a bug.