Skip to content

pyergo segfaults after call to pyergo_end_session #6

@ryejeff

Description

@ryejeff

Describe the bug
If pyergo_end_session is ever called, later calls to pyergo may segfault, even if a new session is started with pyergo_start_session.

To Reproduce
Steps to reproduce the behavior:

  1. Call pyergo_start_session.
  2. Call pyergo_end_session.
  3. Call pyergo_start_session.
  4. Repeatedly call pyergo_command.
  • Usually this causes a segfault on the first invocation. Sometimes it requires a few calls.

See the attached Python script (and input files) for a reproducible test case.

Expected behavior
After the second pyergo_start_session, the pyergo_command should succeed without causing a segfault.

Screenshots
Not applicable.

Desktop (please complete the following information):

Also evokes a segfault in a Docker image with debian:bookworm as a base and installed using ergoAI_3.0.run from https://github.com/ErgoAI/.github/releases.

Additional context
We encountered this in testing when we tried to make separate pyergo sessions for each test.

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