[petsc-users] Segfault in DMPlexDistributeFieldIS with -log_view
Adrian Croucher
a.croucher at auckland.ac.nz
Thu Sep 12 21:31:25 CDT 2019
hi
My code is using DMPlexDistributeFieldIS() to distribute an index set,
and it seems to work ok, except if I run with -log_view.
In that case I get the error below.
The code (Fortran) looks like this:
call PetscSectionCreate(PETSC_COMM_WORLD, dist_section, ierr)
CHKERRQ(ierr)
call ISCreate(PETSC_COMM_WORLD, dist_index_set, ierr)
CHKERRQ(ierr)
call DMPlexDistributeFieldIS(self%dm, sf, section, &
index_set, dist_section, &
dist_index_set, ierr); CHKERRQ(ierr)
call PetscSectionDestroy(dist_section, ierr); CHKERRQ(ierr)
call ISDestroy(index_set, ierr); CHKERRQ(ierr)
index_set = dist_index_set
I'm running the master branch.
Any clues?
- Adrian
--
[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
------------------------------------
[1]PETSC ERROR:
------------------------------------------------------------------------
[1]PETSC ERROR: Caught signal number 11 SEGV: Segmentation Violation,
probably memory access out of range
[1]PETSC ERROR: Try option -start_in_debugger or -on_error_attach_debugger
[1]PETSC ERROR: or see
https://www.mcs.anl.gov/petsc/documentation/faq.html#valgrind
[1]PETSC ERROR: or try http://valgrind.org on GNU/linux and Apple Mac OS
X to find memory corruption errors
[1]PETSC ERROR: likely location of problem given in stack below
[1]PETSC ERROR: --------------------- Stack Frames
------------------------------------
[1]PETSC ERROR: Note: The EXACT line numbers in the stack are not available,
[1]PETSC ERROR: INSTEAD the line number of the start of the function
[1]PETSC ERROR: is given.
[1]PETSC ERROR: [1] PetscLogEventBeginDefault line 642
/home/acro018/software/PETSc/code/src/sys/logging/utils/eventlog.c
[1]PETSC ERROR: [1] DMPlexDistributeFieldIS line 831
/home/acro018/software/PETSc/code/src/dm/impls/plex/plexdistribute.c
[0]PETSC ERROR: Note: The EXACT line numbers in the stack are not available,
[0]PETSC ERROR: INSTEAD the line number of the start of the function
[0]PETSC ERROR: is given.
[0]PETSC ERROR: [0] PetscLogEventBeginDefault line 642
/home/acro018/software/PETSc/code/src/sys/logging/utils/eventlog.c
[0]PETSC ERROR: [1]PETSC ERROR: --------------------- Error Message
--------------------------------------------------------------
[1]PETSC ERROR: Signal received
[1]PETSC ERROR: See https://www.mcs.anl.gov/petsc/documentation/faq.html
for trouble shooting.
[1]PETSC ERROR: Petsc Development GIT revision:
v3.11.3-1582-gcb66735359 GIT Date: 2019-08-04 16:01:27 -0500
[1]PETSC ERROR: waiwera on a linux-gnu-c-debug named en-354401 by
acro018 Fri Sep 13 14:20:41 2019
[1]PETSC ERROR: Configure options --with-x --download-hdf5
--download-zlib --download-netcdf --download-pnetcdf --download-exodusii
--download-triangle --download-ptscotch --download-chaco --download-hypre
[1]PETSC ERROR: #1 User provided function() line 0 in unknown file
[0] DMPlexDistributeFieldIS line 831
/home/acro018/software/PETSc/code/src/dm/impls/plex/plexdistribute.c
[0]PETSC ERROR: --------------------- Error Message
--------------------------------------------------------------
[0]PETSC ERROR: Signal received
[0]PETSC ERROR: See https://www.mcs.anl.gov/petsc/documentation/faq.html
for trouble shooting.
[0]PETSC ERROR: Petsc Development GIT revision:
v3.11.3-1582-gcb66735359 GIT Date: 2019-08-04 16:01:27 -0500
[0]PETSC ERROR: waiwera on a linux-gnu-c-debug named en-354401 by
acro018 Fri Sep 13 14:20:41 2019
[0]PETSC ERROR: Configure options --with-x --download-hdf5
--download-zlib --download-netcdf --download-pnetcdf --download-exodusii
--download-triangle --download-ptscotch --download-chaco --download-hypre
[0]PETSC ERROR: #1 User provided function() line 0 in unknown file
--
Dr Adrian Croucher
Senior Research Fellow
Department of Engineering Science
University of Auckland, New Zealand
email: a.croucher at auckland.ac.nz
tel: +64 (0)9 923 4611
More information about the petsc-users
mailing list