google-code-export / jslibs

Automatically exported from code.google.com/p/jslibs
0 stars 0 forks source link

error using debugger - An unhandled win32 exception occurred in jshost.exe #97

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. please see additional info below
2.
3.

What is the expected output? What do you see instead?

a tree structure for an array, named honda
received error message above

What version of the product are you using? On what operating system?

R95
Win XpPro service pack 3

Please provide any additional information below.
Error:  An unhandled win32 exception occurred in jshost.exe[3984].

occurs when:

1.  double-click debugger.xul, which opens in FireFox 3.5

2. command prompt:
  jshost debugger.js carArray.js

3. in FireFox debugger window:

  A.  enter honda as expression to watch

  B.  Step until honda is assigned a value in watch window

  C.  click the + next to honda in watch window to expand tree -  error
occurs then

carArray.js:
LoadModule('jsstd');
LoadModule('jsio');
var honda = new Array
( 'Honda',
new Array("Accord", 25000), 
new Array("Insight", 26000), 
new Array("Pilot", 39000), 
new Array("Ridgeline", 27500)); 

var ford = new Array
( 'Ford',
new Array("Focus", 23840), 
new Array("Fusion", 25800), 
new Array("Taurus", 29048), 
new Array("F150", 24000), 
new Array("F250", 29500), 
new Array("F350", 32450));

var toyota = new Array 
( 'Toyota',
new Array("Corolla", 20394), 
new Array("Camry", 27450), 
new Array("Avalon", 34500), 
new Array("Tundra", 28950), 
new Array("Solara", 28900));

var auto = new Array(honda, ford, toyota);

for (var i=0; i<auto.length; i++) {
  Print('\nAuto make ',auto[i][0]);
  for (var j=1; j<auto[i].length; j++) {
    Print('\nmodel: ',auto[i][j][0],' price ',auto[i][j][1]);
  }   
}
var strcars = JSON.stringify(auto);
Print(strcars);

var objcars = JSON.parse(strcars);
Print(objcars); 

Original issue reported on code.google.com by jbscott....@gmail.com on 18 Jul 2009 at 12:57

Attachments:

GoogleCodeExporter commented 9 years ago
The message in stderr panel is:

debugger.js:233: strict warning: reference to undefined property _cookie[name]

hope this is helpful

Original comment by jbscott....@gmail.com on 19 Jul 2009 at 12:07

GoogleCodeExporter commented 9 years ago
I don't know if this error existed before release 3.5 of FF (I upgraded last 
night).

There is an error in command line:
debugger.js:380: strict warning: trailing comma is not legal in ECMA-262 object
initializers

I did remove that comma, and that error disappeared.

There are also error messages for lines: 73,  88,  95,  118,  119,  354, and 
233:

73, 119:  function ProcessRequest does not always return a value

88, 95, 118, 119: anonymous function does not always return a value

233: strict warning: reference to undefined property _cookie[name]

Original comment by jbscott....@gmail.com on 19 Jul 2009 at 12:34

GoogleCodeExporter commented 9 years ago
354: variable lineno redeclares argument:
var lineno = dbg.ToggleBreakpoint(true, filename, lineno);

Original comment by jbscott....@gmail.com on 19 Jul 2009 at 12:39

GoogleCodeExporter commented 9 years ago

Original comment by sou...@gmail.com on 19 Jul 2009 at 10:16

GoogleCodeExporter commented 9 years ago
Thanks for reporting the issue.
The error occurs also when you enter [1,2,3] in the watch ant then click on the 
'+'.

The crash is an Assertion failure: s = 0x101dc1f8 "OBJ_IS_NATIVE(obj)"
located in JS_PropertyIterator() (jsdbgapi.cpp).
I will try to update the JavaScript engine and test again.

Original comment by sou...@gmail.com on 19 Jul 2009 at 10:25

GoogleCodeExporter commented 9 years ago
Update to the latest version of TraceMonkey failed due to a compilation error in
jsscript.cpp (see https://bugzilla.mozilla.org/show_bug.cgi?id=505090)

Original comment by sou...@gmail.com on 19 Jul 2009 at 11:06

GoogleCodeExporter commented 9 years ago
see also the following issue: 
https://bugzilla.mozilla.org/show_bug.cgi?id=505096
(easily workaroundable)

Original comment by sou...@gmail.com on 19 Jul 2009 at 11:41

GoogleCodeExporter commented 9 years ago
C test case:
    JSObject *o = JS_NewArrayObject(cx, 0, NULL);
    JSScopeProperty *jssp;
    jssp = NULL;
    JS_PropertyIterator(o, &jssp);

Original comment by sou...@gmail.com on 24 Jul 2009 at 8:49

GoogleCodeExporter commented 9 years ago
note that mozilla is working on a new Debugger object 
(https://developer.mozilla.org/en/SpiderMonkey/JS_Debugger_API_Reference) that 
will completely replace the jslibs debugger module (jsdebug).

Original comment by sou...@gmail.com on 21 Feb 2012 at 8:37