[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference hydra::axp-developer

Title:Alpha Developer Support
Notice:[email protected], 800-332-4786
Moderator:HYDRA::SYSTEM
Created:Mon Jun 06 1994
Last Modified:Fri Jun 06 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:3722
Total number of notes:11359

3177.0. "SCO Ltd - Point 18571" by RDGENG::ASAP () Tue Feb 11 1997 03:08

    Company Name :  SCO Ltd - Point 18571
    Contact Name :  Tim Moss
    Phone        :  +44 1223 518034
    Fax          :  
    Email        :  [email protected]
    Date/Time in :  11-FEB-1997 08:08:19
    Entered by   :  Richard Readings
    SPE center   :  REO

    Category     :  UNIX
    OS Version   :  V4.0
    System H/W   :  Alpha


    Brief Description of Problem:
    -----------------------------

I believe that there is a bug in the X libraries supplied with
Digital unix 4.0 as demonstrated by the enclosed demo program.

If this program is dynamically linked against the X libraries supplied
with OSF/1 3.o then the program runs fine
If linked with the X libraries supplied with UNIX 4.0 it will core dump
on startup.

To demonstrate this
set the SHLIB_PATH environment variable to point to a directory
containing just the following OSF/1 3.0 X libraries
libX11.so libXext.so libXt.so

set the environment variable WINTIF_COMPATIBILITYMODE=Windows95
and run the program - it should start an run without any problems


however now set SHLIB_PATH to point to the same X libraries but
the UNIX 4.0 versions of them  then the program will code dump on
startup.

Please find attached the source for this program
a debugged executable of the program build on UNIX 4.0
statically linked against our Motif library

I hope this helps to make some progress on this problem

T.RTitleUserPersonal
Name
DateLines
3177.1Problem is with SCO Motif libraryRDGENG::ddors.reo.dec.com::readings_rMon Feb 17 1997 06:1620
> The libraries (libX11.so, libXext.so, libXt.so) match those that you
> have.
> 
> So what could be different? Did you say you are using your own Motif
> library?
> 
> Try linking -non_shared. If that fails in the same way send me the
> executable, or you could try sending me the shared executable (uuencoded
> or as a MIME attachment). 
> 
> 

Thats right the proplem only occurs if you link with our Motif library -
The WINTIF_COMPATIBILITYMODE env variable will have no effect otherwise 

However when linked with our Motif library it is still the case that the executable fails 
of linked with the UNIX4.0 X libraries and works with the OSF1 3.0 ones.

I will send you a statically linked executable uuencodeed.

3177.2Requesting customer's Motif library to reproduceRDGENG::ddors.reo.dec.com::readings_rMon Mar 24 1997 06:0510
No reply to my last mail, but I'll try once again before closing the call, in case 
it didn't reach you.

As you appreciate this is a difficult problem to track down. I need to put 
together some kind of source reproducer in order to either solve or escalate the 
problem. I have the source (xxlogo.c) of your reproducer, from which 
XtDestroyWidget is called directly. However I need *your* Motif library (just the 
shareable, not the source) to cause it to fail.


3177.3ClosedRDGENG::ddors.reo.dec.com::readings_rTue Mar 25 1997 06:531
No reply - closed.
3177.4Segmentation fault in XtDestroyWidget under DUNIX 4.0bRDGENG::READINGS_RRichard ReadingsThu Apr 10 1997 05:2151
Cross-posted from MOTIF conference, note 5951...

The following code example, together with the customer's own Motif library
(libXm.so), works fine with DUNIX 3.2c but suffers a segmentation fault when it
calls XtDestroyWidget under DUNIX 4.0b. 

The segmentation fault only occurs with the environment variable
"WINTIF_COMPATIBILITYMODE" set to "Windows95", which modifies the behaviour of
the customer's libXm.so. The library is available via anonymous ftp from
apc013.reo.dec.com:/pub/libXm.so.

The example runs OK under DUNIX 4.0x with the DUNIX 3.2c libXt.so however. Can
the customer (ISV) ship this with his Motif library?

Richard

------------------------------ code example -------------------------------

#include <stdio.h>
#include <math.h>
#include <Xm/Xm.h>

main (argc, argv)
int argc;
char **argv;
{
    XtAppContext context;
    Widget shell, container, draw, scale1, scale2;
    Display *display;
    int i;
    Visual *visual;
    Colormap cmap;
    unsigned int depth;

    XtToolkitInitialize ();
    context = XtCreateApplicationContext ();
    display = XtOpenDisplay (context, NULL, NULL, "Scale",
                             NULL, NULL,
                             &argc, argv);

    /* Create a temporary shell so application resources can be fetched from the
       resource database */
    shell = XtVaAppCreateShell (NULL, "ColourWheel",
                                applicationShellWidgetClass,
                                display, NULL);
    
    /* Now the depth, visual and colormap is known, destory the old, temporary
       shell and create a new one */
    XtDestroyWidget (shell);
}

3177.5Can customer ship libXt.so from DUNIX 3.2c?RDGENG::ddors.reo.dec.com::readings_rWed Apr 16 1997 05:075
This customer's application needs libXt.so from DUNIX 3.2c to run 
satisfactorily under DUNIX 4.0x. Can we (legally) suggest he ships it 
with his app?

Richard
3177.6Problem with SCO vendor shell widget?RDGENG::READINGS_RRichard ReadingsThu Apr 17 1997 11:0318
I've reduced your example to the bare essentials (attached). There
appears to be some incompatibility between your vendor shell widget and
our X11R6 toolkit. If I modify either example to create a (temporary) WM
shell widget instead of an application shell widget it runs OK, but a
vendor shell widget introduces the same behaviour as the application
shell widget.

The segmentation fault occurs in XtWidgetToApplicationContext, called
from XtDestroyWidget.

If I were to formally submit the problem to engineering they would
simply point the finger at your Motif library. My informal submission
has produced no response, as I rather expected.

I suggest the best short-term solution would be to ship the Digital Unix
3.2c libXt.so with your existing library, with a note explaining the use
of the LD_LIBRARY_PATH environment variable (although I suspect you
already use this).