Bug 356572 - Crash when parsing the source code of LibreOffice
Summary: Crash when parsing the source code of LibreOffice
Status: RESOLVED FIXED
Alias: None
Product: kdevelop
Classification: Applications
Component: Language Support: CPP (Clang-based) (show other bugs)
Version: 4.90.90
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords: investigated, triaged
Depends on:
Blocks:
 
Reported: 2015-12-12 20:34 UTC by Nicolas Christener
Modified: 2018-09-19 14:30 UTC (History)
4 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 Nicolas Christener 2015-12-12 20:34:19 UTC
I try to create a project in Kdevelop 4.90.90 and point it to the "core" repository of LibreOffice. After a short time, Kdevelop crashes with the following console output:

[...]
kdevplatform.language: WARNING: Non-function type assigned to function declaration. Type is:  "JAWT_DrawingSurface *(JNIEnv *, jobject)" whichType: 7 Declaration is: "<notype> JNICALL" "/usr/include/jawt.h" [ (251, 26)  ->  (251, 33) ]
kdevplatform.language: WARNING: Non-function type assigned to function declaration. Type is:  "void (JAWT_DrawingSurface *)" whichType: 7 Declaration is: "<notype> JNICALL" "/usr/include/jawt.h" [ (256, 10)  ->  (256, 17) ]
kdevplatform.language: WARNING: Non-function type assigned to function declaration. Type is:  "void (JNIEnv *)" whichType: 7 Declaration is: "<notype> JNICALL" "/usr/include/jawt.h" [ (262, 10)  ->  (262, 17) ]
kdevplatform.language: WARNING: Non-function type assigned to function declaration. Type is:  "jobject (JNIEnv *, void *)" whichType: 7 Declaration is: "<notype> JNICALL" "/usr/include/jawt.h" [ (279, 13)  ->  (279, 20) ]
kdevelop: /src/llvm-3.7.0.src/tools/clang/lib/Sema/Sema.cpp:275: clang::Sema::~Sema(): Assertion `DelayedTypos.empty() && "Uncorrected typos!"' failed.
Aborted (core dumped)

And this is what gdb says:

[New Thread 0x7fff8bb1e700 (LWP 13035)]
[New Thread 0x7fff977fe700 (LWP 13036)]
[Thread 0x7fff8bb1e700 (LWP 13035) exited]
[Thread 0x7fff977fe700 (LWP 13036) exited]
kdevelop: /src/llvm-3.7.0.src/tools/clang/lib/Sema/Sema.cpp:275: clang::Sema::~Sema(): Assertion `DelayedTypos.empty() && "Uncorrected typos!"' failed.

Program received signal SIGABRT, Aborted.
[Switching to Thread 0x7fffaed58700 (LWP 9906)]
0x00007ffff0bfa608 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:55
55	../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb) thread apply all bt full

