This is the mail archive of the
cygwin-xfree@cygwin.com
mailing list for the Cygwin XFree86 project.
RE: [PATCH] Re: pthread
- To: "Suhaib Siddiqi" <ssiddiqi at inspirepharm dot com>
- Subject: RE: [PATCH] Re: pthread
- From: "Robert Collins" <robert dot collins at itdomain dot com dot au>
- Date: Wed, 18 Apr 2001 10:47:20 +1000
- Cc: <cygwin-xfree at sources dot redhat dot com>
- Thread-Index: AcDHoFbwRHuzw2k3Q+ikWcrJlLkpmAAAIIng
- Thread-Topic: [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>>
> >
>