ivnalid character range in regexp crashes browser when step into / over in debugger

RESOLVED DUPLICATE of bug 240521

Status

Other Applications
Venkman JS Debugger
RESOLVED DUPLICATE of bug 240521
13 years ago
13 years ago

People

(Reporter: Brett Connor, Assigned: Robert Ginda)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

13 years ago
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.7.7) Gecko/20050414 Firefox/1.0.3
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.7.7) Gecko/20050414 Firefox/1.0.3

something like
  ...
  var foobar = new RegExp(/[a-zA-Z_-.]/);
  ...
Crashes the entire browser if stepped over in the JS debugger.
If the debugger is not open when this JS is executed then an error appears in
the javascript console but the browser survives (the offending javascript of
course terminates here as it should).


Reproducible: Always

Steps to Reproduce:
1. create a page with this javascript triggered from something (in my case a
form submit)
2. access the page
3. open the javascript debugger
4. put a breakpoint just before / on the offending RegExp line
5. Submit the form.
6. Step over the line.

Actual Results:  
short pause of inactivity; windows "tell uncle bill" dialog; Mozilla talkback
dialog.

Expected Results:  
Reported invalid character sequence error in the debugger. (If the debugger is
not open then the correct error appears in the javascript console.)

I entered the same information in the talkback seeing as the dialog was there
and I'd figured out the sequence of events that reproduces it. Sorry if this
ends up as duplicate bug reports.

Comment 1

13 years ago
Do you have the Talkback IDs? (in the "components" folder of the Mozilla Firefox
install, there should be a talkback executable, run that and it'll list all the
reports you've sent)

Comment 2

13 years ago
Ok, after much fighting with Talkback's server, I think I found it: 5812344. Of
course, the server went down right as I clicked the link to view the report
itself... details when it comes back. :)

Comment 3

13 years ago
http://talkback-public.mozilla.org/talkback/fastfind.jsp?search=2&type=iid&id=5812344

Since you're using the 1.0 branch, could you try in a trunk build?

In fact, this looks like a dup of bug 240521.

Comment 4

13 years ago

*** This bug has been marked as a duplicate of 240521 ***
Status: UNCONFIRMED → RESOLVED
Last Resolved: 13 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.