You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After updating to latest Z3 version (4.12.2) from version 4.11.2 application using .NET API crashes with error:
Fatal error. System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
Repeat 2 times:
--------------------------------
at Microsoft.Z3.Native+LIB.Z3_del_constructor(IntPtr, IntPtr)
--------------------------------
at Microsoft.Z3.Native.Z3_del_constructor(IntPtr, IntPtr)
at Microsoft.Z3.Constructor.Finalize()
As a result of investigation, I have discovered that it started to reproduce from version 4.12.0.
Here is the in simplest steps to reproduce, which I was able to found:
using System;using Microsoft.Z3;
CreateConstructor();
GC.Collect();voidCreateConstructor(){usingvarcontext=new Context();varconstructor= context.MkConstructor("a","a");}
This sample does not reproduce the error stably, but for me at least more than in 50% cases, so it may require to run a couple of times.
Analyzing the changes between 4.11.2 and 4.12.0 I have suspicion that regression was introduced by PR #6361. Cannot verify this since I was not able to build Z3 solution on my machine following the instruction.
The text was updated successfully, but these errors were encountered:
After updating to latest Z3 version (4.12.2) from version 4.11.2 application using .NET API crashes with error:
As a result of investigation, I have discovered that it started to reproduce from version 4.12.0.
Here is the in simplest steps to reproduce, which I was able to found:
This sample does not reproduce the error stably, but for me at least more than in 50% cases, so it may require to run a couple of times.
Analyzing the changes between 4.11.2 and 4.12.0 I have suspicion that regression was introduced by PR #6361. Cannot verify this since I was not able to build Z3 solution on my machine following the instruction.
The text was updated successfully, but these errors were encountered: