Closed Bug 385765 Opened 13 years ago Closed 13 years ago

[@ jsdASObserver::Observe] You can't dereference a NULL nsCOMPtr with operator->()

Categories

(Other Applications Graveyard :: Venkman JS Debugger, defect, critical)

x86
Windows XP
defect
Not set
critical

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: timeless, Assigned: timeless)

References

()

Details

(Keywords: crash)

Crash Data

Attachments

(1 file)

this code doesn't rv check the get service. that's unfortunate.

WARNING: NS_ENSURE_TRUE(compMgr) failed: file mozilla/dbg-firefox-i686-pc-mingw32/xpcom/build/nsComponentManagerUtils.cpp, line 90
WARNING: NS_ENSURE_TRUE(compMgr) failed: file mozilla/dbg-firefox-i686-pc-mingw32/xpcom/build/nsComponentManagerUtils.cpp, line 90
WARNING: NS_ENSURE_TRUE(compMgr) failed: file mozilla/dbg-firefox-i686-pc-mingw32/xpcom/build/nsComponentManagerUtils.cpp, line 90
WARNING: NS_ENSURE_TRUE(compMgr) failed: file mozilla/dbg-firefox-i686-pc-mingw32/xpcom/build/nsComponentManagerUtils.cpp, line 90
Type Manifest File: mozilla\dbg-firefox-i686-pc-mingw32\dist\bin\components\xpti.dat
###!!! ASSERTION: XPCOM objects created/destroyed from static ctor/dtor: 'gActivityTLS != BAD_TLS_INDEX && NS_PTR_TO_INT32(PR_GetThreadPrivate(gActivityTLS)) ==
 0', file mozilla/xpcom/base/nsTraceRefcntImpl.cpp, line 971
###!!! ASSERTION: XPCOM objects created/destroyed from static ctor/dtor: 'gActivityTLS != BAD_TLS_INDEX && NS_PTR_TO_INT32(PR_GetThreadPrivate(gActivityTLS)) ==
 0', file mozilla/xpcom/base/nsTraceRefcntImpl.cpp, line 971
###!!! ASSERTION: XPCOM objects created/destroyed from static ctor/dtor: 'gActivityTLS != BAD_TLS_INDEX && NS_PTR_TO_INT32(PR_GetThreadPrivate(gActivityTLS)) ==
 0', file mozilla/xpcom/base/nsTraceRefcntImpl.cpp, line 1025
###!!! ASSERTION: XPCOM objects created/destroyed from static ctor/dtor: 'gActivityTLS != BAD_TLS_INDEX && NS_PTR_TO_INT32(PR_GetThreadPrivate(gActivityTLS)) ==
 0', file mozilla/xpcom/base/nsTraceRefcntImpl.cpp, line 971
###!!! ASSERTION: XPCOM objects created/destroyed from static ctor/dtor: 'gActivityTLS != BAD_TLS_INDEX && NS_PTR_TO_INT32(PR_GetThreadPrivate(gActivityTLS)) ==
 0', file mozilla/xpcom/base/nsTraceRefcntImpl.cpp, line 971
###!!! ASSERTION: XPCOM objects created/destroyed from static ctor/dtor: 'gActivityTLS != BAD_TLS_INDEX && NS_PTR_TO_INT32(PR_GetThreadPrivate(gActivityTLS)) ==
 0', file mozilla/xpcom/base/nsTraceRefcntImpl.cpp, line 1025
###!!! ASSERTION: XPCOM objects created/destroyed from static ctor/dtor: 'gActivityTLS != BAD_TLS_INDEX && NS_PTR_TO_INT32(PR_GetThreadPrivate(gActivityTLS)) ==
 0', file mozilla/xpcom/base/nsTraceRefcntImpl.cpp, line 971
###!!! ASSERTION: XPCOM objects created/destroyed from static ctor/dtor: 'gActivityTLS != BAD_TLS_INDEX && NS_PTR_TO_INT32(PR_GetThreadPrivate(gActivityTLS)) ==
 0', file mozilla/xpcom/base/nsTraceRefcntImpl.cpp, line 1025
###!!! ASSERTION: XPCOM objects created/destroyed from static ctor/dtor: 'gActivityTLS != BAD_TLS_INDEX && NS_PTR_TO_INT32(PR_GetThreadPrivate(gActivityTLS)) ==
 0', file mozilla/xpcom/base/nsTraceRefcntImpl.cpp, line 971
###!!! ASSERTION: XPCOM objects created/destroyed from static ctor/dtor: 'gActivityTLS != BAD_TLS_INDEX && NS_PTR_TO_INT32(PR_GetThreadPrivate(gActivityTLS)) ==
 0', file mozilla/xpcom/base/nsTraceRefcntImpl.cpp, line 1025
###!!! ASSERTION: XPCOM objects created/destroyed from static ctor/dtor: 'gActivityTLS != BAD_TLS_INDEX && NS_PTR_TO_INT32(PR_GetThreadPrivate(gActivityTLS)) ==
 0', file mozilla/xpcom/base/nsTraceRefcntImpl.cpp, line 971
###!!! ASSERTION: XPCOM objects created/destroyed from static ctor/dtor: 'gActivityTLS != BAD_TLS_INDEX && NS_PTR_TO_INT32(PR_GetThreadPrivate(gActivityTLS)) ==
 0', file mozilla/xpcom/base/nsTraceRefcntImpl.cpp, line 971
###!!! ASSERTION: XPCOM objects created/destroyed from static ctor/dtor: 'gActivityTLS != BAD_TLS_INDEX && NS_PTR_TO_INT32(PR_GetThreadPrivate(gActivityTLS)) ==
 0', file mozilla/xpcom/base/nsTraceRefcntImpl.cpp, line 1025
