Skip to content

LLVMVisitor assignment constructor after init segfaults #1994

@lkeegan

Description

@lkeegan

This code segfaults:

LLVMDoubleVisitor v1;
v1.init({x, y}, *r);
LLVMDoubleVisitor v2;
v1 = v2;

Test case to reproduce:

From the stacktrace I think this is a bug in LLVM and not in symengine, but maybe the simplest solution would be for symengine to use a unique_ptr instead of a shared_ptr to store llvm::LLVMContext and llvm::ExecutionEngine. This would disable the above problematic copy constructor.

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