Bug 350830 - [knotes] 15.07.80 crash on right-click with unicode note
Summary: [knotes] 15.07.80 crash on right-click with unicode note
Status: RESOLVED FIXED
Alias: None
Product: knotes
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Arch Linux Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2015-07-31 17:50 UTC by André M
Modified: 2015-08-28 16:11 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 15.08.1


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description André M 2015-07-31 17:50:19 UTC
Application: knotes (4.81 beta1)

Qt Version: 5.5.0
Operating System: Linux 4.1.3-1-ARCH x86_64
Distribution (Platform): Archlinux Packages

-- Information about the crash:
With following example, filling, saving, reopining note, selecting text and right-click anyware in note triggers a segfault. Note is marked as rich text, not sure if the unicode part has anything to do with segfault. Triggering menu without a selection doesn't cause the segfault.
Arch Linux kde-unstable packages (beta).

Note:

31/07/15 14:27 
[̲̅<̲̅ѳ̲̅>̲̅]
[<̲̅ѳ̲̅>̲̅]

The crash can be reproduced every time.

-- Backtrace:
Application: KNotes (knotes), signal: Segmentation fault
Using host libthread_db library "/usr/lib/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f2da598c840 (LWP 13772))]

Thread 2 (Thread 0x7f2d82f4a700 (LWP 13773)):
#0  0x00007f2d9f8a0e8d in poll () from /usr/lib/libc.so.6
#1  0x00007f2d9d8019f2 in ?? () from /usr/lib/libxcb.so.1
#2  0x00007f2d9d80356f in xcb_wait_for_event () from /usr/lib/libxcb.so.1
#3  0x00007f2d84039ca9 in ?? () from /usr/lib/libQt5XcbQpa.so.5
#4  0x00007f2da01b6a9e in ?? () from /usr/lib/libQt5Core.so.5
#5  0x00007f2d98219354 in start_thread () from /usr/lib/libpthread.so.0
#6  0x00007f2d9f8a9bfd in clone () from /usr/lib/libc.so.6

Thread 1 (Thread 0x7f2da598c840 (LWP 13772)):
[KCrash Handler]
#5  0x00007f2da110b134 in QWidget::insertAction(QAction*, QAction*) () from /usr/lib/libQt5Widgets.so.5
#6  0x00007f2da569e547 in KNoteEdit::mousePopupMenu() () from /usr/lib/libknotesprivate.so.5
#7  0x00007f2d9e55b713 in KTextEdit::contextMenuEvent(QContextMenuEvent*) () from /usr/lib/libKF5TextWidgets.so.5
#8  0x00007f2da1113f08 in QWidget::event(QEvent*) () from /usr/lib/libQt5Widgets.so.5
#9  0x00007f2da1212f6e in QFrame::event(QEvent*) () from /usr/lib/libQt5Widgets.so.5
#10 0x00007f2da039768c in QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) () from /usr/lib/libQt5Core.so.5
#11 0x00007f2da10d0fec in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQt5Widgets.so.5
#12 0x00007f2da10d7e79 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQt5Widgets.so.5
#13 0x00007f2da039789b in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQt5Core.so.5
#14 0x00007f2da112e882 in ?? () from /usr/lib/libQt5Widgets.so.5
#15 0x00007f2da1130cfb in ?? () from /usr/lib/libQt5Widgets.so.5
#16 0x00007f2da10d100c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQt5Widgets.so.5
#17 0x00007f2da10d64e6 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQt5Widgets.so.5
#18 0x00007f2da039789b in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQt5Core.so.5
#19 0x00007f2da08f6cb1 in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) () from /usr/lib/libQt5Gui.so.5
#20 0x00007f2da08f8985 in QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) () from /usr/lib/libQt5Gui.so.5
#21 0x00007f2da08dde38 in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Gui.so.5
#22 0x00007f2d8406a6b0 in ?? () from /usr/lib/libQt5XcbQpa.so.5
#23 0x00007f2d976aa9fd in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#24 0x00007f2d976aace0 in ?? () from /usr/lib/libglib-2.0.so.0
#25 0x00007f2d976aad8c in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#26 0x00007f2da03ee23f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#27 0x00007f2da039526a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#28 0x00007f2da039d20c in QCoreApplication::exec() () from /usr/lib/libQt5Core.so.5
#29 0x000000000041c089 in main ()

Reported using DrKonqi
Comment 1 e8hffff 2015-08-28 15:24:52 UTC
CONFIRMED on Archlinux using Intel Nuc5i5RYH. Knotes 15.08.0-4 version.
Comment 2 Laurent Montel 2015-08-28 16:11:13 UTC
Git commit 0331502c568cdb28215d1967875c8adc1408b210 by Montel Laurent.
Committed on 28/08/2015 at 16:10.
Pushed by mlaurent into branch 'Applications/15.08'.

Fix Bug 350830 : [knotes] 15.07.80 crash on right-click with unicode note

FIXED-IN: 15.08.1

M  +1    -1    knotes/knoteedit.cpp

http://commits.kde.org/kdepim/0331502c568cdb28215d1967875c8adc1408b210