Crash in Container.c

This forum is read only. No new submissions are accepted.

Questions about motif? Contact us

Submitted by Anonymous (not verified) on Fri, 06/15/2012 - 12:07

I have a (proprietary) Motif application which is crashing when built on
SuSE 9.0/SuSE 9.1/Fedora3 (at least). We've not been able to find out
if something is wrong it the app, so I am digging into a debug build of
Motif 2.2.2 on SuSE 9.1 (Opteron 64-bit). In the end we're ending
up near the end of ContainerConvertProc():
else if (cs->target == atoms[XmA_COMPOUND_TEXT])
{
type = atoms[XmA_COMPOUND_TEXT];
value = XmCvtXmStringToCT(return_xmstr);
length = strlen((char*) value);
}
XmStringFree(return_xmstr);
}
The call to XmCvtXmStringToCT is returning NULL for value, so the
call to strlen crashes. I'm not familiar at all with the inner workings
of OpenMotif, so I'm hoping that someone on this list can tell
whether this is indicative of an application error. In other files
I see that the return of XmCvtXmStringToCT is checked for NULL
correctly, and indeed performing this check seems to fix the crash
that we are seeing. If this is a Motif bug what is the proper
channel for having it patched?
Thanks for any suggestions or pointers..
-Dan
‹ Books on Motif Work with OpenMotif2.1.31 and don't work with OpenMotif2.2.3 ›

Thu, 08/02/2012 - 10:51
#1
4 posts / 0 new
Last post
8
Thu, 08/02/2012 - 10:53
-9
Thu, 08/02/2012 - 10:52
-15
Thu, 08/02/2012 - 10:52