###!!! ASSERTION: XPCOM objects created/destroyed from static ctor/dtor: 'gActivityTLS != BAD_TLS_INDEX && NS_PTR_TO_INT32(PR_GetThreadPrivate(gActivityTLS)) ==
 0', file mozilla/xpcom/base/nsTraceRefcntImpl.cpp, line 971
###!!! ASSERTION: XPCOM objects created/destroyed from static ctor/dtor: 'gActivityTLS != BAD_TLS_INDEX && NS_PTR_TO_INT32(PR_GetThreadPrivate(gActivityTLS)) ==
 0', file mozilla/xpcom/base/nsTraceRefcntImpl.cpp, line 1025
###!!! ASSERTION: XPCOM objects created/destroyed from static ctor/dtor: 'gActivityTLS != BAD_TLS_INDEX && NS_PTR_TO_INT32(PR_GetThreadPrivate(gActivityTLS)) ==
 0', file mozilla/xpcom/base/nsTraceRefcntImpl.cpp, line 971
###!!! ASSERTION: XPCOM objects created/destroyed from static ctor/dtor: 'gActivityTLS != BAD_TLS_INDEX && NS_PTR_TO_INT32(PR_GetThreadPrivate(gActivityTLS)) ==
 0', file mozilla/xpcom/base/nsTraceRefcntImpl.cpp, line 1025
###!!! ASSERTION: XPCOM objects created/destroyed from static ctor/dtor: 'gActivityTLS != BAD_TLS_INDEX && NS_PTR_TO_INT32(PR_GetThreadPrivate(gActivityTLS)) ==
 0', file mozilla/xpcom/base/nsTraceRefcntImpl.cpp, line 1025
###!!! ASSERTION: XPCOM objects created/destroyed from static ctor/dtor: 'gActivityTLS != BAD_TLS_INDEX && NS_PTR_TO_INT32(PR_GetThreadPrivate(gActivityTLS)) ==
 0', file mozilla/xpcom/base/nsTraceRefcntImpl.cpp, line 971
###!!! ASSERTION: XPCOM objects created/destroyed from static ctor/dtor: 'gActivityTLS != BAD_TLS_INDEX && NS_PTR_TO_INT32(PR_GetThreadPrivate(gActivityTLS)) ==
 0', file mozilla/xpcom/base/nsTraceRefcntImpl.cpp, line 971
###!!! ASSERTION: XPCOM objects created/destroyed from static ctor/dtor: 'gActivityTLS != BAD_TLS_INDEX && NS_PTR_TO_INT32(PR_GetThreadPrivate(gActivityTLS)) ==
 0', file mozilla/xpcom/base/nsTraceRefcntImpl.cpp, line 971
###!!! ASSERTION: XPCOM objects created/destroyed from static ctor/dtor: 'gActivityTLS != BAD_TLS_INDEX && NS_PTR_TO_INT32(PR_GetThreadPrivate(gActivityTLS)) ==
 0', file mozilla/xpcom/base/nsTraceRefcntImpl.cpp, line 1025
###!!! ASSERTION: XPCOM objects created/destroyed from static ctor/dtor: 'gActivityTLS != BAD_TLS_INDEX && NS_PTR_TO_INT32(PR_GetThreadPrivate(gActivityTLS)) ==
 0', file mozilla/xpcom/base/nsTraceRefcntImpl.cpp, line 1025
###!!! ASSERTION: XPCOM objects created/destroyed from static ctor/dtor: 'gActivityTLS != BAD_TLS_INDEX && NS_PTR_TO_INT32(PR_GetThreadPrivate(gActivityTLS)) ==
 0', file mozilla/xpcom/base/nsTraceRefcntImpl.cpp, line 971
###!!! ASSERTION: XPCOM objects created/destroyed from static ctor/dtor: 'gActivityTLS != BAD_TLS_INDEX && NS_PTR_TO_INT32(PR_GetThreadPrivate(gActivityTLS)) ==
 0', file mozilla/xpcom/base/nsTraceRefcntImpl.cpp, line 971
###!!! ASSERTION: XPCOM objects created/destroyed from static ctor/dtor: 'gActivityTLS != BAD_TLS_INDEX && NS_PTR_TO_INT32(PR_GetThreadPrivate(gActivityTLS)) ==
 0', file mozilla/xpcom/base/nsTraceRefcntImpl.cpp, line 1025
###!!! ASSERTION: XPCOM objects created/destroyed from static ctor/dtor: 'gActivityTLS != BAD_TLS_INDEX && NS_PTR_TO_INT32(PR_GetThreadPrivate(gActivityTLS)) ==
 0', file mozilla/xpcom/base/nsTraceRefcntImpl.cpp, line 971
###!!! ASSERTION: XPCOM objects created/destroyed from static ctor/dtor: 'gActivityTLS != BAD_TLS_INDEX && NS_PTR_TO_INT32(PR_GetThreadPrivate(gActivityTLS)) ==
 0', file mozilla/xpcom/base/nsTraceRefcntImpl.cpp, line 971
###!!! ASSERTION: XPCOM objects created/destroyed from static ctor/dtor: 'gActivityTLS != BAD_TLS_INDEX && NS_PTR_TO_INT32(PR_GetThreadPrivate(gActivityTLS)) ==
 0', file mozilla/xpcom/base/nsTraceRefcntImpl.cpp, line 1025
###!!! ASSERTION: XPCOM objects created/destroyed from static ctor/dtor: 'gActivityTLS != BAD_TLS_INDEX && NS_PTR_TO_INT32(PR_GetThreadPrivate(gActivityTLS)) ==
 0', file mozilla/xpcom/base/nsTraceRefcntImpl.cpp, line 1025
###!!! ASSERTION: XPCOM objects created/destroyed from static ctor/dtor: 'gActivityTLS != BAD_TLS_INDEX && NS_PTR_TO_INT32(PR_GetThreadPrivate(gActivityTLS)) ==
 0', file mozilla/xpcom/base/nsTraceRefcntImpl.cpp, line 971
