Seg fault is in
# pwd /home/yao/maverick/root/firefox-3.6.7+build2+nobinonly/build-tree/mozilla/js/src # ./../../dist/bin/js imacro_asm.js ./imacros.jsasm Segmentation fault
Run js with gdb, Program received signal SIGSEGV, Segmentation fault. js_CheckForStringIndex (id=705479548) at jsobj.cpp:3412 3412 jschar ch = *s; (gdb) bt #0 js_CheckForStringIndex (id=705479548) at jsobj.cpp:3412 #1 0x2a044156 in js_DefineNativeProperty (cx=0x2a0d6b80, obj=0x2a0f80c0, id=705479548, value=22, getter=0x2a03fb65 <block_getProperty>, setter=0x2a03fb01 <block_setProperty>, attrs=69, flags=4, shortid=0, propp=0x0, defineHow=0) at jsobj.cpp:3605 #2 0x2a044572 in js_DefineBlockVariable (cx=0x2a0cc37c, obj=0x2a0cc378, id=705523208, index=<value optimized out>) at jsobj.cpp:2667 #3 0x2a053b8c in BindLet (cx=0x2a0d6b80, data=0xbefbd59c, atom=0x2a0cc37c, tc=<value optimized out>) at jsparse.cpp:3067 #4 0x2a0581bc in Variables (cx=0x2a0d6b80, ts=0xbefbd818, tc=0xbefbd6a4, inLetHead=<value optimized out>) at jsparse.cpp:5623 #5 0x2a05898c in Statement (cx=0x2a0d6b80, ts=0xbefbd818, tc=<value optimized out>) at jsparse.cpp:4632 .... .... (gdb) p s $1 = (const jschar *) 0x20000001 (gdb) p *s Cannot access memory at address 0x20000001 (gdb)
Seg fault is in
# pwd maverick/ root/firefox- 3.6.7+build2+ nobinonly/ build-tree/ mozilla/ js/src
/home/yao/
# ./../../dist/bin/js imacro_asm.js ./imacros.jsasm
Segmentation fault
Run js with gdb, ngIndex (id=705479548) at jsobj.cpp:3412 ngIndex (id=705479548) at jsobj.cpp:3412 Property (cx=0x2a0d6b80, obj=0x2a0f80c0, id=705479548, value=22, 0x2a03fb65 <block_ getProperty> , setter=0x2a03fb01 <block_ setProperty> , attrs=69, flags=4, ariable (cx=0x2a0cc37c, obj=0x2a0cc378, id=705523208, <value optimized out>) at jsparse.cpp:5623
Program received signal SIGSEGV, Segmentation fault.
js_CheckForStri
3412 jschar ch = *s;
(gdb) bt
#0 js_CheckForStri
#1 0x2a044156 in js_DefineNative
getter=
shortid=0, propp=0x0, defineHow=0) at jsobj.cpp:3605
#2 0x2a044572 in js_DefineBlockV
index=<value optimized out>) at jsobj.cpp:2667
#3 0x2a053b8c in BindLet (cx=0x2a0d6b80, data=0xbefbd59c, atom=0x2a0cc37c, tc=<value optimized out>)
at jsparse.cpp:3067
#4 0x2a0581bc in Variables (cx=0x2a0d6b80, ts=0xbefbd818, tc=0xbefbd6a4,
inLetHead=
#5 0x2a05898c in Statement (cx=0x2a0d6b80, ts=0xbefbd818, tc=<value optimized out>)
at jsparse.cpp:4632
....
....
(gdb) p s
$1 = (const jschar *) 0x20000001
(gdb) p *s
Cannot access memory at address 0x20000001
(gdb)