Normalize is breaking xptiInterfaceInfoManager.cpp when xulrunner symlinked (scratchbox) on second run

RESOLVED DUPLICATE of bug 551152

Status

()

defect
RESOLVED DUPLICATE of bug 551152
10 years ago
9 years ago

People

(Reporter: romaxa, Unassigned)

Tracking

({regression})

1.9.2 Branch
x86
Linux
Points:
---
Dependency tree / graph

Firefox Tracking Flags

(Not tracked)

Details

Reporter

Description

10 years ago
Mozilla-central - revision 51bafb458d68
Use the same path comparison behavior for nsIFile::Equals on all platforms. b=491245 sr=bsmedberg 

If normalize enabled
  parent->Normalize();
  current->Normalize();

First startup initializing profile directory, XPCOM started correctly,
But second XPCOM startup fails with message:
*****************************************
###!!! ASSERTION: This is not supposed to fail!: 'Error', file mozilla/js/src/xpconnect/src/nsXPConnect.cpp, line 1008
###!!! ASSERTION: Failed to initialize nsScriptSecurityManager: 'NS_SUCCEEDED(rv)', file mozilla/caps/src/nsScriptSecurityManager.cpp, line 3340
WARNING: Cannot create startup observer : service,@mozilla.org/scriptsecuritymanager;1: file mozilla/embedding/components/appstartup/src/nsAppStartupNotifier.cpp, line 113
###!!! ASSERTION: This is not supposed to fail!: 'Error', file mozilla/js/src/xpconnect/src/nsXPConnect.cpp, line 1008
###!!! ASSERTION: Failed to initialize nsScriptSecurityManager: 'NS_SUCCEEDED(rv)', file mozilla/caps/src/nsScriptSecurityManager.cpp, line 3340
WARNING: Cannot create startup observer : service,@mozilla.org/updates/update-service;1: file mozilla/embedding/components/appstartup/src/nsAppStartupNotifier.cpp, line 113
###!!! ASSERTION: This is not supposed to fail!: 'Error', file mozilla/js/src/xpconnect/src/nsXPConnect.cpp, line 1008
###!!! ASSERTION: Failed to initialize nsScriptSecurityManager: 'NS_SUCCEEDED(rv)', file mozilla/caps/src/nsScriptSecurityManager.cpp, line 3340
WARNING: Cannot create startup observer : service,@mozilla.org/appshell/trytoclose;1: file mozilla/embedding/components/appstartup/src/nsAppStartupNotifier.cpp, line 113
###!!! ASSERTION: This is not supposed to fail!: 'Error', file mozilla/js/src/xpconnect/src/nsXPConnect.cpp, line 1008
###!!! ASSERTION: Failed to initialize nsScriptSecurityManager: 'NS_SUCCEEDED(rv)', file mozilla/caps/src/nsScriptSecurityManager.cpp, line 3340
###!!! ASSERTION: This is not supposed to fail!: 'Error', file mozilla/js/src/xpconnect/src/nsXPConnect.cpp, line 1008
###!!! ASSERTION: Failed to initialize nsScriptSecurityManager: 'NS_SUCCEEDED(rv)', file mozilla/caps/src/nsScriptSecurityManager.cpp, line 3340
###!!! ASSERTION: This is not supposed to fail!: 'Error', file mozilla/js/src/xpconnect/src/nsXPConnect.cpp, line 1008
###!!! ASSERTION: Failed to initialize nsScriptSecurityManager: 'NS_SUCCEEDED(rv)', file mozilla/caps/src/nsScriptSecurityManager.cpp, line 3340
*****************************************


If normalize disabled, then it works fine.

Comment 1

10 years ago
Could you be more specific? "xulrunner symlinked" means what?
Reporter

Comment 2

10 years ago
Default path:
/usr/lib/xulrunner-1.9.2a2pre
Normalized path:
/targets/fr2007x86/usr/lib/xulrunner-1.9.2a2pre

Comment 3

10 years ago
the xpti code assumes that XPTI files are consistently within the GRE or application directory (at least for the most part): if NS_GRE_DIR is the symlink path instead of the "real" path things are likely to break.
Reporter

Comment 4

10 years ago
Ok, I have tried to normalize mGREDir in 
nsXREDirProvider::Initialize

And it started to work fine.
Duplicate of this bug: 541733
How would this work for extensions? I'm running into a similar issue when I have greasemonkey installed and my profile is symlinked.

Comment 7

10 years ago
bsmedberg: What do we need to do here?

Comment 8

10 years ago
Fix NS_GRE_DIR, probably with whatever patch Oleg used in comment #4.
Reporter

Comment 9

10 years ago
I never used proposal from comment #4, I was just commenting out Normalize calls in xptinfo manager.
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → DUPLICATE
Duplicate of bug: 551152
You need to log in before you can comment on or make changes to this bug.