<div dir="ltr"><div dir="ltr"><div dir="ltr">Satish,<div><br></div><div>I have reported this issue to Matt some time ago but he probably forgot to fix it.</div><div><br></div><div>Attached is new tarball for Triangle that fixes the issues with the Intel compilers in next-<span class="gmail-gr_ gmail-gr_150 gmail-gr-alert gmail-gr_spell gmail-gr_inline_cards gmail-gr_disable_anim_appear gmail-ContextualSpelling" id="gmail-150" style="display:inline;border-bottom:2px solid transparent;background-repeat:no-repeat">tmp</span> here <a href="http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2018/11/21/examples_next-tmp_arch-pardiso_grind.log">http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2018/11/21/examples_next-tmp_arch-pardiso_grind.log</a><br></div><div><br></div><div>The changes are minimal, here is the diff</div><div><br></div><div><div>diff -r Triangle/src/triangle.c TriangleOld/src/triangle.c</div><div>326,327d325</div><div>< #else /* Stefano Zampini - Thu Nov 22 10:35:29 +03 2018: we need to include stdlib.h for malloc */</div><div><   #include <stdlib.h></div></div><div><br></div><div>Could you please upload it?<br></div><div><br></div><div>Thanks</div><div>Stefano</div><div><br><div class="gmail_quote"><div dir="ltr">---------- Forwarded message ---------<br>From: <strong class="gmail_sendername" dir="auto">Stefano Zampini</strong> <span dir="ltr"><<a href="mailto:stefano.zampini@gmail.com">stefano.zampini@gmail.com</a>></span><br>Date: lun 15 mag 2017 alle ore 00:23<br>Subject: Re: segv with triangle<br>To: Matthew Knepley <<a href="mailto:knepley@gmail.com">knepley@gmail.com</a>><br></div><br><br><div style="overflow-wrap: break-word;">Matt, I did some test, and it seems related with your NO_PETSC_MALLOC define<div>you should include <stdlib.h> if NO_PETSC_MALLOC is not defined.</div><div>Adding the header file fixed the problem</div><div><br></div><div><br></div><div><div><blockquote type="cite"><div>On May 14, 2017, at 9:24 PM, Matthew Knepley <<a href="mailto:knepley@gmail.com" target="_blank">knepley@gmail.com</a>> wrote:</div><br class="gmail-m_4602103689022677464Apple-interchange-newline"><div><div dir="ltr" style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div class="gmail_extra"><div class="gmail_quote">On Sun, May 14, 2017 at 10:58 AM, Stefano Zampini<span class="gmail-m_4602103689022677464Apple-converted-space"> </span><span dir="ltr"><<a href="mailto:stefano.zampini@gmail.com" target="_blank">stefano.zampini@gmail.com</a>></span><span class="gmail-m_4602103689022677464Apple-converted-space"> </span>wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="overflow-wrap: break-word;">And using the latest intel compiler. Could it be causing the problem?</div></blockquote><div><br></div><div>Possibly. I would</div><div><br></div><div>a) Do a build with gcc. Last time this came up, the gcc build worked. The triangle source is huge, and</div><div>    some compilers just shit the bed with their optimizations.</div><div><br></div><div>b) If that works, we might back off some optimizations</div><div><br></div><div>c) If not, we can get a valgrind trace, but I have never personally seen a triangle bug</div><div><br></div><div>  Thanks,</div><div><br></div><div>     Matt <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="overflow-wrap: break-word;"><div><div class="gmail-m_4602103689022677464h5"><div><div><blockquote type="cite"><div>On May 14, 2017, at 5:44 PM, Stefano Zampini <<a href="mailto:stefano.zampini@gmail.com" target="_blank">stefano.zampini@gmail.com</a>> wrote:</div><br class="gmail-m_4602103689022677464m_4639102632465462953Apple-interchange-newline"><div><div style="overflow-wrap: break-word;">Forgot to say that it is a brand new installation I did, using the latest next<div><br><div><blockquote type="cite"><div>On May 14, 2017, at 5:36 PM, Stefano Zampini <<a href="mailto:stefano.zampini@gmail.com" target="_blank">stefano.zampini@gmail.com</a>> wrote:</div><br class="gmail-m_4602103689022677464m_4639102632465462953Apple-interchange-newline"><div><div style="overflow-wrap: break-word;">Matt,<div><br></div><div>this is from next, on a machine I have never run on</div><div><br></div><div><div style="margin:0px;font-size:14px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)"><span style="font-variant-ligatures:no-common-ligatures">#0  0x00007ffff74735a1 in poolinit (pool=0x7ffff7dd9b80 <triangles>, bytecount=72, itemcount=4092, wtype=POINTER, alignment=4) at src/triangle.c:3227</span></div><div style="margin:0px;font-size:14px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)"><span style="font-variant-ligatures:no-common-ligatures">#1  0x00007ffff7473fe0 in initializetrisegpools () at src/triangle.c:3597</span></div><div style="margin:0px;font-size:14px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)"><span style="font-variant-ligatures:no-common-ligatures">#2  0x00007ffff748e5e6 in delaunay () at src/triangle.c:8648</span></div><div style="margin:0px;font-size:14px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)"><span style="font-variant-ligatures:no-common-ligatures">#3  0x00007ffff749870c in triangulate (triswitches=0x7fffffffb020 "pqezQ", in=0x7fffffffb1f0, out=0x7fffffffb298, vorout=0x0) at src/triangle.c:12993</span></div><div style="margin:0px;font-size:14px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)"><span style="font-variant-ligatures:no-common-ligatures">#4  0x00007ffff5e2ed22 in DMPlexGenerate_Triangle (boundary=0x8218f0, interpolate=PETSC_FALSE, dm=0x7fffffffc580)</span></div><div style="margin:0px;font-size:14px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)"><span style="font-variant-ligatures:no-common-ligatures">   <span class="gmail-m_4602103689022677464Apple-converted-space"> </span>at /marconi/home/userexternal/lpavarin/petsc/src/dm/impls/plex/plexgenerate.c:269</span></div><div style="margin:0px;font-size:14px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)"><span style="font-variant-ligatures:no-common-ligatures">#5  0x00007ffff5e3830c in DMPlexGenerate (boundary=0x8218f0, name=0x0, interpolate=PETSC_FALSE, mesh=0x7fffffffc580)</span></div><div style="margin:0px;font-size:14px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)"><span style="font-variant-ligatures:no-common-ligatures">   <span class="gmail-m_4602103689022677464Apple-converted-space"> </span>at /marconi/home/userexternal/lpavarin/petsc/src/dm/impls/plex/plexgenerate.c:1097</span></div><div style="margin:0px;font-size:14px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)"><span style="font-variant-ligatures:no-common-ligatures">#6  0x00007ffff5b50da4 in DMPlexCreateBoxMesh (comm=1140850688, dim=2, numFaces=2, interpolate=PETSC_FALSE, dm=0x7fffffffc580)</span></div><div style="margin:0px;font-size:14px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)"><span style="font-variant-ligatures:no-common-ligatures">   <span class="gmail-m_4602103689022677464Apple-converted-space"> </span>at /marconi/home/userexternal/lpavarin/petsc/src/dm/impls/plex/plexcreate.c:491</span></div><div style="margin:0px;font-size:14px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)"><span style="font-variant-ligatures:no-common-ligatures">#7  0x0000000000404ffa in CreateMesh (comm=1140850688, user=0x7fffffffc538, dm=0x7fffffffc580)</span></div><div style="margin:0px;font-size:14px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)"><span style="font-variant-ligatures:no-common-ligatures">   <span class="gmail-m_4602103689022677464Apple-converted-space"> </span>at /marconi/home/userexternal/lpavarin/petsc/src/snes/examples/tutorials/ex62.c:305</span></div><div style="margin:0px;font-size:14px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)"><span style="font-variant-ligatures:no-common-ligatures">#8  0x0000000000408b95 in main (argc=1, argv=0x7fffffffcba8) at /marconi/home/userexternal/lpavarin/petsc/src/snes/examples/tutorials/ex62.c:485</span></div></div></div></div></blockquote></div><br></div></div></div></blockquote></div><br></div></div></div></div></blockquote></div><br><br clear="all"><div><br></div>--<span class="gmail-m_4602103689022677464Apple-converted-space"> </span><br><div class="gmail-m_4602103689022677464gmail_signature">What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>-- Norbert Wiener</div></div></div></div></blockquote></div><br></div></div></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature">Stefano</div></div></div></div></div>