[MATRIX-SIG] Bug report - seg-fault
Timothy A. Hochberg
hochberg@wwa.com
Sun, 10 Aug 1997 19:19:01 -0500 (CDT)
I recently found the following anti-social behaviour when multiplying
arrays of zero length on one dimension. Python seg-faults when the second
dimension is mismatched by 4 or 5 (it depends...). Can anyone else
reproduce this? I haven't tried to track it down in the C code, but maybe
I'll get a chance to try to next week...
>>> from Numeric import *
>>> ones((0,1))*ones((0,2))
zeros((0, 2), 'l')
>>> ones((0,1))*ones((0,3))
zeros((0, 3), 'l')
>>> ones((0,1))*ones((0,4))
Segmentation fault (core dumped)
____
/im
+------------------------------------------------+
|Tim Hochberg Research Assistant |
|hochberg <at> wwa.com University of Illinois |
| Electrical Engineering |
+------------------------------------------------+
_______________
MATRIX-SIG - SIG on Matrix Math for Python
send messages to: matrix-sig@python.org
administrivia to: matrix-sig-request@python.org
_______________