Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 06 Dec 2018 16:56:10 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 233831] [llvm] crash when parsing files through kdevelop
Message-ID:  <bug-233831-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D233831

            Bug ID: 233831
           Summary: [llvm] crash when parsing files through kdevelop
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: nicolas.masse@stormshield.eu

When I open some projects in kdevelop, it crash when tryong to parse the fi=
le.
>From a console, it seems that the bug is in fact located in libclang and is=
 due
to the following assertion:
Assertion failed: (DelayedTypos.empty() && "Uncorrected typos!"), function
~Sema, file
/wrkdirs/usr/ports/devel/llvm60/work/llvm-6.0.1.src/tools/clang/lib/Sema/Se=
ma.cpp,
line 362.

using the generated kdevelop.core file, I get this:
 (included : the stacktrace of the 2 threads which seems to deal with parsi=
ng,
the crash happens in thread 1)

Thread 13 (LWP 101061):
#0  0x0000000804d2366c in ?? () from /lib/libthr.so.3
#1  0x0000000804d1fcba in ?? () from /lib/libthr.so.3
#2  0x000000081a57b5ba in llvm::llvm_execute_on_thread(void (*)(void*), voi=
d*,
unsigned int) () from /usr/local/llvm60/lib/../lib/libLLVM-6.0.so
#3  0x000000081a504bb0 in
llvm::CrashRecoveryContext::RunSafelyOnThread(llvm::function_ref<void ()>,
unsigned int) () from /usr/local/llvm60/lib/../lib/libLLVM-6.0.so
#4  0x0000000817713f8e in clang_parseTranslationUnit2FullArgv () from
/usr/local/llvm60/lib/libclang.so.6
#5  0x0000000817713bd7 in clang_parseTranslationUnit2 () from
/usr/local/llvm60/lib/libclang.so.6
#6  0x0000000817030764 in
ParseSessionData::ParseSessionData(QVector<UnsavedFile> const&, ClangIndex*,
ClangParsingEnvironment const&, QFlags<ParseSessionData::Option>) ()
   from /usr/local/lib/libKDevClangPrivate.so.30
#7  0x0000000816f6f76c in ?? () from
/usr/local/lib/qt5/plugins/kdevplatform/30/kdevclangsupport.so
#8  0x00000008029df370 in
ThreadWeaver::IdDecorator::run(QSharedPointer<ThreadWeaver::JobInterface>,
ThreadWeaver::Thread*) () from /usr/local/lib/libKF5ThreadWeaver.so.5
#9  0x00000008029dfa5c in
ThreadWeaver::Executor::run(QSharedPointer<ThreadWeaver::JobInterface> cons=
t&,
ThreadWeaver::Thread*) () from /usr/local/lib/libKF5ThreadWeaver.so.5
#10 0x00000008029de81f in
ThreadWeaver::Job::execute(QSharedPointer<ThreadWeaver::JobInterface> const=
&,
ThreadWeaver::Thread*) () from /usr/local/lib/libKF5ThreadWeaver.so.5
#11 0x00000008029de4bd in ThreadWeaver::Thread::run() () from
/usr/local/lib/libKF5ThreadWeaver.so.5
#12 0x0000000802c5c02b in ?? () from /usr/local/lib/qt5/libQt5Core.so.5
#13 0x0000000804d15776 in ?? () from /lib/libthr.so.3
#14 0x0000000000000000 in ?? ()
Backtrace stopped: Cannot access memory at address 0x7fffde1ef000

Thread 1 (LWP 101064):
#0  0x00000008030a945a in thr_kill () from /lib/libc.so.7
#1  0x00000008030a7844 in raise () from /lib/libc.so.7
#2  0x000000080301a079 in abort () from /lib/libc.so.7
#3  0x00000008030972c1 in __assert () from /lib/libc.so.7
#4  0x0000000817b29eb3 in ?? () from /usr/local/llvm60/lib/libclang.so.6
#5  0x00000008179a3ee6 in ?? () from /usr/local/llvm60/lib/libclang.so.6
#6  0x0000000817708644 in clang_disposeTranslationUnit () from
/usr/local/llvm60/lib/libclang.so.6
#7  0x0000000817032665 in ParseSessionData::~ParseSessionData() () from
/usr/local/lib/libKDevClangPrivate.so.30
#8  0x000000081703271e in ParseSessionData::~ParseSessionData() () from
/usr/local/lib/libKDevClangPrivate.so.30
#9  0x0000000816f703ac in ?? () from
/usr/local/lib/qt5/plugins/kdevplatform/30/kdevclangsupport.so
#10 0x00000008029df370 in
ThreadWeaver::IdDecorator::run(QSharedPointer<ThreadWeaver::JobInterface>,
ThreadWeaver::Thread*) () from /usr/local/lib/libKF5ThreadWeaver.so.5
#11 0x00000008029dfa5c in
ThreadWeaver::Executor::run(QSharedPointer<ThreadWeaver::JobInterface> cons=
t&,
ThreadWeaver::Thread*) () from /usr/local/lib/libKF5ThreadWeaver.so.5
#12 0x00000008029de81f in
ThreadWeaver::Job::execute(QSharedPointer<ThreadWeaver::JobInterface> const=
&,
ThreadWeaver::Thread*) () from /usr/local/lib/libKF5ThreadWeaver.so.5
#13 0x00000008029de4bd in ThreadWeaver::Thread::run() () from
/usr/local/lib/libKF5ThreadWeaver.so.5
#14 0x0000000802c5c02b in ?? () from /usr/local/lib/qt5/libQt5Core.so.5
#15 0x0000000804d15776 in ?? () from /lib/libthr.so.3
#16 0x0000000000000000 in ?? ()

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-233831-7788>