Bug 373996 - Crash when try to delete file from "Save as..." dialog
Summary: Crash when try to delete file from "Save as..." dialog
Status: RESOLVED WORKSFORME
Alias: None
Product: kdevelop
Classification: Applications
Component: general (show other bugs)
Version: 4.7.3
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords: drkonqi, junior-jobs
Depends on:
Blocks:
 
Reported: 2016-12-21 12:12 UTC by Oleg Koncevoy
Modified: 2020-04-29 04:33 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Oleg Koncevoy 2016-12-21 12:12:18 UTC
Application: kdevelop (4.7.3)
KDE Platform Version: 4.14.16
Qt Version: 4.8.7
Operating System: Linux 4.4.0-53-generic x86_64
Distribution: Ubuntu 16.04.1 LTS

-- Information about the crash:
I have created new file in KDevelop and saved it with incorrect name, next when I try to do Save as and delete previous file (with incorrect name) from this dialog, application crashes.

The crash can be reproduced every time.

-- Backtrace:
Application: KDevelop (kdevelop), signal: Aborted
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f5025abc900 (LWP 2630))]

Thread 13 (Thread 0x7f4f63c01700 (LWP 2678)):
#0  0x00007f501c277ae4 in g_mutex_unlock () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007f501c232920 in g_main_context_prepare () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f501c2332cb in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f501c2334ac in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f50229c92ce in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#5  0x00007f502299718f in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#6  0x00007f50229974f5 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#7  0x00007f5022886549 in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#8  0x00007f5022977223 in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#9  0x00007f5022888e3c in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#10 0x00007f501e6b06ba in start_thread (arg=0x7f4f63c01700) at pthread_create.c:333
#11 0x00007f50221c982d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 12 (Thread 0x7f4f64402700 (LWP 2677)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f50228893a6 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#2  0x00007f5018620c9c in ?? () from /usr/lib/libthreadweaver.so.4
#3  0x00007f50186239a3 in ?? () from /usr/lib/libthreadweaver.so.4
#4  0x00007f50186239bc in ?? () from /usr/lib/libthreadweaver.so.4
#5  0x00007f50186239bc in ?? () from /usr/lib/libthreadweaver.so.4
#6  0x00007f50186239bc in ?? () from /usr/lib/libthreadweaver.so.4
#7  0x00007f50186224ff in ThreadWeaver::Thread::run() () from /usr/lib/libthreadweaver.so.4
#8  0x00007f5022888e3c in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#9  0x00007f501e6b06ba in start_thread (arg=0x7f4f64402700) at pthread_create.c:333
#10 0x00007f50221c982d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 11 (Thread 0x7f4f64c03700 (LWP 2674)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f50228893a6 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#2  0x00007f5018620c9c in ?? () from /usr/lib/libthreadweaver.so.4
#3  0x00007f50186239a3 in ?? () from /usr/lib/libthreadweaver.so.4
#4  0x00007f50186239bc in ?? () from /usr/lib/libthreadweaver.so.4
#5  0x00007f50186224ff in ThreadWeaver::Thread::run() () from /usr/lib/libthreadweaver.so.4
#6  0x00007f5022888e3c in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#7  0x00007f501e6b06ba in start_thread (arg=0x7f4f64c03700) at pthread_create.c:333
#8  0x00007f50221c982d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 10 (Thread 0x7f4f65404700 (LWP 2673)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f50228893a6 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#2  0x00007f5018620c9c in ?? () from /usr/lib/libthreadweaver.so.4
#3  0x00007f50186239a3 in ?? () from /usr/lib/libthreadweaver.so.4
#4  0x00007f50186239bc in ?? () from /usr/lib/libthreadweaver.so.4
#5  0x00007f50186239bc in ?? () from /usr/lib/libthreadweaver.so.4
#6  0x00007f50186224ff in ThreadWeaver::Thread::run() () from /usr/lib/libthreadweaver.so.4
#7  0x00007f5022888e3c in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#8  0x00007f501e6b06ba in start_thread (arg=0x7f4f65404700) at pthread_create.c:333
#9  0x00007f50221c982d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 9 (Thread 0x7f4f65c05700 (LWP 2672)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f50228893a6 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#2  0x00007f5018620c9c in ?? () from /usr/lib/libthreadweaver.so.4
#3  0x00007f50186239a3 in ?? () from /usr/lib/libthreadweaver.so.4
#4  0x00007f50186239bc in ?? () from /usr/lib/libthreadweaver.so.4
#5  0x00007f50186239bc in ?? () from /usr/lib/libthreadweaver.so.4
#6  0x00007f50186239bc in ?? () from /usr/lib/libthreadweaver.so.4
#7  0x00007f50186239bc in ?? () from /usr/lib/libthreadweaver.so.4
#8  0x00007f50186224ff in ThreadWeaver::Thread::run() () from /usr/lib/libthreadweaver.so.4
#9  0x00007f5022888e3c in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#10 0x00007f501e6b06ba in start_thread (arg=0x7f4f65c05700) at pthread_create.c:333
#11 0x00007f50221c982d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 8 (Thread 0x7f4f5aa6f700 (LWP 2671)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f50228893a6 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#2  0x00007f5018620c9c in ?? () from /usr/lib/libthreadweaver.so.4
#3  0x00007f50186239a3 in ?? () from /usr/lib/libthreadweaver.so.4
#4  0x00007f50186224ff in ThreadWeaver::Thread::run() () from /usr/lib/libthreadweaver.so.4
#5  0x00007f5022888e3c in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#6  0x00007f501e6b06ba in start_thread (arg=0x7f4f5aa6f700) at pthread_create.c:333
#7  0x00007f50221c982d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 7 (Thread 0x7f4f5a26e700 (LWP 2661)):
#0  0x00007f50221bdb5d in poll () at ../sysdeps/unix/syscall-template.S:84
#1  0x00007f501c23339c in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f501c2334ac in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f50229c92ce in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#4  0x00007f502299718f in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#5  0x00007f50229974f5 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#6  0x00007f5022886549 in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#7  0x00007f5022977223 in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#8  0x00007f5022888e3c in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#9  0x00007f501e6b06ba in start_thread (arg=0x7f4f5a26e700) at pthread_create.c:333
#10 0x00007f50221c982d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 6 (Thread 0x7f4f6cce8700 (LWP 2646)):
#0  0x00007f501c277ae4 in g_mutex_unlock () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007f501c2332be in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f501c2334ac in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f50229c92ce in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#4  0x00007f502299718f in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#5  0x00007f50229974f5 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#6  0x00007f5022886549 in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#7  0x00007f5022888e3c in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#8  0x00007f501e6b06ba in start_thread (arg=0x7f4f6cce8700) at pthread_create.c:333
#9  0x00007f50221c982d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 5 (Thread 0x7f4f84fd2700 (LWP 2639)):
#0  0x00007f50221bdb5d in poll () at ../sysdeps/unix/syscall-template.S:84
#1  0x00007f501c23339c in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f501c2334ac in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f50229c92ce in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#4  0x00007f502299718f in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#5  0x00007f50229974f5 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#6  0x00007f5022886549 in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#7  0x00007f5022888e3c in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#8  0x00007f501e6b06ba in start_thread (arg=0x7f4f84fd2700) at pthread_create.c:333
#9  0x00007f50221c982d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 4 (Thread 0x7f4f8745f700 (LWP 2638)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:225
#1  0x00007f5022889384 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#2  0x00007f5021176ca6 in ?? () from /usr/lib/libkdevplatformlanguage.so.8
#3  0x00007f5022888e3c in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#4  0x00007f501e6b06ba in start_thread (arg=0x7f4f8745f700) at pthread_create.c:333
#5  0x00007f50221c982d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 3 (Thread 0x7f4f88597700 (LWP 2632)):
#0  0x00007f501c230417 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007f501c232cfa in g_main_context_check () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f501c233340 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f501c2334ac in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f50229c92ce in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#5  0x00007f502299718f in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#6  0x00007f50229974f5 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#7  0x00007f5022886549 in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#8  0x00007f5022977223 in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#9  0x00007f5022888e3c in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#10 0x00007f501e6b06ba in start_thread (arg=0x7f4f88597700) at pthread_create.c:333
#11 0x00007f50221c982d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 2 (Thread 0x7f50099a1700 (LWP 2631)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f501fda5e1a in ?? () from /usr/lib/x86_64-linux-gnu/libQtScript.so.4
#2  0x00007f501fda5e49 in ?? () from /usr/lib/x86_64-linux-gnu/libQtScript.so.4
#3  0x00007f501e6b06ba in start_thread (arg=0x7f50099a1700) at pthread_create.c:333
#4  0x00007f50221c982d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 1 (Thread 0x7f5025abc900 (LWP 2630)):
[KCrash Handler]
#6  0x00007f50220f8428 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:54
#7  0x00007f50220fa02a in __GI_abort () at abort.c:89
#8  0x00007f502213a7ea in __libc_message (do_abort=do_abort@entry=2, fmt=fmt@entry=0x7f50222532e0 "*** Error in `%s': %s: 0x%s ***\n") at ../sysdeps/posix/libc_fatal.c:175
#9  0x00007f5022142e0a in malloc_printerr (ar_ptr=<optimized out>, ptr=<optimized out>, str=0x7f50222533f0 "double free or corruption (out)", action=3) at malloc.c:5004
#10 _int_free (av=<optimized out>, p=<optimized out>, have_lock=0) at malloc.c:3865
#11 0x00007f502214698c in __GI___libc_free (mem=<optimized out>) at malloc.c:2966
#12 0x00007f50229b12b1 in QObjectPrivate::deleteChildren() () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#13 0x00007f5022f1c2a2 in QWidget::~QWidget() () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#14 0x00007f4f747fbe69 in KateView::~KateView() () from /usr/lib/libkatepartinterfaces.so.4
#15 0x00007f50229b12b1 in QObjectPrivate::deleteChildren() () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#16 0x00007f5022f1c2a2 in QWidget::~QWidget() () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#17 0x00007f5025707ba9 in KDevelop::TextEditorWidget::~TextEditorWidget() () from /usr/lib/libkdevplatformshell.so.8
#18 0x00007f502570b4d4 in KDevelop::TextView::~TextView() () from /usr/lib/libkdevplatformshell.so.8
#19 0x00007f502570b509 in KDevelop::TextView::~TextView() () from /usr/lib/libkdevplatformshell.so.8
#20 0x00007f5024c74ddd in Sublime::Document::closeViews() () from /usr/lib/libsublime.so.8
#21 0x00007f5025706fb3 in KDevelop::PartDocument::close(KDevelop::IDocument::DocumentSaveMode) () from /usr/lib/libkdevplatformshell.so.8
#22 0x00007f502570b049 in KDevelop::TextDocument::close(KDevelop::IDocument::DocumentSaveMode) () from /usr/lib/libkdevplatformshell.so.8
#23 0x00007f50257096cb in ?? () from /usr/lib/libkdevplatformshell.so.8
#24 0x00007f50229ad010 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#25 0x00007f50219bb0ef in KDevelop::CheckInRepositoryJob::finished(bool) () from /usr/lib/libkdevplatformvcs.so.8
#26 0x00007f4f84ff65f2 in ?? () from /usr/lib/kde4/kdevgit.so
#27 0x00007f50229ad010 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#28 0x00007f5022922f51 in QProcess::finished(int) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#29 0x00007f502292cc42 in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#30 0x00007f502292ccd9 in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#31 0x00007f50229ad010 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#32 0x00007f50229fe2de in QSocketNotifier::activated(int) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#33 0x00007f50229b77bb in QSocketNotifier::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#34 0x00007f5022ec5fdc in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#35 0x00007f5022eccf16 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#36 0x00007f50243916aa in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#37 0x00007f502299890d in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#38 0x00007f50229c98a2 in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#39 0x00007f501c2331a7 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#40 0x00007f501c233400 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#41 0x00007f501c2334ac in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#42 0x00007f50229c92ae in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#43 0x00007f5022f73616 in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#44 0x00007f502299718f in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#45 0x00007f50229974f5 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#46 0x00007f50233a8a3c in QDialog::exec() () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#47 0x00007f50204fd126 in KEncodingFileDialog::getSaveUrlAndEncoding(QString const&, QString const&, QString const&, QWidget*, QString const&) () from /usr/lib/libkio.so.5
#48 0x00007f4f74771b9a in KateDocument::documentSaveAs() () from /usr/lib/libkatepartinterfaces.so.4
#49 0x00007f4f7478c2c1 in ?? () from /usr/lib/libkatepartinterfaces.so.4
#50 0x00007f50229ad010 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#51 0x00007f5022ebfd62 in QAction::triggered(bool) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#52 0x00007f5022ec10b3 in QAction::activate(QAction::ActionEvent) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#53 0x00007f5022ec160c in QAction::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#54 0x00007f50242a6cf2 in KAction::event(QEvent*) () from /usr/lib/libkdeui.so.5
#55 0x00007f5022ec5fdc in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#56 0x00007f5022eccf16 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#57 0x00007f50243916aa in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#58 0x00007f502299890d in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#59 0x00007f5022efcf18 in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#60 0x00007f5022efd107 in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#61 0x00007f5022ece2ee in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#62 0x00007f50243916aa in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#63 0x00007f502299890d in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#64 0x00007f5022f706b3 in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#65 0x00007f5022f70bc2 in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#66 0x00007f5022f48d21 in QApplication::x11ProcessEvent(_XEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#67 0x00007f5022f73542 in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#68 0x00007f501c2331a7 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#69 0x00007f501c233400 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#70 0x00007f501c2334ac in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#71 0x00007f50229c92ae in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#72 0x00007f5022f73616 in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#73 0x00007f502299718f in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#74 0x00007f50229974f5 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#75 0x00007f502299d4b9 in QCoreApplication::exec() () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#76 0x00000000004117c1 in ?? ()
#77 0x00007f50220e3830 in __libc_start_main (main=0x40a920, argc=1, argv=0x7fff4f00ba88, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fff4f00ba78) at ../csu/libc-start.c:291
#78 0x0000000000411fd9 in _start ()

