Hi,
I come from linux world, and actually I trying to build my XPCOM components on MacOSX.
I have a problems executing regxpcom, it crashes with Bus Error and Segmentation fault:
$ ./run-mozilla.sh ./regxpcom
./run-mozilla.sh: line 451: 26418 Bus error "$prog" ${1+"$@"}
$ ./run-mozilla.sh ./regxpcom -x `pwd`/components -a
./run-mozilla.sh: line 451: 26452 Segmentation fault "$prog" ${1+"$@"}
I've tryed with the following builds of mozilla:
- Official Mozilla binary for MacOSX from mozilla.org (v1.7.6)
- Mozilla build with debug without optimizations (1.7 rc3)
- Firefox build with debug without optimizations (1.0.2)and I've got the same result for all them.
It runs on MacOSX v10.3.8. If I launch mozilla, the automatic registration seems to work.
I've tryed to debug the problem. The fail is in XPCOM initialization, in MacOS calls.
Program received signal EXC_BAD_ACCESS, Could not access memory. 0x901968fc in CFStringGetLength ()
And the stack trace (from debug version):
#17 0x0000336c in main (argc=1, argv=0xbffff014) at regxpcom.cpp:389
#16 0x00002a04 in startup_xpcom() () at regxpcom.cpp:167
#15 0x0000388c in NS_InitXPCOM2 (result=0x0, binDirectory=0x0, appFileLocationProvider=0x402760) at nsXPCOMGlue.cpp:173
#14 0x02b9fba4 in NS_InitXPCOM2 (result=0x0, binDirectory=0x0, appFileLocationProvider=0x402760) at nsXPComInit.cpp:510
#13 0x02bdc0fc in nsDirectoryService::Get(char const*, nsID const&, void**) (this=0x402590, prop=0x2c966d0 "XCurProcD", [EMAIL PROTECTED], result=0xbfffec70) at nsDirectoryService.cpp:657
#12 0x02bdbda4 in FindProviderFile(nsISupports*, void*) (aElement=0x402598, aData=0xbfffebe0) at nsDirectoryService.cpp:617
#11 0x02bdc8a8 in nsDirectoryService::GetFile(char const*, int*, nsIFile**) (this=0x402590, prop=0x2c966d0 "XCurProcD", persistent=0xbfffebe8,
#10 0x02bdb084 in nsDirectoryService::GetCurrentProcessDirectory(nsILocalFile**) (gdb) #9 0x901cc8f8 in _CFBundleCopyExecutableURLInDirectoryWithAllocator ()
#8 0x901c826c in CFBundleGetInfoDictionary ()
#7 0x901be330 in _CFBundleCopyInfoDictionaryInDirectoryWithVersion ()
#6 0x901bcbcc in CFURLCreateWithString ()
#5 0x901b30a4 in _CFURLInitWithString ()
#4 0x901ae228 in _CFURLInit ()
#3 0x901aeacc in CFURLCopyAbsoluteURL ()
#2 0x901c8a54 in _CFURLCopyAbsoluteFileURL ()
#1 0x901b2c54 in _resolveFileSystemPaths ()
#0 0x901968fc in CFStringGetLength ()
-- Saudos Keymon
_______________________________________________ Mozilla-xpcom mailing list [email protected] http://mail.mozilla.org/listinfo/mozilla-xpcom