###!!! ASSERTION: XPCOM objects created/destroyed from static ctor/dtor: 'gActivityTLS != BAD_TLS_INDEX && NS_PTR_TO_INT32(PR_GetThreadPrivate(gActivityTLS)) ==
 0', file mozilla/xpcom/base/nsTraceRefcntImpl.cpp, line 971
###!!! ASSERTION: XPCOM objects created/destroyed from static ctor/dtor: 'gActivityTLS != BAD_TLS_INDEX && NS_PTR_TO_INT32(PR_GetThreadPrivate(gActivityTLS)) ==
 0', file mozilla/xpcom/base/nsTraceRefcntImpl.cpp, line 1025
###!!! ASSERTION: XPCOM objects created/destroyed from static ctor/dtor: 'gActivityTLS != BAD_TLS_INDEX && NS_PTR_TO_INT32(PR_GetThreadPrivate(gActivityTLS)) ==
 0', file mozilla/xpcom/base/nsTraceRefcntImpl.cpp, line 971
###!!! ASSERTION: XPCOM objects created/destroyed from static ctor/dtor: 'gActivityTLS != BAD_TLS_INDEX && NS_PTR_TO_INT32(PR_GetThreadPrivate(gActivityTLS)) ==
 0', file mozilla/xpcom/base/nsTraceRefcntImpl.cpp, line 971
###!!! ASSERTION: XPCOM objects created/destroyed from static ctor/dtor: 'gActivityTLS != BAD_TLS_INDEX && NS_PTR_TO_INT32(PR_GetThreadPrivate(gActivityTLS)) ==
 0', file mozilla/xpcom/base/nsTraceRefcntImpl.cpp, line 1025
###!!! ASSERTION: XPCOM objects created/destroyed from static ctor/dtor: 'gActivityTLS != BAD_TLS_INDEX && NS_PTR_TO_INT32(PR_GetThreadPrivate(gActivityTLS)) ==
 0', file mozilla/xpcom/base/nsTraceRefcntImpl.cpp, line 971
###!!! ASSERTION: XPCOM objects created/destroyed from static ctor/dtor: 'gActivityTLS != BAD_TLS_INDEX && NS_PTR_TO_INT32(PR_GetThreadPrivate(gActivityTLS)) ==
 0', file mozilla/xpcom/base/nsTraceRefcntImpl.cpp, line 1025
###!!! ASSERTION: XPCOM objects created/destroyed from static ctor/dtor: 'gActivityTLS != BAD_TLS_INDEX && NS_PTR_TO_INT32(PR_GetThreadPrivate(gActivityTLS)) ==
 0', file mozilla/xpcom/base/nsTraceRefcntImpl.cpp, line 971
###!!! ASSERTION: XPCOM objects created/destroyed from static ctor/dtor: 'gActivityTLS != BAD_TLS_INDEX && NS_PTR_TO_INT32(PR_GetThreadPrivate(gActivityTLS)) ==
 0', file mozilla/xpcom/base/nsTraceRefcntImpl.cpp, line 1025
###!!! ASSERTION: XPCOM objects created/destroyed from static ctor/dtor: 'gActivityTLS != BAD_TLS_INDEX && NS_PTR_TO_INT32(PR_GetThreadPrivate(gActivityTLS)) ==
 0', file mozilla/xpcom/base/nsTraceRefcntImpl.cpp, line 971
###!!! ASSERTION: XPCOM objects created/destroyed from static ctor/dtor: 'gActivityTLS != BAD_TLS_INDEX && NS_PTR_TO_INT32(PR_GetThreadPrivate(gActivityTLS)) ==
 0', file mozilla/xpcom/base/nsTraceRefcntImpl.cpp, line 971
###!!! ASSERTION: XPCOM objects created/destroyed from static ctor/dtor: 'gActivityTLS != BAD_TLS_INDEX && NS_PTR_TO_INT32(PR_GetThreadPrivate(gActivityTLS)) ==
 0', file mozilla/xpcom/base/nsTraceRefcntImpl.cpp, line 1025
###!!! ASSERTION: XPCOM objects created/destroyed from static ctor/dtor: 'gActivityTLS != BAD_TLS_INDEX && NS_PTR_TO_INT32(PR_GetThreadPrivate(gActivityTLS)) ==
 0', file mozilla/xpcom/base/nsTraceRefcntImpl.cpp, line 971
###!!! ASSERTION: XPCOM objects created/destroyed from static ctor/dtor: 'gActivityTLS != BAD_TLS_INDEX && NS_PTR_TO_INT32(PR_GetThreadPrivate(gActivityTLS)) ==
 0', file mozilla/xpcom/base/nsTraceRefcntImpl.cpp, line 1025
###!!! ASSERTION: XPCOM objects created/destroyed from static ctor/dtor: 'gActivityTLS != BAD_TLS_INDEX && NS_PTR_TO_INT32(PR_GetThreadPrivate(gActivityTLS)) ==
 0', file mozilla/xpcom/base/nsTraceRefcntImpl.cpp, line 971
###!!! ASSERTION: XPCOM objects created/destroyed from static ctor/dtor: 'gActivityTLS != BAD_TLS_INDEX && NS_PTR_TO_INT32(PR_GetThreadPrivate(gActivityTLS)) ==
 0', file mozilla/xpcom/base/nsTraceRefcntImpl.cpp, line 1025
###!!! ASSERTION: XPCOM objects created/destroyed from static ctor/dtor: 'gActivityTLS != BAD_TLS_INDEX && NS_PTR_TO_INT32(PR_GetThreadPrivate(gActivityTLS)) ==
 0', file mozilla/xpcom/base/nsTraceRefcntImpl.cpp, line 1025
