Bug#730466: libLLVM-3.4.so.1: crash in autocompletion with bad source files
Ph. Marek
philipp.marek at linbit.com
Mon Nov 25 10:35:11 UTC 2013
Package: libllvm3.4
Version: 1:3.4~+rc1-1
Severity: normal
File: libLLVM-3.4.so.1
I'm using YouCompleteMe (vim plugin) for C programming.
During writing a comment the plugin crashes; this is reproducible with a CLI
call.
I know that the sources are botched, I'm currently rewriting large parts.
clang -cc1 -fsyntax-only -I/usr/include/c++/4.8 -I/usr/include/x86_64-linux-
gnu/c++/4.8 -I/usr/include/c++/4.8/backward -I/usr/lib/gcc/x86_64-linux-
gnu/4.8/include -I/usr/local/include -I/usr/lib/gcc/x86_64-linux-gnu/4.8
/include-fixed -I/usr/include/x86_64-linux-gnu -I/usr/include -code-completion-
at config.h:43:30 config.h
In file included from config.h:24:
../booth.h:105:14: error: duplicate member 'owner'
boothc_site owner;
^
../booth.h:103:11: note: previous declaration is here
uint32_t owner;
^
../booth.h:131:8: error: redefinition of 'paxos_control_data'
struct paxos_control_data {
^
../booth.h:116:8: note: previous definition is here
struct paxos_control_data {
^
../booth.h:139:20: error: field has incomplete type 'struct ticket_msg'
struct ticket_msg ticket;
^
../booth.h:139:9: note: forward declaration of 'struct ticket_msg'
struct ticket_msg ticket;
^
../booth.h:145:20: error: field has incomplete type 'struct ticket_msg'
struct ticket_msg ticket;
^
../booth.h:139:9: note: forward declaration of 'struct ticket_msg'
struct ticket_msg ticket;
^
../booth.h:149:8: error: redefinition of 'ticket_data'
struct ticket_data {
^
../booth.h:98:8: note: previous definition is here
struct ticket_data {
^
../booth.h:153:1: error: type name does not allow storage class to be specified
typedef enum {
^
../booth.h:160:1: error: type name does not allow storage class to be specified
typedef enum {
^
../booth.h:183:1: error: type name does not allow storage class to be specified
static inline void init_header(struct boothc_header *h, int cmd,
^
../booth.h:183:8: error: type name does not allow function specifier to be
specified
static inline void init_header(struct boothc_header *h, int cmd,
^
../booth.h:184:29: error: expected ';' at end of declaration list
int result, int data_len)
^
;
0 libLLVM-3.4.so.1 0x00007f9ae1af6562 llvm::sys::PrintStackTrace(_IO_FILE*) +
34
1 libLLVM-3.4.so.1 0x00007f9ae1af634c
2 libpthread.so.0 0x00007f9ae0a11210
3 clang 0x0000000001171a7f clang::Lexer::Lex(clang::Token&) + 31
4 clang 0x00000000011b37af clang::Preprocessor::Lex(clang::Token&)
+ 159
5 clang 0x000000000091dc3d
clang::Parser::ParseDeclOrFunctionDefInternal(clang::Parser::ParsedAttributesWithRange&,
clang::ParsingDeclSpec&, clang::AccessSpecifier) + 573
6 clang 0x000000000091e19e
clang::Parser::ParseDeclarationOrFunctionDefinition(clang::Parser::ParsedAttributesWithRange&,
clang::ParsingDeclSpec*, clang::AccessSpecifier) + 942
7 clang 0x0000000000921fb3
clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&,
clang::ParsingDeclSpec*) + 259
8 clang 0x0000000000922616
clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<clang::DeclGroupRef>&) + 182
9 clang 0x00000000009198bb clang::ParseAST(clang::Sema&, bool,
bool) + 283
10 clang 0x000000000066fe39 clang::FrontendAction::Execute() + 169
11 clang 0x0000000000650915
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 293
12 clang 0x000000000063b936
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1638
13 clang 0x0000000000637748 cc1_main(char const**, char const**,
char const*, void*) + 1144
14 clang 0x0000000000635eaf main + 7247
15 libc.so.6 0x00007f9adf82b995 __libc_start_main + 245
16 clang 0x00000000006367df
Stack dump:
0. Program arguments: clang -cc1 -fsyntax-only -I/usr/include/c++/4.8
-I/usr/include/x86_64-linux-gnu/c++/4.8 -I/usr/include/c++/4.8/backward
-I/usr/lib/gcc/x86_64-linux-gnu/4.8/include -I/usr/local/include
-I/usr/lib/gcc/x86_64-linux-gnu/4.8/include-fixed -I/usr/include/x86_64-linux-
gnu -I/usr/include -code-completion-at config.h:43:30 config.h
1. <unknown> parser at unknown location
/home/marek/bin/clang-complete-at: Zeile 19: 23068 Speicherzugriffsfehler
clang -cc1 -fsyntax-only -I/usr/include/c++/4.8 -I/usr/include/x86_64-linux-
gnu/c++/4.8 -I/usr/include/c++/4.8/backward -I/usr/lib/gcc/x86_64-linux-
gnu/4.8/include -I/usr/local/include -I/usr/lib/gcc/x86_64-linux-gnu/4.8
/include-fixed -I/usr/include/x86_64-linux-gnu -I/usr/include "$@" -code-
completion-at "$I" "${I%%:*}"
-- System Information:
Debian Release: jessie/sid
APT prefers testing
APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 3.11-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=de_AT.UTF-8, LC_CTYPE=de_AT.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages libllvm3.4:amd64 depends on:
ii libc6 2.17-93
ii libffi6 3.0.13-4
ii libgcc1 1:4.8.2-1
ii libstdc++6 4.8.2-1
ii libtinfo5 5.9+20130608-1
ii multiarch-support 2.17-93
libllvm3.4:amd64 recommends no packages.
libllvm3.4:amd64 suggests no packages.
-- no debconf information
-------------- next part --------------
A non-text attachment was scrubbed...
Name: config.h
Type: text/x-c
Size: 1899 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-llvm-team/attachments/20131125/4a046f61/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: booth.h
Type: text/x-c
Size: 4929 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-llvm-team/attachments/20131125/4a046f61/attachment-0001.bin>
More information about the Pkg-llvm-team
mailing list