[OGo-Users] OpenGroupware crashing WebUI

Jaap Verhoeven users@opengroupware.org
Mon, 19 Feb 2007 00:24:42 +0100


Hi,

Below is a GDB dump of OpenGroupware 1.1.6-yummy/SOPE-4.5.9-maple
on Gentoo (GCC V4.1.1). Symptoms: Logging into the web user interface
works OK (OpenLDAP). Checking the user's IMAP mailbox fails, and crashes the Web UI.

The program crashes in ./libFoundation/Foundation/NSSet.m line 97:

------------------------------
- (id)initWithArray:(NSArray*)array
{
    int i, n = [array count]; <---- segfault
    id *objects;

    if (n == 0)
------------------------------

Sorry, my research is quite limited, I have no knowledge of objective C.

  Jaap

------------------------------
Feb 18 22:11:51 ogo-webui-1.1 [12591]: SkyDock did not find dockable page Registration
[-[NGImap4Client _openConnection]] <openConnection> : time needed: 0.0055s
Feb 18 22:11:51 ogo-webui-1.1 [12591]: <0x0x89f192c[NGImap4Context]> Server greeting: <cyrus Cyrus IMAP4 v2.2.12-Gentoo server ready> parse serverkind: <cyrus>
Feb 18 22:11:51 ogo-webui-1.1 [12591]: <0x0x89f192c[NGImap4Context]> sortEncoding UTF-8 subscribeFolderFailed YES showOnlySubscribedInSubFolders NO showOnlySubscribedInRoot NO
{}[-[NGImap4Client processCommand:withTag:withNotification:logText:]] <Send Command [login "twojacks" "y1czk.sA"]> : time needed: 0.0064s
{}[-[NGImap4Client processCommand:withTag:withNotification:logText:]] <Send Command [capability]> : time needed: 0.0403s
{}[-[NGImap4Client processCommand:withTag:withNotification:logText:]] <Send Command [list "" ""]> : time needed: 0.0393s
{}[-[NGImap4Client processCommand:withTag:withNotification:logText:]] <Send Command [list "" "%"]> : time needed: 0.0402s
Feb 18 22:11:51 ogo-webui-1.1 [12591]: Note: using flat-array message notifications!
Feb 18 22:11:51 ogo-webui-1.1 [12591]: SkyImapMailDataSource: Profiling enabled!
{}[-[NGImap4Client processCommand:withTag:withNotification:logText:]] <Send Command [list "" "INBOX.%"]> : time needed: 0.0374s
{}[-[NGImap4Client processCommand:withTag:withNotification:logText:]] <Send Command [status "INBOX" (messages recent unseen)]> : time needed: 0.0408s
Feb 18 22:11:51 ogo-webui-1.1 [12591]: CmdCtx[twojacks]D: Note: committed transaction started at 2007-02-18 22:11:51 -0000 (duration=0.074s)
195.64.94.194 - - [18/Feb/2007:22:11:51 GMT] "POST /OpenGroupware.woa/x/login?da=&o=1171836706 HTTP/1.1" 200 3653/141 0.731 20044 81% 5M
{}[-[NGImap4Client processCommand:withTag:withNotification:logText:]] <Send Command [select "INBOX"]> : time needed: 0.0375s
{}[-[NGImap4Client processCommand:withTag:withNotification:logText:]] <Send Command [expunge]> : time needed: 0.0093s
{}[-[NGImap4Client processCommand:withTag:withNotification:logText:]] <Send Command [status "INBOX" (messages recent unseen)]> : time needed: 0.0374s
{}[-[NGImap4Client processCommand:withTag:withNotification:logText:]] <Send Command [status "INBOX" (messages recent unseen)]> : time needed: 0.0403s
{}[-[NGImap4Client processCommand:withTag:withNotification:logText:]] <Send Command [status "INBOX.Drafts" (messages recent unseen)]> : time needed: 0.0397s
{}[-[NGImap4Client processCommand:withTag:withNotification:logText:]] <Send Command [status "INBOX.Sent" (messages recent unseen)]> : time needed: 0.0402s
{}[-[NGImap4Client processCommand:withTag:withNotification:logText:]] <Send Command [status "INBOX.spam" (messages recent unseen)]> : time needed: 0.0395s
{}[-[NGImap4Client processCommand:withTag:withNotification:logText:]] <Send Command [status "INBOX.Trash" (messages recent unseen)]> : time needed: 0.0399s
{}[-[NGImap4Client processCommand:withTag:withNotification:logText:]] <Send Command [status "INBOX.virus" (messages recent unseen)]> : time needed: 0.0395s
{}[-[NGImap4Client processCommand:withTag:withNotification:logText:]] <Send Command [getquotaroot "INBOX"]> : time needed: 0.0371s
Feb 18 22:12:00 ogo-webui-1.1 [12591]: <0x0x8a04c74[SkyImapMailDataSource]> fetchObjects: fetch ...
Feb 18 22:12:00 ogo-webui-1.1 [12591]: <0x0x8a04c74[SkyImapMailDataSource]> fetchMessages: begin ...
Feb 18 22:12:00 ogo-webui-1.1 [12591]: <0x0x8a04c74[SkyImapMailDataSource]> _fetchMessagesUsingSSS:   fetch sorted ...
{}[-[NGImap4Client processCommand:withTag:withNotification:logText:]] <Send Command [UID SORT (REVERSE date) UTF-8 ALL]> : time needed: 0.0376s
Feb 18 22:12:00 ogo-webui-1.1 [12591]: <0x0x8a04c74[SkyImapMailDataSource]> _fetchMessagesUsingSSS: done: 0.
Feb 18 22:12:00 ogo-webui-1.1 [12591]: <0x0x8a04c74[SkyImapMailDataSource]> fetchMessages:   process unseen ...

Program received signal SIGSEGV, Segmentation fault.
[Switching to process 12591]
0xb76a6604 in ?? () from /usr/lib/gcc/i686-pc-linux-gnu/4.1.1/libobjc.so.1
(gdb) bt
#0  0xb76a6604 in ?? () from /usr/lib/gcc/i686-pc-linux-gnu/4.1.1/libobjc.so.1
#1  0xb772b3a5 in -[NSSet initWithArray:] (self=0x8768fc4, _cmd=0xb77d6148, array=0x8a04c74) at NSSet.m:97
#2  0xb772b089 in +[NSSet setWithArray:] (self=0xb77d5e00, _cmd=0xb6b385f8, array=0x8a04c74) at NSSet.m:61
#3  0xb6b33b60 in -[SkyImapMailDataSource fetchMessages] (self=0xb6b318dd, _cmd=0x8a04c74) at SkyImapMailDataSource.m:573
#4  0x08a020f4 in ?? ()
#5  0xb6b318dd in -[SkyImapMailDataSource fetchObjects] (self=0x8a04c74, _cmd=0xb6b38620) at SkyImapMailDataSource.m:147
#6  0xb6b33f3e in -[SkyImapMailDataSource preFetchMessagesInRange:] (self=0x8a04c74, _cmd=0xb6b8c2b0, _range={location = 0, length = 30}) at SkyImapMailDataSource.m:609
#7  0xb6b7218a in -[SkyImapMailList appendToResponse:inContext:] (self=0x875f044, _cmd=0xb7dc4a30, _response=0x892865c, _ctx=0x8a36604) at SkyImapMailList.m:137
#8  0xb7caa4bb in -[WOChildComponentReference appendToResponse:inContext:] (self=0x89e813c, _cmd=0xb7e056e8, _response=0x892865c, _ctx=0x8a36604) at WOChildComponentReference.m:187
#9  0xb7d04d69 in -[WOCompoundElement appendToResponse:inContext:] (self=0x89e824c, _cmd=0xb7e05b98, _response=0x892865c, _ctx=0x8a36604) at WOCompoundElement.m:247
#10 0xb7d06115 in -[WOConditional appendToResponse:inContext:] (self=0x89e667c, _cmd=0xb7e056e8, _response=0x892865c, _ctx=0x8a36604) at WOConditional.m:241
#11 0xb7d04d69 in -[WOCompoundElement appendToResponse:inContext:] (self=0x89e895c, _cmd=0xb7e06ae8, _response=0x892865c, _ctx=0x8a36604) at WOCompoundElement.m:247
#12 0xb7d09ced in -[WOForm appendToResponse:inContext:] (self=0x89e890c, _cmd=0xb7e056e8, _response=0x892865c, _ctx=0x8a36604) at WOForm.m:386
#13 0xb7d04d69 in -[WOCompoundElement appendToResponse:inContext:] (self=0x89e899c, _cmd=0xb7f1c348, _response=0x892865c, _ctx=0x8a36604) at WOCompoundElement.m:247
#14 0xb7eb5cb7 in -[WETabItem _appendBodyToResponse:inContext:activeKey:key:] (self=0x89e8dbc, _cmd=0xb7f1c370, _response=0x892865c, _ctx=0x8a36604, tmp=0xb6e4947c, k=0x898b6d4) at WETabItem.m:354
#15 0xb7eb61b2 in -[WETabItem appendToResponse:inContext:] (self=0x89e8dbc, _cmd=0xb6dbff88, _response=0x892865c, _ctx=0x8a36604) at WETabItem.m:414
#16 0xb6daa9e1 in -[SkySimpleTabItem appendToResponse:inContext:] (self=0x89e8b34, _cmd=0xb7e056f0, _response=0x892865c, _ctx=0x8a36604) at SkySimpleTabItem.m:113
#17 0xb7d04daa in -[WOCompoundElement appendToResponse:inContext:] (self=0x89ef474, _cmd=0xb7e05b98, _response=0x892865c, _ctx=0x8a36604) at WOCompoundElement.m:252
#18 0xb7d06115 in -[WOConditional appendToResponse:inContext:] (self=0x89ef364, _cmd=0xb7e056e8, _response=0x892865c, _ctx=0x8a36604) at WOConditional.m:241
#19 0xb7d04d69 in -[WOCompoundElement appendToResponse:inContext:] (self=0x89f0074, _cmd=0xb7f1db10, _response=0x892865c, _ctx=0x8a36604) at WOCompoundElement.m:247
#20 0xb7ebaabe in -[WETabView _appendBodyRowToResponse:inContext:bgcolor:activeKey:] (self=0x89f012c, _cmd=0xb7f1dc80, _response=0x892865c, _ctx=0x8a36604, bgcolor=0x896bbac, activeKey=0xb6e4947c) at WETabView.m:774
#21 0xb7ebb565 in -[WETabView appendToResponse:inContext:] (self=0x89f012c, _cmd=0xb6db6eb0, _response=0x892865c, _ctx=0x8a36604) at WETabView.m:915
#22 0xb6d9e09c in -[SkyTabView appendToResponse:inContext:] (self=0x89f004c, _cmd=0xb7e056f0, _response=0x892865c, _ctx=0x8a36604) at SkyTabView.m:133
#23 0xb7d04daa in -[WOCompoundElement appendToResponse:inContext:] (self=0x89f01fc, _cmd=0xb7e05b98, _response=0x892865c, _ctx=0x8a36604) at WOCompoundElement.m:252
#24 0xb7d06115 in -[WOConditional appendToResponse:inContext:] (self=0x89f0014, _cmd=0xb7e056e8, _response=0x892865c, _ctx=0x8a36604) at WOConditional.m:241
#25 0xb7d04d69 in -[WOCompoundElement appendToResponse:inContext:] (self=0x89f0664, _cmd=0xb6e32b30, _response=0x892865c, _ctx=0x8a36604) at WOCompoundElement.m:247
#26 0xb6df8609 in -[OGoWindowFrame _appendContentToResponse:inContext:] (self=0x89ee134, _cmd=0xb6e32c08, _r=0x892865c, _ctx=0x8a36604) at OGoWindowFrame.m:325
#27 0xb6df8dc6 in -[OGoWindowFrame appendToResponse:inContext:] (self=0x89ee134, _cmd=0xb7e056e8, _response=0x892865c, _ctx=0x8a36604) at OGoWindowFrame.m:419
#28 0xb7d04d69 in -[WOCompoundElement appendToResponse:inContext:] (self=0x89f070c, _cmd=0xb7e04df0, _response=0x892865c, _ctx=0x8a36604) at WOCompoundElement.m:247
#29 0xb7d02eff in -[WOComponentContent appendToResponse:inContext:] (self=0x899928c, _cmd=0xb7e056e8, _response=0x892865c, _ctx=0x8a36604) at WOComponentContent.m:157
#30 0xb7d04d69 in -[WOCompoundElement appendToResponse:inContext:] (self=0x899c004, _cmd=0xb7deb298, _response=0x892865c, _ctx=0x8a36604) at WOCompoundElement.m:247
#31 0xb7cefd7b in -[WOTemplate appendToResponse:inContext:] (self=0x89183fc, _cmd=0xb7daeaa0, _response=0x892865c, _ctx=0x8a36604) at WOTemplate.m:128
#32 0xb7c7c464 in -[WOComponent appendToResponse:inContext:] (self=0x8702e5c, _cmd=0xb7fa8d00, _response=0x892865c, _ctx=0x8a36604) at WOComponent.m:924
#33 0xb7f772a6 in -[OGoComponent appendToResponse:inContext:] (self=0x8702e5c, _cmd=0xb6e2e9a8, _r=0x892865c, _ctx=0x8a36604) at OGoComponent.m:132
#34 0xb6df1022 in -[LSWSkyrixFrame appendToResponse:inContext:] (self=0x8702e5c, _cmd=0xb7dc4a30, _r=0x892865c, _ctx=0x8a36604) at LSWSkyrixFrame.m:452
#35 0xb7caa4bb in -[WOChildComponentReference appendToResponse:inContext:] (self=0x89f06dc, _cmd=0xb7e056e8, _response=0x892865c, _ctx=0x8a36604) at WOChildComponentReference.m:187
#36 0xb7d04d69 in -[WOCompoundElement appendToResponse:inContext:] (self=0x89f0854, _cmd=0xb7deb298, _response=0x892865c, _ctx=0x8a36604) at WOCompoundElement.m:247
#37 0xb7cefd7b in -[WOTemplate appendToResponse:inContext:] (self=0x89dc314, _cmd=0xb7daeaa0, _response=0x892865c, _ctx=0x8a36604) at WOTemplate.m:128
#38 0xb7c7c464 in -[WOComponent appendToResponse:inContext:] (self=0x89f0934, _cmd=0xb7fa8d00, _response=0x892865c, _ctx=0x8a36604) at WOComponent.m:924
#39 0xb7f772a6 in -[OGoComponent appendToResponse:inContext:] (self=0x89f0934, _cmd=0xb6b7fc90, _r=0x892865c, _ctx=0x8a36604) at OGoComponent.m:132
#40 0xb6b57535 in -[LSWImapMails appendToResponse:inContext:] (self=0x89f0934, _cmd=0xb7dba3e8, _response=0x892865c, _ctx=0x8a36604) at LSWImapMails.m:182
#41 0xb7c94db4 in -[WOSession appendToResponse:inContext:] (self=0x872d70c, _cmd=0xb7fb1290, _response=0x892865c, _ctx=0x8a36604) at WOSession.m:549
#42 0xb7f81b25 in -[OGoSession appendToResponse:inContext:] (self=0x872d70c, _cmd=0xb7daad40, _response=0x892865c, _ctx=0x8a36604) at OGoSession.m:477
#43 0xb7c729d6 in -[WOApplication appendToResponse:inContext:] (self=0x8102824, _cmd=0xb7dd25e0, _response=0x892865c, _ctx=0x8a36604) at WOApplication.m:943
#44 0xb7cc4c76 in -[WORequestHandler(Support) generateResponseForComponent:inContext:application:] (self=0x8129304, _cmd=0xb7dc80d0, _component=0x89f0934, _ctx=0x8a36604, _app=0x8102824) at WORequestHandler.m:483
#45 0xb7caf3c3 in -[WODirectActionRequestHandler handleRequest:inContext:session:application:] (self=0x8129304, _cmd=0xb7dd24c8, _request=0x87130c4, context=0x8a36604, session=0x872d70c, app=0x8102824) at WODirectActionRequestHandler.m:218
#46 0xb7cc38b0 in -[WORequestHandler handleRequest:] (self=0x8129304, _cmd=0xb7dac6f0, _request=0x87130c4) at WORequestHandler.m:241
#47 0xb7c76bf1 in -[WOCoreApplication dispatchRequest:usingHandler:] (self=0x8102824, _cmd=0xb7dac720, _request=0x87130c4, handler=0x8129304) at WOCoreApplication.m:655
#48 0xb7c76fa1 in -[WOCoreApplication dispatchRequest:] (self=0x8102824, _cmd=0x8058868, _request=0x87130c4) at WOCoreApplication.m:695
#49 0x0804ebe2 in -[OpenGroupware dispatchRequest:] (self=0x8102824, _cmd=0xb7e16270, _request=0x87130c4) at OpenGroupware.m:829
#50 0xb7d387dc in -[WOHttpTransaction _run] (self=0x871190c, _cmd=0xb7e16288) at WOHttpTransaction.m:540
#51 0xb7d38c7a in -[WOHttpTransaction run] (self=0x871190c, _cmd=0xb7e15278) at WOHttpTransaction.m:593
#52 0xb7d33c1b in -[WOHttpAdaptor runConnection:] (self=0x86c0f94, _cmd=0xb7e152c8, _socket=0x89564f4) at WOHttpAdaptor.m:484
#53 0xb7d33f2e in -[WOHttpAdaptor _handleAcceptedConnection:] (self=0x86c0f94, _cmd=0xb7e15320, _connection=0x89564f4) at WOHttpAdaptor.m:518
#54 0xb7d348eb in -[WOHttpAdaptor acceptConnection:] (self=0x86c0f94, _cmd=0xb7e15230, _notification=0x8724764) at WOHttpAdaptor.m:626
#55 0xb7709dcb in -[NSObject performSelector:withObject:] (self=0x86c0f94, _cmd=0xb77e9560, aSelector=0xb7e15230, anObject=0x8724764) at NSObject.m:730
#56 0xb77606ba in -[NSNotificationListItem postNotification:] (self=0x86c727c, _cmd=0xb77e9630, notification=0x8724764) at NSNotificationCenter.m:104
#57 0xb7709dcb in -[NSObject performSelector:withObject:] (self=0x86c727c, _cmd=0xb77cfe40, aSelector=0xb77e9630, anObject=0x8724764) at NSObject.m:730
#58 0xb7718aaa in -[NSArray makeObjectsPerform:withObject:] (self=0x8a40cac, _cmd=0xb77e9638, aSelector=0xb77e9630, anObject=0x8724764) at NSArray.m:403
#59 0xb776177b in -[NSNotificationCenter postNotification:] (self=0x809ba2c, _cmd=0xb77e9670, notification=0x8724764) at NSNotificationCenter.m:453
#60 0xb7761b4d in -[NSNotificationCenter postNotificationName:object:] (self=0x809ba2c, _cmd=0xb77f72c0, notificationName=0xb77f6a80, object=0x86c546c) at NSNotificationCenter.m:590
#61 0xb777df89 in -[NSRunLoopFileObjectInfo activity:onDescriptor:] (self=0x86c5224, _cmd=0xb77f7488, _activity=NSPosixReadableActivity, _fd=8) at NSRunLoop.m:190
#62 0xb7780830 in -[NSRunLoop acceptInputForMode:beforeDate:] (self=0x8130c6c, _cmd=0xb77f7450, aMode=0xb77f6a60, limitDate=0x8711f24) at NSRunLoop.m:767
#63 0xb777feed in -[NSRunLoop runMode:beforeDate:] (self=0x8130c6c, _cmd=0xb7dac670, aMode=0xb77f6a60, limitDate=0x8711f24) at NSRunLoop.m:621
#64 0xb7c76369 in -[WOCoreApplication run] (self=0x8102824, _cmd=0xb7dc40b8) at WOCoreApplication.m:527
#65 0xb7ca964b in WOApplicationMain (_appClassName=0x80568e0, argc=13, argv=0xbfa34e24) at WOApplicationMain.m:42
#66 0xb7ccdfc5 in WOWatchDogApplicationMain (appName=0x80568e0, argc=13, argv=0xbfa34e24) at WOWatchDogApplicationMain.m:316
#67 0x08049b99 in main (argc=134599696, argv=0x0, env=0x0) at main.m:32
(gdb)