Closed
Bug 340969
Opened 19 years ago
Closed 19 years ago
crash at [@ nsFormFillController::GetTextValue]
Categories
(Toolkit :: Form Manager, defect)
Tracking
()
VERIFIED
FIXED
People
(Reporter: bugzilla, Assigned: smaug)
Details
(Keywords: crash, verified1.8.1.1)
Crash Data
Attachments
(2 files)
|
1.29 KB,
patch
|
dbaron
:
first-review+
mconnor
:
approval1.8.1-
dveditz
:
approval1.8.1.1+
|
Details | Diff | Splinter Review |
|
1.35 KB,
patch
|
Details | Diff | Splinter Review |
I just crashed when trying to restart firefox
TB19682796Y
nsFormFillController::GetTextValue 6b810bd7
and looking at the stacktrace there seems to be others that have crashed there too.
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a1) Gecko/20060608 Minefield/3.0a1 ID:2006060804 [cairo]
Updated•19 years ago
|
Severity: normal → critical
Its seems you are running on both different sytems linux ans windows, what are you are up to...???
sergedardenne@gmail.com: huh? this bug is listed as windows, the report only mentions windows.
gemal happens to be a long time bug filer (among the top 10 iirc), so your question seems really strange.
Keywords: crash
Summary: crash at restart in nsFormFillController::GetTextValue → crash at restart in [@ nsFormFillController::GetTextValue]
| Reporter | ||
Comment 3•19 years ago
|
||
just closed a popup window and got the same crash again.
In the window I had filled out a form
Summary: crash at restart in [@ nsFormFillController::GetTextValue] → crash at [@ nsFormFillController::GetTextValue]
| Reporter | ||
Comment 4•19 years ago
|
||
if you go to:
http://link.etyper.com/survey/survey_launch.asp?p1=105851196&p2=82&p3=LIST&p4=http://www.kilroytravels.dk?TId=10585119682
press the link and fill out the form and hit submit I crash when the window closes.
TB19977780W
TB19977736Y
TB19977228W
| Assignee | ||
Comment 5•19 years ago
|
||
I don't crash, but after visiting the page, something strange happens to WARNINGS:
⎻␊␍.
CSS E⎼⎼⎺⎼ (␤├├⎻://┬┬┬.┐␋┌⎼⎺≤├⎼▒┴␊┌⎽.␍┐/NR/⎼␍⎺┼┌≤⎼␊⎽/8C19642E-1B70-43DE-9C62-BE6B4F294C6A/0/┐␋┌⎼⎺≤.␌⎽⎽ :232.64): U┼┐┼⎺┬┼ ⎻⎼⎺⎻␊⎼├≤ '␤␋±␤├'. D␊␌┌▒⎼▒├␋⎺┼ ␍⎼⎺⎻⎻␊␍.
CSS E⎼⎼⎺⎼ (␤├├⎻://┬┬┬.┐␋┌⎼⎺≤├⎼▒┴␊┌⎽.␍┐/NR/⎼␍⎺┼┌≤⎼␊⎽/8C19642E-1B70-43DE-9C62-BE6B4F294C6A/0/┐␋┌⎼⎺≤.␌⎽⎽ :231.61): U┼┐┼⎺┬┼ ⎻⎼⎺⎻␊⎼├≤ '␤␋±␤├'. D␊␌┌▒⎼▒├␋⎺┼ ␍⎼⎺⎻⎻␊␍.
CSS E⎼⎼⎺⎼ (␤├├⎻://┬┬┬.┐␋┌⎼⎺≤├⎼▒┴␊┌⎽.␍┐/NR/⎼␍⎺┼┌≤⎼␊⎽/8C19642E-1B70-43DE-9C62-BE6B4F294C6A/0/┐␋┌⎼⎺≤.␌⎽⎽ :232.64): U┼┐┼⎺┬┼ ⎻⎼⎺⎻␊⎼├≤ '␤␋±␤├'. D␊␌┌▒⎼▒├␋⎺┼ ␍⎼⎺⎻⎻␊␍.
--WEBSHELL 0│8°02810 == 4
--WEBSHELL 0│96398▒8 == 3
--DOMWINDOW == 11
--DOMWINDOW == 10
--DOMWINDOW == 9
WARNING: ⎼␊␌┤⎼⎼␋┼± ␋┼├⎺ °⎼▒└␊ ␌⎺┼⎽├⎼┤␌├␋⎺┼: '└P⎼␊⎽C⎺┼├␊│├->└L▒≤⎺┤├P␤▒⎽␊C⎺┤┼├[␊L▒≤⎺┤├P␤▒⎽␊_F⎼▒└␊C] == 0', °␋┌␊ ../../␍␋⎽├/␋┼␌┌┤␍␊/┌▒≤⎺┤├/┼⎽P⎼␊⎽C⎺┼├␊│├.␤, ┌␋┼␊ 846
WARNING: ⎼␊␌┤⎼⎼␋┼± ␋┼├⎺ °⎼▒└␊ ␌⎺┼⎽├⎼┤␌├␋⎺┼: '└P⎼␊⎽C⎺┼├␊│├->└L▒≤⎺┤├P␤▒⎽␊C⎺┤┼├[␊L▒≤⎺┤├P␤▒⎽␊_F⎼▒└␊C] == 0', °␋┌␊ ../../␍␋⎽├/␋┼␌┌┤␍␊/┌▒≤⎺┤├/┼⎽P⎼␊⎽C⎺┼├␊│├.␤, ┌␋┼␊ 846
WARNING: ⎼␊␌┤⎼⎼␋┼± ␋┼├⎺ °⎼▒└␊ ␌⎺┼⎽├⎼┤␌├␋⎺┼: '└P⎼␊⎽C⎺┼├␊│├->└L▒≤⎺┤├P␤▒⎽␊C⎺┤┼├[␊L▒≤⎺┤├P␤▒⎽␊_F⎼▒└␊C] == 0', °␋┌␊ ../../␍␋⎽├/␋┼␌┌┤␍␊/┌▒≤⎺┤├/┼⎽P⎼␊⎽C⎺┼├␊│├.␤, ┌␋┼␊ 846
WARNING: ⎼␊␌┤⎼⎼␋┼± ␋┼├⎺ °⎼▒└␊ ␌⎺┼⎽├⎼┤␌├␋⎺┼: '└P⎼␊⎽C⎺┼├␊│├->└L▒≤⎺┤├P␤▒⎽␊C⎺┤┼├[␊L▒≤⎺┤├P␤▒⎽␊_F⎼▒└␊C] == 0', °␋┌␊ ../../␍␋⎽├/␋┼␌┌┤␍␊/┌▒≤⎺┤├/┼⎽P⎼␊⎽C⎺┼├␊│├.␤, ┌␋┼␊ 846
WARNING: ⎼␊␌┤⎼⎼␋┼± ␋┼├⎺ °⎼▒└␊ ␌⎺┼⎽├⎼┤␌├␋⎺┼: '└P⎼␊⎽C⎺┼├␊│├->└L▒≤⎺┤├P␤▒⎽␊C⎺┤┼├[␊L▒≤⎺┤├P␤▒⎽␊_F⎼▒└␊C] == 0', °␋┌␊ ../../␍␋⎽├/␋┼␌┌┤␍␊/┌▒≤⎺┤├/┼⎽P⎼␊⎽C⎺┼├␊│├.␤, ┌␋┼␊ 846
WARNING: ⎼␊␌┤⎼⎼␋┼± ␋┼├⎺ °⎼▒└␊ ␌⎺┼⎽├⎼┤␌├␋⎺┼: '└P⎼␊⎽C⎺┼├␊│├->└L▒≤⎺┤├P␤▒⎽␊C⎺┤┼├[␊L▒≤⎺┤├P␤▒⎽␊_F⎼▒└␊C] == 0', °␋┌␊ ../../␍␋⎽├/␋┼␌┌┤␍␊/┌▒≤⎺┤├/┼⎽P⎼␊⎽C⎺┼├␊│├.␤, ┌␋┼␊ 846
WARNING: ⎼␊␌┤⎼⎼␋┼± ␋┼├⎺ °⎼▒└␊ ␌⎺┼⎽├⎼┤␌├␋⎺┼: '└P⎼␊⎽C⎺┼├␊│├->└L▒≤⎺┤├P␤▒⎽␊C⎺┤┼├[␊L▒≤⎺┤├P␤▒⎽␊_F⎼▒└␊C] == 0', °␋┌␊ ../../␍␋⎽├/␋┼␌┌┤␍␊/┌▒≤⎺┤├/┼⎽P⎼␊⎽C⎺┼├␊│├.␤, ┌␋┼␊ 846
WARNING: ⎼␊␌┤⎼⎼␋┼± ␋┼├⎺ °⎼▒└␊ ␌⎺┼⎽├⎼┤␌├␋⎺┼: '└P⎼␊⎽C⎺┼├␊│├->└L▒≤⎺┤├P␤▒⎽␊C⎺┤┼├[␊L▒≤⎺┤├P␤▒⎽␊_F⎼▒└␊C] == 0', °␋┌␊ ../../␍␋⎽├/␋┼␌┌┤␍␊/┌▒≤⎺┤├/┼⎽P⎼␊⎽C⎺┼├␊│├.␤, ┌␋┼␊ 846
| Assignee | ||
Comment 6•19 years ago
|
||
argh, sorry about that. Anyway, warnings are garbage
Comment 7•19 years ago
|
||
For instance http://talkback-public.mozilla.org/search/start.jsp?search=2&type=iid&id=22638013
has a more complete stacktrace (all branch crashes have a more complete stacktrace):
nsFormFillController::GetTextValue [mozilla/toolkit/components/satchel/src/nsFormFillController.cpp, line 415]
XPCWrappedNative::CallMethod [mozilla/js/src/xpconnect/src/xpcwrappednative.cpp, line 2169]
XPC_WN_GetterSetter [mozilla/js/src/xpconnect/src/xpcwrappednativejsops.cpp, line 1482]
js_Invoke [mozilla/js/src/jsinterp.c, line 1350]
js_InternalInvoke [mozilla/js/src/jsinterp.c, line 1448]
js_InternalGetOrSet [mozilla/js/src/jsinterp.c, line 1508]
js_GetProperty [mozilla/js/src/jsobj.c, line 3439]
JS_GetUCProperty [mozilla/js/src/jsapi.c, line 3076]
leakmon.dll + 0x2796 (0x10002796)
leakmon.dll + 0x15a3 (0x100015a3)
leakmon.dll + 0x20ac (0x100020ac)
leakmon.dll + 0x1c85 (0x10001c85)
leakmon.dll + 0x1ce2 (0x10001ce2)
leakmon.dll + 0x1c4e (0x10001c4e)
js_ForceGC [mozilla/js/src/jsgc.c, line 2251]
ScopedXPCOMStartup::~ScopedXPCOMStartup [mozilla/toolkit/xre/nsAppRunner.cpp, line 551]
main [mozilla/browser/app/nsBrowserApp.cpp, line 61]
kernel32.dll + 0x16d4f (0x7c816d4f)
So this seems to be happening in combination with the leak monitor.
| Assignee | ||
Comment 8•19 years ago
|
||
A testcase for this is to run the following in the error console:
Components.classes["@mozilla.org/satchel/form-fill-controller;1"].createInstance().QueryInterface(Components.interfaces.nsIAutoCompleteInput).textValue;
| Assignee | ||
Comment 9•19 years ago
|
||
Just adding null checks.
I decided to not to return error code when mFocusedInput is null.
That is how the situation is handled also in other similar methods,
like in ::GetSelectionStart
Assignee: nobody → Olli.Pettay
Status: NEW → ASSIGNED
Attachment #238609 -
Flags: first-review?(dbaron)
Comment on attachment 238609 [details] [diff] [review]
proposed patch.
In GetTextValue you should call aTextValue.Truncate() if you're not calling mFocusedInput->GetValue so that you clear the string if it's non-empty. With that, r=dbaron.
Attachment #238609 -
Flags: first-review?(dbaron) → first-review+
| Assignee | ||
Updated•19 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Comment 11•19 years ago
|
||
Comment on attachment 238609 [details] [diff] [review]
proposed patch.
This seems like a safe fix for the branch.
Attachment #238609 -
Flags: approval1.8.1?
Comment 12•19 years ago
|
||
Comment on attachment 238609 [details] [diff] [review]
proposed patch.
too late for non-blockers, please renom for 1.8.11
Attachment #238609 -
Flags: approval1.8.1? → approval1.8.1-
Updated•19 years ago
|
Flags: blocking1.8.1.1?
Updated•19 years ago
|
Flags: blocking1.8.1.1? → blocking1.8.1.1+
Updated•19 years ago
|
Attachment #238609 -
Flags: approval1.8.1.1?
Comment 13•18 years ago
|
||
Comment on attachment 238609 [details] [diff] [review]
proposed patch.
approved for 1.8 branch, a=dveditz for drivers
Attachment #238609 -
Flags: approval1.8.1.1? → approval1.8.1.1+
| Assignee | ||
Comment 14•18 years ago
|
||
| Assignee | ||
Updated•18 years ago
|
Keywords: fixed1.8.1.1
Comment 15•18 years ago
|
||
v.fixed on 1.8.1 branch with
Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1.1pre) Gecko/20061128 BonEcho/2.0.0.1pre
Keywords: fixed1.8.1.1 → verified1.8.1.1
Comment 16•17 years ago
|
||
Verified based on test in comment 8.
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.1pre) Gecko/2008062306 GranParadiso/3.0.1pre
Status: RESOLVED → VERIFIED
Updated•17 years ago
|
Component: Satchel → Form Manager
Updated•14 years ago
|
Crash Signature: [@ nsFormFillController::GetTextValue]
You need to log in
before you can comment on or make changes to this bug.
Description
•