A crash on undo after using the Shape Builder tool

Summary:

Inkscape segfaults on undo after using the Shape Builder tool.

Steps to reproduce:

  • open Inkscape
  • draw a rectangle
  • save your drawing as an Inkscape SVG
  • with the rectangle selected, activate the Shape Builder tool
  • without performing any operation, switch back to the Select tool
  • note that an asterisk has appeared next to the file name in the window's title bar
  • press Ctrl-Z to undo

What happened?

A segfault with the following backtrace: backtrace.txt

What should have happened?

  • since no operation was performed with the Shape Builder tool, the document should have remained virgin
  • undoing should not be possible (and it certainly shouldn't cause a crash).

Version info

Inkscape 1.3-dev (cbd7a5cc0f, 2022-10-16)
Edited by Rafał Siejakowski