Closed
Bug 380704
Opened 17 years ago
Closed 17 years ago
compile error [@nsOfflineCacheDevice::Init]
Categories
(Core :: Networking: Cache, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: evan.yan, Assigned: evan.yan)
References
Details
Attachments
(2 files)
5.54 KB,
patch
|
jst
:
review+
jst
:
superreview+
|
Details | Diff | Splinter Review |
1.47 KB,
patch
|
Biesinger
:
review+
Biesinger
:
superreview+
|
Details | Diff | Splinter Review |
Sun compiler became unhappy after the check in of bug 370195. error message: "nsDiskCacheDeviceSQL.cpp", line 772: Error: A class with a reference member must have a user-defined constructor. "nsDiskCacheDeviceSQL.cpp", line 773: Error: Cannot use {} to initialize struct.
Attachment #264838 -
Flags: review?(jst)
Comment 2•17 years ago
|
||
Comment on attachment 264838 [details] [diff] [review] make Sun compiler happy r+sr=jst
Attachment #264838 -
Flags: superreview+
Attachment #264838 -
Flags: review?(jst)
Attachment #264838 -
Flags: review+
Comment 3•17 years ago
|
||
Checking in netwerk/cache/src/nsDiskCacheDeviceSQL.cpp; /cvsroot/mozilla/netwerk/cache/src/nsDiskCacheDeviceSQL.cpp,v <-- nsDiskCacheDeviceSQL.cpp new revision: 1.8; previous revision: 1.7 done => Marked as Fixed
Comment 4•17 years ago
|
||
Sorry to not include that "Patch by Evan.Yan@Sun.com" in the log.
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Comment 5•17 years ago
|
||
er, does this patch actually work? Not only are you initializing references with local variables, you are also leaving all the mStatement_* variables uninitialized. reopening, please fix the patch.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Comment 6•17 years ago
|
||
(cc'ing jst who reviewed this)
What I did in the patch is just using a explicit constructor to initializing the struct, in order to make Sun compiler happy. I'm not sure why the former code use local variables to initialize references.
Comment 9•17 years ago
|
||
Changing "aStatement" to "&aStatement" should fix it I think
Assignee | ||
Comment 10•17 years ago
|
||
not in office now. will investigate it in tomorrow morning, that is about ten hours later.
Assignee | ||
Comment 11•17 years ago
|
||
(In reply to comment #9) > Changing "aStatement" to "&aStatement" should fix it I think > ah, you must be right. Sorry for my mistake on that.
Comment 12•17 years ago
|
||
yes, indeed. the local variable that I was referring to was the argument to the function, and adding the & should fix it.
Comment 13•17 years ago
|
||
yeah, adding it does fix it.
Attachment #264907 -
Flags: superreview?(jst)
Attachment #264907 -
Flags: review?(jst)
Assignee | ||
Comment 14•17 years ago
|
||
Dave, Thanks a lot for making the patch!
Updated•17 years ago
|
Attachment #264907 -
Flags: superreview?(jst)
Attachment #264907 -
Flags: superreview+
Attachment #264907 -
Flags: review?(jst)
Attachment #264907 -
Flags: review+
Comment 15•17 years ago
|
||
as I mentioned to dave, I'm seeing this too on win32.
I'll go land his patch, since he has a verbal r/sr=biesi
03d91639()
necko.dll!nsCOMPtr<mozIStorageStatement>::assign_assuming_AddRef(mozIStorageStatement * newPtr=0x00000000) Line 569 C++
necko.dll!nsCOMPtr<mozIStorageStatement>::StartAssignment() Line 902 C++
necko.dll!nsGetterAddRefs<mozIStorageStatement>::operator mozIStorageStatement * *() Line 1406 C++
> necko.dll!nsOfflineCacheDevice::Init() Line 794 + 0x35 bytes C++
necko.dll!nsCacheService::CreateOfflineDevice() Line 1097 + 0x13 bytes C++
necko.dll!nsCacheService::SearchCacheDevices(nsCString * key=0x09d69270, int policy=1237620, int * collision=0x03d91630) Line 1448 + 0x8 bytes C++
necko.dll!nsCacheService::ProcessRequest(nsCacheRequest * request=0x09d69270, int calledFromOpenCacheEntry=1, nsICacheEntryDescriptor * * result=0x070403ac) Line 1241 + 0x10 bytes C++
necko.dll!nsCacheService::OpenCacheEntry(nsCacheSession * session=0x03b033a8, const nsACString_internal & key={...}, int accessRequested=1, int blockingMode=0, nsICacheListener * listener=0x00000000, nsICacheEntryDescriptor * * result=0x070403ac) Line 1318 + 0x15 bytes C++
necko.dll!nsCacheSession::OpenCacheEntry(const nsACString_internal & key={...}, int accessRequested=1, int blockingMode=0, nsICacheEntryDescriptor * * result=0x070403ac) Line 106 + 0x1b bytes C++
necko.dll!nsHttpChannel::OpenCacheEntry(int offline=1, int * delayed=0x0012e3f0) Line 1320 + 0x50 bytes C++
necko.dll!nsHttpChannel::Connect(int firstTime=1) Line 286 + 0x10 bytes C++
necko.dll!nsHttpChannel::AsyncOpen(nsIStreamListener * listener=0x0a9c9b60, nsISupports * context=0x00000000) Line 3556 + 0xd bytes C++
xpcom_core.dll!NS_InvokeByIndex_P(nsISupports * that=0x0000001c, unsigned int methodIndex=2, unsigned int paramCount=1238400, nsXPTCVariant * params=0x00d2d4c0) Line 102 C++
xpc3250.dll!XPCWrappedNative::CallMethod(XPCCallContext & ccx={...}, XPCWrappedNative::CallMode mode=28) Line 2245 + 0x1e bytes C++
xpc3250.dll!XPCWrappedNative::CallMethod(XPCCallContext & ccx={...}, XPCWrappedNative::CallMode mode=CALL_METHOD) Line 2245 + 0x1e bytes C++
xpc3250.dll!XPC_WN_CallMethod(JSContext * cx=0x03dfce70, JSObject * obj=0x07273fe0, unsigned int argc=2, long * argv=0x0b1950ec, long * vp=0x0012e828) Line 1467 + 0xe bytes C++
js3250.dll!js_Invoke(JSContext * cx=0x03dfce70, unsigned int argc=2, unsigned int flags=0) Line 1332 + 0x20 bytes C
js3250.dll!js_Interpret(JSContext * cx=0x03dfce70, unsigned char * pc=0x03bc1fe0, long * result=0x0012eee0) Line 4025 + 0xf bytes C
js3250.dll!js_Invoke(JSContext * cx=0x03dfce70, unsigned int argc=0, unsigned int flags=6) Line 1351 + 0x13 bytes C
js3250.dll!fun_apply(JSContext * cx=0x03dfce70, JSObject * obj=0x00e36740, unsigned int argc=0, long * argv=0x0b19500c, long * rval=0x0012efa4) Line 1703 + 0xf bytes C
js3250.dll!js_Invoke(JSContext * cx=0x03dfce70, unsigned int argc=2, unsigned int flags=0) Line 1332 + 0x20 bytes C
js3250.dll!js_Interpret(JSContext * cx=0x03dfce70, unsigned char * pc=0x03bb60b9, long * result=0x0012f65c) Line 4025 + 0xf bytes C
js3250.dll!js_Invoke(JSContext * cx=0x03dfce70, unsigned int argc=1, unsigned int flags=2) Line 1351 + 0x13 bytes C
xpc3250.dll!nsXPCWrappedJSClass::CallMethod(nsXPCWrappedJS * wrapper=0x03bda0d0, unsigned short methodIndex=3, const XPTMethodDescriptor * info=0x03dcfe88, nsXPTCMiniVariant * nativeParams=0x0012f9c4) Line 1419 + 0x14 bytes C++
xpc3250.dll!nsXPCWrappedJS::CallMethod(unsigned short methodIndex=3, const XPTMethodDescriptor * info=0x03dcfe88, nsXPTCMiniVariant * params=0x0012f9c4) Line 566 C++
xpcom_core.dll!PrepareAndDispatch(nsXPTCStubBase * self=0x03beac08, unsigned int methodIndex=3, unsigned int * args=0x0012fa84, unsigned int * stackBytesToPop=0x0012fa74) Line 114 + 0x21 bytes C++
xpcom_core.dll!SharedStub() Line 142 C++
xpcom_core.dll!nsTimerImpl::Fire() Line 387 C++
xpcom_core.dll!nsTimerImpl::Fire() Line 387 C++
xpcom_core.dll!nsTimerEvent::Run() Line 458 C++
xpcom_core.dll!nsThread::ProcessNextEvent(int mayWait=1, int * result=0x0012fb28) Line 483 C++
xpcom_core.dll!NS_ProcessNextEvent_P(nsIThread * thread=0x00bad2e0, int mayWait=1) Line 227 + 0x16 bytes C++
gkwidget.dll!nsBaseAppShell::Run() Line 154 + 0xc bytes C++
tkitcmps.dll!nsAppStartup::Run() Line 171 + 0x1c bytes C++
xul.dll!XRE_main(int argc=2, char * * argv=0x00ba9800, const nsXREAppData * aAppData=0x004036e0) Line 2824 + 0x25 bytes C++
firefox.exe!main(int argc=2, char * * argv=0x00ba9800) Line 65 + 0x13 bytes C++
firefox.exe!__tmainCRTStartup() Line 586 + 0x19 bytes C
firefox.exe!mainCRTStartup() Line 403 C
kernel32.dll!7c816fd7()
[Frames below may be incorrect and/or missing, no symbols loaded for kernel32.dll]
Comment 16•17 years ago
|
||
fix landed, r/sr=biesi (per dcamp) Checking in cache/src/nsDiskCacheDeviceSQL.cpp; /cvsroot/mozilla/netwerk/cache/src/nsDiskCacheDeviceSQL.cpp,v <-- nsDiskCacheD eviceSQL.cpp new revision: 1.9; previous revision: 1.8 done
Status: REOPENED → RESOLVED
Closed: 17 years ago → 17 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•