Skip to content

Z3 crashed CPython when proof is missing #7725

@fsomenzi

Description

@fsomenzi

In the attached test script, I created two solvers in different contexts, one with set_param(proof=True) and one without. I wanted to verify that one solver would be able to produce proofs and the other wouldn't. That seems to be the case. However, when I try to print the proof for the solver that is not supposed to have it, CPython segfaults instead of raising an exception as it normally does.

This is with z3 4.15.2 and CPython 3.13.3 on Ubuntu 25.04. It's not a show stopper, but I thought you'd like to know.

contexts.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions