Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 08-30-2010, 09:56 AM   #1
LQ Newbie
Registered: Aug 2010
Posts: 6

Rep: Reputation: 0
motif application crashes while calling XtDestroyWidget

Hi All,
We have a 32bit Motif Gui application. Now we ported the application from Solaris to Linux and the system is crashing very frequently.
On our analysis we could find that this issue happened when we are closing the forms in our application.

When the forms are closed we will delete the forms and will call the function XtDestroyWidget() to remove the widgets. We ran a purify for the application and we could found that the Stack Array Bounds Read (SBR) is happening when we close the form.

I had downloaded a sample motif program from the internet which is using XtDestroyWidget() to destroy the object. When i ran purify for this sample program also, i could found the same SBR.

SBR: Stack array bounds read (54 times):
* This is occurring while in:
XtDispatchEvent []
RemoveAllPMgr []
XtCallCallbackList []
XtPhase2Destroy []
_XtDoPhase2Destroy []
XtDispatchEvent []
XtAppMainLoop []
main []
_start [crt1.o]
* Reading 4 bytes from 0xffbfe4f0.
* Frame pointer 0xffbfe4d0
* Address 0xffbfe4f0 is 32 bytes above stack pointer in function XtCallCallbackList.

This SBR is happening in the XtAppMainLoop(). From these facts i assume that this SBR is a common one and related to motif rather than to our application.

Can you please add some thoughts to the following questions.
1) Why SBR is happening when we use XtDestroyWidget(). Is this SBR a severe one.

2) I had removed the XtDestroyWidget and used XtUnrealizeWidget(). This will help me to remove the SBR and hence crash is not happening. Also all normal forms will be removed normally. But the problem i am facing in this approach is the POP_UP forms are NOT removed in this method. Can any one please suggest a work around for removing POP_UP forms also other than the HIDE option.

It will be very helpful for me if anyone can answer or add some thoughts for this issue.

Thanks in advance,
Sanush Chacko

Last edited by sanushchacko; 08-30-2010 at 09:59 AM.


crash, motif, xlib

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Application crashes on use mikemrh9 Linux - Software 2 01-11-2009 03:17 PM
application crashes at syslog logrotate siege618 Linux - Server 4 06-17-2007 04:47 AM
When an application in suse CRASHES then how do I close it?? Bob H Linux - Newbie 7 02-02-2006 03:02 AM
Gnome Application Crashes markus79 Linux - Newbie 2 09-05-2005 10:05 PM
why my program crashes as a background application? iclinux Programming 5 01-19-2005 11:11 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:45 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration