7

Bug introduced in 11.2


I am using RandomInteger to create sorted test data in the following way:

lists = Sort /@ RandomInteger[10000, {10, 200000}];

With Mathematica 11.3, the kernel crashes on me if I evaluate the line above in the front a couple of times. The crash occurs on both the Windows and OS X versions of Mathematica. I could not reproduce the bug with Mathematica 11.2.

Michael E2
  • 235,386
  • 17
  • 334
  • 747
sakra
  • 5,120
  • 21
  • 33
  • 1
    I cannot reproduce that with version 11.3 on macOS. Maybe the dimension of lists were greater when you tried? Then it could be that both results were stored in the history and blast the amount of available memory. Try to set $HistoryLength = 0 or end your input cell with ;Null; instead of ;. The latter should store only Null instead of the value of lists in the history. – Henrik Schumacher May 05 '18 at 09:32
  • I cannot reproduce that with version 11.3 on Windows 8.1. – Mariusz Iwaniuk May 05 '18 at 09:48
  • I too cannot reproduce that crash with 11.3.0 for Mac OS X x86 (64-bit) (March 7, 2018) on OS X 10.11.6. – High Performance Mark May 05 '18 at 12:45
  • The ;Null; trick seems to fix it, so it is probably related to the history. – sakra May 05 '18 at 13:35

1 Answers1

9

This is a bug that can be worked around by disabling the Suggestions bar.

Given the input, it tries several operations in the background (wrapped in TimeConstrained) and one of these -- a call to Flatten -- happens to crash when interrupted.

The reason $HistoryLength = 0 or ending the input cell with ;Null; works is that it prevents the Suggestions bar from seeing the input.

This is another instance of the same bug.

ilian
  • 25,474
  • 4
  • 117
  • 186