Possible duplicates by query: bug 372937, bug 372157, bug 367841.

Reported using DrKonqi
Comment 1 Kevin Funk 2016-12-21 12:52:10 UTC
Confirmed. Even crashes in KDevelop 5.
Comment 2 Denys 2017-01-01 11:04:08 UTC
Hi, I am newbie, I`ve tried to reproduce this bug on Ubuntu 16.10, but I don`t understand what you mean under incorrect name. I`ve tried the name with double quotes, but it doesn`t allow to save.
Comment 3 tcanabrava 2017-01-13 15:33:56 UTC
works for me - I can delete files from the save as dialog.
Comment 4 Pilzschaf 2017-03-09 14:17:04 UTC
Also works for me. Can't reproduce crash
Comment 5 Oleg Koncevoy 2017-03-10 07:48:33 UTC
I will try to describe it step by step:
1) Create a new file in KDevelop
2) Save it with some name (test.cpp)
3) Press "Save As" and in appeared dialog try to delete this file (test.cpp)

Those steps gave me a crash every time.
Comment 6 Francis Herne 2017-04-09 00:26:41 UTC
I couldn't reproduce this with 5.1.0
Comment 7 André Rodrigues 2017-05-23 02:11:02 UTC
Also works here with 5.0.4
Comment 8 Kevin Funk 2017-05-23 07:12:07 UTC
I can still reproduce the crash. Note: The to-be-deleted file needs to be tracked in the VCS (e.g. via an `git add`).

