Closed
Bug 484837
Opened 16 years ago
Closed 7 years ago
Use abc file name for dmp name rather than generic avmplusCrash.dmp
Categories
(Tamarin Graveyard :: Virtual Machine, defect, P3)
Tracking
(Not tracked)
RESOLVED
WONTFIX
Q1 12 - Brannan
People
(Reporter: rreitmai, Assigned: rreitmai)
Details
(Whiteboard: has-patch, loose-end)
Attachments
(2 files, 1 obsolete file)
|
4.45 KB,
patch
|
lhansen
:
review+
stejohns
:
review+
|
Details | Diff | Splinter Review |
|
7.99 KB,
patch
|
Details | Diff | Splinter Review |
Make the dmp files more useful by identifying which input caused the crash. This will be handy when running the acceptance suite since it continues running despite crashes and may cause dmp's to be overwritten.
Would be nice to have something similar for osx and unix but that's for another day.
| Assignee | ||
Comment 1•16 years ago
|
||
Attachment #369008 -
Flags: review?(stejohns)
| Assignee | ||
Updated•16 years ago
|
Attachment #369008 -
Flags: review?(edwsmith)
| Assignee | ||
Updated•16 years ago
|
Attachment #369008 -
Flags: review?(lhansen)
Comment 2•16 years ago
|
||
Comment on attachment 369008 [details] [diff] [review]
ver 1 - patch
I believe WinPlatform::processingFile will crash for filenames of the form "a/b.c/e". Possibly the last test wants to check bwd>nm as well.
(Also need implementations for other platforms, obviously.)
Attachment #369008 -
Flags: review?(lhansen) → review-
Updated•16 years ago
|
Attachment #369008 -
Flags: review?(edwsmith) → review+
Comment 3•16 years ago
|
||
Comment on attachment 369008 [details] [diff] [review]
ver 1 - patch
avmshellWin.cpp:241 - do we have VMPI_strcat? that's preferred if we have it.
what happens if we aren't processing a file (eval repl mode, or maybe reading stdin if that's possible) and the shell crashes; do we have a reasonable default dump filename?
(marking + because i didn't find any additional issues, but with >1 reviewier, imo it's not a voting process, need unanomous + to commit)
Comment 4•16 years ago
|
||
BTW the code is not standards conforming. You're not allowed to compare pointers with relational operators unless they both point within the same object, yet strrchr can return NULL. The comparisons bwd>nm and fwd>nm are therefore both illegal in this strict sense.
Comment 5•16 years ago
|
||
(In reply to comment #3)
> (From update of attachment 369008 [details] [diff] [review])
> avmshellWin.cpp:241 - do we have VMPI_strcat? that's preferred if we have
> it.
just a thought here: since we're forbidding standard c string operations and using VMPI_ based ones, perhaps this is an opportunity to move to the "safe" versions (ie the ones that always require buffer-size as an argument)?
yes, it would be a bit more work, since we'd have to provide wrappers for systems that don't provide them intrinsically (ie, everything except VC2008).
| Assignee | ||
Comment 6•16 years ago
|
||
#2 good catch; other platforms won't support the dmp file, so stubs are used.
#3 strncpy does not guarantee a null termination so strcat shouldn't be used
#4 the comparisons occur post-null check in the compound if statement, so they are safe. But your point is well noted and it probably highlights that the code is awkward and needs to be re-written.
#5 I've used strncpy which limits the copy, and strcpy source is from a non-constant null terminated string. I don't like using cat, since it implies that the destination is null-terminated which may not be the case.
Will post another patch.
| Assignee | ||
Comment 7•16 years ago
|
||
Addressed issues raised in comments
Attachment #369008 -
Attachment is obsolete: true
Attachment #369107 -
Flags: review?(lhansen)
Attachment #369008 -
Flags: review?(stejohns)
| Assignee | ||
Updated•16 years ago
|
Attachment #369107 -
Flags: review?(stejohns)
Updated•16 years ago
|
Attachment #369107 -
Flags: review?(stejohns) → review+
| Assignee | ||
Comment 8•16 years ago
|
||
re: comment #3, noticed that patch is missing initialization of dmpFilename in main() :
@@ -264,6 +296,7 @@ avmshell::Platform* avmshell::Platform::
int main(int argc, char *argv[])
{
+ VMPI_strcpy(dmpFilename, "tamarinCrash.dmp");
SetErrorMode(SEM_NOGPFAULTERRORBOX);
avmshell::WinPlatform platformInstance;
Updated•16 years ago
|
Attachment #369107 -
Flags: review?(lhansen) → review+
Updated•15 years ago
|
Priority: -- → P3
Whiteboard: Has patch
Target Milestone: Future → flash10.2
Flags: flashplayer-qrb+
Flags: flashplayer-injection-
Flags: flashplayer-bug-
Target Milestone: Q3 11 - Serrano → Q4 11 - Anza
Comment 10•14 years ago
|
||
Still ready to land.
Whiteboard: Has patch → has-patch, loose-end
Target Milestone: Q4 11 - Anza → Q1 12 - Brannan
Updated•13 years ago
|
Status: ASSIGNED → NEW
Comment 11•13 years ago
|
||
(this is just a rebase of ver 2. I haven't tested that it even builds, so I'm not yet marking attachment 369107 [details] [diff] [review] as obsolete; but if it works, then one should mark attachment 369107 [details] [diff] [review] as obsolete.)
Comment 12•7 years ago
|
||
Tamarin is a dead project now. Mass WONTFIX.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → WONTFIX
Comment 13•7 years ago
|
||
Tamarin isn't maintained anymore. WONTFIX remaining bugs.
You need to log in
before you can comment on or make changes to this bug.
Description
•