Closed
Bug 240036
Opened 20 years ago
Closed 20 years ago
throwing invalid address causes internal error when tables locked
Categories
(Bugzilla :: User Accounts, defect, P3)
Bugzilla
User Accounts
Tracking
()
RESOLVED
FIXED
Bugzilla 2.18
People
(Reporter: kniht, Assigned: bugreport)
References
()
Details
Attachments
(2 files, 2 obsolete files)
8.34 KB,
text/plain
|
Details | |
452 bytes,
patch
|
timeless
:
review+
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030630 Galeon/1.3.8 Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030630 Galeon/1.3.8 if you specify an invalid address to the watch list it spews out an internal error mssage Reproducible: Always Steps to Reproduce:
Attachment #145700 -
Attachment is obsolete: true
Assignee | ||
Comment 3•20 years ago
|
||
yep
Status: UNCONFIRMED → NEW
Ever confirmed: true
Priority: -- → P3
Target Milestone: --- → Bugzilla 2.18
Assignee | ||
Comment 4•20 years ago
|
||
This was caused by calling DBNameToIDAndCheck() with tables locked. When DBNameToIDAndCheck throws an error, it fails to specify that tables should be unlocked and the footer then dies.
Assignee: myk → bugreport
Status: NEW → ASSIGNED
Assignee | ||
Updated•20 years ago
|
Attachment #145742 -
Flags: review?(justdave)
Comment 5•20 years ago
|
||
Yeah, sounds about right. I'm wondering - how this didn't bite us before - which callsite is exercising this callsite Looking. Hmmm, wow. This comes all the way through - the RelationSet constructor being called with a list of invalid IDs - mergeFromString calling DBNameToIdAndCheck with an invalid ID - DBNameToIdAndCheck throwing a user error as to why this hasn't bit us before, I'm not entirely sure, given that at least DBNameToIdAndCheck is called in a number of places. Perhaps there's validation done before calling it, though.
Comment 6•20 years ago
|
||
Comment on attachment 145742 [details] [diff] [review] Patch Tested here and works as expected. My only question is whether unlocking tables can have any adverse effect, given that this function is used in a large number of callsites.
Attachment #145742 -
Flags: review+
Assignee | ||
Comment 7•20 years ago
|
||
Since throwerror never returns to anything that writes to the DB, unlocking should be fine. Whatever operation originally wanted the DB locked would have been abandoned at this point.
Updated•20 years ago
|
Flags: approval?
Comment 8•20 years ago
|
||
Comment on attachment 145742 [details] [diff] [review] Patch don't most other callsites use something that makes the meaning obvious like "abort" or "unlock" in place of the 1 in the second param?
Updated•20 years ago
|
Flags: approval?
Comment 9•20 years ago
|
||
*** Bug 240366 has been marked as a duplicate of this bug. ***
Comment 10•20 years ago
|
||
Comment on attachment 145742 [details] [diff] [review] Patch review- per comment 8. Just did a grep of the directory, and indeed, all the other call sites use the string "abort" for the third param instead of a 1.
Attachment #145742 -
Flags: review?(justdave) → review-
Assignee | ||
Comment 11•20 years ago
|
||
Attachment #145742 -
Attachment is obsolete: true
Assignee | ||
Updated•20 years ago
|
Attachment #146686 -
Flags: review?(justdave)
Attachment #146686 -
Flags: review?(justdave) → review+
Assignee | ||
Updated•20 years ago
|
Flags: approval?
Updated•20 years ago
|
Flags: approval? → approval+
Assignee | ||
Comment 12•20 years ago
|
||
checked in
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Updated•20 years ago
|
Blocks: bmo-regressions-old
Comment 13•20 years ago
|
||
*** Bug 233124 has been marked as a duplicate of this bug. ***
Comment 14•20 years ago
|
||
A similar effect occurs if you enter non-numerical values for estimated hours. So while you're at it, maybe you could change line 131 as well in a similar manner like -ThrowUserError("need_numeric_value"); +ThrowUserError("need_numeric_value", "abort"); ?
Comment 15•20 years ago
|
||
Marc, you should open a new bug for that.
Comment 16•20 years ago
|
||
Ok, we now have bug 246778 to address similar instances of this bug.
Comment 17•20 years ago
|
||
*** Bug 217344 has been marked as a duplicate of this bug. ***
Updated•20 years ago
|
Attachment #145700 -
Attachment mime type: text/plain → text/html
Updated•20 years ago
|
Summary: invalid address causes internal error → throwing invalid address causes internal error when tables locked
Updated•12 years ago
|
QA Contact: matty_is_a_geek → default-qa
You need to log in
before you can comment on or make changes to this bug.
Description
•