Installer and Mixing Numeric and numarray

Berthold Höllmann hoel at gl-group.com
Mon Mar 17 16:38:44 CET 2003


Hello,

I am trying to freeze a program using the McMillan Installer version
5, alpha 1 which has to use Numeric and numarray in parallell. But the
generated executable just gives a segmentation fault. Here' what I
get:

>cat aa.py
import Numeric as N
print "AA"
import numarray as n
print "BB"
print N.arange(19)
print n.arange(19)
>python -OO ~/work/Installer/Makespec.py --name aaa aa.py
...
>python -OO ~/work/Installer/Build.py aaa.spec
...
>./distaaa/aaa
Adding parser accelerators ...
Done.
AA
Segmentation fault (core dumped)
>python aa.py
Adding parser accelerators ...
Done.
AA
BB
[ 0  1  2  3  4  5  6  7  8  9 10 11 12 13 14 15 16 17 18]
[ 0  1  2  3  4  5  6  7  8  9 10 11 12 13 14 15 16 17 18]
[23388 refs]

gdb gives:

>gdb distaaa/aaa core
GNU gdb 5.2.1
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i686-pc-linux-gnu"...
Core was generated by `./distaaa/aaa'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /lib/libdl.so.2...done.
Loaded symbols for /lib/libdl.so.2
Reading symbols from /lib/libpthread.so.0...done.
Loaded symbols for /lib/libpthread.so.0
Reading symbols from /lib/libutil.so.1...done.
Loaded symbols for /lib/libutil.so.1
Reading symbols from /lib/libm.so.6...done.
Loaded symbols for /lib/libm.so.6
Reading symbols from /lib/libz.so.1...done.
Loaded symbols for /lib/libz.so.1
Reading symbols from /lib/libc.so.6...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /lib/ld-linux.so.2...done.
Loaded symbols for /lib/ld-linux.so.2
Reading symbols from ./distaaa/struct.so...done.
Loaded symbols for ./distaaa/struct.so
Reading symbols from ./distaaa/zlib.so...done.
Loaded symbols for ./distaaa/zlib.so
Reading symbols from ./distaaa/_codecs.so...done.
Loaded symbols for ./distaaa/_codecs.so
Reading symbols from ./distaaa/multiarray.so...done.
Loaded symbols for ./distaaa/multiarray.so
Reading symbols from ./distaaa/_numpy.so...done.
Loaded symbols for ./distaaa/_numpy.so
Reading symbols from ./distaaa/umath.so...done.
Loaded symbols for ./distaaa/umath.so
Reading symbols from ./distaaa/strop.so...done.
Loaded symbols for ./distaaa/strop.so
Reading symbols from ./distaaa/math.so...done.
Loaded symbols for ./distaaa/math.so
Reading symbols from ./distaaa/cStringIO.so...done.
Loaded symbols for ./distaaa/cStringIO.so
Reading symbols from ./distaaa/memory.so...done.
Loaded symbols for ./distaaa/memory.so
Reading symbols from ./distaaa/operator.so...done.
Loaded symbols for ./distaaa/operator.so
Reading symbols from ./distaaa/_conv.so...done.
Loaded symbols for ./distaaa/_conv.so
#0  0x402656ea in init_funcDict () at Src/_convmodule.c:2337
---Type <return> to continue, or q <return> to quit---
2337        NA_add_cfunc(dict, "('Bool', 'asPyValue')", (void *) &BoolasPyValue_descr);


I get this with Python 2.2.1, Numeric 21.0, numarray 0.4 as well as
with Python 2.2.2, Numeric 22.0, numarray 0.4, both under Linux. Is
there any fix or workarround?

Thanks
Berthold
-- 
Dipl.-Ing. Berthold Höllmann   __   Address:
hoel at GL-Group.com           G /  \ L Germanischer Lloyd
phone: +49-40-36149-7374    -+----+- Vorsetzen 32/35    P.O.Box 111606
fax  : +49-40-36149-7320      \__/   D-20459 Hamburg    D-20416 Hamburg




More information about the Python-list mailing list