Paste number 89578: Adium Service Plugin Crashing on disconnect

Index of paste annotations: 1 | 2 | 3

Paste number 89578: Adium Service Plugin Crashing on disconnect
Pasted by: jasarien
When:8 months, 4 weeks ago
Share:Tweet this! | http://paste.lisp.org/+1X4A
Channel:#adium-devl
Paste contents:
Raw Source | XML | Display As
// My AIAccount subclass:

- (void)disconnect
{
	[self setValue:[NSNumber numberWithBool:YES] forProperty:@"Disconnecting" notify:NotifyLater];
	[super disconnect];
	[mySession disconnect];
	[self didDisconnect];
}

- (void)didDisconnect
{
	[super didDisconnect];
}

//-----------------------
// Point in code that gdb breaks on when it crashes:
// AIAbstractAccount line 1108
// inside -setShouldBeOnline:

	if (!shouldBeOnline) { // shouldBeOnline is NO
		[self setPasswordTemporarily:nil]; // <-- crashes with exec_bad_access here
		[self setLastDisconnectionError:nil];
		[self cancelAutoReconnect];
	}

Annotations for this paste:

Annotation number 1: Backtrace
Pasted by: jasarien
When:8 months, 4 weeks ago
Share:Tweet this! | http://paste.lisp.org/+1X4A/1
Paste contents:
Raw Source | Display As
#0	0x90dd7917 in objc_msgSend
#1	0x0056e5dc in AIDebugLoggingEnabledNotification
#2	0x004cdabb in -[AIAccount(Abstract) setShouldBeOnline:] at AIAbstractAccount.m:1108
#3	0x004cdbb7 in -[AIAccount(Abstract) toggleOnline] at AIAbstractAccount.m:1121
#4	0x0015c4bc in -[AIAccountListPreferences toggleShouldBeOnline:] at AIAccountListPreferences.m:309
#5	0x93c5d14a in -[NSApplication sendAction:to:from:]
#6	0x93c5cffd in -[NSMenuItem _corePerformAction]
#7	0x93c5ccee in -[NSCarbonMenuImpl performActionWithHighlightingForItemAtIndex:]
#8	0x93c5cbda in -[NSMenu performActionForItemAtIndex:]
#9	0x93c5cb8d in -[NSMenu _internalPerformActionForItemAtIndex:]
#10	0x93c5caf3 in -[NSMenuItem _internalPerformActionThroughMenuIfPossible]
#11	0x93c5ca37 in -[NSCarbonMenuImpl _carbonCommandProcessEvent:handlerCallRef:]
#12	0x93c51131 in NSSLMMenuEventHandler
#13	0x9051e129 in DispatchEventToHandlers
#14	0x9051d3f0 in SendEventToEventTargetInternal
#15	0x9053fa81 in SendEventToEventTarget
#16	0x9056bf3b in SendHICommandEvent
#17	0x90590c1c in SendMenuCommandWithContextAndModifiers
#18	0x90590bd1 in SendMenuItemSelectedEvent
#19	0x90590ad3 in FinishMenuSelection
#20	0x90711b7d in PopUpMenuSelectCore
#21	0x90711ecb in _HandlePopUpMenuSelection7
#22	0x93ee62f2 in _NSSLMPopUpCarbonMenu3
#23	0x93ee6682 in -[NSCarbonMenuImpl _popUpContextMenu:withEvent:forView:withFont:]
#24	0x9405e1f9 in -[NSMenu _popUpContextMenu:withEvent:forView:withFont:]
#25	0x9405e298 in -[NSMenu _popUpContextMenu:withEvent:forView:]
#26	0x9405e06b in -[NSMenu _popUpMenuWithEvent:forView:]
#27	0x94254a71 in -[NSView rightMouseDown:]
#28	0x93f46ae2 in -[NSControl _rightMouseUpOrDown:]
#29	0x93d34194 in -[NSWindow sendEvent:]
#30	0x93c4cceb in -[NSApplication sendEvent:]
#31	0x93be06fb in -[NSApplication run]
#32	0x93bd8735 in NSApplicationMain
#33	0x0002faf8 in main at main.m:3

Annotation number 2: Full Backtrace and Full Method
Pasted by: jasarien
When:8 months, 4 weeks ago
Share:Tweet this! | http://paste.lisp.org/+1X4A/2
Paste contents:
Raw Source | Display As
//
// AIAbstractAccount
//

