Bug 267659 - KDevelop crash on close (rpp::Stream::~Stream, libc)
Summary: KDevelop crash on close (rpp::Stream::~Stream, libc)
Status: RESOLVED FIXED
Alias: None
Product: kdevelop
Classification: Applications
Component: Language Support: CPP (old) (show other bugs)
Version: 4.1.2
Platform: Fedora RPMs Linux
: NOR crash
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
: 238155 266851 269126 270181 273434 274393 276456 278059 278453 290690 292371 315240 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-03-04 22:29 UTC by Dmitry Veltishev
Modified: 2015-11-14 20:26 UTC (History)
16 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
New crash information added by DrKonqi (7.71 KB, text/plain)
2011-08-05 21:43 UTC, Mateusz Chrząszcz
Details
New crash information added by DrKonqi (2.84 KB, text/plain)
2011-08-06 06:26 UTC, Rishat Galiulin
Details
New crash information added by DrKonqi (11.17 KB, text/plain)
2011-10-28 18:17 UTC, AK
Details
New crash information added by DrKonqi (4.51 KB, text/plain)
2013-04-28 13:40 UTC, Alexey Chernov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dmitry Veltishev 2011-03-04 22:29:33 UTC
Application: kdevelop (4.1.2)
KDE Platform Version: 4.5.5 (KDE 4.5.5)
Qt Version: 4.7.1
Operating System: Linux 2.6.35.11-83.fc14.i686.PAE i686
Distribution (Platform): Fedora RPMs

-- Information about the crash:
- What I was doing when the application crashed:
I've edited some files for a while, then closed kdevelop.
then it crashed.
KDevelop is used with almost default settings (as in fedora distribution).

The crash can be reproduced some of the time.

-- Backtrace:
Application: KDevelop (kdevelop), signal: Aborted
[Current thread is 1 (Thread 0xb7815780 (LWP 3096))]

Thread 4 (Thread 0xb75dcb70 (LWP 3097)):
#0  0x0040e424 in __kernel_vsyscall ()
#1  0x0057bc36 in __poll (fds=0xb6c029c0, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:87
#2  0x0073ddac in g_poll (fds=0xb6c029c0, nfds=1, timeout=-1) at gpoll.c:132
#3  0x0072d8b7 in g_main_context_poll (context=0x9ef7098, block=1, dispatch=1, self=<value optimized out>) at gmain.c:3093
#4  g_main_context_iterate (context=0x9ef7098, block=1, dispatch=1, self=<value optimized out>) at gmain.c:2775
#5  0x0072e04b in g_main_loop_run (loop=0x9ef7118) at gmain.c:2988
#6  0x00f73ed5 in gdbus_shared_thread_func (data=0x0) at gdbusprivate.c:277
#7  0x00756bd0 in g_thread_create_proxy (data=0x9ef7128) at gthread.c:1897
#8  0x00647e99 in start_thread (arg=0xb75dcb70) at pthread_create.c:301
#9  0x00586d2e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:133

Thread 3 (Thread 0xb2851b70 (LWP 3111)):
#0  0x0040e424 in __kernel_vsyscall ()
#1  0x00596521 in __lll_lock_wait_private () at ../nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S:95
#2  0x00522c6c in _L_lock_11025 () at malloc.c:6487
#3  0x00521067 in __libc_malloc (bytes=78) at malloc.c:3657
#4  0x005164b7 in __libc_message (do_abort=2, fmt=0x5fb6ec "*** glibc detected *** %s: %s: 0x%s ***\n") at ../sysdeps/unix/sysv/linux/libc_fatal.c:137
#5  0x0051f1ed in malloc_printerr (av=0xb1f00010, bytes=1044) at malloc.c:6283
#6  _int_malloc (av=0xb1f00010, bytes=1044) at malloc.c:4396
#7  0x00521070 in __libc_malloc (bytes=1044) at malloc.c:3660
#8  0x02226fde in qMalloc (size=1044) at global/qmalloc.cpp:55
#9  0x0222e0d7 in QByteArray::QByteArray (this=0xb2850f58, size=1024, ch=0 '\000') at tools/qbytearray.cpp:1330
#10 0x0222346c in qt_error_string (errorCode=22) at global/qglobal.cpp:2158
#11 0x0222abdf in report_error (code=<value optimized out>, where=0x238b52b "QMutex::lock", what=0x238b509 "mutex lock") at thread/qmutex_unix.cpp:61
#12 0x0222ad51 in QMutexPrivate::wait (this=0xb1f019a8, timeout=-1) at thread/qmutex_unix.cpp:80
#13 0x022274b2 in QMutex::lock (this=0x5ff0dc8) at thread/qmutex.cpp:167
#14 0x05e5cce0 in KDevelop::DUChainPrivate::doMoreCleanup(int, bool) () from /usr/lib/libkdevplatformlanguage.so.2
#15 0x05e5e2bb in KDevelop::DUChainPrivate::CleanupThread::run() () from /usr/lib/libkdevplatformlanguage.so.2
#16 0x0222be6a in QThreadPrivate::start (arg=0xa240690) at thread/qthread_unix.cpp:285
#17 0x00647e99 in start_thread (arg=0xb2851b70) at pthread_create.c:301
#18 0x00586d2e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:133

