[petsc-users] VecDuplicate for FFTW-Vec causes VecDestroy to fail conditionally on VecLoad
Sajid Ali
sajidsyed2021 at u.northwestern.edu
Fri Nov 1 14:06:33 CDT 2019
Hi PETSc-developers,
I'm unable to debug a crash with VecDestroy that seems to depend only on
whether or not a VecLoad was performed on a vector that was generated by
duplicating one generated by MatCreateVecsFFTW.
I'm attaching two examples ex1.c and ex2.c. The first one just creates
vectors aligned as per FFTW layout, duplicates one of them and destroys all
at the end. A bug related to this was fixed sometime between the 3.11
release and 3.12 release. I've tested this code with the versions 3.11.1
and 3.12.1 and as expected it runs with no issues for 3.12.1 and fails with
3.11.1.
Now, the second one just adds a few lines which load a vector from memory
to the duplicated vector before destroying all. For some reason, this code
fails for both 3.11.1 and 3.12.1 versions. I'm lost as to what may cause
this error and would appreciate any help in how to debug this. Thanks in
advance for the help!
PS: I've attached the two codes, ex1.c/ex2.c, the log files for both make
and run and finally a bash script that was run to compile/log and control
the version of petsc used.
--
Sajid Ali
Applied Physics
Northwestern University
s-sajid-ali.github.io
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20191101/f240800f/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ex1_make_3_12_1
Type: application/octet-stream
Size: 3604 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20191101/f240800f/attachment-0011.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ex1_make_3_11_1
Type: application/octet-stream
Size: 3768 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20191101/f240800f/attachment-0012.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ex1.c
Type: application/octet-stream
Size: 1809 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20191101/f240800f/attachment-0013.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ex1_log_3_12_1
Type: application/octet-stream
Size: 351 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20191101/f240800f/attachment-0014.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ex1_log_3_11_1
Type: application/octet-stream
Size: 433628 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20191101/f240800f/attachment-0015.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ex2.c
Type: application/octet-stream
Size: 2186 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20191101/f240800f/attachment-0016.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ex2_make_3_11_1
Type: application/octet-stream
Size: 3768 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20191101/f240800f/attachment-0017.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ex2_make_3_12_1
Type: application/octet-stream
Size: 3604 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20191101/f240800f/attachment-0018.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ex2_log_3_12_1
Type: application/octet-stream
Size: 433628 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20191101/f240800f/attachment-0019.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.sh
Type: application/octet-stream
Size: 514 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20191101/f240800f/attachment-0020.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ex2_log_3_11_1
Type: application/octet-stream
Size: 434412 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20191101/f240800f/attachment-0021.obj>
More information about the petsc-users
mailing list