###!!! ASSERTION: XPCOM objects created/destroyed from static ctor/dtor: 'gActivityTLS != BAD_TLS_INDEX && NS_PTR_TO_INT32(PR_GetThreadPrivate(gActivityTLS)) ==
 0', file mozilla/xpcom/base/nsTraceRefcntImpl.cpp, line 971
###!!! ASSERTION: XPCOM objects created/destroyed from static ctor/dtor: 'gActivityTLS != BAD_TLS_INDEX && NS_PTR_TO_INT32(PR_GetThreadPrivate(gActivityTLS)) ==
 0', file mozilla/xpcom/base/nsTraceRefcntImpl.cpp, line 971
###!!! ASSERTION: XPCOM objects created/destroyed from static ctor/dtor: 'gActivityTLS != BAD_TLS_INDEX && NS_PTR_TO_INT32(PR_GetThreadPrivate(gActivityTLS)) ==
 0', file mozilla/xpcom/base/nsTraceRefcntImpl.cpp, line 971
###!!! ASSERTION: XPCOM objects created/destroyed from static ctor/dtor: 'gActivityTLS != BAD_TLS_INDEX && NS_PTR_TO_INT32(PR_GetThreadPrivate(gActivityTLS)) ==
 0', file mozilla/xpcom/base/nsTraceRefcntImpl.cpp, line 1025
###!!! ASSERTION: XPCOM objects created/destroyed from static ctor/dtor: 'gActivityTLS != BAD_TLS_INDEX && NS_PTR_TO_INT32(PR_GetThreadPrivate(gActivityTLS)) ==
 0', file mozilla/xpcom/base/nsTraceRefcntImpl.cpp, line 1025
###!!! ASSERTION: XPCOM objects created/destroyed from static ctor/dtor: 'gActivityTLS != BAD_TLS_INDEX && NS_PTR_TO_INT32(PR_GetThreadPrivate(gActivityTLS)) ==
 0', file mozilla/xpcom/base/nsTraceRefcntImpl.cpp, line 971
###!!! ASSERTION: XPCOM objects created/destroyed from static ctor/dtor: 'gActivityTLS != BAD_TLS_INDEX && NS_PTR_TO_INT32(PR_GetThreadPrivate(gActivityTLS)) ==
 0', file mozilla/xpcom/base/nsTraceRefcntImpl.cpp, line 971
###!!! ASSERTION: XPCOM objects created/destroyed from static ctor/dtor: 'gActivityTLS != BAD_TLS_INDEX && NS_PTR_TO_INT32(PR_GetThreadPrivate(gActivityTLS)) ==
 0', file mozilla/xpcom/base/nsTraceRefcntImpl.cpp, line 1025
###!!! ASSERTION: XPCOM objects created/destroyed from static ctor/dtor: 'gActivityTLS != BAD_TLS_INDEX && NS_PTR_TO_INT32(PR_GetThreadPrivate(gActivityTLS)) ==
 0', file mozilla/xpcom/base/nsTraceRefcntImpl.cpp, line 971
###!!! ASSERTION: XPCOM objects created/destroyed from static ctor/dtor: 'gActivityTLS != BAD_TLS_INDEX && NS_PTR_TO_INT32(PR_GetThreadPrivate(gActivityTLS)) ==
 0', file mozilla/xpcom/base/nsTraceRefcntImpl.cpp, line 971
###!!! ASSERTION: XPCOM objects created/destroyed from static ctor/dtor: 'gActivityTLS != BAD_TLS_INDEX && NS_PTR_TO_INT32(PR_GetThreadPrivate(gActivityTLS)) ==
 0', file mozilla/xpcom/base/nsTraceRefcntImpl.cpp, line 1025
###!!! ASSERTION: XPCOM objects created/destroyed from static ctor/dtor: 'gActivityTLS != BAD_TLS_INDEX && NS_PTR_TO_INT32(PR_GetThreadPrivate(gActivityTLS)) ==
 0', file mozilla/xpcom/base/nsTraceRefcntImpl.cpp, line 1025
###!!! ASSERTION: XPCOM objects created/destroyed from static ctor/dtor: 'gActivityTLS != BAD_TLS_INDEX && NS_PTR_TO_INT32(PR_GetThreadPrivate(gActivityTLS)) ==
 0', file mozilla/xpcom/base/nsTraceRefcntImpl.cpp, line 971
###!!! ASSERTION: XPCOM objects created/destroyed from static ctor/dtor: 'gActivityTLS != BAD_TLS_INDEX && NS_PTR_TO_INT32(PR_GetThreadPrivate(gActivityTLS)) ==
 0', file mozilla/xpcom/base/nsTraceRefcntImpl.cpp, line 971
###!!! ASSERTION: XPCOM objects created/destroyed from static ctor/dtor: 'gActivityTLS != BAD_TLS_INDEX && NS_PTR_TO_INT32(PR_GetThreadPrivate(gActivityTLS)) ==
 0', file mozilla/xpcom/base/nsTraceRefcntImpl.cpp, line 1025
###!!! ASSERTION: XPCOM objects created/destroyed from static ctor/dtor: 'gActivityTLS != BAD_TLS_INDEX && NS_PTR_TO_INT32(PR_GetThreadPrivate(gActivityTLS)) ==
 0', file mozilla/xpcom/base/nsTraceRefcntImpl.cpp, line 971
###!!! ASSERTION: XPCOM objects created/destroyed from static ctor/dtor: 'gActivityTLS != BAD_TLS_INDEX && NS_PTR_TO_INT32(PR_GetThreadPrivate(gActivityTLS)) ==
 0', file mozilla/xpcom/base/nsTraceRefcntImpl.cpp, line 971
