<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">On 08/26/2014 12:06 PM, Matthew Knepley
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAMYG4GkSc8uzku2JFi+H4eX6SHf3D2vU9EiVwoCzbE5=Wp6umw@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div class="gmail_extra">
          <div class="gmail_quote">On Tue, Aug 26, 2014 at 1:33 AM,
            Nicola Creati <span dir="ltr"><<a moz-do-not-send="true"
                href="mailto:ncreati@inogs.it" target="_blank">ncreati@inogs.it</a>></span>
            wrote:<br>
            <blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Hello,<br>
              I'm writing a large application in Python that uses
              petsc4py to solve some equations. Running my code I note
              that PETSc detects errors in sections (I believe in Cython
              extensions and packages) where petsc4py is not imported or
              used. I do not need to fix the problem, I already did it.
              Is there a way to avoid petsc4py/PETSc to catch errors in
              not PETSc sections of the code?<br>
              This is an example of the error message I got:<br>
              <br>
              [0]PETSC ERROR: ------------------------------------------------------------------------<br>
              [0]PETSC ERROR: Caught signal number 11 SEGV: Segmentation
              Violation, probably memory access out of range<br>
              [0]PETSC ERROR: Try option -start_in_debugger or
              -on_error_attach_debugger<br>
              [0]PETSC ERROR: or see <a moz-do-not-send="true"
href="http://www.mcs.anl.gov/petsc/documentation/faq.html#valgrind[0]PETSC"
                target="_blank">http://www.mcs.anl.gov/petsc/documentation/faq.html#valgrind[0]PETSC</a>
              ERROR: or try <a moz-do-not-send="true"
                href="http://valgrind.org" target="_blank">http://valgrind.org</a>
              on GNU/linux and Apple Mac OS X to find memory corruption
              errors<br>
              [0]PETSC ERROR: likely location of problem given in stack
              below<br>
              [0]PETSC ERROR: ---------------------  Stack Frames
              ------------------------------------<br>
              [0]PETSC ERROR: Note: The EXACT line numbers in the stack
              are not available,<br>
              [0]PETSC ERROR:       INSTEAD the line number of the start
              of the function<br>
              [0]PETSC ERROR:       is given.<br>
              --------------------------------------------------------------------------<br>
              mpiexec noticed that process rank 0 with PID 25694 on node
              daisy exited on signal 11 (Segmentation fault).<br>
              --------------------------------------------------------------------------<br>
              <br>
              I'm using Python 2.7.6, petsc4py 3.4 and PETSc 3.4.3.<br>
            </blockquote>
            <div><br>
            </div>
            <div><a moz-do-not-send="true"
href="http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/Sys/PetscPopSignalHandler.html">http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/Sys/PetscPopSignalHandler.html</a><br>
            </div>
            <div><br>
            </div>
            <div>  Thanks,</div>
            <div><br>
            </div>
            <div>    Matt</div>
            <div> </div>
            <blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Thanks.<span
                class=""><font color="#888888"><br>
                  <br>
                  Nicola<br>
                  <br>
                  -- <br>
                  _____________________________________________________________________<br>
                  Nicola Creati<br>
                  Istituto Nazionale di Oceanografia e di Geofisica
                  Sperimentale - OGS<br>
                  IRI (Ricerca Teconologica e Infrastrutture) Department<br>
                  B.go Grotta Gigante - Brisciki 42/c<br>
                  34010 Sgonico - Zgonik (TS) - Italy<br>
                  Tel. <a moz-do-not-send="true"
                    href="tel:%2B39-0402140213" value="+390402140213"
                    target="_blank">+39-0402140213</a><br>
                  Fax  <a moz-do-not-send="true"
                    href="tel:%2B39-040327307" value="+39040327307"
                    target="_blank">+39-040327307</a><br>
                  <br>
                </font></span></blockquote>
          </div>
          <br>
          <br clear="all">
          <div><br>
          </div>
          -- <br>
          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>
    </blockquote>
    Thank you, but PetscPopSignalHandler has not been wrapped in
    petsc4py.<br>
    <br>
    Nicola<br>
    <br>
    <pre class="moz-signature" cols="72">-- 
_____________________________________________________________________
Nicola Creati
Istituto Nazionale di Oceanografia e di Geofisica Sperimentale - OGS
IRI (Ricerca Teconologica e Infrastrutture) Department
B.go Grotta Gigante - Brisciki 42/c
34010 Sgonico - Zgonik (TS) - Italy
Tel. +39-0402140213
Fax  +39-040327307</pre>
  </body>
</html>