Closed
Bug 645886
Opened 15 years ago
Closed 13 years ago
web console input crashes firefox [@ js_free ]
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: l.mai, Unassigned)
Details
(Keywords: crash)
Crash Data
Attachments
(3 files)
User-Agent: Mozilla/5.0 (X11; Linux i686; rv:2.0) Gecko/20110322 Firefox/4.0
Build Identifier: Mozilla/5.0 (X11; Linux i686; rv:2.0) Gecko/20110322 Firefox/4.0
Every time I hit a key in the web console, firefox crashes. (This might be related to firebug also crashing firefox when I click its icon to activate it).
Reproducible: Always
Steps to Reproduce:
1. Optional: close all open tabs, go to about:blank, quit firefox, start as firefox -safe-mode (I did that to rule out extension problems)
2. Click Tools > Web Console
3. Type '2' at the web console prompt.
Actual Results:
Firefox crashes hard.
Expected Results:
A 2 appears in the web console input line.
In case this is related: enabling firebug on web pages also crashes firefox (enabling it in the addons tab works fine, though).
I'm using Gentoo; the package is www-client/firefox-4.0-r2 with USE flags "alsa ipc libnotify linguas_de linguas_en webm wifi". CFLAGS are "-O2 -march=k8 -pipe".
I've also got a 141M core file for this crash if that helps.
Updated•15 years ago
|
Assignee: nobody → general
Component: General → JavaScript Engine
Keywords: crash
Product: Firefox → Core
QA Contact: general → general
Summary: web console input crashes firefox → web console input crashes firefox [@ js_free ]
Version: unspecified → 2.0 Branch
Comment 3•15 years ago
|
||
Did you build this copy of Firefox? If so, can you attach your .mozconfig?
This is WFM - we have a very large set of automated tests that would have caught this the moment something like this regressed. Perhaps the Gentoo build is doing something strange in its build config. The default options for minefield nightly are:
--enable-application=browser --enable-optimize --enable-update-channel=nightly --enable-update-packaging --disable-debug --enable-tests --enable-codesighs --enable-debug-symbols=-gdwarf-2
I simply did 'emerge firefox'. Does this .mozconfig contain information that's not part of about:buildconfig?
Comment 5•15 years ago
|
||
(In reply to comment #4)
> I simply did 'emerge firefox'. Does this .mozconfig contain information that's
> not part of about:buildconfig?
I wasn't sure if your Firefox was built via the gentoo ports system or not. I build firefox on Linux multiple times a day and work on the web console and have never seen this crash.
Can you run firefox with -g (via gdb) and replicate this crash again. When it does crash, in gdb enter 'call DumpJSStack()' and paste any stdout output to this bug.
I tried 'gdb --args firefox -g -safe-mode' and when it crashed, I did 'call DumpJSStack ()'. It hung without consuming CPU and didn't come back to the (gdb) prompt.
I thought maybe it was too late for that, so I tried again and set a breakpoint on abort before it could crash completely. Same behavior for DumpJSStack(), though: no output, no activity (inactive firefox window, no repainting while stopped in gdb; no surprises there).
firefox is traditionally a shell script and as such you should use ./firefox -g -d gdb ... instead of manually feeding a shell script to gdb.
Is gentoo really replacing firefox as a shellscript with firefox as a binary?
% type firefox
firefox is /usr/bin/firefox
% file /usr/bin/firefox
/usr/bin/firefox: symbolic link to `/usr/lib/firefox/firefox'
% file /usr/lib/firefox/firefox
/usr/lib/firefox/firefox: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.9, stripped
Looks like it is.
But I may have found a source of my troubles: I have a gcc installation in my home directory and a LD_LIBRARY_PATH that points to its libraries. So some of the dynamic dependencies come from the system and others from my private lib dir. I can't test it right now, but I'll try it with a clean environment as soon as possible.
Comment 9•15 years ago
|
||
(In reply to comment #8)
> But I may have found a source of my troubles: I have a gcc installation in my
> home directory and a LD_LIBRARY_PATH that points to its libraries. So some of
> the dynamic dependencies come from the system and others from my private lib
> dir. I can't test it right now, but I'll try it with a clean environment as
> soon as possible.
I assume this is your custom setup for building gentoo packages?
| Reporter | ||
Comment 10•15 years ago
|
||
(In reply to comment #9)
> I assume this is your custom setup for building gentoo packages?
No, root has default settings. This is just something in my normal user profile. But it's apparently unrelated, because the same crash still happens with an unset LD_LIBRARY_PATH and a default PATH.
(If anyone has an idea how to better diagnose this, I'm on IRC and available for some interactive debugging.)
Updated•15 years ago
|
Crash Signature: [@ js_free ]
Comment 11•14 years ago
|
||
I have this very annoying bug too.
Ubuntu 10.10 maverick, firefox 10.
Firefox often crashes when i try to display a json object in firebug, but you don't need firebug to crash.
1. Start with a new profile or in safe mode, no add-ons.
2. Open a web page (doesn't appear on about: pages)
3. Open Tools / Web developper / Web console (Ctrl+Shift+K)
4. Type 1 or more characters.
5. Firefox crashes
At the point 4, i can see sometimes that characters are not the ones typed, from 3 characters the whole string in the text box changes with weird characters inside, and for the same input string, the weird characters displayed are not always the same.
Doing it again and again with strace:
Most of the time, firefox crashes, we can see among the last lines
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
Sometimes, firefox blocks and i press Ctrl+C to close it, the last line is
futex(0x7f7b06be0000, FUTEX_WAIT_PRIVATE, 2, NULL^C <unfinished ...>
Comment 12•14 years ago
|
||
Here are 3 examples of what i call "weird characters" in the web console input after pressing some keys, here the 'l' key a few times.
Comment 13•14 years ago
|
||
I have the same behavior with 10.0.1 Mozilla Firefox over ubuntu 10.10
Comment 14•14 years ago
|
||
Is this a duplicate of bug 694594?
Comment 15•14 years ago
|
||
I have the same problem with Firefox version 11.0+build1-0ubuntu0.10.10.2 on Ubuntu 10.10.
I tried running Firefox with a new profile but the problem persists: opening the web console and entering a couple of characters show some broken characters on screen and crashes the browser. The same happens with Firebug in my normal profile.
This is quite an annoying bug and i have no other choice than using another browser when i need to debug something :(
Comment 16•13 years ago
|
||
I updated to firefox 16 (by hand because it seems the only choice under ubuntu 10.10 now, thanks ubuntu for providing disposable OSes).
I don't have this bug anymore.
Comment 17•13 years ago
|
||
(In reply to alliz_gub from comment #16)
> I updated to firefox 16 (by hand because it seems the only choice under
> ubuntu 10.10 now, thanks ubuntu for providing disposable OSes).
>
> I don't have this bug anymore.
l.mai are you good also?
Flags: needinfo?(l.mai)
Whiteboard: [closeme 2013-08-15]
Status: UNCONFIRMED → RESOLVED
Closed: 13 years ago
Resolution: --- → WORKSFORME
Whiteboard: [closeme 2013-08-15]
You need to log in
before you can comment on or make changes to this bug.
Description
•