###!!! ASSERTION: XPCOM objects created/destroyed from static ctor/dtor: 'gActivityTLS != BAD_TLS_INDEX && NS_PTR_TO_INT32(PR_GetThreadPrivate(gActivityTLS)) ==
 0', file mozilla/xpcom/base/nsTraceRefcntImpl.cpp, line 1025
###!!! ASSERTION: XPCOM objects created/destroyed from static ctor/dtor: 'gActivityTLS != BAD_TLS_INDEX && NS_PTR_TO_INT32(PR_GetThreadPrivate(gActivityTLS)) ==
 0', file mozilla/xpcom/base/nsTraceRefcntImpl.cpp, line 971
###!!! ASSERTION: XPCOM objects created/destroyed from static ctor/dtor: 'gActivityTLS != BAD_TLS_INDEX && NS_PTR_TO_INT32(PR_GetThreadPrivate(gActivityTLS)) ==
 0', file mozilla/xpcom/base/nsTraceRefcntImpl.cpp, line 1025
###!!! ASSERTION: XPCOM objects created/destroyed from static ctor/dtor: 'gActivityTLS != BAD_TLS_INDEX && NS_PTR_TO_INT32(PR_GetThreadPrivate(gActivityTLS)) ==
 0', file mozilla/xpcom/base/nsTraceRefcntImpl.cpp, line 971
###!!! ASSERTION: XPCOM objects created/destroyed from static ctor/dtor: 'gActivityTLS != BAD_TLS_INDEX && NS_PTR_TO_INT32(PR_GetThreadPrivate(gActivityTLS)) ==
 0', file mozilla/xpcom/base/nsTraceRefcntImpl.cpp, line 1025
###!!! ASSERTION: XPCOM objects created/destroyed from static ctor/dtor: 'gActivityTLS != BAD_TLS_INDEX && NS_PTR_TO_INT32(PR_GetThreadPrivate(gActivityTLS)) ==
 0', file mozilla/xpcom/base/nsTraceRefcntImpl.cpp, line 971
###!!! ASSERTION: XPCOM objects created/destroyed from static ctor/dtor: 'gActivityTLS != BAD_TLS_INDEX && NS_PTR_TO_INT32(PR_GetThreadPrivate(gActivityTLS)) ==
 0', file mozilla/xpcom/base/nsTraceRefcntImpl.cpp, line 971
###!!! ASSERTION: XPCOM objects created/destroyed from static ctor/dtor: 'gActivityTLS != BAD_TLS_INDEX && NS_PTR_TO_INT32(PR_GetThreadPrivate(gActivityTLS)) ==
 0', file mozilla/xpcom/base/nsTraceRefcntImpl.cpp, line 1025
###!!! ASSERTION: XPCOM objects created/destroyed from static ctor/dtor: 'gActivityTLS != BAD_TLS_INDEX && NS_PTR_TO_INT32(PR_GetThreadPrivate(gActivityTLS)) ==
 0', file mozilla/xpcom/base/nsTraceRefcntImpl.cpp, line 971
###!!! ASSERTION: XPCOM objects created/destroyed from static ctor/dtor: 'gActivityTLS != BAD_TLS_INDEX && NS_PTR_TO_INT32(PR_GetThreadPrivate(gActivityTLS)) ==
 0', file mozilla/xpcom/base/nsTraceRefcntImpl.cpp, line 971
###!!! ASSERTION: XPCOM objects created/destroyed from static ctor/dtor: 'gActivityTLS != BAD_TLS_INDEX && NS_PTR_TO_INT32(PR_GetThreadPrivate(gActivityTLS)) ==
 0', file mozilla/xpcom/base/nsTraceRefcntImpl.cpp, line 1025
###!!! ASSERTION: XPCOM objects created/destroyed from static ctor/dtor: 'gActivityTLS != BAD_TLS_INDEX && NS_PTR_TO_INT32(PR_GetThreadPrivate(gActivityTLS)) ==
 0', file mozilla/xpcom/base/nsTraceRefcntImpl.cpp, line 1025
###!!! ASSERTION: XPCOM objects created/destroyed from static ctor/dtor: 'gActivityTLS != BAD_TLS_INDEX && NS_PTR_TO_INT32(PR_GetThreadPrivate(gActivityTLS)) ==
 0', file mozilla/xpcom/base/nsTraceRefcntImpl.cpp, line 971
###!!! ASSERTION: XPCOM objects created/destroyed from static ctor/dtor: 'gActivityTLS != BAD_TLS_INDEX && NS_PTR_TO_INT32(PR_GetThreadPrivate(gActivityTLS)) ==
 0', file mozilla/xpcom/base/nsTraceRefcntImpl.cpp, line 971
###!!! ASSERTION: XPCOM objects created/destroyed from static ctor/dtor: 'gActivityTLS != BAD_TLS_INDEX && NS_PTR_TO_INT32(PR_GetThreadPrivate(gActivityTLS)) ==
 0', file mozilla/xpcom/base/nsTraceRefcntImpl.cpp, line 1025
###!!! ASSERTION: XPCOM objects created/destroyed from static ctor/dtor: 'gActivityTLS != BAD_TLS_INDEX && NS_PTR_TO_INT32(PR_GetThreadPrivate(gActivityTLS)) ==
 0', file mozilla/xpcom/base/nsTraceRefcntImpl.cpp, line 971
###!!! ASSERTION: XPCOM objects created/destroyed from static ctor/dtor: 'gActivityTLS != BAD_TLS_INDEX && NS_PTR_TO_INT32(PR_GetThreadPrivate(gActivityTLS)) ==
 0', file mozilla/xpcom/base/nsTraceRefcntImpl.cpp, line 1025
###!!! ASSERTION: XPCOM objects created/destroyed from static ctor/dtor: 'gActivityTLS != BAD_TLS_INDEX && NS_PTR_TO_INT32(PR_GetThreadPrivate(gActivityTLS)) ==
 0', file mozilla/xpcom/base/nsTraceRefcntImpl.cpp, line 971