ASAN trace:
==22144==ERROR: AddressSanitizer: attempting free on address which was not malloc()-ed: 0x7ffe1bf561b0 in thread T0
    #0 0x510dc0 in operator delete(void*, unsigned long) (/home/kfunk/devel/install/kf5-stable/bin/kdevelop+0x510dc0)
    #1 0x7f71b5d12cd0 in QObjectPrivate::deleteChildren() (/usr/lib/x86_64-linux-gnu/libQt5Core.so.5+0x2a6cd0)
    #2 0x7f71b6a033da in QWidget::~QWidget() (/usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5+0x1963da)
    #3 0x7f71ba7b8d78 in KTextEditor::ViewPrivate::~ViewPrivate() (/usr/lib/x86_64-linux-gnu/libKF5TextEditor.so.5+0x18ad78)
    #4 0x7f71ba73851e in KTextEditor::DocumentPrivate::~DocumentPrivate() (/usr/lib/x86_64-linux-gnu/libKF5TextEditor.so.5+0x10a51e)
    #5 0x7f71ba7388c8 in KTextEditor::DocumentPrivate::~DocumentPrivate() (/usr/lib/x86_64-linux-gnu/libKF5TextEditor.so.5+0x10a8c8)
    #6 0x7f71bbea0d67 in KDevelop::TextDocument::close(KDevelop::IDocument::DocumentSaveMode) /home/kfunk/devel/src/kf5/kdevplatform-stable/shell/textdocument.cpp:566:9
    #7 0x7f71bbea53ac in KDevelop::TextDocument::repositoryCheckFinished(bool) /home/kfunk/devel/src/kf5/kdevplatform-stable/shell/textdocument.cpp:767:9
    #8 0x7f71bbeb044e in QtPrivate::FunctorCall<QtPrivate::IndexesList<0>, QtPrivate::List<bool>, void, void (KDevelop::TextDocument::*)(bool)>::call(void (KDevelop::TextDocument::*)(bool), KDevelop::TextDocument*, void**) /usr/include/x86_64-linux-gnu/qt5/QtCore/qobjectdefs_impl.h:141:13
    #9 0x7f71bbeb0100 in void QtPrivate::FunctionPointer<void (KDevelop::TextDocument::*)(bool)>::call<QtPrivate::List<bool>, void>(void (KDevelop::TextDocument::*)(bool), KDevelop::TextDocument*, void**) /usr/include/x86_64-linux-gnu/qt5/QtCore/qobjectdefs_impl.h:160:13
    #10 0x7f71bbeafd16 in QtPrivate::QSlotObject<void (KDevelop::TextDocument::*)(bool), QtPrivate::List<bool>, void>::impl(int, QtPrivate::QSlotObjectBase*, QObject*, void**, bool*) /usr/include/x86_64-linux-gnu/qt5/QtCore/qobject_impl.h:120:17
    #11 0x7f71b5d1481d in QMetaObject::activate(QObject*, int, int, void**) (/usr/lib/x86_64-linux-gnu/libQt5Core.so.5+0x2a881d)
    #12 0x7f71b162b165 in KDevelop::CheckInRepositoryJob::finished(bool) /home/kfunk/devel/build/kf5/kdevplatform-stable/vcs/KDevPlatformVcs_automoc.dir/moc_icontentawarev_262F6KF7NTUPVZ.cpp:135:5
    #13 0x7f717cb51332 in GitPluginCheckInRepositoryJob::repositoryQueryFinished(int) /home/kfunk/devel/src/kf5/kdevplatform-stable/plugins/git/gitplugincheckinrepositoryjob.cpp:91:10
    #14 0x7f717cb53b7c in QtPrivate::FunctorCall<QtPrivate::IndexesList<0>, QtPrivate::List<int>, void, void (GitPluginCheckInRepositoryJob::*)(int)>::call(void (GitPluginCheckInRepositoryJob::*)(int), GitPluginCheckInRepositoryJob*, void**) /usr/include/x86_64-linux-gnu/qt5/QtCore/qobjectdefs_impl.h:141:13
    #15 0x7f717cb53830 in void QtPrivate::FunctionPointer<void (GitPluginCheckInRepositoryJob::*)(int)>::call<QtPrivate::List<int>, void>(void (GitPluginCheckInRepositoryJob::*)(int), GitPluginCheckInRepositoryJob*, void**) /usr/include/x86_64-linux-gnu/qt5/QtCore/qobjectdefs_impl.h:160:13
    #16 0x7f717cb53446 in QtPrivate::QSlotObject<void (GitPluginCheckInRepositoryJob::*)(int), QtPrivate::List<int>, void>::impl(int, QtPrivate::QSlotObjectBase*, QObject*, void**, bool*) /usr/include/x86_64-linux-gnu/qt5/QtCore/qobject_impl.h:120:17
    #17 0x7f71b5d1481d in QMetaObject::activate(QObject*, int, int, void**) (/usr/lib/x86_64-linux-gnu/libQt5Core.so.5+0x2a881d)
    #18 0x7f71b5c1a230 in QProcess::finished(int) (/usr/lib/x86_64-linux-gnu/libQt5Core.so.5+0x1ae230)
    #19 0x7f71b5c2241e  (/usr/lib/x86_64-linux-gnu/libQt5Core.so.5+0x1b641e)
    #20 0x7f71b5c22598  (/usr/lib/x86_64-linux-gnu/libQt5Core.so.5+0x1b6598)
    #21 0x7f71b5d144a8 in QMetaObject::activate(QObject*, int, int, void**) (/usr/lib/x86_64-linux-gnu/libQt5Core.so.5+0x2a84a8)
    #22 0x7f71b5d8e46d in QSocketNotifier::activated(int, QSocketNotifier::QPrivateSignal) (/usr/lib/x86_64-linux-gnu/libQt5Core.so.5+0x32246d)
    #23 0x7f71b5d20a61 in QSocketNotifier::event(QEvent*) (/usr/lib/x86_64-linux-gnu/libQt5Core.so.5+0x2b4a61)
    #24 0x7f71b69c035b in QApplicationPrivate::notify_helper(QObject*, QEvent*) (/usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5+0x15335b)
    #25 0x7f71b69c7b10 in QApplication::notify(QObject*, QEvent*) (/usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5+0x15ab10)
    #26 0x7f71b5ce889f in QCoreApplication::notifyInternal2(QObject*, QEvent*) (/usr/lib/x86_64-linux-gnu/libQt5Core.so.5+0x27c89f)
    #27 0x7f71b5d3d3bc  (/usr/lib/x86_64-linux-gnu/libQt5Core.so.5+0x2d13bc)
    #28 0x7f71a9e83376 in g_main_context_dispatch (/lib/x86_64-linux-gnu/libglib-2.0.so.0+0x4a376)
    #29 0x7f71a9e835df  (/lib/x86_64-linux-gnu/libglib-2.0.so.0+0x4a5df)
    #30 0x7f71a9e8368b in g_main_context_iteration (/lib/x86_64-linux-gnu/libglib-2.0.so.0+0x4a68b)
    #31 0x7f71b5d3cf0e in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (/usr/lib/x86_64-linux-gnu/libQt5Core.so.5+0x2d0f0e)
    #32 0x7f71b5ce6889 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (/usr/lib/x86_64-linux-gnu/libQt5Core.so.5+0x27a889)
    #33 0x7f71b6baea06 in QDialog::exec() (/usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5+0x341a06)
    #34 0x7f71b6bae919 in QDialog::exec() (/usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5+0x341919)
    #35 0x7f71b6bc1224 in QFileDialog::getSaveFileUrl(QWidget*, QString const&, QUrl const&, QString const&, QString*, QFlags<QFileDialog::Option>, QStringList const&) (/usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5+0x354224)
    #36 0x7f71ba721eb2 in KTextEditor::DocumentPrivate::documentSaveAs() (/usr/lib/x86_64-linux-gnu/libKF5TextEditor.so.5+0xf3eb2)
    #37 0x7f71ba8aeaea  (/usr/lib/x86_64-linux-gnu/libKF5TextEditor.so.5+0x280aea)
    #38 0x7f71b5d144a8 in QMetaObject::activate(QObject*, int, int, void**) (/usr/lib/x86_64-linux-gnu/libQt5Core.so.5+0x2a84a8)
    #39 0x7f71b69b9991 in QAction::triggered(bool) (/usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5+0x14c991)
    #40 0x7f71b69bc37f in QAction::activate(QAction::ActionEvent) (/usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5+0x14f37f)
    #41 0x7f71b6b2b9b9  (/usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5+0x2be9b9)
    #42 0x7f71b6b33043  (/usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5+0x2c6043)
    #43 0x7f71b6b34015 in QMenu::mouseReleaseEvent(QMouseEvent*) (/usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5+0x2c7015)
    #44 0x7f71b6a07a77 in QWidget::event(QEvent*) (/usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5+0x19aa77)
    #45 0x7f71b6b36342 in QMenu::event(QEvent*) (/usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5+0x2c9342)
    #46 0x7f71b69c035b in QApplicationPrivate::notify_helper(QObject*, QEvent*) (/usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5+0x15335b)
    #47 0x7f71b69c89cc in QApplication::notify(QObject*, QEvent*) (/usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5+0x15b9cc)
    #48 0x7f71b5ce889f in QCoreApplication::notifyInternal2(QObject*, QEvent*) (/usr/lib/x86_64-linux-gnu/libQt5Core.so.5+0x27c89f)
    #49 0x7f71b69c707c in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) (/usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5+0x15a07c)
    #50 0x7f71b6a22505  (/usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5+0x1b5505)
    #51 0x7f71b6a24b02  (/usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5+0x1b7b02)
    #52 0x7f71b69c035b in QApplicationPrivate::notify_helper(QObject*, QEvent*) (/usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5+0x15335b)
    #53 0x7f71b69c7b10 in QApplication::notify(QObject*, QEvent*) (/usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5+0x15ab10)
    #54 0x7f71b5ce889f in QCoreApplication::notifyInternal2(QObject*, QEvent*) (/usr/lib/x86_64-linux-gnu/libQt5Core.so.5+0x27c89f)
    #55 0x7f71b622c722 in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) (/usr/lib/x86_64-linux-gnu/libQt5Gui.so.5+0xf5722)
    #56 0x7f71b622e2a4 in QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) (/usr/lib/x86_64-linux-gnu/libQt5Gui.so.5+0xf72a4)
    #57 0x7f71b620c23a in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) (/usr/lib/x86_64-linux-gnu/libQt5Gui.so.5+0xd523a)
    #58 0x7f7196c0882f  (/usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5+0x7182f)
    #59 0x7f71a9e83376 in g_main_context_dispatch (/lib/x86_64-linux-gnu/libglib-2.0.so.0+0x4a376)
    #60 0x7f71a9e835df  (/lib/x86_64-linux-gnu/libglib-2.0.so.0+0x4a5df)
    #61 0x7f71a9e8368b in g_main_context_iteration (/lib/x86_64-linux-gnu/libglib-2.0.so.0+0x4a68b)
    #62 0x7f71b5d3cf0e in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (/usr/lib/x86_64-linux-gnu/libQt5Core.so.5+0x2d0f0e)
    #63 0x7f71b5ce6889 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (/usr/lib/x86_64-linux-gnu/libQt5Core.so.5+0x27a889)
    #64 0x7f71b5ceeffb in QCoreApplication::exec() (/usr/lib/x86_64-linux-gnu/libQt5Core.so.5+0x282ffb)
    #65 0x5219df in main /home/kfunk/devel/src/kf5/kdevelop-stable/app/main.cpp:763:12
    #66 0x7f71b47f33f0 in __libc_start_main /build/glibc-cxyGtm/glibc-2.24/csu/../csu/libc-start.c:291
    #67 0x420f79 in _start (/home/kfunk/devel/install/kf5-stable/bin/kdevelop+0x420f79)

