bug-gnustep
[Top][All Lists]
Advanced

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

NSApplication/resignKeyWindow/deactivate SEGFAULT


From: Michael Hanni
Subject: NSApplication/resignKeyWindow/deactivate SEGFAULT
Date: Thu, 10 Apr 2003 15:56:08 -0700 (PDT)

Howdy,

I apologize in advance, for this is quite long.

This is a backtrace from GSTest.app SEGFAULTing after selecting Quit from the
main menu. Before I quit the program I did quite a lot of opening/closing of
menus and windows -- this is really hard to do this scientifically.

GUESS: a menu window is being called "key" after it order out. The _hidden_key
in this crash had a frame of:
 (gdb) print self->_hidden_key->_frame
$6 = {origin = {x = 100, y = 191}, size = {width = 226, height = 155}}
which I believe corresponds to a torn off menu window -- not the main menu
window.

Anyhow, lets get right to it, shall we? 

(gdb) bt
#0  0x100115dc in objc_msg_lookup (receiver=0x101fbd18, op=0xff7ce4c)
    at /home/michael/gcc-3.2/libobjc/objc/sarray.h:230
#1  0x0fd1917c in -[NSApplication deactivate] (self=0x10107030, _cmd=0xf36ba58)
    at NSApplication.m:952
#2  0x0f2ec2f4 in -[XGServer(X11Methods) receivedEvent:type:extra:forMode:] (
    self=0x10108278, _cmd=0xfb9040c, data=0x5, type=ET_RDESC, extra=0x5, 
    mode=0x100a8280) at XGServerEvent.m:939
#3  0x0fa7aa28 in -[GSRunLoopCtxt pollUntil:within:] (self=0x1014c4b8, 
    _cmd=0xfb905bc, milliseconds=299999, contexts=0x100d8e50) at
NSRunLoop.m:838
#4  0x0fa7d61c in -[NSRunLoop acceptInputForMode:beforeDate:] (self=0x100d8738,

    _cmd=0xfb90634, mode=0x100a8280, limit_date=0x10190bb0) at NSRunLoop.m:1991
#5  0x0fa7da98 in -[NSRunLoop runMode:beforeDate:] (self=0x100d8738, 
    _cmd=0xfb8c3b8, mode=0x100a8280, date=0x10190bb0) at NSRunLoop.m:2072
#6  0x0fa646fc in -[GSTcpHandle sendMessage:beforeDate:] (self=0x10119dd8, 
    _cmd=0xfb8c840, components=0x1022f0a0, when=0x10190bb0) at GSTcpPort.m:1239
#7  0x0fa67afc in -[GSTcpPort sendBeforeDate:msgid:components:from:reserved:] (
    self=0x1011eb80, _cmd=0xfb7b858, when=0x10190bb0, msgId=0, 
    components=0x1022f0a0, receivingPort=0x101b4348, length=16)
    at GSTcpPort.m:2197
#8  0x0f9f6a48 in -[NSConnection(Private) _sendOutRmc:type:] (self=0x101a8288, 
    _cmd=0xfb7b138, c=0x101f9c30, msgid=0) at NSConnection.m:2938
#9  0x0f9f2290 in -[NSConnection(GNUstepExtensions)
forwardInvocation:forProxy:]
    (self=0x101a8288, _cmd=0xfb819e0, inv=0x101e3ed0, object=0x1019f208)
    at NSConnection.m:1986
#10 0x0fa25d58 in -[NSDistantObject forwardInvocation:] (self=0x1019f208, 
    _cmd=0x100339b8, anInvocation=0x101e3ed0) at NSDistantObject.m:508
#11 0x0fad16d8 in GSInvocationCallback (callback_data=0xfbc601c,
args=0x7fffe4d8)
    at GSFFCallInvocation.m:879
#12 0x0fb160a8 in __vacall_r ()
   from
