This is the mail archive of the
cygwin-xfree@cygwin.com
mailing list for the Cygwin XFree86 project.
Re: cygwin 1.5.3-1 and xfree devel
Ok, I finally tracked this down.
Breakpoint 27, 0x005e6340 in stat ()
(gdb) bt
#0 0x005e6340 in stat ()
#1 0x005a865f in TestFile ()
#2 0x005a89c1 in XtFindFile ()
#3 0x005a8e6e in XtResolvePathname ()
#4 0x005c4af8 in CombineAppUserDefaults ()
#5 0x005c5310 in XtScreenDatabase ()
#6 0x005c5eb4 in _XtDisplayInitialize ()
#7 0x005c30d8 in XtOpenDisplay ()
#8 0x005c32f8 in _XtAppInit ()
#9 0x005a9d88 in _XtVaOpenApplication ()
#10 0x005a9ffb in XtVaAppInitialize ()
#11 0x004a5e7e in XvssAppInitialize (argc=0x22fdb8, argv=0x10032788)
at ../../../visual/util/libXutil/Xsupp.c:46
#12 0x00483518 in main (argc=1, argv=0x10032788)
at ../../../visual/util/host/HE_MW.c:1496
#13 0x61005018 in _libkernel32_a_iname ()
#14 0x610052ed in _libkernel32_a_iname ()
#15 0x005e5f82 in cygwin_crt0 ()
#16 0x0040103c in mainCRTStartup ()
#17 0x77e814c7 in _libkernel32_a_iname ()
(gdb) c
Continuing.
Breakpoint 28, 0x005a865f in TestFile ()
(gdb) bt
#0 0x005a865f in TestFile ()
(gdb)
so, the call to stat from TestFile is corrupting the stack, but why? To
my knowledge, libXt is a 1.3.22 compiled library and so should be using
the compatability interface for stat, no?
Any of the developers from the main list care to comment? Thanks.
On Mon, 8 Sep 2003, Brian Ford wrote:
> Just to humor me, can someone else running Cygwin 1.5.3-1 confirm that a
> simple X11 based "hello world program" is broken. If confirmed, I will
> start digging to locate the offending functions, but I'd rather just wait
> for Harold to release a 1.5.3-1 compiled Xfree86 set of packages. Thanks.
>
> On Fri, 5 Sep 2003, Brian Ford wrote:
>
> > When compiled under cygwin 1.5.3-1, the following hello world Motif
> > program gets a SEGV in XtAppInitialize. Harold, what's your time
> > table for a 1.5.3 built Xfree so I can test and update lesstif? Thanks.
> >
> > #include <Xm/Xm.h>
> > #include <Xm/Label.h>
> >
> > XtAppContext context;
> > XmStringCharSet char_set=XmSTRING_DEFAULT_CHARSET;
> >
> > main(argc, argv)
> > int argc;
> > char *argv[];
> > {
> > Widget toplevel, label;
> > XmString S;
> >
> > /* Create an application shell. */
> > toplevel = XtAppInitialize(&context,"",NULL,0,&argc,argv,NULL,
> > NULL,0);
> >
> > /* Create the Label widget. */
> > label = XmCreateLabel(toplevel,"label",NULL,0);
> > S = XmStringCreateLtoR("Hello World!", char_set);
> > XtVaSetValues(label,
> > XmNlabelString, S,
> > NULL);
> >
> > XtRealizeWidget(toplevel);
> > XtAppMainLoop(context);
> > }
> >
> > (gdb) r
> > Starting program: /home/ford/xtest.exe
> >
> > Program received signal SIGSEGV, Segmentation fault.
> > 0x00000000 in ?? () from
> > (gdb) bt
> > #0 0x00000000 in ?? () from
> >
> >
>
>
--
Brian Ford
Senior Realtime Software Engineer
VITAL - Visual Simulation Systems
FlightSafety International
Phone: 314-551-8460
Fax: 314-551-8444