bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Every .app's segfault patch


From: Serg Stoyan
Subject: Re: Every .app's segfault patch
Date: Fri, 2 Aug 2002 13:29:52 +0300

On Tue, 30 Jul 2002 12:00:23 -0600
Adam Fedor <fedor@doc.com> wrote:

AF> > I think somebody noted segfaulting of any .app after Alt-Q press
AF> > or Quit menu item click... Backtrace in gdb points to the problems
AF> > in XCloseDisplay() call in the XGServer's dealloc method. I've
AF> > tried to place call of XCloseDisplay() from the bottom to top of
AF> > dealloc method and voila, segfault disappeared! I don't know
AF> > exactly why this happens... Maybe dpy variable freed in
AF> > DESTROY(inputServer) or [self _destroyServerWindows] methods...
AF> > 
AF> > Patch attached.

[patch skipped]

AF> 
AF> This probably just masks the problem, since you close the display
AF> before 
AF>   freeing any of the X resources (I wonder why it doesn't cause a 
AF> segfault this way?).

    Agree with it.

AF> Are you sure you are still getting a segfault (since version 0.7.9)?
AF> I fixed something and asked people to check it. If so, let me know.

    It seems that now works correct, except some situatuions which i 
    can't firgure out yet. I'll try to find it and report.

--
Serg Stoyan



reply via email to

[Prev in Thread] Current Thread [Next in Thread]