discuss-gnustep
[Top][All Lists]
Advanced

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

GWorkspace crash when renaming a tab


From: Riccardo Mottola
Subject: GWorkspace crash when renaming a tab
Date: Tue, 15 Jan 2013 16:24:17 +0100
User-agent: Mozilla/5.0 (X11; FreeBSD i386; rv:17.0) Gecko/17.0 Firefox/17.0 SeaMonkey/2.14

Hello,

I get the attached stacktrace when renaming a tab in GWorkspace. I wonder where it comes from:

TSHelfWin.m:408 just creates and then autoreleases the dialog.

The line from SympleDialog (defined in Dialog.m) is:
- (void)dealloc
{
  [super dealloc];
}

The line from NSWindow is:
  if (_windowNum)
    {
      [self _terminateBackendWindow];
    }

so everything looks pretty simple. Why is _terminateBackendWindowFailing? becuase self doesn't exist anymore? This is strange.

IN any case I tried instead of autoreleasing the dialog immediately, to change TShelfWin.m in:

  result = [dialog runModal];
  [dialog release];

And it works.

Do you think it is a good idea? I suppose that during runModal the autoreleasepool got emptied, but I don't fully understand.

Riccardo
0x28c9af6a in objc_msgSend () from /Local/Library/Libraries/libobjc.so.4
(gdb) bt
#0  0x28c9af6a in objc_msgSend () from /Local/Library/Libraries/libobjc.so.4
#1 0x285deef4 in GSServerForWindow (window=0xdeadface) at GSDisplayServer.m:83
#2  0x285c6b4c in -[NSWindow _terminateBackendWindow] (self=0x2c0c9284,
    _cmd=0xbfbfe638) at NSWindow.m:801
#3 0x285c6f39 in -[NSWindow dealloc] (self=0x2c0c9284, _cmd=<optimized out>)
    at NSWindow.m:846
#4  0x080f3f0f in -[SympleDialog dealloc] (self=0x2c0c9284,
    _cmd=0x28763210 <_OBJC_CLASS_NSWindow>) at Dialogs/Dialogs.m:65
#5  0x28c98269 in emptyPool () from /Local/Library/Libraries/libobjc.so.4
#6  0x28c97f3f in objc_autoreleasePoolPop ()
   from /Local/Library/Libraries/libobjc.so.4
#7  0x2892827b in -[NSAutoreleasePool emptyPool] (self=0xbfbfe734,
    _cmd=0xbfbfe734) at NSAutoreleasePool.m:411
#8  0x289283cb in -[NSAutoreleasePool dealloc] (self=<optimized out>,
    _cmd=0xbfbfe744) at NSAutoreleasePool.m:729
#9  0x28928388 in -[NSAutoreleasePool release] (self=0xbfbfe764,
    _cmd=0xbfbfe764) at NSAutoreleasePool.m:722
#10 0x28468c68 in -[NSApplication run] (self=0x2b12d8e4, _cmd=0xbfbfe778)
    at NSApplication.m:1579
#11 0x08081e64 in main (argc=-1077942340, argv=0xbfbfe7bc, env=0xbfbfe7bc)
    at main.m:38




reply via email to

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