Closed Bug 578064 Opened 14 years ago Closed 14 years ago

jsctypes valgrind asserts - Invalid write of size 8 - ffi_call_unix64

Categories

(Core :: js-ctypes, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 564739

People

(Reporter: dougt, Unassigned)

Details

saw a few of these while looking at another bug. Not sure if they are noise or actually something we need to fix:


==12493== Invalid write of size 8
==12493==    at 0xB24C9C8: ffi_call_unix64 (unix64.S:139)
==12493==    by 0xB24C6BD: ffi_call (ffi64.c:484)
==12493==    by 0xB232794: js::ctypes::FunctionType::Call(JSContext*, JSObject*, unsigned int, long*, long*) (CTypes.cpp:4915)
==12493==    by 0xB109DC9: js_Call (jsobj.cpp:5645)
==12493==    by 0xB0E79E8: js_Invoke (jsinterp.cpp:654)
==12493==    by 0xB0D43F0: js_Interpret (jsops.cpp:2158)
==12493==    by 0xB0E7A7C: js_Invoke (jsinterp.cpp:664)
==12493==    by 0x71245DA: nsXPCWrappedJSClass::CallMethod(nsXPCWrappedJS*, unsigned short, XPTMethodDescriptor const*, nsXPTCMiniVariant*) (xpcwrappedjsclass.cpp:1689)
==12493==    by 0x711ACC0: nsXPCWrappedJS::CallMethod(unsigned short, XPTMethodDescriptor const*, nsXPTCMiniVariant*) (xpcwrappedjs.cpp:570)
==12493==    by 0x788D33E: PrepareAndDispatch (xptcstubs_x86_64_linux.cpp:153)
==12493==    by 0x788D3D2: SharedStub (xptcstubs_x86_64_linux.cpp:159)
==12493==    by 0x788CE5E: NS_InvokeByIndex_P (xptcinvoke_x86_64_unix.cpp:208)
==12493==  Address 0x11f5e740 is 0 bytes inside a block of size 4 alloc'd
==12493==    at 0x4C28939: operator new[](unsigned long) (vg_replace_malloc.c:305)
==12493==    by 0xB23EF70: js::ctypes::AutoValue::SizeToType(JSContext*, JSObject*) (CTypes.cpp:4429)
==12493==    by 0xB2326FA: js::ctypes::FunctionType::Call(JSContext*, JSObject*, unsigned int, long*, long*) (CTypes.cpp:4902)
==12493==    by 0xB109DC9: js_Call (jsobj.cpp:5645)
==12493==    by 0xB0E79E8: js_Invoke (jsinterp.cpp:654)
==12493==    by 0xB0D43F0: js_Interpret (jsops.cpp:2158)
==12493==    by 0xB0E7A7C: js_Invoke (jsinterp.cpp:664)
==12493==    by 0x71245DA: nsXPCWrappedJSClass::CallMethod(nsXPCWrappedJS*, unsigned short, XPTMethodDescriptor const*, nsXPTCMiniVariant*) (xpcwrappedjsclass.cpp:1689)
==12493==    by 0x711ACC0: nsXPCWrappedJS::CallMethod(unsigned short, XPTMethodDescriptor const*, nsXPTCMiniVariant*) (xpcwrappedjs.cpp:570)
==12493==    by 0x788D33E: PrepareAndDispatch (xptcstubs_x86_64_linux.cpp:153)
==12493==    by 0x788D3D2: SharedStub (xptcstubs_x86_64_linux.cpp:159)
==12493==    by 0x788CE5E: NS_InvokeByIndex_P (xptcinvoke_x86_64_unix.cpp:208)
==12493==
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.