[MATRIX-SIG] Bug report - seg-fault

Jean-Bernard ADDOR jbaddor@phy.ulaval.ca
Mon, 11 Aug 1997 09:00:39 -0400 (EDT)


Hy !

It seems to give the expected result on sunos.

Python 1.4 (Apr 12 1997)  [GCC 2.7.2]
Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
>>> 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))
zeros((0, 4), 'l')
>>> 


A bientot,

	Jean-Bernard


On Sun, 10 Aug 1997, Timothy A. Hochberg wrote:

> 
> 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
> _______________
> 


_______________
MATRIX-SIG  - SIG on Matrix Math for Python

send messages to: matrix-sig@python.org
administrivia to: matrix-sig-request@python.org
_______________