I don't seem to get anything with this, but I now see that the segv is on the 2nd call to LandauKokkosJacobian, which adds the mass matrix, with shift. I am working on the mass matrix part now. Let me try adding print statements in LandauKokkosJacobian. (DDT failed to trace into that method, but let's see).
CHKMEMQ;
PetscPrintf(PETSC_COMM_SELF,"call LandauKokkosJacobian\n");
ierr = LandauKokkosJacobian(ctx->plex,Nq,Eq_m,IPf,N,xdata,ctx->SData_d,ctx->subThreadBlockSize,shift,ctx->events,JacP);CHKERRQ(ierr);
00:37 adams/landau-mass-opt *= /gpfs/alpine/csc314/scratch/adams/petsc/src/ts/utils/dmplexlandau/tutorials$ make PETSC_ARCH=arch-summit-opt-gnu-kokkos-notpl-cuda10 -f mymake tiny EXTRA='-dm_mat_type aijkokkos -dm_vec_type kokkos -malloc_debug' DEVICE=kokkos
jsrun -n 1 -c 1 -g 1 ./ex2 -dim 2 -ex2_test_type none -dm_landau_Ez 0 -petscspace_degree 3 -dm_preallocate_only -dm_landau_type p4est -dm_landau_ion_masses 1 -dm_landau_ion_charges 1 -dm_landau_thermal_temps 4,4 -dm_landau_n 1,1 -ts_monitorx -snes_rtol 1.e-14 -snes_stol 1.e-14 -snes_monitor -snes_converged_reason -snes_max_it 14 -ts_type beuler -ts_exact_final_time stepover -ts_max_snes_failures 1 -ts_rtol 5e-1 -ts_dt .5 -ts_max_steps 1 -pc_type lu -ksp_type preonly -dm_landau_amr_levels_max 13 -dm_landau_device_type kokkos -dm_mat_type aijkokkos -dm_vec_type kokkos -malloc_debug
[0]FormLandau: 1280 IPs, 80 cells, totDim=32, Nb=16, Nq=16, elemMatSize=1024, dim=2, Tab: Nb=16 Nf=2 Np=16 cdim=2 N=1406 shift=0.
call LandauKokkosJacobian
0 SNES Function norm 4.974994975313e-03
call LandauKokkosJacobian
[0]PETSC ERROR: ------------------------------------------------------------------------
[0]PETSC ERROR: Caught signal number 11 SEGV: Segmentation Violation, probably memory access out of range
[0]PETSC ERROR: Try option -start_in_debugger or -on_error_attach_debugger
[0]PETSC ERROR: or see
https://www.mcs.anl.gov/petsc/documentation/faq.html#valgrind[0]PETSC ERROR: or try
http://valgrind.org on GNU/linux and Apple Mac OS X to find memory corruption errors
[0]PETSC ERROR: likely location of problem given in stack below
[0]PETSC ERROR: --------------------- Stack Frames ------------------------------------
[0]PETSC ERROR: The EXACT line numbers in the error traceback are not available.
[0]PETSC ERROR: instead the line number of the start of the function is given.
[0]PETSC ERROR: #1 LandauKokkosJacobian() at /gpfs/alpine/csc314/scratch/adams/petsc/src/ts/utils/dmplexlandau/kokkos/landau.kokkos.cxx:272
[0]PETSC ERROR: #2 LandauFormJacobian_Internal() at /gpfs/alpine/csc314/scratch/adams/petsc/src/ts/utils/dmplexlandau/plexland.c:66
[0]PETSC ERROR: #3 LandauIJacobian() at /gpfs/alpine/csc314/scratch/adams/petsc/src/ts/utils/dmplexlandau/plexland.c:2093
[0]PETSC ERROR: #4 TS user implicit Jacobian() at /gpfs/alpine/csc314/scratch/adams/petsc/src/ts/interface/ts.c:933
[0]PETSC ERROR: #5 TSComputeIJacobian() at /gpfs/alpine/csc314/scratch/adams/petsc/src/ts/interface/ts.c:916
[0]PETSC ERROR: #6 SNESTSFormJacobian_Theta() at /gpfs/alpine/csc314/scratch/adams/petsc/src/ts/impls/implicit/theta/theta.c:1000
[0]PETSC ERROR: #7 SNESTSFormJacobian() at /gpfs/alpine/csc314/scratch/adams/petsc/src/ts/interface/ts.c:4407
[0]PETSC ERROR: #8 SNES user Jacobian function() at /gpfs/alpine/csc314/scratch/adams/petsc/src/snes/interface/snes.c:2823
[0]PETSC ERROR: #9 SNESComputeJacobian() at /gpfs/alpine/csc314/scratch/adams/petsc/src/snes/interface/snes.c:2782
[0]PETSC ERROR: #10 SNESSolve() at /gpfs/alpine/csc314/scratch/adams/petsc/src/snes/interface/snes.c:4653
[0]PETSC ERROR: #11 TSTheta_SNESSolve() at /gpfs/alpine/csc314/scratch/adams/petsc/src/ts/impls/implicit/theta/theta.c:184
[0]PETSC ERROR: #12 TSStep_Theta() at /gpfs/alpine/csc314/scratch/adams/petsc/src/ts/impls/implicit/theta/theta.c:200
[0]PETSC ERROR: #13 TSStep() at /gpfs/alpine/csc314/scratch/adams/petsc/src/ts/interface/ts.c:3548
[0]PETSC ERROR: --------------------- Error Message --------------------------------------------------------------