###!!! ASSERTION: XPCOM objects created/destroyed from static ctor/dtor: 'gActivityTLS != BAD_TLS_INDEX && NS_PTR_TO_INT32(PR_GetThreadPrivate(gActivityTLS)) ==
 0', file mozilla/xpcom/base/nsTraceRefcntImpl.cpp, line 1025
###!!! ASSERTION: XPCOM objects created/destroyed from static ctor/dtor: 'gActivityTLS != BAD_TLS_INDEX && NS_PTR_TO_INT32(PR_GetThreadPrivate(gActivityTLS)) ==
 0', file mozilla/xpcom/base/nsTraceRefcntImpl.cpp, line 1025
###!!! ASSERTION: XPCOM objects created/destroyed from static ctor/dtor: 'gActivityTLS != BAD_TLS_INDEX && NS_PTR_TO_INT32(PR_GetThreadPrivate(gActivityTLS)) ==
 0', file mozilla/xpcom/base/nsTraceRefcntImpl.cpp, line 971
###!!! ASSERTION: XPCOM objects created/destroyed from static ctor/dtor: 'gActivityTLS != BAD_TLS_INDEX && NS_PTR_TO_INT32(PR_GetThreadPrivate(gActivityTLS)) ==
 0', file mozilla/xpcom/base/nsTraceRefcntImpl.cpp, line 971
###!!! ASSERTION: XPCOM objects created/destroyed from static ctor/dtor: 'gActivityTLS != BAD_TLS_INDEX && NS_PTR_TO_INT32(PR_GetThreadPrivate(gActivityTLS)) ==
 0', file mozilla/xpcom/base/nsTraceRefcntImpl.cpp, line 971
###!!! ASSERTION: XPCOM objects created/destroyed from static ctor/dtor: 'gActivityTLS != BAD_TLS_INDEX && NS_PTR_TO_INT32(PR_GetThreadPrivate(gActivityTLS)) ==
 0', file mozilla/xpcom/base/nsTraceRefcntImpl.cpp, line 1025
###!!! ASSERTION: XPCOM objects created/destroyed from static ctor/dtor: 'gActivityTLS != BAD_TLS_INDEX && NS_PTR_TO_INT32(PR_GetThreadPrivate(gActivityTLS)) ==
 0', file mozilla/xpcom/base/nsTraceRefcntImpl.cpp, line 1025
###!!! ASSERTION: XPCOM objects created/destroyed from static ctor/dtor: 'gActivityTLS != BAD_TLS_INDEX && NS_PTR_TO_INT32(PR_GetThreadPrivate(gActivityTLS)) ==
 0', file mozilla/xpcom/base/nsTraceRefcntImpl.cpp, line 971
###!!! ASSERTION: XPCOM objects created/destroyed from static ctor/dtor: 'gActivityTLS != BAD_TLS_INDEX && NS_PTR_TO_INT32(PR_GetThreadPrivate(gActivityTLS)) ==
 0', file mozilla/xpcom/base/nsTraceRefcntImpl.cpp, line 971
###!!! ASSERTION: XPCOM objects created/destroyed from static ctor/dtor: 'gActivityTLS != BAD_TLS_INDEX && NS_PTR_TO_INT32(PR_GetThreadPrivate(gActivityTLS)) ==
 0', file mozilla/xpcom/base/nsTraceRefcntImpl.cpp, line 1025
###!!! ASSERTION: XPCOM objects created/destroyed from static ctor/dtor: 'gActivityTLS != BAD_TLS_INDEX && NS_PTR_TO_INT32(PR_GetThreadPrivate(gActivityTLS)) ==
 0', file mozilla/xpcom/base/nsTraceRefcntImpl.cpp, line 971
###!!! ASSERTION: XPCOM objects created/destroyed from static ctor/dtor: 'gActivityTLS != BAD_TLS_INDEX && NS_PTR_TO_INT32(PR_GetThreadPrivate(gActivityTLS)) ==
 0', file mozilla/xpcom/base/nsTraceRefcntImpl.cpp, line 1025
###!!! ASSERTION: XPCOM objects created/destroyed from static ctor/dtor: 'gActivityTLS != BAD_TLS_INDEX && NS_PTR_TO_INT32(PR_GetThreadPrivate(gActivityTLS)) ==
 0', file mozilla/xpcom/base/nsTraceRefcntImpl.cpp, line 971
###!!! ASSERTION: XPCOM objects created/destroyed from static ctor/dtor: 'gActivityTLS != BAD_TLS_INDEX && NS_PTR_TO_INT32(PR_GetThreadPrivate(gActivityTLS)) ==
 0', file mozilla/xpcom/base/nsTraceRefcntImpl.cpp, line 971
###!!! ASSERTION: XPCOM objects created/destroyed from static ctor/dtor: 'gActivityTLS != BAD_TLS_INDEX && NS_PTR_TO_INT32(PR_GetThreadPrivate(gActivityTLS)) ==
 0', file mozilla/xpcom/base/nsTraceRefcntImpl.cpp, line 1025
###!!! ASSERTION: XPCOM objects created/destroyed from static ctor/dtor: 'gActivityTLS != BAD_TLS_INDEX && NS_PTR_TO_INT32(PR_GetThreadPrivate(gActivityTLS)) ==
 0', file mozilla/xpcom/base/nsTraceRefcntImpl.cpp, line 971
###!!! ASSERTION: XPCOM objects created/destroyed from static ctor/dtor: 'gActivityTLS != BAD_TLS_INDEX && NS_PTR_TO_INT32(PR_GetThreadPrivate(gActivityTLS)) ==
 0', file mozilla/xpcom/base/nsTraceRefcntImpl.cpp, line 971