Address 0x7ffe1bf561b0 is located in stack of thread T0 at offset 2608 in frame
    #0 0x7f717cb531af in QtPrivate::QSlotObject<void (GitPluginCheckInRepositoryJob::*)(int), QtPrivate::List<int>, void>::impl(int, QtPrivate::QSlotObjectBase*, QObject*, void**, bool*) /usr/include/x86_64-linux-gnu/qt5/QtCore/qobject_impl.h:114

  This frame has 1 object(s):
    [32, 48) 'coerce' <== Memory access at offset 2608 overflows this variable
HINT: this may be a false positive if your program uses some custom stack unwind mechanism or swapcontext
      (longjmp and C++ exceptions *are* supported)
SUMMARY: AddressSanitizer: bad-free (/home/kfunk/devel/install/kf5-stable/bin/kdevelop+0x510dc0) in operator delete(void*, unsigned long)
==22144==ABORTING
Comment 9 Francis Herne 2017-09-22 22:45:40 UTC
I still can't reproduce this with 5.2-git, even when the file is part of a git project as suggested by Kevin.
Comment 10 Julian Borrero 2020-03-30 03:57:51 UTC
I can't reproduce this bug, my steps were:

1-Open Kdevelop
2-New Project(QT GUI), with GIT and CMake options
3-File->New: WrongName.cpp
4-Edit that file: added a main function
5-Save
6-Save as: delete the WrongName.cpp from the dialog

My setup: Kdevelop 5.4.2, Plasma 5.16.5, Kubuntu 19.10
Comment 11 Bug Janitor Service 2020-04-14 04:33:09 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 12 Bug Janitor Service 2020-04-29 04:33:14 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!