https://bugs.kde.org/show_bug.cgi?id=512158

            Bug ID: 512158
           Summary: attempting to drag the column before the Name column
                    causes dolphin to crash
    Classification: Applications
           Product: dolphin
      Version First 25.08.2
       Reported In:
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
  Target Milestone: ---

Created attachment 186826
  --> https://bugs.kde.org/attachment.cgi?id=186826&action=edit
image showing dragged column

SUMMARY
attempting to drag the column before the Name column causes dolphin to crash

STEPS TO REPRODUCE
1.  try to drag the column before the Name column

OBSERVED RESULT
Crash: Application 'dolphin' crashing... crashRecursionCounter = 2
Segmentation fault (core dumped)

EXPECTED RESULT
no action

SOFTWARE/OS VERSIONS
Operating System: Fedora Linux 42
KDE Plasma Version: 6.5.2
KDE Frameworks Version: 6.19.0
Qt Version: 6.9.3

ADDITIONAL INFORMATION
not sure what the column is called. see attached image.

the bug seems to be at src/kitemviews/private/kitemlistheaderwidget.cpp line
579:
the function KItemListHeaderWidget::createRolePixmap(int roleIndex) receives
roleIndex -1 and attempts to access that index:
const QByteArray role = m_columns[roleIndex];

createRolePixmap is called from KItemListHeaderWidget::mouseMoveEvent where the
roleIndex set like so:
const int roleIndex = roleIndexAt(m_pressedMousePos);

partial stack trace:
#9  0x00007ffff7d05dac in QList<QByteArray>::at (this=0xdf93e8, i=-1) at
/usr/include/qt6/QtCore/qlist.h:479
#10 0x00007ffff7d053fd in QList<QByteArray>::operator[] (this=0xdf93e8, i=-1)
at /usr/include/qt6/QtCore/qlist.h:488
#11 0x00007ffff7d03aea in KItemListHeaderWidget::createRolePixmap
(this=0xdf9390, roleIndex=-1)
    at
/home/itai/apps/dolphin/src/kitemviews/private/kitemlistheaderwidget.cpp:574
#12 0x00007ffff7d02593 in KItemListHeaderWidget::mouseMoveEvent (this=0xdf9390,
event=0x7fffffffaf60)
    at
/home/itai/apps/dolphin/src/kitemviews/private/kitemlistheaderwidget.cpp:366

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to