Skip to content

bad-free error when building with memory sanitizer flag #88

Open
@JEGroeneweg

Description

@JEGroeneweg

Hi,

In our project we are linking to your library, unfortunately we came across a problem. Whenever we are building our project with a sanitizer flag we encounter a runtime error. If I build Ifopt with the same flag the error disappears.

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -fsanitize=address -fno-omit-frame-pointer -O0")

I've added one of the Ifopt tests to our project, to see if the same error would appear (it does). The test that I copied is the problem_test.cc from the core folder. The test which gives problems is the GetVariableValues test, the problem particular seems to occur in the ifopt::Composite::GetValues() functionality, which corresponds to what we find in our own project.

Is there someone who can take a look where this behavior is coming from?

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