Thread 2 (Thread 0xa52beb70 (LWP 3169)):
#0  0x0040e424 in __kernel_vsyscall ()
#1  0x0064c39b in pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S:169
#2  0x0458d927 in QTWTF::TCMalloc_PageHeap::scavengerThread (this=0x46a1f60) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:2359
#3  0x0458d972 in QTWTF::TCMalloc_PageHeap::runScavengerThread (context=0x46a1f60) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:1464
#4  0x00647e99 in start_thread (arg=0xa52beb70) at pthread_create.c:301
#5  0x00586d2e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:133

Thread 1 (Thread 0xb7815780 (LWP 3096)):
[KCrash Handler]
#7  0x0040e424 in __kernel_vsyscall ()
#8  0x004da2f1 in raise (sig=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#9  0x004dbd5e in abort () at abort.c:92
#10 0x0051651d in __libc_message (do_abort=2, fmt=0x5fb6ec "*** glibc detected *** %s: %s: 0x%s ***\n") at ../sysdeps/unix/sysv/linux/libc_fatal.c:186
#11 0x0051dfb6 in malloc_printerr (av=0xae700010, p=0xae7041b8, have_lock=0) at malloc.c:6283
#12 _int_free (av=0xae700010, p=0xae7041b8, have_lock=0) at malloc.c:4795
#13 0x00c02fc2 in operator delete (ptr=0xae7041c0) at ../../../../libstdc++-v3/libsupc++/del_op.cc:44
#14 0x07b44622 in rpp::Stream::~Stream (this=0x7b60c60, __in_chrg=<value optimized out>) at /usr/src/debug/kdevelop-4.1.2/languages/cpp/parser/rpp/pp-stream.cpp:121
#15 0x004ddcdf in __run_exit_handlers (status=0) at exit.c:78
#16 exit (status=0) at exit.c:100
#17 0x004c5e3e in __libc_start_main (main=0x804add0 <main(int, char**)>, argc=1, ubp_av=0xbfac1d34, init=0x80525b0 <__libc_csu_init>, fini=0x8052610 <__libc_csu_fini>, rtld_fini=0x49ccf0 <_dl_fini>, stack_end=0xbfac1d2c) at libc-start.c:258
#18 0x0804abe1 in _start ()

Possible duplicates by query: bug 265925, bug 264901, bug 263711, bug 262106, bug 251003.

Reported using DrKonqi
Comment 1 Milian Wolff 2011-03-22 23:04:19 UTC
*** Bug 269126 has been marked as a duplicate of this bug. ***
Comment 2 Dmitry Veltishev 2011-03-26 17:04:33 UTC
After some updates applied these spontaneous crashes seems to disappear. Maybe this issue was side-effect of bugs in libraries that are used in Kdevelop.
Comment 3 Milian Wolff 2011-04-06 01:06:08 UTC
*** Bug 270181 has been marked as a duplicate of this bug. ***
Comment 4 Milian Wolff 2011-05-29 00:17:00 UTC
*** Bug 273434 has been marked as a duplicate of this bug. ***
Comment 5 Milian Wolff 2011-06-26 15:22:13 UTC
*** Bug 274393 has been marked as a duplicate of this bug. ***
Comment 6 Milian Wolff 2011-06-26 15:22:19 UTC
*** Bug 276456 has been marked as a duplicate of this bug. ***
Comment 7 Milian Wolff 2011-07-20 11:56:40 UTC
*** Bug 278059 has been marked as a duplicate of this bug. ***
Comment 8 Milian Wolff 2011-07-25 10:36:59 UTC
*** Bug 278453 has been marked as a duplicate of this bug. ***
Comment 9 Tomasz Karoń 2011-07-25 21:46:42 UTC
I have updated KDevelop to 4.6.3 and problem no disapear !
Comment 10 Milian Wolff 2011-07-26 22:04:12 UTC
*** Bug 266851 has been marked as a duplicate of this bug. ***
Comment 11 Mateusz Chrząszcz 2011-08-05 21:43:54 UTC
Created attachment 62594 [details]
New crash information added by DrKonqi

kdevelop (4.2.2) on KDE Platform 4.6.2 (4.6.2) using Qt 4.7.2

- What I was doing when the application crashed: I was editing a very little project, after that I closed kDevelop and then it crushed.  I installed kDevelop from package prepared for ubuntu.

