On Mon, Sep 10, 2012 at 3:00 AM, Aron Ahmadia <span dir="ltr"><<a href="mailto:aron@ahmadia.net" target="_blank">aron@ahmadia.net</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Hey guys,<div><br></div><div>I'm running somebody else's petsc4py application script and I'm seeing a segmentation fault in __pyx_module_cleanup ().</div><div><br></div><div>I'll spend some time debugging this later, but has anybody run into this before and have hints on where to start looking?</div>
</div></blockquote><div><br></div><div>You should always compile the petsc4py stuff with symbols.</div><div><br></div><div>  Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div>petsc4py: 1.2</div><div>petsc: 3.2-p5</div><div><br></div><div>The application script is here: <a href="https://github.com/cbm755/cp_matrices/blob/refactor/python/examples/petsc/heat_circle_petsc_solve.py" target="_blank">https://github.com/cbm755/cp_matrices/blob/refactor/python/examples/petsc/heat_circle_petsc_solve.py</a></div>

<div><br></div><div>Here's the stack trace:</div><div><br></div><div><div>Program received signal SIGSEGV, Segmentation fault.</div><div>0x0000000101df589b in __pyx_module_cleanup ()</div><div>   from /Users/aron/.virtualenvs/pyclaw/lib/python2.7/site-packages/petsc4py/lib/arch-darwin-c-debug/PETSc.so</div>

<div>(gdb) where</div><div>#0  0x0000000101df589b in __pyx_module_cleanup ()</div><div>   from /Users/aron/.virtualenvs/pyclaw/lib/python2.7/site-packages/petsc4py/lib/arch-darwin-c-debug/PETSc.so</div><div>#1  0x00000001000c4960 in PyEval_EvalFrameEx () from /usr/local/Cellar/python/2.7.2/lib/libpython2.7.dylib</div>

<div>#2  0x00000001000c66f6 in PyEval_EvalCodeEx () from /usr/local/Cellar/python/2.7.2/lib/libpython2.7.dylib</div><div>#3  0x000000010003d440 in function_call () from /usr/local/Cellar/python/2.7.2/lib/libpython2.7.dylib</div>

<div>#4  0x000000010000c122 in PyObject_Call () from /usr/local/Cellar/python/2.7.2/lib/libpython2.7.dylib</div><div>#5  0x00000001000be0b7 in PyEval_CallObjectWithKeywords () from /usr/local/Cellar/python/2.7.2/lib/libpython2.7.dylib</div>

<div>#6  0x00000001000eb33a in Py_Finalize () from /usr/local/Cellar/python/2.7.2/lib/libpython2.7.dylib</div><div>#7  0x0000000100101fff in Py_Main () from /usr/local/Cellar/python/2.7.2/lib/libpython2.7.dylib</div><div>

#8  0x0000000100000e22 in _start ()</div><div>#9  0x0000000100000d41 in start ()</div></div><div><br></div><div><br></div></div>
</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<br>