crash by embedding xulrunner 1.9.1.5/firefox 3.5.5

View: New views
2 Messages — Rating Filter:   Alert me  

crash by embedding xulrunner 1.9.1.5/firefox 3.5.5

by Viktor Tymoshenko-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi all,

it seems that embedding  does not work anymore just after the use of TLS(thread local STORAGE) variables was introduced
in order to make NS_IsMainThread faster.
(see http://hg.mozilla.org/releases/mozilla-1.9.1/log/27d9d4107522/xpcom/threads/nsThreadManager.cpp)

The call of NS_InitXPCOM2 causes "access violation" exception since the use of TLS has limitations.
(http://msdn.microsoft.com/en-us/library/2s9wt68x.aspx)

Is it a BUG or is the behavior expected this way ?!

embedding strategy: Frozen linkage: standalone glue (no DLL dependencies)
System: Windows XP SP3
tested on:
Firefox version: 3.5.5
Xulrunner version: 1.9.1.5

stack trace:

xpcom_core.dll!nsThreadManager::Init()  Line 110 + 0xc bytes C++
xpcom_core.dll!NS_InitXPCOM3_P(nsIServiceManager * * result=0x00000000, nsIFile * binDirectory=0x003aff20,
nsIDirectoryServiceProvider * appFileLocationProvider=0x00000000, const nsStaticModuleInfo *
staticComponents=0x00000000, unsigned int componentCount=0)  Line 554 + 0xc bytes C++
xpcom_core.dll!NS_InitXPCOM2_P(nsIServiceManager * * result=0x00000000, nsIFile * binDirectory=0x003aff20,
nsIDirectoryServiceProvider * appFileLocationProvider=0x00000000)  Line 525 + 0x15 bytes C++


Thanks,

Viktor Tymoshenko
http://www.web2test.com
_______________________________________________
dev-embedding mailing list
dev-embedding@...
https://lists.mozilla.org/listinfo/dev-embedding

Re: crash by embedding xulrunner 1.9.1.5/firefox 3.5.5

by Benjamin Smedberg :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On 11/10/09 8:36 AM, Viktor Tymoshenko wrote:
> Hi all,
>
> it seems that embedding  does not work anymore just after the use of
> TLS(thread local STORAGE) variables was introduced
> in order to make NS_IsMainThread faster.
> (see
> http://hg.mozilla.org/releases/mozilla-1.9.1/log/27d9d4107522/xpcom/threads/nsThreadManager.cpp)

bug 526586

--BDS
_______________________________________________
dev-embedding mailing list
dev-embedding@...
https://lists.mozilla.org/listinfo/dev-embedding