Skip to content
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

Crash if cannot find given solver-path #3572

Closed
davidcok opened this issue Feb 19, 2023 · 0 comments · Fixed by #4018
Closed

Crash if cannot find given solver-path #3572

davidcok opened this issue Feb 19, 2023 · 0 comments · Fixed by #4018
Labels
kind: bug Crashes, unsoundness, incorrect output, etc. If possible, add a `part:` label

Comments

@davidcok
Copy link
Collaborator

Dafny version

3.11.0+dev

Code to produce this issue

dafny verify --solver-plugin x test.dfy

Command to run and resulting output

File name: '/Users/davidcok/projects/dafny2/dafny/Binaries/Boogie.Provers.x.dll'
   at System.Runtime.Loader.AssemblyLoadContext.LoadFromPath(IntPtr ptrNativeAssemblyLoadContext, String ilPath, String niPath, ObjectHandleOnStack retAssembly)
   at System.Runtime.Loader.AssemblyLoadContext.LoadFromAssemblyPath(String assemblyPath)
   at System.Reflection.Assembly.LoadFrom(String assemblyFile)
   at Microsoft.Boogie.ProverFactory.Load(String proverName)
   at Microsoft.Dafny.CommonOptionBag.<>c.<.cctor>b__29_23(DafnyOptions o, String v) in /Users/davidcok/projects/dafny2/dafny/Source/DafnyCore/Options/CommonOptionBag.cs:line 243
   at Microsoft.Dafny.DafnyOptions.<>c__DisplayClass8_0`1.<RegisterLegacyBinding>b__0(DafnyOptions options, Object o) in /Users/davidcok/projects/dafny2/dafny/Source/DafnyCore/DafnyOptions.cs:line 134
   at Microsoft.Dafny.DafnyOptions.ApplyBinding(Option option) in /Users/davidcok/projects/dafny2/dafny/Source/DafnyCore/DafnyOptions.cs:line 110
   at Microsoft.Dafny.CommandRegistry.<>c__DisplayClass6_0.<Create>g__CommandHandler|2(InvocationContext context) in /Users/davidcok/projects/dafny2/dafny/Source/DafnyDriver/Commands/CommandRegistry.cs:line 126
   at System.CommandLine.Invocation.AnonymousCommandHandler.Invoke(InvocationContext context)
   at System.CommandLine.Invocation.AnonymousCommandHandler.InvokeAsync(InvocationContext context)
   at System.CommandLine.Invocation.InvocationPipeline.<>c__DisplayClass4_0.<<BuildInvocationChain>b__0>d.MoveNext()
--- End of stack trace from previous location ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass17_0.<<UseParseErrorReporting>b__0>d.MoveNext()
--- End of stack trace from previous location ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass12_0.<<UseHelp>b__0>d.MoveNext()
--- End of stack trace from previous location ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass22_0.<<UseVersionOption>b__0>d.MoveNext()
--- End of stack trace from previous location ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass19_0.<<UseTypoCorrections>b__0>d.MoveNext()
--- End of stack trace from previous location ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c.<<UseSuggestDirective>b__18_0>d.MoveNext()
--- End of stack trace from previous location ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass16_0.<<UseParseDirective>b__0>d.MoveNext()
--- End of stack trace from previous location ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c.<<RegisterWithDotnetSuggest>b__5_0>d.MoveNext()
--- End of stack trace from previous location ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass8_0.<<UseExceptionHandler>b__0>d.MoveNext()

What happened?

Crashed if file is non-existent, may be also if empty string, or otherwise not a plugin

What type of operating system are you experiencing the problem on?

Mac

@davidcok davidcok added the kind: bug Crashes, unsoundness, incorrect output, etc. If possible, add a `part:` label label Feb 19, 2023
@davidcok davidcok modified the milestone: Dafny 4.0 Feb 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind: bug Crashes, unsoundness, incorrect output, etc. If possible, add a `part:` label
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant