Hi,

the patch is working on Ubuntu 64bits. dtksh does not coredump anymore when using XmTextFieldGetString or XmTextGetString.

E.


Le 08/03/2020 à 22:09, Jon Trulson a écrit :
Hi,

Please try the attached patch and let me know if it works for you.

-jon

On 3/8/20 1:44 AM, Edmond Orignac wrote:

I hope I am not wasting too much of your time with this, but I have tested the XmTextGetString x $WIDGET function of dtksh on a 32bit Intel computer running Slackware 14.2. I have found that there was no core dumps when calling this function contrarily to the case of Ubuntu 18.04 on 64 bit Intel . This was with the same CDE 2.3.1a (devel) version with the same fr_FR.UTF-8 locale on both systems. The only obvious difference is that Slackware uses Motif 2.3.5 while Ubuntu has Motif 2.3.8.

I was probably wrong to worry about a regression. It is more likely that XmTextGetString works well on 32bit Intel but has some issue with 64bit Intel.


Le 01/03/2020 à 02:36, Jon Trulson a écrit :
On 2/29/20 4:38 AM, Edmond Orignac wrote:
I have noticed something that seems odd with the functions XmTextGetString and XmTextFieldGetString.

When these functions are called to read the text typed in an XmText widget, they cause a segmentation fault. However, using XtGetValues instead avoids the segmentation fault.

I have the impression this is a new behavior as I have a script that was using XmTextGetString that was not segfaulting in the previous versions of CDE. This does not seem locale related, segmentation fault

happens both with the fr_FR and the C locales.

Am I misusing these functions or is it a regression in dtksh ?


I can't say whether this is a regression or not...  What version works?  Which version does not?  Can you bisect it?


--
Jon Trulson

   "Entropy.  It isn't what it used to be."
                            -- Sheldon


_______________________________________________
cdesktopenv-devel mailing list
cdesktopenv-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cdesktopenv-devel

--
Jon Trulson

   "Entropy.  It isn't what it used to be."
                            -- Sheldon
_______________________________________________
cdesktopenv-devel mailing list
cdesktopenv-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cdesktopenv-devel

Reply via email to