After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 649499 - native.c: Fix memory lookup in module importer
native.c: Fix memory lookup in module importer
Status: RESOLVED FIXED
Product: gjs
Classification: Bindings
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: gjs-maint
gjs-maint
Depends on:
Blocks:
 
 
Reported: 2011-05-05 19:39 UTC by Colin Walters
Modified: 2011-05-05 20:05 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
native.c: Fix memory lookup in module importer (2.01 KB, patch)
2011-05-05 19:39 UTC, Colin Walters
committed Details | Review

Description Colin Walters 2011-05-05 19:39:31 UTC
==13839== 257 bytes in 69 blocks are definitely lost in loss record 4,712 of 5,648
==13839==    at 0x4006D69: malloc (vg_replace_malloc.c:236)
==13839==    by 0x5191BCA: standard_malloc (gmem.c:88)
==13839==    by 0x519201F: g_malloc (gmem.c:164)
==13839==    by 0x41AD610: gjs_string_get_ascii (jsapi-util-string.c:279)
==13839==    by 0x41ADBDF: ??? (native.c:100)
==13839==    by 0x41ADC37: ??? (native.c:119)
==13839==    by 0x41ADE3E: gjs_is_registered_native_module (native.c:171)
==13839==    by 0x41A96A8: ??? (importer.c:518)
==13839==    by 0x4280F86: CallResolveOp(JSContext*, JSObject*, JSObject*, int, unsigned int, JSObject**, JSProperty**, bool*) (in /src/build/jhbuild/lib/libmozjs185.so.1.0.0)
==13839==    by 0x4289621: js_GetPropertyHelper(JSContext*, JSObject*, int, unsigned int, js::Value*) (in /src/build/jhbuild/lib/libmozjs185.so.1.0.0)
==13839==    by 0x4257CEE: js::Interpret(JSContext*, JSStackFrame*, unsigned int, JSInterpMode) (in /src/build/jhbuild/lib/libmozjs185.so.1.0.0)
==13839==    by 0x426A07F: js::RunScript(JSContext*, JSScript*, JSStackFrame*) (in /src/build/jhbuild/lib/libmozjs185.so.1.0.0)
Comment 1 Colin Walters 2011-05-05 19:39:34 UTC
Created attachment 187316 [details] [review]
native.c: Fix memory lookup in module importer
Comment 2 Colin Walters 2011-05-05 20:05:43 UTC
Attachment 187316 [details] pushed as 56b6e19 - native.c: Fix memory lookup in module importer