Another one, not quoted

From: Squeak <>
Date: Thu, 27 May 1999 03:35:09 -0400 (EDT)

genius> [c, [1,2]]*[d:[1:2]]
Variable 'c' used unitialized
Variable 'd' used unitialized
Primitives must get numeric/matrix/string arguments
Segmentation fault (core dumped)

(gdb) where
#0 0x8080d5e in mpz_clear ()
#1 0x8063ad5 in mpwl_clear (op=0x80b51a8) at mpwrap.c:1126
#2 0x8063c4b in mpwl_free (op=0x80b51a8, local=0) at mpwrap.c:1176
#3 0x80689bf in mpw_clear (op=0xbffffab8) at mpwrap.c:3162
#4 0x8055241 in op_two_nodes (rr=0x80b5328, ll=0x80b54b0, oper=6) at
#5 0x80559ca in expensive_matrix_multiply (res=0x80b5538, m1=0x80b54c8,
    at eval.c:2535
#6 0x8055cd4 in matrix_mul_op (n=0x80b52c0, arg=0xbffffb6c, f=0x806a094)
at eval.c:2586
#7 0x80580b7 in evaloper (n=0x80b52c0, argeval=1, do_ret=1) at
#8 0x8059f9f in evalnode_full (n=0x80b52c0, do_ret=1) at eval.c:3458
#9 0x804d434 in runexp (exp=0x80b52c0) at calc.c:1242
#10 0x804d56c in evalexp_parsed (parsed=0x80b52c0, outfile=0x400574e0,
    prefix=0x808546c "= ", pretty=1) at calc.c:1284
#11 0x805adf0 in main (argc=1, argv=0xbffffc54) at genius.c:238

There also seems to be some weirdness associated with [1,2]*[1,2]
being equal to [0,0] if the multiplication is carried out in a quoted
matrix. I forgot to quote, and found this bug.
Received on Thu May 27 1999 - 00:09:00 CDT

This archive was generated by hypermail 2.2.0 : Sun Apr 17 2011 - 21:00:02 CDT