-- Backtrace (Reduced):
#8  0x00007f71a7a1ad7b in __libc_message (do_abort=2, fmt=0x7f71a7b03400 "*** glibc detected *** %s: %s: 0x%s ***\n") at ../sysdeps/unix/sysv/linux/libc_fatal.c:189
#9  0x00007f71a7a26a8f in malloc_printerr (av=<value optimized out>, p=0x7f7174063bf0) at malloc.c:6283
#10 _int_free (av=<value optimized out>, p=0x7f7174063bf0) at malloc.c:4795
#11 0x00007f71a7a2a8e3 in __libc_free (mem=<value optimized out>) at malloc.c:3738
#12 0x00007f71a79e7961 in __run_exit_handlers (status=0) at exit.c:78
Comment 12 Rishat Galiulin 2011-08-06 06:26:46 UTC
Created attachment 62600 [details]
New crash information added by DrKonqi

kdevelop (4.2.3) on KDE Platform 4.6.5 (4.6.5) using Qt 4.7.3

- What I was doing when the application crashed: Close KDevelop while some files was opened for editing

-- Backtrace (Reduced):
#13 0x000000000040a831 in _start ()
Comment 13 Milian Wolff 2011-08-27 16:08:03 UTC
*** Bug 238155 has been marked as a duplicate of this bug. ***
Comment 14 AK 2011-10-28 18:17:58 UTC
Created attachment 64991 [details]
New crash information added by DrKonqi

kdevelop (4.2.2) on KDE Platform 4.6.5 (4.6.5) using Qt 4.7.2

- What I was doing when the application crashed:

After working a while with kdevelop I closed it and it crashed. This happend with kdevelop on ubuntu 11.04 and might have a connection to the last update of kubuntus kde libraries immdiately prior to today.

-- Backtrace (Reduced):
#8  0x00007f559d2ccd7b in __libc_message (do_abort=2, fmt=0x7f559d3b5400 "*** glibc detected *** %s: %s: 0x%s ***\n") at ../sysdeps/unix/sysv/linux/libc_fatal.c:189
#9  0x00007f559d2d8a8f in malloc_printerr (av=<value optimized out>, p=0x7f557c9cb070) at malloc.c:6283
#10 _int_free (av=<value optimized out>, p=0x7f557c9cb070) at malloc.c:4795
#11 0x00007f559d2dc8e3 in __libc_free (mem=<value optimized out>) at malloc.c:3738
#12 0x00007f559d299961 in __run_exit_handlers (status=0) at exit.c:78
Comment 15 Aleix Pol 2012-01-18 01:09:22 UTC
*** Bug 290690 has been marked as a duplicate of this bug. ***
Comment 16 Milian Wolff 2012-04-09 21:39:16 UTC
*** Bug 292371 has been marked as a duplicate of this bug. ***
Comment 17 Kevin Funk 2013-02-15 21:50:17 UTC
*** Bug 315240 has been marked as a duplicate of this bug. ***
Comment 18 Alexey Chernov 2013-04-28 13:40:20 UTC
Created attachment 79516 [details]
New crash information added by DrKonqi

kdevelop (4.5.0) on KDE Platform 4.9.5 using Qt 4.8.4

Reproducible for me with fresh KDevelop 4.5.0 version.

-- Backtrace (Reduced):
#9  0x00007f3020bdf075 in malloc_printerr (action=3, str=0x7f3020ca1c38 "double free or corruption (fasttop)", ptr=<optimized out>) at malloc.c:6264
[...]
#11 0x00007f2feb096064 in rpp::Stream::~Stream (this=0x7f2feb2b7f00, __in_chrg=<optimized out>) at /usr/src/packages/kdevelop-4.5.0/languages/cpp/parser/rpp/pp-stream.cpp:121
#12 0x00007f3020b9f662 in __run_exit_handlers (status=<optimized out>, listp=<optimized out>, run_list_atexit=<optimized out>) at exit.c:78
[...]
#14 0x00007f3020b87b74 in __libc_start_main (main=<optimized out>, argc=<optimized out>, ubp_av=<optimized out>, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fff69f9e638) at libc-start.c:258
#15 0x0000000000409a39 in _start () at ../sysdeps/x86_64/elf/start.S:113
Comment 19 Milian Wolff 2015-11-14 20:26:17 UTC
Hello!

We are working on a new clang-based C/C++ language plugin for KDevelop 5 which
supersedes the old C++ plugin in KDevelop 4. See e.g.:
https://www.kdevelop.org/news/first-beta-release-kdevelop-500-available

Due to a lack of manpower, we cannot fix bugs in the old C++ plugin. We rather
want to supply a good Clang based C++ experience for KDevelop 5 than wasting
our time on the legacy C++ support for KDevelop 4.

With the new clang-based C/C++ language plugin, the bug presented here does not occur. In my testing. For these reasons, I'll close this bug. Please stay tuned for KDevelop 5.

If you think this bug is applicable to Clang/KDevelop 5, please reopen the report and add new information on how to reproduce the bug there.

Sorry for the inconvenience, I hope you understand the reasoning above.

Cheers