This is the mail archive of the
cygwin-xfree@cygwin.com
mailing list for the Cygwin XFree86 project.
RE: [PATCH] Re: pthread
- To: "'Robert Collins '" <robert dot collins at itdomain dot com dot au>, Suhaib Siddiqi <ssiddiqi at inspirepharm dot com>
- Subject: RE: [PATCH] Re: pthread
- From: Suhaib Siddiqi <ssiddiqi at inspirepharm dot com>
- Date: Tue, 17 Apr 2001 21:07:50 -0400
- Cc: "'cygwin-xfree at sources dot redhat dot com '" <cygwin-xfree at sources dot redhat dot com>
Ok, i built for now only debug version fo twm. i know I need to build
entire tree. It does give some clues. It is Shape Extension, which all
Windows Mangers use, is causing core dump with pthread enabled. :-o
The gdb showed
0xc16c25ff in ?? ()
(gdb) where
#0 0xc16c25ff in ?? ()
#1 0x676c26cf in _libkernel32_a_iname ()
#2 0x676c288e in _libkernel32_a_iname ()
#3 0x40a315 in main (argc=1, argv=0xa011d60) at twm.c:291
#4 0x61003ade in dll_crt0_1 () at
../../../../src/winsup/cygwin/dcrt0.cc:865
#5 0x61003cbd in _dll_crt0 () at ../../../../src/winsup/cygwin/dcrt0.cc:931
#6 0x61003cfc in dll_crt0 (uptr=0x0)
at ../../../../src/winsup/cygwin/dcrt0.cc:943
#7 0x453ebf in cygwin_crt0 ()
at ../../../../src/winsup/cygwin/lib/cygwin_crt0.c:33
#8 0x40103b in mainCRTStartup ()
#9 0x77e992a6 in _libkernel32_a_iname ()
This line 291 in twm.c
if (restore_filename)
ReadWinConfigFile (restore_filename);
HasShape = XShapeQueryExtension (dpy, &ShapeEventBase, &ShapeErrorBase);
-----Original Message-----
From: Robert Collins
To: Suhaib Siddiqi
Cc: cygwin-xfree@sources.redhat.com
Sent: 4/17/2001 8:47 PM
Subject: RE: [PATCH] Re: pthread
That could occur if your process doesn't close all it's threads.
One potential reason at the moment is that pthread_cancel does nothing,
so if the x libraries are terminating their threads via pthread_cancel,
nothing will happen.
main() can exit without causing the process to terminate. I'll check the
specs to see it exit() | return from main are meant to behave
differently to pthread_exit().
Rob
> -----Original Message-----
> From: Suhaib Siddiqi [mailto:ssiddiqi@inspirepharm.com]
> Sent: Wednesday, April 18, 2001 10:49 AM
> To: Robert Collins; Suhaib Siddiqi
> Cc: 'cygwin-xfree@sources.redhat.com '
> Subject: RE: [PATCH] Re: pthread
>
>
> Rob,
>
> Something is wrong with your cygwin1.dll you sent me day
> before yesterday.
> On my Windows 2000 machine, it leaves the process runing. I
> was checking
> task manager and found under Process
> 5 xfce
> 4 xfwm
> 5 xwin
> 5 xterm
> 7 bash
>
> while I hade everything shutdown. It leaves process runing in the
> background.
>
> Suhaib
>
> -----Original Message-----
> From: Robert Collins
> To: Suhaib Siddiqi
> Cc: cygwin-xfree@sources.redhat.com
> Sent: 4/16/2001 9:01 PM
> Subject: RE: [PATCH] Re: pthread
>
> If you have time...
> Run up twm in gdb...
>
> ie
> $gdb -nw twm
> run
>
> and do a bt of the crash.
>
> otherwise put the binaries up (non stripped please) and the
> source tree
> and I'll have a dig around.
>
> Rob
>
>
>
> > -----Original Message-----
> > From: Suhaib Siddiqi [mailto:ssiddiqi@inspirepharm.com]
> > Sent: Tuesday, April 17, 2001 10:58 AM
> > To: Robert Collins
> > Cc: 'cygwin-xfree@sources.redhat.com'
> > Subject: RE: [PATCH] Re: pthread
> >
> >
> >
> > Well, I got libX11 fixed. All the clients works, so does X-server
> > with thread safe APi... BUT bummer, all the Windows manegr
> > carsh, twm, vtwm,
> > WindowsMaker, xfce, all of them do a core dump when linked to
> > your pthread
> > enabled Cygwin1.dll.
> > This is a tough call to debug why Windows Managers will crash
> > and other X
> > clients work ;-)
> >
> > After I fix few minor bgs I might put pthread enables X
> > servera dn libs on
> > FTP server for people test drive and report back findings
> and bugs...
> >
> > Suhaib
> >
> >
> > -----Original Message-----
> > From: Robert Collins
> > To: Suhaib Siddiqi
> > Sent: 4/16/2001 7:15 AM
> > Subject: Re: [PATCH] Re: pthread
> >
> > Here you go.
> >
> > This should be all you need - you're already picking up the correct
> > headers.
> >
> > Rob
> > ----- Original Message -----
> > From: "Suhaib Siddiqi" <ssiddiqi@inspirepharm.com>
> > To: "'Robert Collins'" <robert.collins@itdomain.com.au>
> > Sent: Monday, April 16, 2001 9:08 PM
> > Subject: RE: [PATCH] Re: pthread
> >
> >
> > > Rob,
> > > I am not setup to compile cygwin1. Can you please e-mail me
> > cygwin1.dll and
> > > libcygwin.a?
> > > I assume that is all I need, or, are there some header
> changes too?
> > >
> > > Suhaib
> > >
> > > > -----Original Message-----
> > > > From: Robert Collins [mailto:robert.collins@itdomain.com.au]
> > > > Sent: Monday, April 16, 2001 7:06 AM
> > > > To: Suhaib Siddiqi; cygwin-xfree@sources.redhat.com
> > > > Cc: cygwin-patches@cygwin.com
> > > > Subject: [PATCH] Re: pthread
> > > >
> > > >
> > > > Hi Suhaib,
> > > > here are the two missing functions. If you aren't setup to
> > compile
> > > > cygwin1.dll let me know and I'll mail you mine.
> > > >
> > > > Rob
> > > >
> > > > ===
> > > > Mon Apr 16 21:02:00 2001 Robert Collins
> <rbtcollins@hotmail.com>
> > > >
> > > > * cygwin.din: Export New functions.
> > > > * passwd.cc (read_etc_passwd): Make race safe.
> > > > (getpwuid_r): New function.
> > > > (getpwnam_r): New function.
> > > >
> > > > ===
> > > >
> > > >
> > > > ----- Original Message -----
> > > > From: "Suhaib Siddiqi" <ssiddiqi@inspirepharm.com>
> > > > To: "'Robert Collins '"
> <robert.collins@itdomain.com.au>; "Suhaib
> > > > Siddiqi" <ssiddiqi@inspirepharm.com>;
> > > > <cygwin-xfree@sources.redhat.com>
> > > > Sent: Monday, April 16, 2001 9:57 AM
> > > > Subject: RE: pthread
> > > >
> > > >
> > > > >
> > > > > > Because I am unable to compile libX11.dll,
> therefore I do not
> > know
> > > > > what else
> > > > > > is brokem, because all the other DLLs and xclients link
> > > > to libX11.a.
> > > > >
> > > > > That's cool. I expected this to be a step by step endeavour.
> > Thanks
> > > > for
> > > > > trying.
> > > > >
> > > > > Rob
> > > > >
> > > > > > Suhaib
> > > > > >
> > > > >
> > > > > Oh sure... it will be many step by step endeavour.
> > > > >
> > > > > Suhaib
> > > > >
> > > >
> > >
> > <<suhaib.tar.bz2>>
> >
>