[Matrix-SIG] LLNL Distribution #10

Les Schaffer godzilla@netmeg.net (Les Schaffer)
Fri, 19 Mar 1999 16:02:43 -0500 (EST)


> Yes. fast_umath was identical to umath. I forgot to mention this
> deletion in the notes.

okay. the tooth is, i never really understood what umath and
fast_umath was (were). unsafe math? sounds like .......

on to Gist:

on the latest release, i just compiled gist with -O2 -g -mpentium, and
got a segfault in the 9th test in gisttest3d.py:

(gustav)/usr/local/src/LLNLDistribution10/Graphics/Gist3D/Demo/: python gisttest3d.py
env variable PYGRAPH is not set, so assuming Gist graphics.
...this can be overruled by the 'graphics' keyword argument
   to Graph2d or Graph3d.
Opening graphics window 0.
Type in any string to continue; ^C to return to prompt. 
[repeated 8 more times]
Segmentation fault (core dumped)

the problem occurs in the s3 = sslice():

      # pseudo-colored plane slice, then cut it in half and save
      # only the front half
      s3 = sslice (m1, pyz, opt_3d = ["wm", "f4"])
      s3 = sslice (s3, pxy, nslices = 1, opt_3d = ["wm", "f4"])

here's the core dump in gdb:

(gustav)/usr/local/src/LLNLDistribution10/Graphics/Gist3D/Demo/: gdb python core
GNU gdb 4.17.0.8 with Linux support
[snip]
This GDB was configured as "i586-pc-linux-gnu"...
Core was generated by `python gisttest3d.py'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /lib/libreadline.so.2...done.
[etc]
Reading symbols from /usr/lib/python1.5/site-packages/graphics/arrayfnsmodule.so...done.

#0  0x4041a933 in slice2 (self=0x0, args=0x811acf0) at ./Gist/Src/gistCmodule.c:5394
5394          valuecc = (Uchar *) (valuec->data);
(gdb) print valuec
$1 = (ArrayObject *) 0x0

(gdb) info args
self = (PyObject *) 0x0
args = (PyObject *) 0x0


(gdb) bt
#0  0x4041a933 in slice2 (self=0x0, args=0x811acf0) at ./Gist/Src/gistCmodule.c:5394
#1  0x8057242 in call_builtin ()
#2  0x8057158 in PyEval_CallObjectWithKeywords ()
#3  0x80564d5 in eval_code2 ()
#4  0x80563ce in eval_code2 ()
#5  0x80563ce in eval_code2 ()
#6  0x80563ce in eval_code2 ()
#7  0x8057f66 in PyEval_EvalCode ()
#8  0x8069a7f in run_node ()
#9  0x8069a44 in run_err_node ()
#10 0x80697d0 in PyRun_File ()
#11 0x8068ba7 in PyRun_SimpleFile ()
#12 0x80695da in PyRun_AnyFile ()
#13 0x8052fbe in Py_Main ()
#14 0x8052a98 in main ()

-- 
____        Les Schaffer              ___| --->> Engineering R&D <<---
Theoretical & Applied Mechanics          |  Designspring, Inc. 
Center for Radiophysics & Space Research |  http://www.designspring.com/
Cornell Univ.  schaffer@tam.cornell.edu  |  les@designspring.com