/opt/GNUstep/System/Libraries/powerpc/linux-gnu/gnu-gnu-gnu/libgnustep-base_d.so.1
#13 0x0fa29aac in -[NSDistributedNotificationCenter
postNotificationName:object:userInfo:deliverImmediately:] (self=0x1010fc08,
_cmd=0xfb82628, 
    notificationName=0xffcb274, anObject=0xffc5920, userInfo=0x10203ef8, 
    deliverImmediately=0 '\0') at NSDistributedNotificationCenter.m:399
#14 0x0fa29668 in -[NSDistributedNotificationCenter postNotification:] (
    self=0x1010fc08, _cmd=0xffc4c60, notification=0x1022f080)
    at NSDistributedNotificationCenter.m:334
#15 0x0fea5998 in -[_GSWorkspaceCenter postNotification:] (self=0x101af790, 
    _cmd=0xffc4ca8, aNotification=0x10197608) at NSWorkspace.m:123
#16 0x0fea5ca0 in -[_GSWorkspaceCenter postNotificationName:object:userInfo:] (
    self=0x101af790, _cmd=0xff7d8a4, name=0xffcb274, object=0x10158728, 
    info=0x10203ef8) at NSWorkspace.m:153
#17 0x0fd1ee50 in -[NSApplication replyToApplicationShouldTerminate:] (
    self=0x10107030, _cmd=0xff7d844, shouldTerminate=1 '\001')
    at NSApplication.m:2379
#18 0x0fd1ec10 in -[NSApplication terminate:] (self=0x10107030,
_cmd=0x10026210, 
    sender=0x101e76d8) at NSApplication.m:2354
#19 0x0fa5cf4c in -[NSObject performSelector:withObject:] (self=0x10107030, 
    _cmd=0xff7d20c, aSelector=0x10026210, anObject=0x101e76d8) at
NSObject.m:1581
#20 0x0fd1b680 in -[NSApplication sendAction:to:from:] (self=0x10107030, 
    _cmd=0xff9f8c4, aSelector=0x10026210, aTarget=0x0, sender=0x101e76d8)
    at NSApplication.m:1556
#21 0x0fdd72ac in -[NSMenu performActionForItemAtIndex:] (self=0x100df9c0, 
    _cmd=0xffa1238, index=4) at NSMenu.m:896
#22 0x0fddf5f0 in -[NSMenuView trackWithEvent:] (self=0x1015b128, 
    _cmd=0xffa1260, event=0x1022d438) at NSMenuView.m:1267
#23 0x0fddf788 in -[NSMenuView mouseDown:] (self=0x1015b128, _cmd=0xffa5c0c, 
    theEvent=0x101ee320) at NSMenuView.m:1312
#24 0x0fdf5f40 in -[NSPanel sendEvent:] (self=0x100ecaf8, _cmd=0xff7d1a4, 
    theEvent=0x101ee320) at NSPanel.m:237
#25 0x0fd1b148 in -[NSApplication sendEvent:] (self=0x10107030, _cmd=0xff7ced4,

    theEvent=0x101ee320) at NSApplication.m:1481
#26 0x0fd19658 in -[NSApplication run] (self=0x10107030, _cmd=0x10026248)
    at NSApplication.m:1045
#27 0x100053fc in main ()
#28 0x0f62ef0c in __libc_start_main () from /lib/libc.so.6

some more detail:

(gdb) up
#1  0x0fd1917c in -[NSApplication deactivate] (self=0x10107030, _cmd=0xf36ba58)
    at NSApplication.m:952
952               [_hidden_key resignKeyWindow];
(gdb) up
#2  0x0f2ec2f4 in -[XGServer(X11Methods) receivedEvent:type:extra:forMode:] (
    self=0x10108278, _cmd=0xfb9040c, data=0x5, type=ET_RDESC, extra=0x5, 
    mode=0x100a8280) at XGServerEvent.m:939
939                         [NSApp deactivate];
(gdb) li
934                       {
935                         /* What? This is bogus. Focus has to go somewhere.
*/
936                       }
937                     else
938                       {
939                         [NSApp deactivate];
940                       }
941                   }
942                 cWin = [XGServer _windowForXWindow: xEvent.xfocus.window];

Alrighty, if I can provide any more info please let me know!

Cheers,

Michael




reply via email to

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