<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal>Dear Petsc users and experts,<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>If someone can direct me how to track this bug, I would really appreciate it.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>The Petsc DLL library version 3.19.4 was built on Windows 10 with Visual Studio 2022, and with Microsoft MPI 10.1.2 and Intel MKL 2020.3.279. The same code works fine with Petsc 3.18.6 using the same versions of MS MPI and Intel MKL, and built with Visual Studio 2019.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>When my code calls PetscCall(KSPSolve(...)), it gets to PetscCall(KSPGMRESCycle(...)), PetscCall(VecNormalize(VEC_VV(0), &res)), PetscCall(VecNorm(x, NORM_2, &norm)) and then crashes in VecNorm_Seq() at:<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal> PetscCallBLAS("BLASdot", ztmp[type == NORM_1_AND_2] = PetscSqrtReal(PetscRealPart(BLASdot_(&bn, xx, &one, xx, &one))));<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I tried to step into BLASdot_, but was unable to. I assume BLASdot_ belong to Intel MKL, and its library does not contain debug information. After the code exits, the errors are shown below the hash line.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Should I install the latest Intel MKL to work with Petsc 3.19.4?<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Many thanks in advance for your help,<o:p></o:p></p><p class=MsoNormal>Thuc Bui<o:p></o:p></p><p class=MsoNormal>Senior R&D Engineer<o:p></o:p></p><p class=MsoNormal>Calabazas Creek Research, Inc<o:p></o:p></p><p class=MsoNormal>(650) 948-5361<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>###############################################<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>[0]PETSC ERROR: ------------------------------------------------------------------------<o:p></o:p></p><p class=MsoNormal>[0]PETSC ERROR: Caught signal number 11 SEGV: Segmentation Violation, probably memory access out of range<o:p></o:p></p><p class=MsoNormal>[0]PETSC ERROR: Try option -start_in_debugger or -on_error_attach_debugger<o:p></o:p></p><p class=MsoNormal>[0]PETSC ERROR: or see https://petsc.org/release/faq/#valgrind and https://petsc.org/release/faq/<o:p></o:p></p><p class=MsoNormal>[0]PETSC ERROR: --------------------- Stack Frames ------------------------------------<o:p></o:p></p><p class=MsoNormal>[0]PETSC ERROR: The line numbers in the error traceback are not always exact.<o:p></o:p></p><p class=MsoNormal>[0]PETSC ERROR: #1 BLASdot()<o:p></o:p></p><p class=MsoNormal>[0]PETSC ERROR: #2 VecNorm_Seq() at D:\Users\bbwannabe\Documents\Petsc\latest\src\vec\vec\impls\seq\bvec2.c:213<o:p></o:p></p><p class=MsoNormal>[0]PETSC ERROR: #3 VecNorm() at D:\Users\bbwannabe\Documents\Petsc\latest\src\vec\vec\interface\rvector.c:237<o:p></o:p></p><p class=MsoNormal>[0]PETSC ERROR: #4 VecNormalize() at D:\Users\bbwannabe\Documents\Petsc\latest\src\vec\vec\interface\rvector.c:318<o:p></o:p></p><p class=MsoNormal>[0]PETSC ERROR: #5 KSPGMRESCycle() at D:\Users\bbwannabe\Documents\Petsc\latest\src\ksp\ksp\impls\gmres\gmres.c:110<o:p></o:p></p><p class=MsoNormal>[0]PETSC ERROR: #6 KSPSolve_GMRES() at D:\Users\bbwannabe\Documents\Petsc\latest\src\ksp\ksp\impls\gmres\gmres.c:227<o:p></o:p></p><p class=MsoNormal>[0]PETSC ERROR: #7 KSPSolve_Private() at D:\Users\bbwannabe\Documents\Petsc\latest\src\ksp\ksp\interface\itfunc.c:898<o:p></o:p></p><p class=MsoNormal>[0]PETSC ERROR: #8 KSPSolve() at D:\Users\bbwannabe\Documents\Petsc\latest\src\ksp\ksp\interface\itfunc.c:1070<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>job aborted:<o:p></o:p></p><p class=MsoNormal>[ranks] message<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>[0] application aborted<o:p></o:p></p><p class=MsoNormal>aborting MPI_COMM_WORLD (comm=0x44000000), error 59, comm rank 0<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p></div></body></html>