Hope fully this should be posted on xorg@lists.x.org so that all can see.. 
Sorry I missed to post there..

Note: Forwarded message attached

-- Original Message --

From: "Subrata Dasgupta"subrata_u...@rediffmail.com
To: wha...@bfs.de,thomas.luebk...@gmx.de,alan.coopersm...@oracle.com
Subject: Re: Xt / Motif C++ application hangs in the XtDispatchEvent call
--- Begin Message ---
Hi All,

Let me reply to you one by one in a single mail , because multiple mails seems 
to create lots of confusion. 

Walter ,

1> Recompile of the application is not possible because few old 3rd party libs 
are now not available in 64 bit format. I can not change this.. 

2> I do not think this is a library loading issue ... ldd revels application is 
loading the correct library from correct location. So there is no question of 
mix.

////////////////////////////////////////////////

Thomas ,
1> I am not sure what is the source code of the Xt library and it will be quite 
difficult for me to understand the problem by going through the source code of 
the library because I am a new user of this lib.


2> Maybe your comment is right. But I have posted what found by attaching the 
process in gdb.. Below is the stack trace when process hangs.. But one thing is 
sure ,its always stucking in the XtDispatchEvent() call made from the 
XtAppProcessEvent() function. 

I removed the upper and lower parts of the stack because I can not disclose it. 
 XtAppProcessEvent() is directly called from main in a loop. 

#7  0xf74bbf6b in _XmCallCallbackList () from /lib/libXm.so.3
#8  0xf75a64c5 in ProtocolHandler () from /lib/libXm.so.3
#9  0xf742b731 in XtDispatchEventToWidget () from /lib/libXt.so.6
#10 0xf742ba34 in _XtDefaultDispatcher () from /lib/libXt.so.6
#11 0xf742bea2 in XtDispatchEvent () from /lib/libXt.so.6
#12 0xf7437e6a in XtAppProcessEvent () from /lib/libXt.so.6

////////////////////////////////////////

Alan,
I agree with you. loader will not load if type won't match... 

///////////////////////////////////////////

I think this is Xt library problem. Or may be in the code I am doing some thing 
wrong which should not be done in that way. 

At last thanks to all of you and if you have any clue about the probable reason 
of this hanging issue then please let me know. 


Thanks and Regards
Subrata






On Fri, 09 Dec 2016 18:40:01 +0530 walter harms  wrote
>



Am 09.12.2016 12:12, schrieb Subrata Dasgupta:

> Hi ,

> Thanks for the quick reply. 

> 

> It is a 32 bit c++ UI application written long before. I do not face problem 
> in most of the cases. Face this hanging problem only for 2-3 windows, other 
> windows are working fine. Below are the versions of library and the platform 
> used.

> 

> Platform     - 64 bit Red Hat Enterprise Linux Server release 7.2 

> Xt Library    - libXt-1.1.4-6.1.el7.i686

> Motif Library  - motif-2.3.4-7.el7.i686 

> X11 Library   - libX11-1.6.3-2.el7.i686

> 

> I am not sure whether /usr/bin/Xorg is the Xserver . But the if it is the 
> Xserver that you mean then below is the version..

> 

> X server - xorg-x11-server-Xorg-1.17.2-10.el7.x86_64 (64 bit)

> 

> What can be the probable reason for this .. Please help.

> 





lets put together:

You are running a 32Bit application in a 64-bit environment.

I thing a good idea to check with ldd that there is no mixing

of 64 and 32 bit libraries that can have unintended consequences.



Given that the system in general runs as expected. i doubt that

there a problem (unlikely != impossible).



To test the 64bit:

You should recompile the application and using 64bit or use

a x686 System to test.



re,

 wh



> Thanks

> Subrata

> 

> 

> 

> 

> On Fri, 09 Dec 2016 16:04:35 +0530 walter harms wrote

>>

> 

> 

> 

> Am 09.12.2016 10:14, schrieb Subrata Dasgupta:

> 

>> Hi All,

> 

>> I have a legacy UI application written in C++ using Xt and Motif libraries. 
>> But while closing a window the whole application stuck for around 30 second. 
>> After debugging I found that application is hanging within XtDispatchEvent() 
>> function after finishing _XtDefaultDispatcher() call. 

> 

>>

> 

>> What can be the probable reason of this problem? I do not have much 
>> experience in the Xt or Motif libraries. Please help. 

> 

>>

> 

> 

> 

> This is not normal (given i use Motif in C not C++).

> 

> Do ALL Motif programms behave like this ?

> 

> 

> 

> btw; please be more verbose, e.g. what version of Motif, Xverser etc. is the 
> a new behavier

> 

> 

> 

> re,

> 

> 

> 

> wh

> 

> _______________________________________________

> 

> xorg@lists.x.org: X.Org support

> 

> Archives: http://lists.freedesktop.org/archives/xorg

> 

> Info: https://lists.x.org/mailman/listinfo/xorg

> 

> Your subscription address: %(user_address)s

> 

_______________________________________________

xorg@lists.x.org: X.Org support

Archives: http://lists.freedesktop.org/archives/xorg

Info: https://lists.x.org/mailman/listinfo/xorg

Your subscription address: %(user_address)s

--- End Message ---
_______________________________________________
xorg@lists.x.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: https://lists.x.org/mailman/listinfo/xorg
Your subscription address: %(user_address)s

Reply via email to