Application crashes on launch when built for debug with Qt 5.9.1

• Jul 28, 2017 - 14:06
Reported version
3.0
Type
Functional
Severity
S3 - Major
Status
closed
Project

Steps to reproduce:

  1. build with make installdebug
  2. run the application

Expected behavior:

The application launches

Actual behavior:

The application crashes with a SIGABRT

Version number:

Issue was observed when trying to build the current master (49efff0)

Operating System:

Ubuntu 16.04 with Qt 5.9.1

I've pinpointed the issue to an incorrect handling of the case where indexOf in Shortcut::getMenuShortcutString fails. In this case the index is 0. If we pass a child with an empty title (e.g. a separator) the Q_ASSERT in QString.at will try to assert that 0 < 0 and fail.


Comments