6

Bug introduced in 9.0 and persisting through 11.0


Can anyone reproduce the following bug, or figure out a work-around. The following crashes the kernel on both Mathematica 10 and 11, on my macs, running OSX 10.10 and 10.11:

Cl[len_Integer] := SparseArray[{
  Band[{1, 1}] -> Table[-2., {len}],
  Band[{1, 2}] -> Table[1. + 1./(2 j - 1.), {j, 1., len - 1}],
  Band[{2, 1}] -> Table[1. - 1./(2 j + 1.), {j, 1., len - 1}]}, 
  {len, len}]

s = Cl[30]

t = -2. s

The last line (simply multiplying the matrix by a negative number) causes the crash. I have tried changing the matrix -- and some changes help, other do not. Multiplying by positive numbers is fine.

Michael E2
  • 235,386
  • 17
  • 334
  • 747
Erich Mueller
  • 451
  • 3
  • 9

1 Answers1

3

This is a bug. From @ilian's comment:

Workaround: turn off the Suggestions bar.

Szabolcs
  • 234,956
  • 30
  • 623
  • 1,263