- (void)setShouldBeOnline:(BOOL)shouldBeOnline
{
	[self setPreference:[NSNumber numberWithBool:shouldBeOnline]
				 forKey:@"Online"
				  group:GROUP_ACCOUNT_STATUS];
	
	/* If the users says we should no longer be online, clear out any stored password.
	 * Note that we can de disconnected via -[AIAccount disconnect] without going through this method; this is how we will be disconnected
	 * in an automatic fashoin, such as if network connectivity drops. This allows us, when reconnected after such a disconnection, to still
	 * have the password 'on tap' for use at that time.
	 */
	if (!shouldBeOnline) {
		[self setPasswordTemporarily:nil];
		[self setLastDisconnectionError:nil];
		[self cancelAutoReconnect];
	}
}


//
// Full Backtrace,
//

#0  0x90dd7917 in objc_msgSend ()
No symbol table info available.
#1  0x0056e5dc in AIDebugLoggingEnabledNotification ()
No symbol table info available.
#2  0x004cdabb in -[AIAccount(Abstract) setShouldBeOnline:] (self=0x25b6c80, _cmd=0x55775c, shouldBeOnline=0 '\000') at /Users/james/dev/adium-1.4/Frameworks/Adium Framework/Source/AIAbstractAccount.m:1108
No locals.
#3  0x004cdbb7 in -[AIAccount(Abstract) toggleOnline] (self=0x25b6c80, _cmd=0x1b6444) at /Users/james/dev/adium-1.4/Frameworks/Adium Framework/Source/AIAbstractAccount.m:1121
	online = 1 '\001'
	connecting = 0 '\000'
	reconnecting = 0 '\000'
#4  0x0015c48c in -[AIAccountListPreferences toggleShouldBeOnline:] (self=0x2537370, _cmd=0x1d7250, sender=0x268b620) at /Users/james/dev/adium-1.4/Source/AIAccountListPreferences.m:309
	account = (AIAccount *) 0x25b6c80
#5  0x93c5d14a in -[NSApplication sendAction:to:from:] ()
No symbol table info available.
#6  0x93c5cffd in -[NSMenuItem _corePerformAction] ()
No symbol table info available.
#7  0x93c5ccee in -[NSCarbonMenuImpl performActionWithHighlightingForItemAtIndex:] ()
No symbol table info available.
#8  0x93c5cbda in -[NSMenu performActionForItemAtIndex:] ()
No symbol table info available.
#9  0x93c5cb8d in -[NSMenu _internalPerformActionForItemAtIndex:] ()
No symbol table info available.
#10 0x93c5caf3 in -[NSMenuItem _internalPerformActionThroughMenuIfPossible] ()
No symbol table info available.
#11 0x93c5ca37 in -[NSCarbonMenuImpl _carbonCommandProcessEvent:handlerCallRef:] ()
No symbol table info available.
#12 0x93c51131 in NSSLMMenuEventHandler ()
No symbol table info available.
#13 0x9051e129 in DispatchEventToHandlers ()
No symbol table info available.
#14 0x9051d3f0 in SendEventToEventTargetInternal ()
No symbol table info available.
#15 0x9053fa81 in SendEventToEventTarget ()
No symbol table info available.
#16 0x9056bf3b in SendHICommandEvent ()
No symbol table info available.
#17 0x90590c1c in SendMenuCommandWithContextAndModifiers ()
No symbol table info available.
#18 0x90590bd1 in SendMenuItemSelectedEvent ()
No symbol table info available.
#19 0x90590ad3 in FinishMenuSelection ()
No symbol table info available.
#20 0x90711b7d in PopUpMenuSelectCore ()
No symbol table info available.
#21 0x90711ecb in _HandlePopUpMenuSelection7 ()
No symbol table info available.
#22 0x93ee62f2 in _NSSLMPopUpCarbonMenu3 ()
No symbol table info available.
#23 0x93ee6682 in -[NSCarbonMenuImpl _popUpContextMenu:withEvent:forView:withFont:] ()
No symbol table info available.
#24 0x9405e1f9 in -[NSMenu _popUpContextMenu:withEvent:forView:withFont:] ()
No symbol table info available.
#25 0x9405e298 in -[NSMenu _popUpContextMenu:withEvent:forView:] ()
No symbol table info available.
#26 0x9405e06b in -[NSMenu _popUpMenuWithEvent:forView:] ()
No symbol table info available.
#27 0x94254a71 in -[NSView rightMouseDown:] ()
No symbol table info available.
#28 0x93f46ae2 in -[NSControl _rightMouseUpOrDown:] ()
No symbol table info available.
#29 0x93d34194 in -[NSWindow sendEvent:] ()
No symbol table info available.
#30 0x93c4cceb in -[NSApplication sendEvent:] ()
No symbol table info available.
#31 0x93be06fb in -[NSApplication run] ()
No symbol table info available.
#32 0x93bd8735 in NSApplicationMain ()
No symbol table info available.
#33 0x0002fac8 in main (argc=1, argv=0xbffff7c4) at /Users/james/dev/adium-1.4/Source/main.m:3
No locals.

