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)

x86
Windows XP
defect

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)

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.
Attached patch ver 1 - patch (obsolete) — Splinter Review
Attachment #369008 - Flags: review?(stejohns)
Attachment #369008 - Flags: review?(edwsmith)
Attachment #369008 - Flags: review?(lhansen)
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-
Attachment #369008 - Flags: review?(edwsmith) → review+
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)
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.
(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).
#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.
Addressed issues raised in comments
Attachment #369008 - Attachment is obsolete: true
Attachment #369107 - Flags: review?(lhansen)
Attachment #369008 - Flags: review?(stejohns)
Attachment #369107 - Flags: review?(stejohns)
Attachment #369107 - Flags: review?(stejohns) → review+
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;
Attachment #369107 - Flags: review?(lhansen) → review+
Looks like it's ready to land, though.
Target Milestone: --- → Future
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
Still ready to land.
Whiteboard: Has patch → has-patch, loose-end
Target Milestone: Q4 11 - Anza → Q1 12 - Brannan
Status: ASSIGNED → NEW
Attached patch patch A v3Splinter Review
(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.)
Tamarin is a dead project now. Mass WONTFIX.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → WONTFIX
Tamarin isn't maintained anymore. WONTFIX remaining bugs.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: