Closed Bug 578812 Opened 14 years ago Closed 14 years ago

dehydra: JS assertion failure: non-global object at end of scope chain, at ../jsobj.cpp:6303

Categories

(Developer Infrastructure :: Source Code Analysis, defect)

x86_64
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: ehren.m, Unassigned)

References

Details

This is introduced with d770ef6237ea from Bug 570169. Oddly enough bug 576714 reports the same error and claims it was fixed in tracemonkey. I've just built dehydra using tracemonkey and get no difference from the mozilla-central build.

stack trace:

/home/ehren/gcc4.5/dist-4_5-branch/bin/g++ -Wp,-C -save-temps -DTREEHYDRA_CONVERT_JS -fpermissive -fshow-column -Wall -fPIC -DXP_UNIX -DIN_GCC -DPLUGIN_NO_POISON -DHAVE_CONFIG_H  -I/home/ehren/gcc4.5/dist-4_5-bra
nch/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/plugin/include -I/home/ehren/dehydra-tests/TraceMonkey/include/js/ -I/home/ehren/dehydra-tests/TraceMonkey/lib -I//home/ehren/local/include/js/   -fplugin=./gcc_dehydra.so -fplugin-arg-gcc_deh
ydra-script=convert_tree.js gcc_cp_headers.h -o /dev/null

#0  0x00000034c4e326c5 in raise () from /lib64/libc.so.6
#1  0x00007ffff1b3b04c in JS_Assert (s=0x7ffff1be4f08 "non-global object at end of scope chain", file=0x7ffff1be3b63 "../jsobj.cpp", ln=6307) at ../jsutil.cpp:84
#2  0x00007ffff1ab3189 in JSObject::getCompartment (this=0x7ffff2080160, cx=0x1a79750) at ../jsobj.cpp:6307
#3  0x00007ffff1a03c21 in js::CompartmentChecker::check (this=0x7fffffffd7a0, obj=0x7ffff2080160) at ../jscntxtinlines.h:239
#4  0x00007ffff1a03c79 in js::CompartmentChecker::check (this=0x7fffffffd7a0, v=140737253998944) at ../jscntxtinlines.h:244
#5  0x00007ffff1a03cba in js::CompartmentChecker::check (this=0x7fffffffd7a0, arr=...) at ../jscntxtinlines.h:249
#6  0x00007ffff1a044d8 in js::assertSameCompartment<ValueArray> (cx=0x1a79750, t1=...) at ../jscntxtinlines.h:283
#7  0x00007ffff19e9d38 in JS_ConvertArgumentsVA(JSContext *, uintN, jsval *, const char *, typedef __va_list_tag __va_list_tag *) (cx=0x1a79750, argc=1, argv=0x7fffffffda68, format=0x7ffff1e7ba37 "s/o", ap=0x7fffffffd8b0)
    at ../jsapi.cpp:188
#8  0x00007ffff19e9cb5 in JS_ConvertArguments (cx=0x1a79750, argc=1, argv=0x7fffffffda68, format=0x7ffff1e7ba37 "s/o") at ../jsapi.cpp:171
#9  0x00007ffff1e6eb39 in Include (cx=0x1a79750, obj=0x7ffff1202000, argc=1, argv=0x7fffffffda68, rval=0x7fffffffda60) at dehydra_builtins.c:453
#10 0x00007ffff1e720c7 in dehydra_includeScript (this=0x7ffff2080160, script=0x7ffff1e7cc09 "dehydra.js") at dehydra.c:207
#11 0x00007ffff1e72049 in dehydra_startup (this=0x7ffff2080160) at dehydra.c:199
#12 0x00007ffff1e6d0cc in gcc_plugin_init (file=0x7fffffffe29b "./gcc_dehydra.so", argv=0x1a25860, argc=1, pass=0x7fffffffdb38, version_string=0x19475a0 "4.5.1") at dehydra_plugin.c:264
#13 0x00007ffff1e6d59c in plugin_init (plugin_info=0x1a094f0, version=0x19475c0) at dehydra_plugin.c:510
#14 0x0000000000b1cd15 in try_init_one_plugin (plugin=0x1a094f0) at ../../gcc-4_5-branch/gcc/plugin.c:577
#15 0x0000000000b1cd68 in init_one_plugin (slot=0x1a25798, info=0x0) at ../../gcc-4_5-branch/gcc/plugin.c:599
#16 0x00000000013001e4 in htab_traverse_noresize (htab=0x1a25710, callback=0xb1cd41 <init_one_plugin>, info=0x0) at ../../gcc-4_5-branch/libiberty/hashtab.c:753
#17 0x0000000000b1cddb in initialize_plugins () at ../../gcc-4_5-branch/gcc/plugin.c:624
#18 0x0000000000c0f272 in toplev_main (argc=27, argv=0x7fffffffdd58) at ../../gcc-4_5-branch/gcc/toplev.c:2449
#19 0x00000000007d2510 in main (argc=27, argv=0x7fffffffdd58) at ../../gcc-4_5-branch/gcc/main.c:35
This was somehow fixed by 9c869e64ee26 (fatvals)
Blocks: fatvals
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Product: Core → Firefox Build System
Product: Firefox Build System → Developer Infrastructure
You need to log in before you can comment on or make changes to this bug.