Operating System - HP-UX
1828490 Members
2225 Online
109978 Solutions
New Discussion

XtAppMainLoop () X-motif call is dumping core file.

 
Sup
Advisor

XtAppMainLoop () X-motif call is dumping core file.

Hi,

One of our program is dumping core file at
XtAppMainLoop (), Is there any patch available?
gdb backtrace is

#0 0xc01837ec in mallinfo () from /usr/lib/libc.2
(gdb) where
#0 0xc01837ec in mallinfo () from /usr/lib/libc.2
#1 0xc018065c in __thread_mutex_unlock () from /usr/lib/libc.2
#2 0xc01861f0 in realloc () from /usr/lib/libc.2
#3 0xd8413878 in XtRealloc () from /usr/lib/libXt.3
#4 0xd9deb960 in miRegionCopy () from /usr/lib/libXm.4
#5 0xd9dec8a4 in _XmRegionUnion () from /usr/lib/libXm.4
#6 0xd9da6690 in PutDSToStream () from /usr/lib/libXm.4
#7 0xd9da6eb0 in GetDSFromDSM () from /usr/lib/libXm.4
#8 0xd9da6fbc in GetTreeFromDSM () from /usr/lib/libXm.4
#9 0xd9da905c in _XmDSMGetTreeFromDSM () from /usr/lib/libXm.4
#10 0xd9d9f308 in _XmSetDragReceiverInfo () from /usr/lib/libXm.4
#11 0xd9e8c6bc in TreeUpdateHandler () from /usr/lib/libXm.4
#12 0xd9da8a80 in _XmIEndUpdate () from /usr/lib/libXm.4
#13 0xd843421c in DoOtherSources () from /usr/lib/libXt.3
#14 0xd84346b4 in XtAppNextEvent () from /usr/lib/libXt.3
#15 0xd84269d0 in XtAppMainLoop () from /usr/lib/libXt.3
#16 0x19038 in main (argc=1, argv=0x77ff0864)
/homes/bkka80/src/mon.c:478

Thanx in advance.

4 REPLIES 4
James Murtagh
Honored Contributor

Re: XtAppMainLoop () X-motif call is dumping core file.

Hi,

You never specified which version of HPUX you are running?

I don't think its XtAppMainLoop() that is causing the problem - I think its mallinfo(). See the libc cumulative patches for details :

PHCO_25640 s700_800 10.20 libc cumulative patch
PHCO_27731 s700_800 11.00 libc cumulative patch
PHCO_25883 s700_800 11.00 cumulative 10.20 libc compatibility support
PHCO_27910 s700_800 11.11 libc cumulative patch
PHCO_25898 s700_800 11.11 cumulative 10.20 libc compatibility support

The patches mention this can happen when memory is tight - run "vmstat 2 5" and check how many "free" pages you have.

regards,

James.
Sup
Advisor

Re: XtAppMainLoop () X-motif call is dumping core file.

Hi,

Thanx for reply. Hp version is

$uname -a
HP-UX proof B.11.00 E 9000/800 615399383 8-user license



Rick Beldin
HPE Pro

Re: XtAppMainLoop () X-motif call is dumping core file.

From the stack trace, I would suspect that you are trashing memory. While this could be a problem witht he library, it could be a problem with the application. XtAppMainLoop() is probably not responsible.

It does look like you are in the middle of a drag and drop operation:

_XmSetDragReceiverInfo () from /usr/lib/libXm.4

If your app doesn't require drag and drop, you can disable it via resources (man XmDisplay).

On the other hand, I would make sure that you have up-to-date patches for the Motif runtime.

I'm suspicious about the thread code. Is the app threaded?
Necessary questions: Why? What? How? When?
Sup
Advisor

Re: XtAppMainLoop () X-motif call is dumping core file.

Hi,

Thanx for the response.

The application is not threaded. We added memory to this machine and still getting core dump at same place.

This is how it core dumps
1> Run app to open a GUI.
2> As soon as we select menu item which
displays list of items,it core dumps!

Any suggestions?