This is the mail archive of the cygwin-developers@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Problems with Xemacs


Christopher Faylor wrote:
> 
> On Fri, Oct 10, 2003 at 01:50:35PM -0400, Pierre A. Humblet wrote:
> >Christopher Faylor wrote:
> >>
> >> On Fri, Oct 10, 2003 at 12:14:46PM -0500, Brian Ford wrote:
> >> >On Fri, 10 Oct 2003, Pierre A. Humblet wrote:
> >> >> P.S.: I saw the recent ChangeLog
> >> >>  (shared_info::initialize): Don't initialize user stuff if myself doesn't exit.
> >> >>  and have been scratching my head about why it's helpful.
> >> >
> >> >I could be wrong, but I think this is the change that fixed strace -p.  It
> >> >was getting a SEGV trying to access the pinfo.
> >>
> >> That was one of the changes, yes.
> >
> >But the user stuff (cygheap->user.init ()) does not touch myself, nor
> >any pinfo
> 
> myself == 0 is used as a flag that the DLL isn't fully initialized.

OK, but cygheap->user.init () only touches cygheap->user (which must exists),
hMainProc (its former lack of initialization may have been the real problem)
and wincap.
What concerns me is that cygheap->user.init () does useful work, simply
skipping it should lead to problems elsewhere, mostly related to ntsec.

Also myself == 0 should depend on global_ctors having run. 
Isn't there a more direct test for that?

Pierre


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]