Bug#923456: llvm-toolchain-7: clang(|++-$VERSION) segfault in two autopkgtests

Paul Gevers elbrus at debian.org
Thu Feb 28 12:38:01 GMT 2019


Source: llvm-toolchain-7
Version: 1:7.0.1-7
Severity: serious
X-Debbugs-CC: debian-ci at lists.debian.org
User: debian-ci at lists.debian.org
Usertags: regression

Dear maintainers,

With a recent upload of llvm-toolchain-7 the autopkgtest of
llvm-toolchain-7 and clazy fail in testing when that autopkgtest is run
with the binary packages of llvm-toolchain-7 from unstable. It passes
when run with only packages from testing. In tabular form:
                       pass            fail
llvm-toolchain-7       from testing    1:7.0.1-7
versioned deps [0]     from testing    from unstable
all others             from testing    from testing

I copied some of the output at the bottom of this report. Both tests
fail due to a segfault.

Currently this regression is blocking the migration to testing [1]. Can
you please investigate the situation and fix it? If needed, please
change the bug's severity.

More information about this bug and the reason for filing it can be found on
https://wiki.debian.org/ContinuousIntegration/RegressionEmailInformation

Paul

[0] You can see what packages were added from the second line of the log
file quoted below. The migration software adds source package from
unstable to the list if they are needed to install packages from
llvm-toolchain-7/1:7.0.1-7. I.e. due to versioned dependencies or
breaks/conflicts.
[1] https://qa.debian.org/excuses.php?package=llvm-toolchain-7

https://ci.debian.net/data/autopkgtest/testing/amd64/l/llvm-toolchain-7/2026142/log.gz

clang++-$VERSION -c -o part1.o foo.cpp $FLAGS
if test -f /usr/bin/g++; then
    g++ -c -o part2.o -DPART2 foo.cpp $FLAGS
    clang++-$VERSION -o foo part1.o part2.o $FLAGS
    ./foo
fi
./debian/qualify-clang.sh: line 383:  2823 Segmentation fault      ./foo


https://ci.debian.net/data/autopkgtest/testing/amd64/c/clazy/2026133/log.gz

Stack dump:
0.	Program arguments: /usr/lib/llvm-7/bin/clang -cc1 -triple
x86_64-pc-linux-gnu -emit-obj -mrelax-all -disable-free
-disable-llvm-verifier -discard-value-names -main-file-name main.cpp
-mrelocation-model pic -pic-level 2 -mthread-model posix
-mdisable-fp-elim -fmath-errno -masm-verbose -mconstructor-aliases
-munwind-tables -fuse-init-array -target-cpu x86-64 -dwarf-column-info
-debugger-tuning=gdb -coverage-notes-file
/tmp/autopkgtest-lxc.5k_mxe4a/downtmp/build.dOH/src/tests/main.gcno
-resource-dir /usr/lib/llvm-7/lib/clang/7.0.1 -isystem
/usr/include/x86_64-linux-gnu/qt5 -internal-isystem
/usr/bin/../lib/gcc/x86_64-linux-gnu/8/../../../../include/c++/8
-internal-isystem
/usr/bin/../lib/gcc/x86_64-linux-gnu/8/../../../../include/x86_64-linux-gnu/c++/8
-internal-isystem
/usr/bin/../lib/gcc/x86_64-linux-gnu/8/../../../../include/x86_64-linux-gnu/c++/8
-internal-isystem
/usr/bin/../lib/gcc/x86_64-linux-gnu/8/../../../../include/c++/8/backward
-internal-isystem /usr/include/clang/7.0.1/include/ -internal-isystem
/usr/local/include -internal-isystem
/usr/lib/llvm-7/lib/clang/7.0.1/include -internal-externc-isystem
/usr/include/x86_64-linux-gnu -internal-externc-isystem /include
-internal-externc-isystem /usr/include -Wno-unused-value -std=c++14
-fdeprecated-macro -fdebug-compilation-dir
/tmp/autopkgtest-lxc.5k_mxe4a/downtmp/build.dOH/src/tests -ferror-limit
19 -fmessage-length 0 -fobjc-runtime=gcc -fcxx-exceptions -fexceptions
-fdiagnostics-show-option -load ClazyPlugin.so -add-plugin clazy
-plugin-arg-clazy no-inplace-fixits -plugin-arg-clazy
assert-with-side-effects -plugin-arg-clazy enable-all-fixits -o main.o
-x c++ assert-with-side-effects/main.cpp -faddrsig
1.	<eof> parser at end of file
/usr/lib/x86_64-linux-gnu/libLLVM-7.so.1(_ZN4llvm3sys15PrintStackTraceERNS_11raw_ostreamE+0x1f)[0x7f5f102505df]
/usr/lib/x86_64-linux-gnu/libLLVM-7.so.1(_ZN4llvm3sys17RunSignalHandlersEv+0x50)[0x7f5f1024eb40]
/usr/lib/x86_64-linux-gnu/libLLVM-7.so.1(+0x9ce8f2)[0x7f5f102508f2]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x126e0)[0x7f5f1328e6e0]
/usr/lib/llvm-7/bin/clang[0x188b720]
/usr/lib/llvm-7/bin/clang(_ZN5clang12ast_matchers11MatchFinder8matchASTERNS_10ASTContextE+0x495)[0x188bce5]
/usr/lib/llvm-7/bin/clang(_ZN5clang17MultiplexConsumer21HandleTranslationUnitERNS_10ASTContextE+0x2c)[0xb06aec]
/usr/lib/llvm-7/bin/clang(_ZN5clang8ParseASTERNS_4SemaEbb+0x215)[0x10ba705]
/usr/lib/llvm-7/bin/clang(_ZN5clang14FrontendAction7ExecuteEv+0x3f)[0xad45cf]
/usr/lib/llvm-7/bin/clang(_ZN5clang16CompilerInstance13ExecuteActionERNS_14FrontendActionE+0x4f8)[0xa95b98]
/usr/lib/llvm-7/bin/clang(_ZN5clang25ExecuteCompilerInvocationEPNS_16CompilerInstanceE+0x676)[0xb62936]
/usr/lib/llvm-7/bin/clang(_Z8cc1_mainN4llvm8ArrayRefIPKcEES2_Pv+0x5b4)[0x6aa014]
/usr/lib/llvm-7/bin/clang(main+0x2727)[0x6a84b7]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xeb)[0x7f5f0f3c409b]
/usr/lib/llvm-7/bin/clang(_start+0x2a)[0x6a5ada]
clang: error: unable to execute command: Segmentation fault
clang: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 7.0.1-7 (tags/RELEASE_701/final)
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
clang: note: diagnostic msg: PLEASE submit a bug report to
https://bugs.llvm.org/ and include the crash backtrace, preprocessed
source, and associated run script.
clang: note: diagnostic msg:
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang: note: diagnostic msg: /tmp/main-fd9503.cpp
clang: note: diagnostic msg: /tmp/main-fd9503.sh
clang: note: diagnostic msg:

********************

-------------------

FAIL

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-llvm-team/attachments/20190228/ef7832ac/attachment.sig>


More information about the Pkg-llvm-team mailing list