Keyboard input in Javascript file causes seg fault
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bluefish |
Fix Released
|
High
|
|||
bluefish (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Running Bluefish 2.2.2 on Ubuntu 12.04 64-bit.
To recreate the Bluefish crash:
1. Create new file
2 . Paste in this line:
tagCloud.innerHTML += ' \; <a href="javascrip
3. Save as a Javascript file (choose any file name with '.js' extension). Bluefish applies Javascript colours to the code.
4. In the code, locate 'tagClick()' and quickly try to put two single quotes (the ' symbol ) in the parenthesis '()' so 'tagClick()' becomes 'tagClick('')'.
If you type slowly it might be okay, but if you type the single quotes quickly, bluefish crashes on my machine every time.
Run from the terminal I get this result:
ben@mr-shinyface:~$ bluefish
Language statistics for Javascript from /usr/share/
reference size 0.02 Kbytes
largest table 2706 ( 676.50 Kbytes)
total tables 2748 ( 687.00 Kbytes)
contexts 10 ( 0.47 Kbytes)
matches 531 ( 37.34 Kbytes)
Segmentation fault (core dumped)
ben@mr-shinyface:~$
I'll keep trying to narrow it down and see exactly which part of this code is causing the problem. Please get back to me if you need more info.
Changed in bluefish: | |
importance: | Unknown → High |
status: | Unknown → Confirmed |
Changed in bluefish: | |
status: | Confirmed → In Progress |
Changed in bluefish: | |
status: | In Progress → Fix Released |
Changed in bluefish (Ubuntu): | |
assignee: | nobody → Vibhav Pant (vibhavp) |
Changed in bluefish (Ubuntu): | |
assignee: | Vibhav Pant (vibhavp) → nobody |
Changed in bluefish (Ubuntu): | |
status: | New → In Progress |
Changed in bluefish (Ubuntu): | |
status: | In Progress → Fix Committed |
I've found that disabling Document > Highlight Syntax stops the bug from occuring.