Closed Bug 272122 Opened 20 years ago Closed 20 years ago

Crash in xf:output

Categories

(Core Graveyard :: XForms, defect)

x86
All
defect
Not set
critical

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: smaug, Assigned: smaug)

References

Details

(Keywords: crash)

Attachments

(1 file, 1 obsolete file)

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8a6) Gecko/20041126
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8a6) Gecko/20041126

Patch coming.

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Attached patch quick fix (obsolete) — Splinter Review
#0  0x002a67a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2
#1  0x003457f6 in __nanosleep_nocancel () from /lib/tls/libc.so.6
#2  0x0034561f in sleep () from /lib/tls/libc.so.6
#3  0x080565ed in ah_crap_handler (signum=11) at nsSigHandlers.cpp:132
#4  0x007d2b7e in nsProfileLock::FatalSignalHandler (signo=11)
    at nsProfileLock.cpp:209
#5  <signal handler called>
#6  nsXFormsUtils::GetNodeValue (aDataNode=0x0, aNodeValue=@0xfefaafb0)
    at nsXFormsUtils.cpp:496
#7  0x01304927 in nsXFormsOutputElement::Refresh (this=0x9b05cb8)
    at nsXFormsOutputElement.cpp:250
#8  0x0130459e in nsXFormsOutputElement::AttributeSet (this=0x0,
    aName=0xfefaafb0, aValue=@0xfefab1b0) at nsXFormsOutputElement.cpp:197
#9  0x02367250 in nsXTFElementWrapper::SetAttr (this=0x9b05cd8,
    aNameSpaceID=0, aName=0x9403420, aPrefix=0x0, aValue=@0xfefab1b0,
    aNotify=0) at nsXTFElementWrapper.cpp:242
Attachment #167262 - Flags: review?(bryner)
Just noticed that this code is being modified in Bug 265467.
Allan, will you fix also this bug, or should we keep it as a
separate bug?
Severity: normal → critical
Keywords: crash
Heh, saw it myself recently, just check this one in, fine by me.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Blocks: 269132
Comment on attachment 167262 [details] [diff] [review]
quick fix

if bryner is busy, maybe darin could review and even check this in
Attachment #167262 - Flags: review?(bryner) → review?(darin)
Comment on attachment 167262 [details] [diff] [review]
quick fix

>Index: nsXFormsOutputElement.cpp

>+      NS_ENSURE_TRUE(dom3Node, NS_ERROR_FAILURE);

nit: maybe use NS_ENSURE_STATE(dom3Node) instead?  we don't really care that
much about the exception that is thrown here, and NS_ERROR_UNEXPECTED is 
just as good if not better than NS_ERROR_FAILURE.


r=darin
Attachment #167262 - Flags: review?(darin) → review+
i forgot to mention why i like NS_ENSURE_STATE... because it is more concise :)
(In reply to comment #6)
> i forgot to mention why i like NS_ENSURE_STATE... because it is more concise :)

:)

I was not aware of that macro, I'll try to use that instead too.
Assignee: aaronr → smaug
Attached patch +commentSplinter Review
Attachment #167262 - Attachment is obsolete: true
If this is now ok, could someone check it in?
Status: NEW → ASSIGNED
Comment on attachment 167757 [details] [diff] [review]
+comment

r=darin
Attachment #167757 - Flags: review+
fixed-on-trunk
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: