Skip to content

New-delete-type-mismatch in Problem #2

@benjaminfaber

Description

@benjaminfaber

I am running mango with an address sanitizer using petsc_pounders, I have encountered the following memory issue:

==============================================
==19584==ERROR: AddressSanitizer: new-delete-type-mimatch on 0x6120000034c0 in thread T0:
  object passed to delete has wrong type:
  size of the allocated type:     280 bytes;
  size of the deallocated type: 216 bytes.
    #0 0x7f804b3c89f7 in operator delete(void*, unsigned long) ../../../../libsanitizer/asan/asan_new_delete.cpp:172
    #1 0x689281 in mango::Problem::~Problem()  src/api/Problem.cpp:39
    #2 0x68f949 in mango::Least_squares_problem::~Least_squares__problem() src/api/Least_squares_problem.cpp:55
    ...

This isn't a fatal error if not using an address sanitizer, but I don't think it should be ignored. This error occurred well into the petsc_pounders iteration loop, 226 iterations were computed before this error was detected, though I would doubt this error has anything to do with the POUNDERS algorithm.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions