[kdiff3] [Bug 485999] kdiff3 segaborts when comparing two files

2024-05-04 Thread michael
https://bugs.kde.org/show_bug.cgi?id=485999

michael  changed:

   What|Removed |Added

 Status|REOPENED|ASSIGNED

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

[kdiff3] [Bug 485999] kdiff3 segaborts when comparing two files

2024-05-04 Thread michael
https://bugs.kde.org/show_bug.cgi?id=485999

michael  changed:

   What|Removed |Added

 Status|RESOLVED|REOPENED
 Resolution|FIXED   |---

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

[kdiff3] [Bug 485999] kdiff3 segaborts when comparing two files

2024-04-29 Thread Mike Lothian
https://bugs.kde.org/show_bug.cgi?id=485999

--- Comment #5 from Mike Lothian  ---
I spoke too soon, if you scoll those two files then close kdiff3 you get the
following segfault:

Process 560661 stopped
* thread #1, name = 'kdiff3', stop reason = signal SIGSEGV: address not mapped
to object (fault address: 0x88)
frame #0: 0x74606190
libQt6WaylandClient.so.6`QtWaylandClient::QWaylandShmBackingStore::resize(QSize
const&) + 848
libQt6WaylandClient.so.6`QtWaylandClient::QWaylandShmBackingStore::resize:
->  0x74606190 <+848>: cmpb   $0x0, 0x88(%rcx)
0x74606197 <+855>: je 0x746061f0 ; <+944>
0x74606199 <+857>: cmpq   $0x0, 0x80(%rcx)
0x746061a1 <+865>: je 0x746061f0 ; <+944>
(lldb) bt
* thread #1, name = 'kdiff3', stop reason = signal SIGSEGV: address not mapped
to object (fault address: 0x88)
  * frame #0: 0x74606190
