[petsc-users] KSP_Solve crashes in debug mode

Sajid Ali Syed sasyed at fnal.gov
Thu Feb 9 13:16:47 CST 2023


I’ve also printed out the head struct in the debugger, and it looks like this:

(lldb) print (TRSPACE)*head(TRSPACE) $7 = {
  size = 16
  rsize = 16
  id = 12063
  lineno = 217
  filename = 0x00000001167fd865 "/Users/sasyed/Documents/packages/petsc/src/sys/dll/reg.c"
  functionname = 0x00000001167fde78 "PetscFunctionListDLAllPop_Private"
  classid = -253701943
  stack = {
    function = {
      [0] = 0x000000010189e2da "apply_bunch"
      [1] = 0x000000010189e2da "apply_bunch"
      [2] = 0x000000010189e2da "apply_bunch"
      [3] = 0x000000010189e2da "apply_bunch"
      [4] = 0x000000010189e2da "apply_bunch"
      [5] = 0x000000010189e2da "apply_bunch"
      [6] = 0x000000010189e2da "apply_bunch"
      [7] = 0x000000010189e2da "apply_bunch"
      [8] = 0x000000010189e2da "apply_bunch"
      [9] = 0x000000010189e2da "apply_bunch"
      [10] = 0x000000010189e2da "apply_bunch"
      [11] = 0x000000010189e2da "apply_bunch"
      [12] = 0x000000010189e2da "apply_bunch"
      [13] = 0x000000010189e2da "apply_bunch"
      [14] = 0x000000010189e2da "apply_bunch"
      [15] = 0x000000010189e2da "apply_bunch"
      [16] = 0x000000010189e2da "apply_bunch"
      [17] = 0x000000010189e2da "apply_bunch"
      [18] = 0x000000010189e2da "apply_bunch"
      [19] = 0x000000010189e2da "apply_bunch"
      [20] = 0x000000010189e2da "apply_bunch"
      [21] = 0x000000010189e2da "apply_bunch"
      [22] = 0x000000010189e2da "apply_bunch"
      [23] = 0x000000010189e2da "apply_bunch"
      [24] = 0x000000010189e2da "apply_bunch"
      [25] = 0x000000010189e2da "apply_bunch"
      [26] = 0x000000010189e2da "apply_bunch"
      [27] = 0x000000010189e2da "apply_bunch"
      [28] = 0x000000010189e2da "apply_bunch"
      [29] = 0x000000010189e2da "apply_bunch"
      [30] = 0x000000010189e2da "apply_bunch"
      [31] = 0x000000010189e2da "apply_bunch"
      [32] = 0x000000010189e2da "apply_bunch"
      [33] = 0x000000010189e2da "apply_bunch"
      [34] = 0x000000010189e2da "apply_bunch"
      [35] = 0x000000010189e2da "apply_bunch"
      [36] = 0x000000010189e2da "apply_bunch"
      [37] = 0x000000010189e2da "apply_bunch"
      [38] = 0x000000010189e2da "apply_bunch"
      [39] = 0x000000010189e2da "apply_bunch"
      [40] = 0x000000010189e2da "apply_bunch"
      [41] = 0x000000010189e2da "apply_bunch"
      [42] = 0x000000010189e2da "apply_bunch"
      [43] = 0x000000010189e2da "apply_bunch"
      [44] = 0x000000010189e2da "apply_bunch"
      [45] = 0x000000010189e2da "apply_bunch"
      [46] = 0x000000010189ebba "compute_mat"
      [47] = 0x000000010189f0c3 "solve"
      [48] = 0x00000001168b834c "KSPSolve"
      [49] = 0x00000001168b89f7 "KSPSolve_Private"
      [50] = 0x00000001168b395b "KSPSolve_GMRES"
      [51] = 0x00000001168b37f8 "KSPGMRESCycle"
      [52] = 0x00000001168ae4a7 "KSP_PCApplyBAorAB"
      [53] = 0x0000000116891b38 "PCApplyBAorAB"
      [54] = 0x00000001168917ec "PCApply"
      [55] = 0x00000001168a5337 "PCApply_MG"
      [56] = 0x00000001168a5342 "PCApply_MG_Internal"
      [57] = 0x00000001168a42e1 "PCMGMCycle_Private"
      [58] = 0x00000001168b834c "KSPSolve"
      [59] = 0x00000001168b89f7 "KSPSolve_Private"
      [60] = 0x000000011682e396 "VecDestroy"
      [61] = 0x000000011682d58e "VecDestroy_Seq"
      [62] = 0x00000001168093fe "PetscObjectComposeFunction_Private"
      [63] = 0x0000000116809338 "PetscObjectComposeFunction_Petsc"
    }
    file = {
      [0] = 0x000000010189e27f "/Users/sasyed/Documents/packages/synergia2/src/synergia/collective/space_charge_3d_fd.cc"
      [1] = 0x000000010189e27f "/Users/sasyed/Documents/packages/synergia2/src/synergia/collective/space_charge_3d_fd.cc"
      [2] = 0x000000010189e27f "/Users/sasyed/Documents/packages/synergia2/src/synergia/collective/space_charge_3d_fd.cc"
      [3] = 0x000000010189e27f "/Users/sasyed/Documents/packages/synergia2/src/synergia/collective/space_charge_3d_fd.cc"
      [4] = 0x000000010189e27f "/Users/sasyed/Documents/packages/synergia2/src/synergia/collective/space_charge_3d_fd.cc"
      [5] = 0x000000010189e27f "/Users/sasyed/Documents/packages/synergia2/src/synergia/collective/space_charge_3d_fd.cc"
      [6] = 0x000000010189e27f "/Users/sasyed/Documents/packages/synergia2/src/synergia/collective/space_charge_3d_fd.cc"
      [7] = 0x000000010189e27f "/Users/sasyed/Documents/packages/synergia2/src/synergia/collective/space_charge_3d_fd.cc"
      [8] = 0x000000010189e27f "/Users/sasyed/Documents/packages/synergia2/src/synergia/collective/space_charge_3d_fd.cc"
      [9] = 0x000000010189e27f "/Users/sasyed/Documents/packages/synergia2/src/synergia/collective/space_charge_3d_fd.cc"
      [10] = 0x000000010189e27f "/Users/sasyed/Documents/packages/synergia2/src/synergia/collective/space_charge_3d_fd.cc"
      [11] = 0x000000010189e27f "/Users/sasyed/Documents/packages/synergia2/src/synergia/collective/space_charge_3d_fd.cc"
      [12] = 0x000000010189e27f "/Users/sasyed/Documents/packages/synergia2/src/synergia/collective/space_charge_3d_fd.cc"
      [13] = 0x000000010189e27f "/Users/sasyed/Documents/packages/synergia2/src/synergia/collective/space_charge_3d_fd.cc"
      [14] = 0x000000010189e27f "/Users/sasyed/Documents/packages/synergia2/src/synergia/collective/space_charge_3d_fd.cc"
      [15] = 0x000000010189e27f "/Users/sasyed/Documents/packages/synergia2/src/synergia/collective/space_charge_3d_fd.cc"
      [16] = 0x000000010189e27f "/Users/sasyed/Documents/packages/synergia2/src/synergia/collective/space_charge_3d_fd.cc"
      [17] = 0x000000010189e27f "/Users/sasyed/Documents/packages/synergia2/src/synergia/collective/space_charge_3d_fd.cc"
      [18] = 0x000000010189e27f "/Users/sasyed/Documents/packages/synergia2/src/synergia/collective/space_charge_3d_fd.cc"
      [19] = 0x000000010189e27f "/Users/sasyed/Documents/packages/synergia2/src/synergia/collective/space_charge_3d_fd.cc"
      [20] = 0x000000010189e27f "/Users/sasyed/Documents/packages/synergia2/src/synergia/collective/space_charge_3d_fd.cc"
      [21] = 0x000000010189e27f "/Users/sasyed/Documents/packages/synergia2/src/synergia/collective/space_charge_3d_fd.cc"
      [22] = 0x000000010189e27f "/Users/sasyed/Documents/packages/synergia2/src/synergia/collective/space_charge_3d_fd.cc"
      [23] = 0x000000010189e27f "/Users/sasyed/Documents/packages/synergia2/src/synergia/collective/space_charge_3d_fd.cc"
      [24] = 0x000000010189e27f "/Users/sasyed/Documents/packages/synergia2/src/synergia/collective/space_charge_3d_fd.cc"
      [25] = 0x000000010189e27f "/Users/sasyed/Documents/packages/synergia2/src/synergia/collective/space_charge_3d_fd.cc"
      [26] = 0x000000010189e27f "/Users/sasyed/Documents/packages/synergia2/src/synergia/collective/space_charge_3d_fd.cc"
      [27] = 0x000000010189e27f "/Users/sasyed/Documents/packages/synergia2/src/synergia/collective/space_charge_3d_fd.cc"
      [28] = 0x000000010189e27f "/Users/sasyed/Documents/packages/synergia2/src/synergia/collective/space_charge_3d_fd.cc"
      [29] = 0x000000010189e27f "/Users/sasyed/Documents/packages/synergia2/src/synergia/collective/space_charge_3d_fd.cc"
      [30] = 0x000000010189e27f "/Users/sasyed/Documents/packages/synergia2/src/synergia/collective/space_charge_3d_fd.cc"
      [31] = 0x000000010189e27f "/Users/sasyed/Documents/packages/synergia2/src/synergia/collective/space_charge_3d_fd.cc"
      [32] = 0x000000010189e27f "/Users/sasyed/Documents/packages/synergia2/src/synergia/collective/space_charge_3d_fd.cc"
      [33] = 0x000000010189e27f "/Users/sasyed/Documents/packages/synergia2/src/synergia/collective/space_charge_3d_fd.cc"
      [34] = 0x000000010189e27f "/Users/sasyed/Documents/packages/synergia2/src/synergia/collective/space_charge_3d_fd.cc"
      [35] = 0x000000010189e27f "/Users/sasyed/Documents/packages/synergia2/src/synergia/collective/space_charge_3d_fd.cc"
      [36] = 0x000000010189e27f "/Users/sasyed/Documents/packages/synergia2/src/synergia/collective/space_charge_3d_fd.cc"
      [37] = 0x000000010189e27f "/Users/sasyed/Documents/packages/synergia2/src/synergia/collective/space_charge_3d_fd.cc"
      [38] = 0x000000010189e27f "/Users/sasyed/Documents/packages/synergia2/src/synergia/collective/space_charge_3d_fd.cc"
      [39] = 0x000000010189e27f "/Users/sasyed/Documents/packages/synergia2/src/synergia/collective/space_charge_3d_fd.cc"
      [40] = 0x000000010189e27f "/Users/sasyed/Documents/packages/synergia2/src/synergia/collective/space_charge_3d_fd.cc"
      [41] = 0x000000010189e27f "/Users/sasyed/Documents/packages/synergia2/src/synergia/collective/space_charge_3d_fd.cc"
      [42] = 0x000000010189e27f "/Users/sasyed/Documents/packages/synergia2/src/synergia/collective/space_charge_3d_fd.cc"
      [43] = 0x000000010189e27f "/Users/sasyed/Documents/packages/synergia2/src/synergia/collective/space_charge_3d_fd.cc"
      [44] = 0x000000010189e27f "/Users/sasyed/Documents/packages/synergia2/src/synergia/collective/space_charge_3d_fd.cc"
      [45] = 0x000000010189e27f "/Users/sasyed/Documents/packages/synergia2/src/synergia/collective/space_charge_3d_fd.cc"
      [46] = 0x000000010189e926 "/Users/sasyed/Documents/packages/synergia2/src/synergia/collective/space_charge_3d_fd_utils.cc"
      [47] = 0x000000010189e926 "/Users/sasyed/Documents/packages/synergia2/src/synergia/collective/space_charge_3d_fd_utils.cc"
      [48] = 0x00000001168b7d65 "/Users/sasyed/Documents/packages/petsc/src/ksp/ksp/interface/itfunc.c"
      [49] = 0x00000001168b7d65 "/Users/sasyed/Documents/packages/petsc/src/ksp/ksp/interface/itfunc.c"
      [50] = 0x00000001168b37b1 "/Users/sasyed/Documents/packages/petsc/src/ksp/ksp/impls/gmres/gmres.c"
      [51] = 0x00000001168b37b1 "/Users/sasyed/Documents/packages/petsc/src/ksp/ksp/impls/gmres/gmres.c"
      [52] = 0x000000011689fcb9 "/Users/sasyed/Documents/packages/petsc/include/petsc/private/kspimpl.h"
      [53] = 0x00000001168915b0 "/Users/sasyed/Documents/packages/petsc/src/ksp/pc/interface/precon.c"
      [54] = 0x00000001168915b0 "/Users/sasyed/Documents/packages/petsc/src/ksp/pc/interface/precon.c"
      [55] = 0x00000001168a42f4 "/Users/sasyed/Documents/packages/petsc/src/ksp/pc/impls/mg/mg.c"
      [56] = 0x00000001168a42f4 "/Users/sasyed/Documents/packages/petsc/src/ksp/pc/impls/mg/mg.c"
      [57] = 0x00000001168a42f4 "/Users/sasyed/Documents/packages/petsc/src/ksp/pc/impls/mg/mg.c"
      [58] = 0x00000001168b7d65 "/Users/sasyed/Documents/packages/petsc/src/ksp/ksp/interface/itfunc.c"
      [59] = 0x00000001168b7d65 "/Users/sasyed/Documents/packages/petsc/src/ksp/ksp/interface/itfunc.c"
      [60] = 0x000000011682e091 "/Users/sasyed/Documents/packages/petsc/src/vec/vec/interface/vector.c"
      [61] = 0x000000011682d339 "/Users/sasyed/Documents/packages/petsc/src/vec/vec/impls/seq/bvec2.c"
      [62] = 0x0000000116808dea "/Users/sasyed/Documents/packages/petsc/src/sys/objects/inherit.c"
      [63] = 0x0000000116808dea "/Users/sasyed/Documents/packages/petsc/src/sys/objects/inherit.c"
    }
    line = {
      [0] = 198
      [1] = 198
      [2] = 198
      [3] = 198
      [4] = 198
      [5] = 198
      [6] = 198
      [7] = 198
      [8] = 198
      [9] = 198
      [10] = 198
      [11] = 198
      [12] = 198
      [13] = 198
      [14] = 198
      [15] = 198
      [16] = 198
      [17] = 198
      [18] = 198
      [19] = 198
      [20] = 198
      [21] = 198
      [22] = 198
      [23] = 198
      [24] = 198
      [25] = 198
      [26] = 198
      [27] = 198
      [28] = 198
      [29] = 198
      [30] = 198
      [31] = 198
      [32] = 198
      [33] = 198
      [34] = 198
      [35] = 198
      [36] = 198
      [37] = 198
      [38] = 198
      [39] = 198
      [40] = 198
      [41] = 198
      [42] = 198
      [43] = 198
      [44] = 198
      [45] = 198
      [46] = 326
      [47] = 413
      [48] = 1070
      [49] = 898
      [50] = 228
      [51] = 147
      [52] = 416
      [53] = 715
      [54] = 441
      [55] = 633
      [56] = 611
      [57] = 28
      [58] = 1070
      [59] = 811
      [60] = 528
      [61] = 734
      [62] = 815
      [63] = 691
    }
    petscroutine = {
      [0] = 2
      [1] = 2
      [2] = 2
      [3] = 191
      [4] = 2
      [5] = 2
      [6] = 2
      [7] = 2
      [8] = 2
      [9] = 2
      [10] = 2
      [11] = 2
      [12] = 2
      [13] = 2
      [14] = 2
      [15] = 2
      [16] = 2
      [17] = 2
      [18] = 2
      [19] = 2
      [20] = 2
      [21] = 2
      [22] = 2
      [23] = 2
      [24] = 2
      [25] = 2
      [26] = 2
      [27] = 2
      [28] = 2
      [29] = 2
      [30] = 2
      [31] = 2
      [32] = 2
      [33] = 2
      [34] = 2
      [35] = 2
      [36] = 2
      [37] = 2
      [38] = 2
      [39] = 2
      [40] = 2
      [41] = 2
      [42] = 2
      [43] = 2
      [44] = 2
      [45] = 2
      [46] = 2
      [47] = 2
      [48] = 1
      [49] = 1
      [50] = 1
      [51] = 1
      [52] = 1
      [53] = 1
      [54] = 1
      [55] = 1
      [56] = 1
      [57] = 1
      [58] = 1
      [59] = 1
      [60] = 1
      [61] = 1
      [62] = 1
      [63] = 1
    }
    currentsize = 69
    hotdepth = 0
    check = PETSC_TRUE
  }
  next = 0x0000000100000000
  prev = NULL
}
(lldb)


​
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20230209/8cee5dd6/attachment-0001.html>


More information about the petsc-users mailing list