Annotation number 3: CFString release sent to deallocated instance
Pasted by: jasarien
When:8 months, 4 weeks ago
Share:Tweet this! | http://paste.lisp.org/+1X4A/3
Paste contents:
Raw Source | Display As
#0  0x9695dd27 in ___forwarding___ ()
No symbol table info available.
#1  0x9695dbf2 in __forwarding_prep_0___ ()
No symbol table info available.
#2  0x004cc952 in -[AIAccount(Abstract) setPasswordTemporarily:] (self=0x254e300, _cmd=0x558290, inPassword=0x0) at /Users/james/dev/adium-1.4/Frameworks/Adium Framework/Source/AIAbstractAccount.m:717
No locals.
#3  0x004cdb83 in -[AIAccount(Abstract) setShouldBeOnline:] (self=0x254e300, _cmd=0x55774c, shouldBeOnline=0 '\0') at /Users/james/dev/adium-1.4/Frameworks/Adium Framework/Source/AIAbstractAccount.m:1108
No locals.
#4  0x004cdc7f in -[AIAccount(Abstract) toggleOnline] (self=0x254e300, _cmd=0x1b6430) at /Users/james/dev/adium-1.4/Frameworks/Adium Framework/Source/AIAbstractAccount.m:1121
	online = 1 '\001'
	connecting = 0 '\0'
	reconnecting = 0 '\0'
#5  0x000868d2 in -[AIAccountMenuAccessPlugin accountMenu:didSelectAccount:] (self=0x265b2f0, _cmd=0x565a68, inAccountMenu=0x265b3d0, inAccount=0x254e300) at /Users/james/dev/adium-1.4/Source/AIAccountMenuAccessPlugin.m:81
No locals.
#6  0x004ddb4c in -[AIAccountMenu selectAccountMenuItem:] (self=0x265b3d0, _cmd=0x55ba9f, menuItem=0x41d1320) at /Users/james/dev/adium-1.4/Frameworks/Adium Framework/Source/AIAccountMenu.m:197
No locals.
#7  0x93c5d14a in -[NSApplication sendAction:to:from:] ()
No symbol table info available.
#8  0x93c5cffd in -[NSMenuItem _corePerformAction] ()
No symbol table info available.
#9  0x93c5ccee in -[NSCarbonMenuImpl performActionWithHighlightingForItemAtIndex:] ()
No symbol table info available.
#10 0x93c5cbda in -[NSMenu performActionForItemAtIndex:] ()
No symbol table info available.
#11 0x93c5cb8d in -[NSMenu _internalPerformActionForItemAtIndex:] ()
No symbol table info available.
#12 0x93c5caf3 in -[NSMenuItem _internalPerformActionThroughMenuIfPossible] ()
No symbol table info available.
#13 0x93c5ca37 in -[NSCarbonMenuImpl _carbonCommandProcessEvent:handlerCallRef:] ()
No symbol table info available.
#14 0x93c51131 in NSSLMMenuEventHandler ()
No symbol table info available.
#15 0x9051e129 in DispatchEventToHandlers ()
No symbol table info available.
#16 0x9051d3f0 in SendEventToEventTargetInternal ()
No symbol table info available.
#17 0x9053fa81 in SendEventToEventTarget ()
No symbol table info available.
#18 0x9056bf3b in SendHICommandEvent ()
No symbol table info available.
#19 0x90590c1c in SendMenuCommandWithContextAndModifiers ()
No symbol table info available.
#20 0x90590bd1 in SendMenuItemSelectedEvent ()
No symbol table info available.
#21 0x90590ad3 in FinishMenuSelection ()
No symbol table info available.
#22 0x905602ed in MenuSelectCore ()
No symbol table info available.
#23 0x9055fa84 in _HandleMenuSelection2 ()
No symbol table info available.
#24 0x9055f8a2 in _HandleMenuSelection ()
No symbol table info available.
#25 0x93c4a676 in _NSHandleCarbonMenuEvent ()
No symbol table info available.
#26 0x93c1f246 in _DPSNextEvent ()
No symbol table info available.
#27 0x93c1e50a in -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] ()
No symbol table info available.
#28 0x93be069b in -[NSApplication run] ()
No symbol table info available.
#29 0x93bd8735 in NSApplicationMain ()
No symbol table info available.
#30 0x0002fb27 in main (argc=1, argv=0xbffff654) at /Users/james/dev/adium-1.4/Source/main.m:3
No locals.

Colorize as:
Show Line Numbers
Index of paste annotations: 1 | 2 | 3

Lisppaste pastes can be made by anyone at any time. Imagine a fearsomely comprehensive disclaimer of liability. Now fear, comprehensively.