libQt6WaylandClient.so.6`QtWaylandClient::QWaylandShmBackingStore::resize(QSize
const&) + 848
frame #1: 0x74605ce2
libQt6WaylandClient.so.6`QtWaylandClient::QWaylandShmBackingStore::beginPaint(QRegion
const&) + 82
frame #2: 0x76790361
libQt6Gui.so.6`QBackingStore::beginPaint(QRegion const&) + 433
frame #3: 0x776e4ee2
libQt6Widgets.so.6`QWidgetRepaintManager::paintAndFlush() + 4514
frame #4: 0x776c90bc
libQt6Widgets.so.6`QWidgetRepaintManager::sync() + 284
frame #5: 0x776be70f libQt6Widgets.so.6`QWidget::event(QEvent*) +
2671
frame #6: 0x77546412 libQt6Widgets.so.6`QMainWindow::event(QEvent*)
+ 962
frame #7: 0x77ecdde2 libKF6XmlGui.so.6`KMainWindow::event(QEvent*)
+ 4530
frame #8: 0x77f0f4fb
libKF6XmlGui.so.6`KXmlGuiWindow::event(QEvent*) + 43
frame #9: 0x7769061e
libQt6Widgets.so.6`QApplicationPrivate::notify_helper(QObject*, QEvent*) + 302
frame #10: 0x776920ae
libQt6Widgets.so.6`QApplication::notify(QObject*, QEvent*) + 494
frame #11: 0x76133f57
libQt6Core.so.6`QCoreApplication::notifyInternal2(QObject*, QEvent*) + 183
frame #12: 0x776e2b07
libQt6Widgets.so.6`QWidgetRepaintManager::sendUpdateRequest(QWidget*,
QWidgetRepaintManager::UpdateTime) + 743
frame #13: 0x777373b7 libQt6Widgets.so.6`void
QWidgetRepaintManager::markDirty(QRect const&, QWidget*,
QWidgetRepaintManager::UpdateTime, QWidgetRepaintManager::BufferState) + 1447
frame #14: 0x776de31b libQt6Widgets.so.6`QWidget::repaint() + 187
frame #15: 0x55672e4b
kdiff3`DiffTextWindowFrame::setFirstLine(this=0x5615b3f0,
firstLine=) at difftextwindow.cpp:2036:21
frame #16: 0x760dda8f libQt6Core.so.6`___lldb_unnamed_symbol13786 +
1279
frame #17: 0x55609593
kdiff3`DiffTextWindow::firstLineChanged(this=, _t1=LineRef @
0x7fffc24c) at moc_difftextwindow.cpp:431:5
frame #18: 0x55674606
kdiff3`DiffTextWindow::setFirstLine(this=0x5615dba0, firstLine=LineRef
@ rbp) at difftextwindow.cpp:503:12
frame #19: 0x760dda8f libQt6Core.so.6`___lldb_unnamed_symbol13786 +
1279
frame #20: 0x775e838f
libQt6Widgets.so.6`QAbstractSlider::setValue(int) + 319
frame #21: 0x7762537c
libQt6Widgets.so.6`___lldb_unnamed_symbol22374 + 380
frame #22: 0x7758bc18
libQt6Widgets.so.6`QScrollBar::wheelEvent(QWheelEvent*) + 136
frame #23: 0x776be5d4 libQt6Widgets.so.6`QWidget::event(QEvent*) +
2356
frame #24: 0x7758bb58 libQt6Widgets.so.6`QScrollBar::event(QEvent*)
+ 504
frame #25: 0x7769061e
libQt6Widgets.so.6`QApplicationPrivate::notify_helper(QObject*, QEvent*) + 302
frame #26: 0x776920ae
libQt6Widgets.so.6`QApplication::notify(QObject*, QEvent*) + 494
frame #27: 0x76133f57
libQt6Core.so.6`QCoreApplication::notifyInternal2(QObject*, QEvent*) + 183
frame #28: 0x776be5d4 libQt6Widgets.so.6`QWidget::event(QEvent*) +
2356
frame #29: 0x7769061e
libQt6Widgets.so.6`QApplicationPrivate::notify_helper(QObject*, QEvent*) + 302
frame #30: 0x77693488
libQt6Widgets.so.6`QApplication::notify(QObject*, QEvent*) + 5576
frame #31: 0x76133f57
libQt6Core.so.6`QCoreApplication::notifyInternal2(QObject*, QEvent*) + 183
frame #32: 0x776e95b1
libQt6Widgets.so.6`___lldb_unnamed_symbol23787 + 929
frame #33: 0x776e6c82
libQt6Widgets.so.6`___lldb_unnamed_symbol23778 + 338
frame #34: 0x7769061e
libQt6Widgets.so.6`QApplicationPrivate::notify_helper(QObject*, QEvent*) + 302
frame #35: 0x776920ae
libQt6Widgets.so.6`QApplication::notify(QObject*, QEvent*) + 494
frame #36: 0x76133f57
libQt6Core.so.6`QCoreApplication::notifyInternal2(QObject*, QEvent*) + 183
frame #37: 0x7671675d
libQt6Gui.so.6`QGuiApplicationPrivate::processWheelEvent(QWindowSystemInterfacePrivate::WheelEvent*)
+ 541
frame #38: 0x76778f1a
libQt6Gui.so.6`QWindowSystemInterface::sendWindowSystemEvents(QFlags)
+ 394
 

[kdiff3] [Bug 485999] kdiff3 segaborts when comparing two files

2024-04-29 Thread Mike Lothian
https://bugs.kde.org/show_bug.cgi?id=485999

Mike Lothian  changed:

   What|Removed |Added

 Status|CONFIRMED   |RESOLVED
 Resolution|--- |FIXED

--- Comment #4 from Mike Lothian  ---
I've just retested master, it's all looking good now thanks

That's everything now migrated to Qt6 and working on my system :D 

Thanks again

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

[kdiff3] [Bug 485999] kdiff3 segaborts when comparing two files

2024-04-28 Thread michael
https://bugs.kde.org/show_bug.cgi?id=485999

michael  changed:

   What|Removed |Added

 Status|REPORTED|CONFIRMED
 Ever confirmed|0   |1

--- Comment #3 from michael  ---
I believe I may found the cause of this error getBestFirstLine is returning a
negative line value. This situation does not happen with most files and would
have been ignored by pre 1.9 kdiff3. That would break assumptions else where in
kdiff3 causing unpredictable results. I a fix locally need to test it the make
sure.

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

[kdiff3] [Bug 485999] kdiff3 segaborts when comparing two files

2024-04-23 Thread Mike Lothian
https://bugs.kde.org/show_bug.cgi?id=485999

--- Comment #2 from Mike Lothian  ---
I've attached the two files which trigger the problem for me

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

[kdiff3] [Bug 485999] kdiff3 segaborts when comparing two files

2024-04-23 Thread Mike Lothian
https://bugs.kde.org/show_bug.cgi?id=485999

--- Comment #1 from Mike Lothian  ---
Created attachment 168831
  --> https://bugs.kde.org/attachment.cgi?id=168831=edit
Second file

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