-
Notifications
You must be signed in to change notification settings - Fork 564
[tools] initial version of an MSBuild "fuzzer" #3229
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jonathanpeppers
commented
Jun 14, 2019
jonpryor
reviewed
Jun 20, 2019
jonpryor
reviewed
Jun 20, 2019
dellis1972
reviewed
Jun 20, 2019
dellis1972
reviewed
Jun 20, 2019
dellis1972
reviewed
Jun 20, 2019
dellis1972
reviewed
Jun 20, 2019
The idea is that you can run this tool while having a device/emulator
connected:
tools\msbuild-fuzzer\bin\Debug\msbuild-fuzzer.exe
When running the output looks something like:
DesignTimeBuild
RenameResource
RemoveClass
ChangePackageName
Install
Clean
RemoveClass
Install
Starting: Intent { cmp=com.foo.a82008ffe87dd442d92c47658b392fd55/md52d9cf6333b8e95e8683a477bc589eda5.MainActivity }
TouchRandomFile
Build
The process will stop if an MSBuild error occurs, you should get a
stacktrace and find MSBuild binlogs in:
bin\TestDebug\temp\Fuzzer
So far I have not found problems running this for a while on Mac.
I have found what appears to be Windows Defender locking a file on
Windows:
Xamarin.Forms.targets(91,3): error MSB4018: The "XamlCTask" task failed unexpectedly.
System.IO.IOException: The process cannot access the file 'obj\Release\90\HelloForms.Android.dll' because it is being used by another process.
Server stack trace:
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
at Mono.Cecil.ModuleDefinition.ReadModule(String fileName, ReaderParameters parameters)
at Mono.Cecil.AssemblyDefinition.ReadAssembly(String fileName, ReaderParameters parameters)
at Xamarin.Forms.Build.Tasks.XamlCTask.Execute(IList`1& thrownExceptions)
at Xamarin.Forms.Build.Tasks.XamlTask.Execute()
at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Object[]& outArgs)
at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg)
Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at Microsoft.Build.Framework.ITask.Execute()
at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__26.MoveNext() [HelloForms.Android.csproj]
`XamlCTask` is part of Xamarin.Forms, so it isn't something we can
address in Xamarin.Android.
aaaaaaaah, so nice
* alphabetize stuff * System.Diagnostics.Process fixes
8ba6b02 to
a216173
Compare
jonpryor
pushed a commit
that referenced
this pull request
Aug 9, 2019
The idea is that you can run this tool while having a device/emulator
connected:
tools\msbuild-fuzzer\bin\Debug\msbuild-fuzzer.exe
When running the output looks something like:
DesignTimeBuild
RenameResource
RemoveClass
ChangePackageName
Install
Clean
RemoveClass
Install
Starting: Intent { cmp=com.foo.a82008ffe87dd442d92c47658b392fd55/md52d9cf6333b8e95e8683a477bc589eda5.MainActivity }
TouchRandomFile
Build
The process will stop if an MSBuild error occurs, and you should get
a stacktrace and find MSBuild binlogs in:
bin\TestDebug\temp\Fuzzer
So far I have not found problems running this for a while on Mac.
I have found what appears to be Windows Defender locking a file on
Windows:
Xamarin.Forms.targets(91,3): error MSB4018: The "XamlCTask" task failed unexpectedly.
System.IO.IOException: The process cannot access the file 'obj\Release\90\HelloForms.Android.dll' because it is being used by another process.
Server stack trace:
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
at Mono.Cecil.ModuleDefinition.ReadModule(String fileName, ReaderParameters parameters)
at Mono.Cecil.AssemblyDefinition.ReadAssembly(String fileName, ReaderParameters parameters)
at Xamarin.Forms.Build.Tasks.XamlCTask.Execute(IList`1& thrownExceptions)
at Xamarin.Forms.Build.Tasks.XamlTask.Execute()
at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Object[]& outArgs)
at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg)
Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at Microsoft.Build.Framework.ITask.Execute()
at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__26.MoveNext() [HelloForms.Android.csproj]
`<XamlCTask/>` is part of Xamarin.Forms, so it isn't something we can
address in Xamarin.Android.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The idea is that you can run this tool while having a device/emulator
connected:
When running the output looks something like:
The process will stop if an MSBuild error occurs, you should get a
stacktrace and find MSBuild binlogs in:
So far I have not found problems running this for a while on Mac.
I have found what appears to be Windows Defender locking a file on
Windows:
XamlCTaskis part of Xamarin.Forms, so it isn't something we canaddress in Xamarin.Android.