###!!! ASSERTION: XPCOM objects created/destroyed from static ctor/dtor: 'gActivityTLS != BAD_TLS_INDEX && NS_PTR_TO_INT32(PR_GetThreadPrivate(gActivityTLS)) ==
 0', file mozilla/xpcom/base/nsTraceRefcntImpl.cpp, line 1025
###!!! ASSERTION: XPCOM objects created/destroyed from static ctor/dtor: 'gActivityTLS != BAD_TLS_INDEX && NS_PTR_TO_INT32(PR_GetThreadPrivate(gActivityTLS)) ==
 0', file mozilla/xpcom/base/nsTraceRefcntImpl.cpp, line 971
###!!! ASSERTION: XPCOM objects created/destroyed from static ctor/dtor: 'gActivityTLS != BAD_TLS_INDEX && NS_PTR_TO_INT32(PR_GetThreadPrivate(gActivityTLS)) ==
 0', file mozilla/xpcom/base/nsTraceRefcntImpl.cpp, line 1025
###!!! ASSERTION: XPCOM objects created/destroyed from static ctor/dtor: 'gActivityTLS != BAD_TLS_INDEX && NS_PTR_TO_INT32(PR_GetThreadPrivate(gActivityTLS)) ==
 0', file mozilla/xpcom/base/nsTraceRefcntImpl.cpp, line 971
###!!! ASSERTION: XPCOM objects created/destroyed from static ctor/dtor: 'gActivityTLS != BAD_TLS_INDEX && NS_PTR_TO_INT32(PR_GetThreadPrivate(gActivityTLS)) ==
 0', file mozilla/xpcom/base/nsTraceRefcntImpl.cpp, line 1025
###!!! ASSERTION: XPCOM objects created/destroyed from static ctor/dtor: 'gActivityTLS != BAD_TLS_INDEX && NS_PTR_TO_INT32(PR_GetThreadPrivate(gActivityTLS)) ==
 0', file mozilla/xpcom/base/nsTraceRefcntImpl.cpp, line 971
###!!! ASSERTION: XPCOM objects created/destroyed from static ctor/dtor: 'gActivityTLS != BAD_TLS_INDEX && NS_PTR_TO_INT32(PR_GetThreadPrivate(gActivityTLS)) ==
 0', file mozilla/xpcom/base/nsTraceRefcntImpl.cpp, line 971
###!!! ASSERTION: XPCOM objects created/destroyed from static ctor/dtor: 'gActivityTLS != BAD_TLS_INDEX && NS_PTR_TO_INT32(PR_GetThreadPrivate(gActivityTLS)) ==
 0', file mozilla/xpcom/base/nsTraceRefcntImpl.cpp, line 1025
###!!! ASSERTION: XPCOM objects created/destroyed from static ctor/dtor: 'gActivityTLS != BAD_TLS_INDEX && NS_PTR_TO_INT32(PR_GetThreadPrivate(gActivityTLS)) ==
 0', file mozilla/xpcom/base/nsTraceRefcntImpl.cpp, line 971
###!!! ASSERTION: XPCOM objects created/destroyed from static ctor/dtor: 'gActivityTLS != BAD_TLS_INDEX && NS_PTR_TO_INT32(PR_GetThreadPrivate(gActivityTLS)) ==
 0', file mozilla/xpcom/base/nsTraceRefcntImpl.cpp, line 1025
###!!! ASSERTION: XPCOM objects created/destroyed from static ctor/dtor: 'gActivityTLS != BAD_TLS_INDEX && NS_PTR_TO_INT32(PR_GetThreadPrivate(gActivityTLS)) ==
 0', file mozilla/xpcom/base/nsTraceRefcntImpl.cpp, line 971
###!!! ASSERTION: XPCOM objects created/destroyed from static ctor/dtor: 'gActivityTLS != BAD_TLS_INDEX && NS_PTR_TO_INT32(PR_GetThreadPrivate(gActivityTLS)) ==
 0', file mozilla/xpcom/base/nsTraceRefcntImpl.cpp, line 1025
###!!! ASSERTION: XPCOM objects created/destroyed from static ctor/dtor: 'gActivityTLS != BAD_TLS_INDEX && NS_PTR_TO_INT32(PR_GetThreadPrivate(gActivityTLS)) ==
 0', file mozilla/xpcom/base/nsTraceRefcntImpl.cpp, line 1025
###!!! ASSERTION: XPCOM objects created/destroyed from static ctor/dtor: 'gActivityTLS != BAD_TLS_INDEX && NS_PTR_TO_INT32(PR_GetThreadPrivate(gActivityTLS)) ==
 0', file mozilla/xpcom/base/nsTraceRefcntImpl.cpp, line 971
###!!! ASSERTION: XPCOM objects created/destroyed from static ctor/dtor: 'gActivityTLS != BAD_TLS_INDEX && NS_PTR_TO_INT32(PR_GetThreadPrivate(gActivityTLS)) ==
 0', file mozilla/xpcom/base/nsTraceRefcntImpl.cpp, line 971
###!!! ASSERTION: XPCOM objects created/destroyed from static ctor/dtor: 'gActivityTLS != BAD_TLS_INDEX && NS_PTR_TO_INT32(PR_GetThreadPrivate(gActivityTLS)) ==
 0', file mozilla/xpcom/base/nsTraceRefcntImpl.cpp, line 971
###!!! ASSERTION: XPCOM objects created/destroyed from static ctor/dtor: 'gActivityTLS != BAD_TLS_INDEX && NS_PTR_TO_INT32(PR_GetThreadPrivate(gActivityTLS)) ==
 0', file mozilla/xpcom/base/nsTraceRefcntImpl.cpp, line 1025
###!!! ASSERTION: XPCOM objects created/destroyed from static ctor/dtor: 'gActivityTLS != BAD_TLS_INDEX && NS_PTR_TO_INT32(PR_GetThreadPrivate(gActivityTLS)) ==
 0', file mozilla/xpcom/base/nsTraceRefcntImpl.cpp, line 1025
###!!! ASSERTION: XPCOM objects created/destroyed from static ctor/dtor: 'gActivityTLS != BAD_TLS_INDEX && NS_PTR_TO_INT32(PR_GetThreadPrivate(gActivityTLS)) ==
 0', file mozilla/xpcom/base/nsTraceRefcntImpl.cpp, line 971
###!!! ASSERTION: XPCOM objects created/destroyed from static ctor/dtor: 'gActivityTLS != BAD_TLS_INDEX && NS_PTR_TO_INT32(PR_GetThreadPrivate(gActivityTLS)) ==
 0', file mozilla/xpcom/base/nsTraceRefcntImpl.cpp, line 971
###!!! ASSERTION: XPCOM objects created/destroyed from static ctor/dtor: 'gActivityTLS != BAD_TLS_INDEX && NS_PTR_TO_INT32(PR_GetThreadPrivate(gActivityTLS)) ==
 0', file mozilla/xpcom/base/nsTraceRefcntImpl.cpp, line 1025
###!!! ASSERTION: XPCOM objects created/destroyed from static ctor/dtor: 'gActivityTLS != BAD_TLS_INDEX && NS_PTR_TO_INT32(PR_GetThreadPrivate(gActivityTLS)) ==
 0', file mozilla/xpcom/base/nsTraceRefcntImpl.cpp, line 971
WARNING: NS_ENSURE_TRUE(compMgr) failed: file mozilla/dbg-firefox-i686-pc-mingw32/xpcom/build/nsComponentManagerUtils.cpp, line 90
###!!! ASSERTION: You can't dereference a NULL nsCOMPtr with operator->().: 'mRawPtr != 0', file mozilla\dbg-firefox-i686-pc-mingw32\d
ist\include\xpcom\nsCOMPtr.h, line 847

04 xpcom_core!Break(char * aMsg = 0x0012f2a4 "###!!! ASSERTION: You can't dereference a NULL nsCOMPtr with operator->().: 'mRawPtr != 0', file dbg-firefox-i686-pc-mingw32\dist\include\xpcom\nsCOMPtr.h, line 847")+0x1a5
05 xpcom_core!NS_DebugBreak_P(unsigned int aSeverity = 1, char * aStr = 0x0149097c "You can't dereference a NULL nsCOMPtr with operator->().", char * aExpr = 0x014909c0 "mRawPtr != 0", char * aFile = 0x014909d0 "dbg-firefox-i686-pc-mingw32\dist\include\xpcom\nsCOMPtr.h", int aLine = 0x34f)+0x27d
06 jsd3250!nsCOMPtr<jsdIDebuggerService>::operator->(void)+0x2b
07 jsd3250!jsdASObserver::Observe(class nsISupports * aSubject = 0x00000000, char * aTopic = 0x11523d14 "start", wchar_t * aData = 0x11513d3c "")+0x2c
08 xul!NS_CreateServicesFromCategory(char * category = 0x11523d1c "xpcom-autoregistration", class nsISupports * origin = 0x00000000, char * observerTopic = 0x11523d14 "start")+0x386
09 xul!nsComponentManagerImpl::AutoRegister(class nsIFile * aSpec = 0x00000000)+0x6d
0a xul!ScopedXPCOMStartup::DoAutoreg(void)+0x6f
0b xul!ShowProfileManager(class nsIToolkitProfileService * aProfileSvc = 0x00eafed0, class nsINativeAppSupport * aNative = 0x00ead710)+0x92
0c xul!SelectProfile(class nsIProfileLock ** aResult = 0x0012fec4, class nsINativeAppSupport * aNative = 0x00ead710, int * aStartOffline = 0x0012fec8)+0x9fa
0d xul!XRE_main(int argc = 4, char ** argv = 0x00eabff8, struct nsXREAppData * aAppData = 0x004037e0)+0xbb6
0e firefox!main(int argc = 4, char ** argv = 0x00eabff8)+0x16
0f firefox!__tmainCRTStartup(void)+0x1a6
10 firefox!mainCRTStartup(void)+0xd
11 kernel32!BaseProcessStart+0x23
Assignee: rginda → timeless
Status: NEW → ASSIGNED
Attachment #269807 - Flags: superreview?(dveditz)
Attachment #269807 - Flags: review?(dveditz)
Comment on attachment 269807 [details] [diff] [review]
check for service failure

>-    nsCOMPtr<nsIXPConnect> xpc = do_GetService(nsIXPConnect::GetCID());
>-    if (!xpc) return NS_ERROR_FAILURE;
>+    nsCOMPtr<nsIXPConnect> xpc = do_GetService(nsIXPConnect::GetCID(), &rv);
>+    if (NS_FAILED(rv)) return NS_ERROR_FAILURE;

If you're changing this to get the error code you should return it,
otherwise you might as well leave it just a null check (do_GetService
is guaranteed to null-out the object on failure).

>+        stack(do_GetService("@mozilla.org/js/xpc/ContextStack;1", &rv));
>+    if (NS_FAILED(rv))
>+        return rv;

If you're bailing here the stack null-check a couple lines down is redundant.

sr=dveditz (not a jsd peer for r=, but I guess you can delegate to me)
Attachment #269807 - Flags: superreview?(dveditz)
Attachment #269807 - Flags: superreview+
Attachment #269807 - Flags: review?(dveditz)
Attachment #269807 - Flags: review+
Comment on attachment 269807 [details] [diff] [review]
check for service failure

mozilla/js/jsd/jsd_xpc.cpp 	1.82
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Blocks: 387564
No longer blocks: 387564
Crash Signature: [@ jsdASObserver::Observe]
Product: Other Applications → Other Applications Graveyard
You need to log in before you can comment on or make changes to this bug.