Closed Bug 294092 Opened 19 years ago Closed 19 years ago

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

Categories

(Other Applications Graveyard :: Venkman JS Debugger, defect)

x86
Windows XP
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 240521

People

(Reporter: brettconnor+jjo, Assigned: rginda)

Details

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.
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)
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. :)
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.

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