Closed Bug 507454 Opened 16 years ago Closed 16 years ago

avmshell commandline args with values can't assume the values are present

Categories

(Tamarin Graveyard :: Tools, defect, P5)

x86
Windows XP
defect

Tracking

(Not tracked)

VERIFIED FIXED
flash10.1

People

(Reporter: tharwood, Assigned: tharwood)

Details

Attachments

(2 files)

This commandline should emit a diagnostic, not segfault: $AVM -load Affected args are: -Dastrace -cache_bindings -cache_metadata -cache_methods -jitmax -memlimit -load -gcwork -workers
Ah, I see: -load, -gcwork, and -workers check that the argument parses correctly, but not that there actually is an argument. Duh.
Priority: -- → P5
Target Milestone: --- → flash10.1
Tested each arg with and without a valid argument, ran tamarin tests.
Attachment #416635 - Flags: review?(lhansen)
Attachment #416635 - Flags: review?(lhansen) → review+
Attachment #416635 - Flags: superreview?(edwsmith)
Attachment #416635 - Flags: superreview?(edwsmith) → superreview+
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Attached patch cmdline testcaseSplinter Review
quick cmdline testcases that call the args with no other options. Test is to make sure that there is no segfault, should return "Unrecognized option...." Tested using build 3475 for passing, and confirmed that build 3285 fails (previous build to change being pushed)
Attachment #421039 - Flags: review?(dschaffe)
Status: RESOLVED → VERIFIED
Comment on attachment 421039 [details] [diff] [review] cmdline testcase cmdline test works. I get 1 failure in tr mainline: on osx I get a Bus Error (10) when running: avmshell -stack
Attachment #421039 - Flags: review?(dschaffe) → review+
-stack and -Dlanguage still crash the shell, tracked via bug #538969 cmdline testcase pushed in changeset 3484:ea96c237ae6a
Flags: in-testsuite+
Flags: flashplayer-triage+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: