Calc Crash on deleting row containing indirect() formula

How to produce the bug:

  1. Enter A1 in cell A3. Enter B1 in cell A4, Enter C1 in cell A5.
  2. Enter formula =indirect(A3) in cell B3. Enter formula =indirect(A4) in cell B4. Enter formula =indirect(A5) in cell B5.

At this point there should be A1, B1 and C1 in column A, and zeros in column B

  1. right click row 5, delete selected rows.

LibreOffice Calc crashes.

Build ID: 40m0(Build:2)
Locale: en_US
O/S: Ubuntu 12.04, 3.2.0-58-generic-pae

No issue here with 5.0.5, Please try resetting the user profile, sometimes solves strange issues.
Usually it’s enough renaming/deleting the file “user/registrymodifications.xcu”, it affects all the options in Menu/Tools/Options, and the files “user/basic/dialog.xlc” and “scrip.xlc” are overwritten, additionally custom colors in “user/config/standard.soc” are lost.