Re: [petsc-users] KSP_Solve crashes in debug mode

2023-02-24 Thread Barry Smith
Hmm, here is the macro #define PetscCallAbort(comm, ...) \ do { \ PetscErrorCode ierr_petsc_call_abort_; \ PetscStackUpdateLine; \ ierr_petsc_call_abort_ = __VA_ARGS__; \ if (PetscUnlikely(ierr_petsc_call_abort_ != PETSC_SUCCESS)) { \

Re: [petsc-users] KSP_Solve crashes in debug mode

2023-02-24 Thread Sajid Ali Syed via petsc-users
Hi Barry, The application calls PetscCallAbort in a loop, i.e. for i in range: void routine(PetscCallAbort(function_returning_petsc_error_code)) From the prior logs it looks like the stack grows every time PetscCallAbort is called (in other words, the stack does not shrink upon successful