6
$\begingroup$

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.

$\endgroup$
10
  • $\begingroup$ It works on Mathematica 10 for windows. $\endgroup$
    – mattiav27
    Feb 7, 2017 at 19:15
  • $\begingroup$ It works fine on v10.0.1 on a Mac. Do you possibly have some lingering definitions? Have you tried quitting the kernel and evaluating just these cells? $\endgroup$
    – march
    Feb 7, 2017 at 19:21
  • $\begingroup$ Happens to me as well... -2. s crashes the kernel. Mac 10.11.6, Mathematica 11.0.1 $\endgroup$
    – bill s
    Feb 7, 2017 at 19:23
  • 6
    $\begingroup$ We're investigating it. $\endgroup$ Feb 7, 2017 at 19:48
  • 6
    $\begingroup$ Workaround: turn off the Suggestions bar. $\endgroup$
    – ilian
    Feb 7, 2017 at 20:13

1 Answer 1

3
$\begingroup$

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

Workaround: turn off the Suggestions bar.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.