Thread 2137 (Thread 0x7fff97fff700 (LWP 13024)):
#0  0x00007fffac6cf450 in ?? () from /lib/libclang.so
No symbol table info available.
#1  0x00007fffac6cfd82 in ?? () from /lib/libclang.so
No symbol table info available.
#2  0x00007fffac6d1b20 in ?? () from /lib/libclang.so
No symbol table info available.
#3  0x00007fffac6b7f72 in ?? () from /lib/libclang.so
No symbol table info available.
#4  0x00007fffac6b85b1 in ?? () from /lib/libclang.so
No symbol table info available.
#5  0x00007fffac6b85ff in ?? () from /lib/libclang.so
No symbol table info available.
#6  0x00007fffac6ba8df in ?? () from /lib/libclang.so
No symbol table info available.
#7  0x00007fffac6e8abb in ?? () from /lib/libclang.so
No symbol table info available.
#8  0x00007fffac6b812d in ?? () from /lib/libclang.so
No symbol table info available.
#9  0x00007fffac6b85b1 in ?? () from /lib/libclang.so
No symbol table info available.
#10 0x00007fffac6b85ff in ?? () from /lib/libclang.so
No symbol table info available.
#11 0x00007fffac6ba8df in ?? () from /lib/libclang.so
No symbol table info available.
#12 0x00007fffac6bb1e9 in ?? () from /lib/libclang.so
No symbol table info available.
#13 0x00007fffac6b3f3b in ?? () from /lib/libclang.so
No symbol table info available.
#14 0x00007fffac52fee6 in ?? () from /lib/libclang.so
No symbol table info available.
#15 0x00007fffac4fbfd3 in ?? () from /lib/libclang.so
No symbol table info available.
#16 0x00007fffac4fc340 in ?? () from /lib/libclang.so
No symbol table info available.
#17 0x00007fffac4ffbb1 in ?? () from /lib/libclang.so
No symbol table info available.
#18 0x00007fffac441464 in ?? () from /lib/libclang.so
---Type <return> to continue, or q <return> to quit---
No symbol table info available.
#19 0x00007fffa657f8c0 in llvm::CrashRecoveryContext::RunSafely(llvm::function_ref<void ()>) () from /lib/libLLVM-3.7.so
No symbol table info available.
#20 0x00007fffa657f934 in ?? () from /lib/libLLVM-3.7.so
No symbol table info available.
#21 0x00007fffa65c1f5d in ?? () from /lib/libLLVM-3.7.so
No symbol table info available.
#22 0x00007fffea9c7464 in start_thread (arg=0x7fff97fff700) at pthread_create.c:334
        __res = <optimized out>
        pd = 0x7fff97fff700
        now = <optimized out>
        unwind_buf = {cancel_jmp_buf = {{jmp_buf = {140735743522560, 4441197191298266604, 0, 140735971209343, 3, 140735971209504, -4441285151736220180, 
                -4441226083788802580}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
        not_first_call = <optimized out>
        pagesize_m1 = <optimized out>
        sp = <optimized out>
        freesize = <optimized out>
        __PRETTY_FUNCTION__ = "start_thread"
#23 0x00007ffff0cb013d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109
No locals.

Thread 553 (Thread 0x7fff94a54700 (LWP 10868)):
#0  0x00007ffff0ca719d in poll () at ../sysdeps/unix/syscall-template.S:84
No locals.
#1  0x00007fffe8ff5db4 in g_main_context_poll (priority=2147483647, n_fds=1, fds=0x7fff90132ef0, timeout=<optimized out>, context=0x7fff903e9e20) at gmain.c:4135
        poll_func = 0x7fffe9004810 <g_poll>
#2  g_main_context_iterate (context=context@entry=0x7fff903e9e20, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at gmain.c:3835
        max_priority = 2147483647
        timeout = -1
        some_ready = <optimized out>
        nfds = 1
        allocated_nfds = 1
        fds = 0x7fff90132ef0
#3  0x00007fffe8ff5ebc in g_main_context_iteration (context=0x7fff903e9e20, may_block=1) at gmain.c:3901
        retval = <optimized out>
#4  0x00007ffff1ac137b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/libQt5Core.so.5
No symbol table info available.
#5  0x00007ffff1a6b6ba in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/libQt5Core.so.5
No symbol table info available.
---Type <return> to continue, or q <return> to quit---
#6  0x00007ffff189882c in QThread::exec() () from /lib/libQt5Core.so.5
No symbol table info available.
#7  0x00007fffef25e5c9 in ?? () from /lib/libKDevPlatformLanguage.so.10
No symbol table info available.
#8  0x00007ffff189d62f in ?? () from /lib/libQt5Core.so.5
No symbol table info available.
#9  0x00007fffea9c7464 in start_thread (arg=0x7fff94a54700) at pthread_create.c:334
        __res = <optimized out>
        pd = 0x7fff94a54700
        now = <optimized out>
        unwind_buf = {cancel_jmp_buf = {{jmp_buf = {140735687247616, 4441197191298266604, 0, 140737488333935, 3, 140737488334160, -4441283591052478996, 
                -4441226083788802580}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
        not_first_call = <optimized out>
        pagesize_m1 = <optimized out>
        sp = <optimized out>
        freesize = <optimized out>
        __PRETTY_FUNCTION__ = "start_thread"
#10 0x00007ffff0cb013d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109
No locals.

Thread 14 (Thread 0x7fffa5123700 (LWP 9910)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
No locals.
#1  0x00007ffff189e7ab in QWaitCondition::wait(QMutex*, unsigned long) () from /lib/libQt5Core.so.5
No symbol table info available.
#2  0x00007fffecfcc7da in ThreadWeaver::Weaver::blockThreadUntilJobsAreBeingAssigned_locked(ThreadWeaver::Thread*) () from /lib/libKF5ThreadWeaver.so.5
No symbol table info available.
#3  0x00007fffecfcc5d8 in ThreadWeaver::Weaver::takeFirstAvailableJobOrSuspendOrWait(ThreadWeaver::Thread*, bool, bool, bool) () from /lib/libKF5ThreadWeaver.so.5
No symbol table info available.
#4  0x00007fffecfd3534 in ?? () from /lib/libKF5ThreadWeaver.so.5
No symbol table info available.
#5  0x00007fffecfcc6bc in ThreadWeaver::Weaver::applyForWork(ThreadWeaver::Thread*, bool) () from /lib/libKF5ThreadWeaver.so.5
No symbol table info available.
#6  0x00007fffecfd3599 in ?? () from /lib/libKF5ThreadWeaver.so.5
No symbol table info available.
#7  0x00007fffecfcc6bc in ThreadWeaver::Weaver::applyForWork(ThreadWeaver::Thread*, bool) () from /lib/libKF5ThreadWeaver.so.5
No symbol table info available.
#8  0x00007fffecfd3599 in ?? () from /lib/libKF5ThreadWeaver.so.5
No symbol table info available.
---Type <return> to continue, or q <return> to quit---
#9  0x00007fffecfcc6bc in ThreadWeaver::Weaver::applyForWork(ThreadWeaver::Thread*, bool) () from /lib/libKF5ThreadWeaver.so.5
No symbol table info available.
#10 0x00007fffecfd3599 in ?? () from /lib/libKF5ThreadWeaver.so.5
No symbol table info available.
#11 0x00007fffecfcc6bc in ThreadWeaver::Weaver::applyForWork(ThreadWeaver::Thread*, bool) () from /lib/libKF5ThreadWeaver.so.5
No symbol table info available.
#12 0x00007fffecfd3599 in ?? () from /lib/libKF5ThreadWeaver.so.5
No symbol table info available.
#13 0x00007fffecfcc6bc in ThreadWeaver::Weaver::applyForWork(ThreadWeaver::Thread*, bool) () from /lib/libKF5ThreadWeaver.so.5
No symbol table info available.
#14 0x00007fffecfcff46 in ThreadWeaver::Thread::run() () from /lib/libKF5ThreadWeaver.so.5
No symbol table info available.
#15 0x00007ffff189d62f in ?? () from /lib/libQt5Core.so.5
No symbol table info available.
#16 0x00007fffea9c7464 in start_thread (arg=0x7fffa5123700) at pthread_create.c:334
        __res = <optimized out>
        pd = 0x7fffa5123700
        now = <optimized out>
        unwind_buf = {cancel_jmp_buf = {{jmp_buf = {140735962822400, 4441197191298266604, 0, 140735971211903, 3, 140735743536704, -4441385458549934612, 
                -4441226083788802580}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
        not_first_call = <optimized out>
        pagesize_m1 = <optimized out>
        sp = <optimized out>
        freesize = <optimized out>
        __PRETTY_FUNCTION__ = "start_thread"
#17 0x00007ffff0cb013d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109
No locals.

Thread 13 (Thread 0x7fffa5924700 (LWP 9909)):
#0  0x00007fffea9c86cd in pthread_join (threadid=140735743522560, thread_return=0x0) at pthread_join.c:90
        __tid = 13024
        _buffer = {__routine = 0x7fffea9c8600 <cleanup>, __arg = 0x7fff97fffd28, __canceltype = -239631616, __prev = 0x0}
        oldtype = 0
        pd = 0x7fff97fff700
        self = 0x7fffa5924700
        result = 0
#1  0x00007fffa65c1fd0 in llvm::llvm_execute_on_thread(void (*)(void*), void*, unsigned int) () from /lib/libLLVM-3.7.so
No symbol table info available.
#2  0x00007fffa657fa10 in llvm::CrashRecoveryContext::RunSafelyOnThread(llvm::function_ref<void ()>, unsigned int) () from /lib/libLLVM-3.7.so
---Type <return> to continue, or q <return> to quit---
No symbol table info available.
#3  0x00007fffac439d47 in ?? () from /lib/libclang.so
No symbol table info available.
#4  0x00007fffac44d7d6 in clang_parseTranslationUnit2 () from /lib/libclang.so
No symbol table info available.
#5  0x00007fffad6b54c9 in ParseSessionData::ParseSessionData(QVector<UnsavedFile> const&, ClangIndex*, ClangParsingEnvironment const&, QFlags<ParseSessionData::Option>)
    () from /usr/lib/plugins/kdevplatform/24/kdevclangsupport.so
No symbol table info available.
#6  0x00007fffad6a7d8d in ?? () from /usr/lib/plugins/kdevplatform/24/kdevclangsupport.so
No symbol table info available.
#7  0x00007fffad6a723d in ?? () from /usr/lib/plugins/kdevplatform/24/kdevclangsupport.so
No symbol table info available.
#8  0x00007fffecfd1e94 in ThreadWeaver::IdDecorator::run(QSharedPointer<ThreadWeaver::JobInterface>, ThreadWeaver::Thread*) () from /lib/libKF5ThreadWeaver.so.5
No symbol table info available.
#9  0x00007fffecfd2810 in ThreadWeaver::Executor::run(QSharedPointer<ThreadWeaver::JobInterface> const&, ThreadWeaver::Thread*) () from /lib/libKF5ThreadWeaver.so.5
No symbol table info available.
#10 0x00007fffecfd1ad9 in ThreadWeaver::Private::DefaultExecutor::execute(QSharedPointer<ThreadWeaver::JobInterface> const&, ThreadWeaver::Thread*) ()
   from /lib/libKF5ThreadWeaver.so.5
No symbol table info available.
#11 0x00007fffecfd29cd in ?? () from /lib/libKF5ThreadWeaver.so.5
No symbol table info available.
#12 0x00007fffecfd1a7d in ?? () from /lib/libKF5ThreadWeaver.so.5
No symbol table info available.
#13 0x00007fffecfd29cd in ?? () from /lib/libKF5ThreadWeaver.so.5
No symbol table info available.
#14 0x00007fffecfd2983 in ?? () from /lib/libKF5ThreadWeaver.so.5
No symbol table info available.
#15 0x00007fffecfd29cd in ?? () from /lib/libKF5ThreadWeaver.so.5
No symbol table info available.
#16 0x00007fffecfd2983 in ?? () from /lib/libKF5ThreadWeaver.so.5
No symbol table info available.
#17 0x00007fffecfd0743 in ThreadWeaver::Job::execute(QSharedPointer<ThreadWeaver::JobInterface> const&, ThreadWeaver::Thread*) () from /lib/libKF5ThreadWeaver.so.5
No symbol table info available.
#18 0x00007fffecfd42b9 in ThreadWeaver::Collection::execute(QSharedPointer<ThreadWeaver::JobInterface> const&, ThreadWeaver::Thread*) ()
   from /lib/libKF5ThreadWeaver.so.5
No symbol table info available.
#19 0x00007fffecfd225d in ThreadWeaver::IdDecorator::execute(QSharedPointer<ThreadWeaver::JobInterface> const&, ThreadWeaver::Thread*) ()
   from /lib/libKF5ThreadWeaver.so.5
No symbol table info available.
---Type <return> to continue, or q <return> to quit---
#20 0x00007fffecfcfff9 in ThreadWeaver::Thread::run() () from /lib/libKF5ThreadWeaver.so.5
No symbol table info available.
#21 0x00007ffff189d62f in ?? () from /lib/libQt5Core.so.5
No symbol table info available.
#22 0x00007fffea9c7464 in start_thread (arg=0x7fffa5924700) at pthread_create.c:334
        __res = <optimized out>
        pd = 0x7fffa5924700
        now = <optimized out>
        unwind_buf = {cancel_jmp_buf = {{jmp_buf = {140735971215104, 4441197191298266604, 0, 140736135006847, 3, 140735877754944, -4441386558598433300, 
                -4441226083788802580}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
        not_first_call = <optimized out>
        pagesize_m1 = <optimized out>
        sp = <optimized out>
        freesize = <optimized out>
        __PRETTY_FUNCTION__ = "start_thread"
#23 0x00007ffff0cb013d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109
No locals.

Thread 12 (Thread 0x7fffaf559700 (LWP 9907)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
No locals.
#1  0x00007ffff189e7ab in QWaitCondition::wait(QMutex*, unsigned long) () from /lib/libQt5Core.so.5
No symbol table info available.
#2  0x00007fffecfcc7da in ThreadWeaver::Weaver::blockThreadUntilJobsAreBeingAssigned_locked(ThreadWeaver::Thread*) () from /lib/libKF5ThreadWeaver.so.5
No symbol table info available.
#3  0x00007fffecfcc5d8 in ThreadWeaver::Weaver::takeFirstAvailableJobOrSuspendOrWait(ThreadWeaver::Thread*, bool, bool, bool) () from /lib/libKF5ThreadWeaver.so.5
No symbol table info available.
#4  0x00007fffecfd3534 in ?? () from /lib/libKF5ThreadWeaver.so.5
No symbol table info available.
#5  0x00007fffecfcc6bc in ThreadWeaver::Weaver::applyForWork(ThreadWeaver::Thread*, bool) () from /lib/libKF5ThreadWeaver.so.5
No symbol table info available.
#6  0x00007fffecfcff46 in ThreadWeaver::Thread::run() () from /lib/libKF5ThreadWeaver.so.5
No symbol table info available.
#7  0x00007ffff189d62f in ?? () from /lib/libQt5Core.so.5
No symbol table info available.
#8  0x00007fffea9c7464 in start_thread (arg=0x7fffaf559700) at pthread_create.c:334
        __res = <optimized out>
        pd = 0x7fffaf559700
        now = <optimized out>
---Type <return> to continue, or q <return> to quit---
        unwind_buf = {cancel_jmp_buf = {{jmp_buf = {140736135010048, 4441197191298266604, 0, 140736126614143, 3, 140736126614368, -4441371685663558164, 
                -4441226083788802580}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
        not_first_call = <optimized out>
        pagesize_m1 = <optimized out>
        sp = <optimized out>
        freesize = <optimized out>
        __PRETTY_FUNCTION__ = "start_thread"
#9  0x00007ffff0cb013d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109
No locals.

Thread 11 (Thread 0x7fffaed58700 (LWP 9906)):
#0  0x00007ffff0bfa608 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:55
        resultvar = 0
        pid = 9857
        selftid = 9906
#1  0x00007ffff0bfba8a in __GI_abort () at abort.c:89
        save_stage = 2
        act = {__sigaction_handler = {sa_handler = 0x4, sa_sigaction = 0x4}, sa_mask = {__val = {140736126612208, 6626651, 140736126612288, 50177864608, 0, 0, 0, 
              21474836480, 140737233732207, 140736126612440, 140733193388033, 140737233746960, 140737233767184, 140735206654064, 140736671670272, 140736094863976}}, 
          sa_flags = 275, sa_restorer = 0x7fffacf145c0}
        sigs = {__val = {32, 0 <repeats 15 times>}}
#2  0x00007ffff0bf3427 in __assert_fail_base (fmt=<optimized out>, assertion=assertion@entry=0x7fffacf10268 "DelayedTypos.empty() && \"Uncorrected typos!\"", 
    file=file@entry=0x7fffacf0ff78 "/src/llvm-3.7.0.src/tools/clang/lib/Sema/Sema.cpp", line=line@entry=275, 
    function=function@entry=0x7fffacf145c0 "clang::Sema::~Sema()") at assert.c:92
        str = 0x7fffaa2a77f0 "x"
        total = 4096
#3  0x00007ffff0bf34d2 in __GI___assert_fail (assertion=0x7fffacf10268 "DelayedTypos.empty() && \"Uncorrected typos!\"", 
    file=0x7fffacf0ff78 "/src/llvm-3.7.0.src/tools/clang/lib/Sema/Sema.cpp", line=275, function=0x7fffacf145c0 "clang::Sema::~Sema()") at assert.c:101
No locals.
#4  0x00007fffac7634e0 in ?? () from /lib/libclang.so
No symbol table info available.
#5  0x00007fffac4fef0e in ?? () from /lib/libclang.so
No symbol table info available.
#6  0x00007fffac4ff399 in ?? () from /lib/libclang.so
No symbol table info available.
#7  0x00007fffac436876 in clang_disposeTranslationUnit () from /lib/libclang.so
No symbol table info available.
#8  0x00007fffad6b57b0 in ParseSessionData::~ParseSessionData() () from /usr/lib/plugins/kdevplatform/24/kdevclangsupport.so
No symbol table info available.
---Type <return> to continue, or q <return> to quit---
#9  0x00007fffad6b581c in ParseSessionData::~ParseSessionData() () from /usr/lib/plugins/kdevplatform/24/kdevclangsupport.so
No symbol table info available.
#10 0x00007fffad6aa2b1 in ?? () from /usr/lib/plugins/kdevplatform/24/kdevclangsupport.so
No symbol table info available.
#11 0x00007fffad6b5966 in ParseSession::~ParseSession() () from /usr/lib/plugins/kdevplatform/24/kdevclangsupport.so
No symbol table info available.
#12 0x00007fffad6a7ce7 in ?? () from /usr/lib/plugins/kdevplatform/24/kdevclangsupport.so
No symbol table info available.
#13 0x00007fffecfd1e94 in ThreadWeaver::IdDecorator::run(QSharedPointer<ThreadWeaver::JobInterface>, ThreadWeaver::Thread*) () from /lib/libKF5ThreadWeaver.so.5
No symbol table info available.
#14 0x00007fffecfd2810 in ThreadWeaver::Executor::run(QSharedPointer<ThreadWeaver::JobInterface> const&, ThreadWeaver::Thread*) () from /lib/libKF5ThreadWeaver.so.5
No symbol table info available.
#15 0x00007fffecfd1ad9 in ThreadWeaver::Private::DefaultExecutor::execute(QSharedPointer<ThreadWeaver::JobInterface> const&, ThreadWeaver::Thread*) ()
   from /lib/libKF5ThreadWeaver.so.5
No symbol table info available.
#16 0x00007fffecfd29cd in ?? () from /lib/libKF5ThreadWeaver.so.5
No symbol table info available.
#17 0x00007fffecfd1a7d in ?? () from /lib/libKF5ThreadWeaver.so.5
No symbol table info available.
#18 0x00007fffecfd29cd in ?? () from /lib/libKF5ThreadWeaver.so.5
No symbol table info available.
#19 0x00007fffecfd2983 in ?? () from /lib/libKF5ThreadWeaver.so.5
No symbol table info available.
#20 0x00007fffecfd29cd in ?? () from /lib/libKF5ThreadWeaver.so.5
No symbol table info available.
#21 0x00007fffecfd2983 in ?? () from /lib/libKF5ThreadWeaver.so.5
No symbol table info available.
#22 0x00007fffecfd0743 in ThreadWeaver::Job::execute(QSharedPointer<ThreadWeaver::JobInterface> const&, ThreadWeaver::Thread*) () from /lib/libKF5ThreadWeaver.so.5
No symbol table info available.
#23 0x00007fffecfd42b9 in ThreadWeaver::Collection::execute(QSharedPointer<ThreadWeaver::JobInterface> const&, ThreadWeaver::Thread*) ()
   from /lib/libKF5ThreadWeaver.so.5
No symbol table info available.
#24 0x00007fffecfd225d in ThreadWeaver::IdDecorator::execute(QSharedPointer<ThreadWeaver::JobInterface> const&, ThreadWeaver::Thread*) ()
   from /lib/libKF5ThreadWeaver.so.5
No symbol table info available.
#25 0x00007fffecfcfff9 in ThreadWeaver::Thread::run() () from /lib/libKF5ThreadWeaver.so.5
No symbol table info available.
#26 0x00007ffff189d62f in ?? () from /lib/libQt5Core.so.5
No symbol table info available.
---Type <return> to continue, or q <return> to quit---
#27 0x00007fffea9c7464 in start_thread (arg=0x7fffaed58700) at pthread_create.c:334
        __res = <optimized out>
        pd = 0x7fffaed58700
        now = <optimized out>
        unwind_buf = {cancel_jmp_buf = {{jmp_buf = {140736126617344, 4441197191298266604, 0, 140736636897919, 3, 140736636898144, -4441374990104021524, 
                -4441226083788802580}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
        not_first_call = <optimized out>
        pagesize_m1 = <optimized out>
        sp = <optimized out>
        freesize = <optimized out>
        __PRETTY_FUNCTION__ = "start_thread"
#28 0x00007ffff0cb013d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109
No locals.

Thread 10 (Thread 0x7fffcd3fd700 (LWP 9905)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
No locals.
#1  0x00007ffff189e7ab in QWaitCondition::wait(QMutex*, unsigned long) () from /lib/libQt5Core.so.5
No symbol table info available.
#2  0x00007fffecfcc7da in ThreadWeaver::Weaver::blockThreadUntilJobsAreBeingAssigned_locked(ThreadWeaver::Thread*) () from /lib/libKF5ThreadWeaver.so.5
No symbol table info available.
#3  0x00007fffecfcc5d8 in ThreadWeaver::Weaver::takeFirstAvailableJobOrSuspendOrWait(ThreadWeaver::Thread*, bool, bool, bool) () from /lib/libKF5ThreadWeaver.so.5
No symbol table info available.
#4  0x00007fffecfd3534 in ?? () from /lib/libKF5ThreadWeaver.so.5
No symbol table info available.
#5  0x00007fffecfcc6bc in ThreadWeaver::Weaver::applyForWork(ThreadWeaver::Thread*, bool) () from /lib/libKF5ThreadWeaver.so.5
No symbol table info available.
#6  0x00007fffecfd3599 in ?? () from /lib/libKF5ThreadWeaver.so.5
No symbol table info available.
#7  0x00007fffecfcc6bc in ThreadWeaver::Weaver::applyForWork(ThreadWeaver::Thread*, bool) () from /lib/libKF5ThreadWeaver.so.5
No symbol table info available.
#8  0x00007fffecfd3599 in ?? () from /lib/libKF5ThreadWeaver.so.5
No symbol table info available.
#9  0x00007fffecfcc6bc in ThreadWeaver::Weaver::applyForWork(ThreadWeaver::Thread*, bool) () from /lib/libKF5ThreadWeaver.so.5
No symbol table info available.
#10 0x00007fffecfcff46 in ThreadWeaver::Thread::run() () from /lib/libKF5ThreadWeaver.so.5
No symbol table info available.
#11 0x00007ffff189d62f in ?? () from /lib/libQt5Core.so.5
No symbol table info available.
---Type <return> to continue, or q <return> to quit---
#12 0x00007fffea9c7464 in start_thread (arg=0x7fffcd3fd700) at pthread_create.c:334
        __res = <optimized out>
        pd = 0x7fffcd3fd700
        now = <optimized out>
        unwind_buf = {cancel_jmp_buf = {{jmp_buf = {140736636901120, 4441197191298266604, 0, 140737488337791, 3, 140737488338016, -4441157059705326100, 
                -4441226083788802580}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
        not_first_call = <optimized out>
        pagesize_m1 = <optimized out>
        sp = <optimized out>
        freesize = <optimized out>
        __PRETTY_FUNCTION__ = "start_thread"
#13 0x00007ffff0cb013d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109
No locals.

Thread 9 (Thread 0x7fffd0513700 (LWP 9900)):
#0  0x00007ffff0ca719d in poll () at ../sysdeps/unix/syscall-template.S:84
No locals.
#1  0x00007fffe8ff5db4 in g_main_context_poll (priority=2147483647, n_fds=1, fds=0x7fffc80179f0, timeout=<optimized out>, context=0x7fffc80419d0) at gmain.c:4135
        poll_func = 0x7fffe9004810 <g_poll>
#2  g_main_context_iterate (context=context@entry=0x7fffc80419d0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at gmain.c:3835
        max_priority = 2147483647
        timeout = -1
        some_ready = <optimized out>
        nfds = 1
        allocated_nfds = 1
        fds = 0x7fffc80179f0
#3  0x00007fffe8ff5ebc in g_main_context_iteration (context=0x7fffc80419d0, may_block=1) at gmain.c:3901
        retval = <optimized out>
#4  0x00007ffff1ac137b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/libQt5Core.so.5
No symbol table info available.
#5  0x00007ffff1a6b6ba in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/libQt5Core.so.5
No symbol table info available.
#6  0x00007ffff189882c in QThread::exec() () from /lib/libQt5Core.so.5
No symbol table info available.
#7  0x00007fffef25e5c9 in ?? () from /lib/libKDevPlatformLanguage.so.10
No symbol table info available.
#8  0x00007ffff189d62f in ?? () from /lib/libQt5Core.so.5
No symbol table info available.
#9  0x00007fffea9c7464 in start_thread (arg=0x7fffd0513700) at pthread_create.c:334
---Type <return> to continue, or q <return> to quit---
        __res = <optimized out>
        pd = 0x7fffd0513700
        now = <optimized out>
        unwind_buf = {cancel_jmp_buf = {{jmp_buf = {140736688371456, 4441197191298266604, 0, 140737488333823, 3, 140737488334048, -4441132029709666836, 
                -4441226083788802580}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
        not_first_call = <optimized out>
        pagesize_m1 = <optimized out>
        sp = <optimized out>
        freesize = <optimized out>
        __PRETTY_FUNCTION__ = "start_thread"
#10 0x00007ffff0cb013d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109
No locals.

Thread 6 (Thread 0x7fffb7243700 (LWP 9869)):
#0  0x00007ffff0ca719d in poll () at ../sysdeps/unix/syscall-template.S:84
No locals.
#1  0x00007fffe8ff5db4 in g_main_context_poll (priority=2147483647, n_fds=1, fds=0x7fffb0003270, timeout=<optimized out>, context=0x7fffb0000990) at gmain.c:4135
        poll_func = 0x7fffe9004810 <g_poll>
#2  g_main_context_iterate (context=context@entry=0x7fffb0000990, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at gmain.c:3835
        max_priority = 2147483647
        timeout = -1
        some_ready = <optimized out>
        nfds = 1
        allocated_nfds = 1
        fds = 0x7fffb0003270
#3  0x00007fffe8ff5ebc in g_main_context_iteration (context=0x7fffb0000990, may_block=1) at gmain.c:3901
        retval = <optimized out>
#4  0x00007ffff1ac135f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/libQt5Core.so.5
No symbol table info available.
#5  0x00007ffff1a6b6ba in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/libQt5Core.so.5
No symbol table info available.
#6  0x00007ffff189882c in QThread::exec() () from /lib/libQt5Core.so.5
No symbol table info available.
#7  0x00007ffff189d62f in ?? () from /lib/libQt5Core.so.5
No symbol table info available.
#8  0x00007fffea9c7464 in start_thread (arg=0x7fffb7243700) at pthread_create.c:334
        __res = <optimized out>
        pd = 0x7fffb7243700
        now = <optimized out>
---Type <return> to continue, or q <return> to quit---
        unwind_buf = {cancel_jmp_buf = {{jmp_buf = {140736265991936, 4441197191298266604, 0, 140737488333263, 3, 34672688, -4441355067361348116, -4441226083788802580}, 
              mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
        not_first_call = <optimized out>
        pagesize_m1 = <optimized out>
        sp = <optimized out>
        freesize = <optimized out>
        __PRETTY_FUNCTION__ = "start_thread"
#9  0x00007ffff0cb013d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109
No locals.

Thread 5 (Thread 0x7fffc54a4700 (LWP 9864)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:225
No locals.
#1  0x00007ffff189e6f6 in QWaitCondition::wait(QMutex*, unsigned long) () from /lib/libQt5Core.so.5
No symbol table info available.
#2  0x00007fffef146cfb in ?? () from /lib/libKDevPlatformLanguage.so.10
No symbol table info available.
#3  0x00007ffff189d62f in ?? () from /lib/libQt5Core.so.5
No symbol table info available.
#4  0x00007fffea9c7464 in start_thread (arg=0x7fffc54a4700) at pthread_create.c:334
        __res = <optimized out>
        pd = 0x7fffc54a4700
        now = <optimized out>
        unwind_buf = {cancel_jmp_buf = {{jmp_buf = {140736503367424, 4441197191298266604, 0, 140737488339135, 3, 13932112, -4441174009256888852, -4441226083788802580}, 
              mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
        not_first_call = <optimized out>
        pagesize_m1 = <optimized out>
        sp = <optimized out>
        freesize = <optimized out>
        __PRETTY_FUNCTION__ = "start_thread"
#5  0x00007ffff0cb013d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109
No locals.

Thread 2 (Thread 0x7fffdae12700 (LWP 9861)):
#0  0x00007ffff0ca719d in poll () at ../sysdeps/unix/syscall-template.S:84
No locals.
#1  0x00007fffe49749b2 in ?? () from /lib/libxcb.so.1
No symbol table info available.
#2  0x00007fffe4976547 in xcb_wait_for_event () from /lib/libxcb.so.1
---Type <return> to continue, or q <return> to quit---
No symbol table info available.
#3  0x00007fffdc0016d9 in ?? () from /usr/lib/libQt5XcbQpa.so.5
No symbol table info available.
#4  0x00007ffff189d62f in ?? () from /lib/libQt5Core.so.5
No symbol table info available.
#5  0x00007fffea9c7464 in start_thread (arg=0x7fffdae12700) at pthread_create.c:334
        __res = <optimized out>
        pd = 0x7fffdae12700
        now = <optimized out>
        unwind_buf = {cancel_jmp_buf = {{jmp_buf = {140736865576704, 4441197191298266604, 0, 140737488339039, 3, 6666352, -4441120349009234452, -4441226083788802580}, 
              mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
        not_first_call = <optimized out>
        pagesize_m1 = <optimized out>
        sp = <optimized out>
        freesize = <optimized out>
        __PRETTY_FUNCTION__ = "start_thread"
#6  0x00007ffff0cb013d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109
No locals.

Thread 1 (Thread 0x7fffdd705840 (LWP 9857)):
#0  0x00007ffff1a9a344 in QMetaObject::activate(QObject*, int, int, void**) () from /lib/libQt5Core.so.5
No symbol table info available.
#1  0x00007ffff7b474a8 in ?? () from /lib/libKDevPlatformShell.so.10
No symbol table info available.
#2  0x00007ffff7b176c7 in ?? () from /lib/libKDevPlatformShell.so.10
No symbol table info available.
#3  0x00007ffff7aaed7d in ?? () from /lib/libKDevPlatformShell.so.10
No symbol table info available.
#4  0x00007ffff7b4a2fa in ?? () from /lib/libKDevPlatformShell.so.10
No symbol table info available.
#5  0x00007ffff1a9b6e9 in QObject::event(QEvent*) () from /lib/libQt5Core.so.5
No symbol table info available.
#6  0x00007ffff2531b33 in QWidget::event(QEvent*) () from /lib/libQt5Widgets.so.5
No symbol table info available.
#7  0x00007ffff2683785 in QStatusBar::event(QEvent*) () from /lib/libQt5Widgets.so.5
No symbol table info available.
#8  0x00007ffff24f182c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib/libQt5Widgets.so.5
No symbol table info available.
#9  0x00007ffff24f6946 in QApplication::notify(QObject*, QEvent*) () from /lib/libQt5Widgets.so.5
---Type <return> to continue, or q <return> to quit---
No symbol table info available.
#10 0x00007ffff1a6db53 in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /lib/libQt5Core.so.5
No symbol table info available.
#11 0x00007ffff1a6fe76 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /lib/libQt5Core.so.5
No symbol table info available.
#12 0x00007ffff1ac0f53 in ?? () from /lib/libQt5Core.so.5
No symbol table info available.
#13 0x00007fffe8ff5be7 in g_main_dispatch (context=0x7fffd40016f0) at gmain.c:3154
        dispatch = 0x7ffff1ac0f40
        prev_source = 0x0
        was_in_call = 0
        user_data = 0x0
        callback = 0x0
        cb_funcs = <optimized out>
        cb_data = <optimized out>
        need_destroy = <optimized out>
        source = 0x7f3110
        current = 0x8a8b80
        i = 0
#14 g_main_context_dispatch (context=context@entry=0x7fffd40016f0) at gmain.c:3769
No locals.
#15 0x00007fffe8ff5e18 in g_main_context_iterate (context=context@entry=0x7fffd40016f0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>)
    at gmain.c:3840
        max_priority = 0
        timeout = 0
        some_ready = 1
        nfds = <optimized out>
        allocated_nfds = 15
        fds = 0x23765a0
#16 0x00007fffe8ff5ebc in g_main_context_iteration (context=0x7fffd40016f0, may_block=1) at gmain.c:3901
        retval = <optimized out>
#17 0x00007ffff1ac135f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/libQt5Core.so.5
No symbol table info available.
#18 0x00007ffff1a6b6ba in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/libQt5Core.so.5
No symbol table info available.
#19 0x00007ffff1a7324d in QCoreApplication::exec() () from /lib/libQt5Core.so.5
No symbol table info available.
#20 0x000000000041a5b3 in main ()
No symbol table info available.
(gdb) 

Reproducible: Always

Steps to Reproduce:
1. git clone git://anongit.freedesktop.org/libreoffice/core
2. in Kdevelop "Project > Open / Import Project ...", point it to the LibO repo and let the background parser parse the source directory
3. after a couple of minutes the crash should happen

note: in my case i compiled the code in the repo before - I assume, that the crash will happen with a fresh clone as well.

Actual Results:  
A crash happens, please see the console output as well as the gdb output below:



Expected Results:  
The background parser should finish without crash.

Just let me know, if I should rebuild clang, kdevelop, ... with some other flags (e.g. enable debug symbols). I can also provide ssh access to the machine if needed.

Thank you very much for looking into it! Have a good day!

Best regards,
Nicolas
Comment 1 Sergey Kalinichev 2015-12-13 13:35:48 UTC
I'd suggest you to build the latest version of Clang from sources and see if this assert persists. If so try to find out what file is being parsed (e.g. add "qWarning() << m_environment.translationUnitUrl();" to ~ParseSessionData()), and then try to build a minimally reproducible test case and attach it here.

Also you could build Clang in release mode without asserts, that should workaround this and other asserts that we trigger in Clang code base. Or you could disable "Schedule all project files for parsing" in Settings->Configure KDevelop->Projects, that will probably workaround the assert too.
Comment 2 Sven Brauch 2016-10-16 14:34:09 UTC
Setting this to NEEDSINFO, assuming it has been fixed in clang since. If not, please re-open it.
Comment 3 Alexander 2017-03-25 15:28:43 UTC
It fails with clang/llvm-4.0 release and kdevelop/kdevplatfrom installed from git. 
It fails on parsing kdevplatform/plugins/subversion/kdevsvncpp/exception.cpp

kdevelop: /var/tmp/portage/sys-devel/clang-4.0.0/work/x/y/cfe-4.0.0.src/lib/Sema/Sema.cpp:317: clang::Sema::~Sema(): Assertion `DelayedTypos.empty() && "Uncorrected typos!"' failed.

Thread 17 "Queue(0x555555b" received signal SIGABRT, Aborted.
[Switching to Thread 0x7fff7f7fe700 (LWP 16023)]
0x00007ffff146d03f in raise () from /lib64/libc.so.6
(gdb) bt
#0  0x00007ffff146d03f in raise () from /lib64/libc.so.6
#1  0x00007ffff146e43a in abort () from /lib64/libc.so.6
#2  0x00007ffff1465e87 in ?? () from /lib64/libc.so.6
#3  0x00007ffff1465f32 in __assert_fail () from /lib64/libc.so.6
#4  0x00007fffacbc7f2a in clang::Sema::~Sema() () from /usr/lib64/llvm/4/lib64/../lib64/libclangSema.so.4
#5  0x00007fffadb15046 in clang::ASTUnit::~ASTUnit() () from /usr/lib64/llvm/4/lib64/../lib64/libclangFrontend.so.4
#6  0x00007fffadb15349 in clang::ASTUnit::~ASTUnit() () from /usr/lib64/llvm/4/lib64/../lib64/libclangFrontend.so.4
#7  0x00007fffae977c96 in clang_disposeTranslationUnit () from /usr/lib64/llvm/4/lib64/libclang.so.4
#8  0x00007fffaf594556 in ParseSessionData::~ParseSessionData (this=0x7fff7043d090, __in_chrg=<optimized out>) at ~/p/kde/src/extragear/kdevelop/kdevelop/languages/clang/duchain/parsesession.cpp:313
#9  0x00007fffaf5945ae in ParseSessionData::~ParseSessionData (this=0x7fff7043d090, __in_chrg=<optimized out>) at ~/p/kde/src/extragear/kdevelop/kdevelop/languages/clang/duchain/parsesession.cpp:314
#10 0x00007fffaf4e5169 in QExplicitlySharedDataPointer<ParseSessionData>::~QExplicitlySharedDataPointer (this=0x7fff7f7fdc30, __in_chrg=<optimized out>) at /usr/include/qt5/QtCore/qshareddata.h:165
#11 0x00007fffaf594998 in ParseSession::~ParseSession (this=0x7fff7f7fdc30, __in_chrg=<optimized out>) at ~/p/kde/src/extragear/kdevelop/kdevelop/languages/clang/duchain/parsesession.cpp:356
#12 0x00007fffb41f45bc in ClangParseJob::run (this=0x5555581e73e0) at ~/p/kde/src/extragear/kdevelop/kdevelop/languages/clang/clangparsejob.cpp:306
#13 0x00007fffee3693aa in ThreadWeaver::IdDecorator::run(QSharedPointer<ThreadWeaver::JobInterface>, ThreadWeaver::Thread*) () from /usr/lib64/libKF5ThreadWeaver.so.5
#14 0x00007fffee369948 in ThreadWeaver::Executor::run(QSharedPointer<ThreadWeaver::JobInterface> const&, ThreadWeaver::Thread*) () from /usr/lib64/libKF5ThreadWeaver.so.5
#15 0x00007fffee3685c0 in ThreadWeaver::Job::execute(QSharedPointer<ThreadWeaver::JobInterface> const&, ThreadWeaver::Thread*) () from /usr/lib64/libKF5ThreadWeaver.so.5
#16 0x00007fffee3680d0 in ThreadWeaver::Thread::run() () from /usr/lib64/libKF5ThreadWeaver.so.5
#17 0x00007ffff218f28c in ?? () from /usr/lib64/libQt5Core.so.5
#18 0x00007fffeb96c394 in start_thread () from /lib64/libpthread.so.0
#19 0x00007ffff15225ef in clone () from /lib64/libc.so.6
(gdb) q
Comment 4 Alexander 2017-03-25 18:34:23 UTC
The crash is reproduced when I remove svn_client.h header from my system.
It is included via kdevsvncpp/exception.hpp (29: 'svn_client.h') which is included at /kdevsvncpp/exception.cpp:30
Comment 5 Andrew Crouthamel 2018-09-19 14:30:54 UTC
This bug has had its resolution changed, but accidentally has been left in NEEDSINFO status. I am thus closing this bug and setting the status as RESOLVED to reflect the resolution change.