Closed Bug 99673 Opened 25 years ago Closed 11 years ago

mork / addressbook assert on send if you have an ldap addressbook

Categories

(MailNews Core :: LDAP Integration, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INCOMPLETE

People

(Reporter: sspitzer, Unassigned)

Details

today's (9/14) debug trunk build, I assert on send. my guess is fail on send to open the collected address book. NTDLL! 77f9f9df() nsDebug::Assertion(const char * 0x0524cbb0, const char * 0x0524cabc, const char * 0x0524ca8c, int 78) line 290 + 13 bytes mork_assertion_signal(const char * 0x0524cbb0) line 78 + 31 bytes morkEnv::NewError(const char * 0x09882750) line 369 + 19 bytes morkFile::NewFileErrnoError(morkEnv * 0x09884e70) line 272 morkStdioFile::new_stdio_file_fault(morkEnv * 0x09884e70) line 668 morkStdioFile::OpenStdio(morkEnv * 0x09884e70, const char * 0x09881ad0, const char * 0x0524cdf8) line 739 morkStdioFile::morkStdioFile(morkEnv * 0x09884e70, const morkUsage & {...}, nsIMdbHeap * 0x0503c2e8, nsIMdbHeap * 0x0503c2e8, const char * 0x09881ad0, const char * 0x0524cdf8) line 693 morkStdioFile::OpenOldStdioFile(morkEnv * 0x09884e70, nsIMdbHeap * 0x0503c2e8, const char * 0x09881ad0, unsigned char 0) line 371 + 62 bytes morkFile::OpenOldFile(morkEnv * 0x09884e70, nsIMdbHeap * 0x0503c2e8, const char * 0x09881ad0, unsigned char 0) line 178 + 21 bytes orkinFactory::OpenOldFile(nsIMdbEnv * 0x09881e98, nsIMdbHeap * 0x0503c2e8, const char * 0x09881ad0, unsigned char 0, nsIMdbFile * * 0x0012afd4) line 312 + 21 bytes nsAddrDatabase::OpenMDB(nsAddrDatabase * const 0x098838d0, nsFileSpec * 0x09882cc0, int 1) line 620 + 34 bytes nsAddrDatabase::Open(nsAddrDatabase * const 0x0987d970, nsFileSpec * 0x09882cc0, int 1, nsIAddrDatabase * * 0x0012b11c, int 1) line 566 + 20 bytes nsAddressBook::GetAbDatabaseFromURI(nsAddressBook * const 0x09884f60, const char * 0x09884dd0, nsIAddrDatabase * * 0x0012bba8) line 318 + 67 bytes OpenAddressBook(const char * 0x09884dd0, nsIAddrDatabase * * 0x0012bba8, nsIAbDirectory * * 0x0012b9b8) line 2952 + 31 bytes nsMsgCompose::CheckAndPopulateRecipients(nsMsgCompose * const 0x093d5720, int 1, int 1, unsigned short * * 0x0012bd64, unsigned int * 0x0012bd74) line 3230 + 75 bytes XPTC_InvokeByIndex(nsISupports * 0x093d5720, unsigned int 11, unsigned int 4, nsXPTCVariant * 0x0012bd44) line 139 XPCWrappedNative::CallMethod(XPCCallContext & {...}, XPCWrappedNative::CallMode CALL_METHOD) line 1952 + 42 bytes XPC_WN_CallMethod(JSContext * 0x070d76b0, JSObject * 0x0857dcc0, unsigned int 3, long * 0x085a5e3c, long * 0x0012bf7c) line 1254 + 14 bytes js_Invoke(JSContext * 0x070d76b0, unsigned int 3, unsigned int 0) line 807 + 23 bytes js_Interpret(JSContext * 0x070d76b0, long * 0x0012cd20) line 2719 + 15 bytes js_Invoke(JSContext * 0x070d76b0, unsigned int 1, unsigned int 2) line 824 + 13 bytes nsXPCWrappedJSClass::CallMethod(nsXPCWrappedJSClass * const 0x0508f0a0, nsXPCWrappedJS * 0x093be340, unsigned short 5, const nsXPTMethodInfo * 0x00fb6b18, nsXPTCMiniVariant * 0x0012d268) line 1022 + 21 bytes nsXPCWrappedJS::CallMethod(nsXPCWrappedJS * const 0x093be340, unsigned short 5, const nsXPTMethodInfo * 0x00fb6b18, nsXPTCMiniVariant * 0x0012d268) line 427 PrepareAndDispatch(nsXPTCStubBase * 0x093be340, unsigned int 5, unsigned int * 0x0012d318, unsigned int * 0x0012d308) line 100 + 31 bytes SharedStub() line 124 XPTC_InvokeByIndex(nsISupports * 0x093be340, unsigned int 5, unsigned int 1, nsXPTCVariant * 0x0012d498) line 139 XPCWrappedNative::CallMethod(XPCCallContext & {...}, XPCWrappedNative::CallMode CALL_METHOD) line 1952 + 42 bytes XPC_WN_CallMethod(JSContext * 0x070d76b0, JSObject * 0x04052208, unsigned int 1, long * 0x085a5c30, long * 0x0012d6d0) line 1254 + 14 bytes js_Invoke(JSContext * 0x070d76b0, unsigned int 1, unsigned int 0) line 807 + 23 bytes js_Interpret(JSContext * 0x070d76b0, long * 0x0012e474) line 2719 + 15 bytes js_Invoke(JSContext * 0x070d76b0, unsigned int 1, unsigned int 2) line 824 + 13 bytes js_InternalInvoke(JSContext * 0x070d76b0, JSObject * 0x0857dbb8, long 139975616, unsigned int 0, unsigned int 1, long * 0x0012e654, long * 0x0012e59c) line 899 + 20 bytes JS_CallFunctionValue(JSContext * 0x070d76b0, JSObject * 0x0857dbb8, long 139975616, unsigned int 1, long * 0x0012e654, long * 0x0012e59c) line 3362 + 31 bytes nsJSContext::CallEventHandler(nsJSContext * const 0x070d7cb0, void * 0x0857dbb8, void * 0x0857dbc0, unsigned int 1, void * 0x0012e654, int * 0x0012e650, int 0) line 957 + 33 bytes nsJSEventListener::HandleEvent(nsJSEventListener * const 0x08de96c0, nsIDOMEvent * 0x09874da4) line 139 + 74 bytes nsEventListenerManager::HandleEventSubType(nsListenerStruct * 0x08de9620, nsIDOMEvent * 0x09874da4, nsIDOMEventTarget * 0x08de9778, unsigned int 8, unsigned int 7) line 1197 + 20 bytes nsEventListenerManager::HandleEvent(nsEventListenerManager * const 0x08de9710, nsIPresContext * 0x0790b940, nsEvent * 0x0012f164, nsIDOMEvent * * 0x0012f028, nsIDOMEventTarget * 0x08de9778, unsigned int 7, nsEventStatus * 0x0012f1ac) line 2187 + 36 bytes nsXULElement::HandleDOMEvent(nsXULElement * const 0x08de9770, nsIPresContext * 0x0790b940, nsEvent * 0x0012f164, nsIDOMEvent * * 0x0012f028, unsigned int 1, nsEventStatus * 0x0012f1ac) line 3711 PresShell::HandleDOMEventWithTarget(PresShell * const 0x0709b050, nsIContent * 0x08de9770, nsEvent * 0x0012f164, nsEventStatus * 0x0012f1ac) line 5755 + 39 bytes nsButtonBoxFrame::MouseClicked(nsIPresContext * 0x0790b940, nsGUIEvent * 0x0012f360) line 178 nsButtonBoxFrame::HandleEvent(nsButtonBoxFrame * const 0x04312304, nsIPresContext * 0x0790b940, nsGUIEvent * 0x0012f360, nsEventStatus * 0x0012f66c) line 128 PresShell::HandleEventInternal(nsEvent * 0x0012f360, nsIView * 0x00000000, unsigned int 1, nsEventStatus * 0x0012f66c) line 5723 + 41 bytes PresShell::HandleEventWithTarget(PresShell * const 0x0709b050, nsEvent * 0x0012f360, nsIFrame * 0x04312304, nsIContent * 0x08df4880, unsigned int 1, nsEventStatus * 0x0012f66c) line 5679 + 22 bytes nsEventStateManager::CheckForAndDispatchClick(nsEventStateManager * const 0x08e0e100, nsIPresContext * 0x0790b940, nsMouseEvent * 0x0012f778, nsEventStatus * 0x0012f66c) line 2486 + 61 bytes nsEventStateManager::PostHandleEvent(nsEventStateManager * const 0x08e0e108, nsIPresContext * 0x0790b940, nsEvent * 0x0012f778, nsIFrame * 0x04312304, nsEventStatus * 0x0012f66c, nsIView * 0x078fb190) line 1571 + 28 bytes PresShell::HandleEventInternal(nsEvent * 0x0012f778, nsIView * 0x078fb190, unsigned int 1, nsEventStatus * 0x0012f66c) line 5728 + 43 bytes PresShell::HandleEvent(PresShell * const 0x0709b054, nsIView * 0x078fb190, nsGUIEvent * 0x0012f778, nsEventStatus * 0x0012f66c, int 1, int & 1) line 5633 + 25 bytes nsView::HandleEvent(nsView * const 0x078fb190, nsGUIEvent * 0x0012f778, unsigned int 28, nsEventStatus * 0x0012f66c, int 1, int & 1) line 377 nsViewManager::DispatchEvent(nsViewManager * const 0x078fa240, nsGUIEvent * 0x0012f778, nsEventStatus * 0x0012f66c) line 2058 HandleEvent(nsGUIEvent * 0x0012f778) line 68 nsWindow::DispatchEvent(nsWindow * const 0x082729d4, nsGUIEvent * 0x0012f778, nsEventStatus & nsEventStatus_eIgnore) line 728 + 10 bytes nsWindow::DispatchWindowEvent(nsGUIEvent * 0x0012f778) line 749 nsWindow::DispatchMouseEvent(unsigned int 301, nsPoint * 0x00000000) line 4262 + 21 bytes ChildWindow::DispatchMouseEvent(unsigned int 301, nsPoint * 0x00000000) line 4514 nsWindow::ProcessMessage(unsigned int 514, unsigned int 0, long 2818166, long * 0x0012fba4) line 3221 + 24 bytes nsWindow::WindowProc(HWND__ * 0x002d00f6, unsigned int 514, unsigned int 0, long 2818166) line 996 + 27 bytes USER32! 77e13eb0() USER32! 77e1401a() USER32! 77e192da() nsAppShellService::Run(nsAppShellService * const 0x019e8130) line 442 main1(int 4, char * * 0x00485cd0, nsISupports * 0x00000000) line 1269 + 32 bytes main(int 4, char * * 0x00485cd0) line 1597 + 37 bytes mainCRTStartup() line 338 + 17 bytes KERNEL32! 77e87903()
ah, it's because I've got an ldap addressbook set up. in GetAbDatabaseFromURI(), my uri is: "moz-abldapdirectory://ldap.itd.umich.edu:389/o=University of Michigan, c=US?? sub?(objectclass=*)"
Assignee: varada → sspitzer
I think this will boil down to fixing CheckAndPopulateRecipients() to skip over non local address books.
Summary: mork / addressbook assert on send → mork / addressbook assert on send if you have an ldap addressbook
Well, the fact that LDAP's autocomplete stuff has a whole separate implementation and is special-cased in the compose window is really just a historical accident (ie the LDAP addressbook code wasn't done early enough for an appropriately generalized set of interfaces to be used for the addrbook autocompletion). But I wonder if a slightly better way to do this would be to add an nsIAbDirectory::opAutoComplete capability and use this as a discriminator.
reassign yulian, Can you check if this is still a problem? Or may be a dup of the existing bugs you have. Assign it to nbaca if this is addressbook problem
Component: Composition → LDAP Mail/News Integration
QA Contact: sheelar → yulian
QA Contact: yulian → gchan
Product: MailNews → Core
sorry for the spam. making bugzilla reflect reality as I'm not working on these bugs. filter on FOOBARCHEESE to remove these in bulk.
Assignee: sspitzer → nobody
QA Contact: grylchan → ldap-integration
Product: Core → MailNews Core
Can anybody still reproduce this? The code may have change quite a lot since the report (2001).
Whiteboard: [CLOSEME 2015-08-01]
Resolved per whiteboard
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → INCOMPLETE
Whiteboard: [CLOSEME 2015-08-01]
You need to log in before you can comment on or make changes to this bug.