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

z3 process continues to run after CBMC process is terminated #8485

Open
zhassan-aws opened this issue Oct 27, 2024 · 2 comments
Open

z3 process continues to run after CBMC process is terminated #8485

zhassan-aws opened this issue Oct 27, 2024 · 2 comments

Comments

@zhassan-aws
Copy link
Collaborator

CBMC version: 6.3.1
Operating system: Ubuntu 20.04
Exact command line resulting in the issue: cbmc hard.c --z3

When I run CBMC and then kill the process using kill -9, the z3 process continues to run.

Here's an example session:

$ pgrep z3
$ cat hard.c 
# include <assert.h>

int main() {
    const int SZ = 10000;
    int a[SZ];

    int x;
    int i;

    for (i = 0; i < SZ; i++) {
        a[i] = x;
    }

    unsigned j;
    assert(j >= SZ || a[j] == x);
    
    return 0;
}
$ cbmc hard.c --z3 >& /dev/null &
[1] 3438130
$ sleep 5
$ kill -9 3438130
$ 
[1]+  Killed                  cbmc hard.c --z3 &> /dev/null
$ sleep 5
$ pgrep z3
3438155
$ sleep 5
$ pgrep z3
3438155
@hanno-becker
Copy link

I experience the same issue.

@rod-chapman
Copy link
Collaborator

Same with Bitwuzla. Killing the CBMC process with Ctrl-C does not stop the underlying prover which continues to run and consume memory and (lots of) CPU time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants