[MATRIX-SIG] Bug report - seg-fault

Carlos Maltzahn carlosm@moet.cs.colorado.edu
Tue, 12 Aug 1997 10:25:13 -0600 (MDT)


On Tue, 12 Aug 1997, Martin Holz wrote:

> Timothy A. Hochberg writes:
>  > 
>  > I think I've found a fix for the problem, although I admit to not fully
>  > understanding it. Here's what I've figured out:
>  > 
>  > a) It never happens for sizes < 4 (e.g., zeros((0,3)) * zeros((0,3)) 
>  >    always works). This probably varies from machine to machine.
>  >
>  > b) For larger sizes, it doesn't always fail. I'd be interested in hearing
>  >    from those of you for whom it didn't crash before as to whether it
>  >    crashes if you repeat zeros((0,1000)) * zeros((0,1000)) several times. 
> 
> You are right. Python does not crash at ones((0,1))*ones((0,4), but
> crashes, if I call  zeros((0,1000)) * zeros((0,1000)).
> I use Solaris 2.5 and gcc 2.7.2.1
> 
> Tschuess
> 	Martin 

Same with Digital Unix 4.0A and its cc compiler. The patch fixed it.

Carlos


_______________
MATRIX-SIG  - SIG on Matrix Math for Python

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