[clazy] [Bug 438976] New: Clazy crashes when parsing Qt 6.1.0 <QtTest> with old-style-connect check enabled
bugzilla_noreply at kde.org
bugzilla_noreply at kde.org
Mon Jun 21 06:44:40 BST 2021
https://bugs.kde.org/show_bug.cgi?id=438976
Bug ID: 438976
Summary: Clazy crashes when parsing Qt 6.1.0 <QtTest> with
old-style-connect check enabled
Product: clazy
Version: unspecified
Platform: Compiled Sources
OS: macOS
Status: REPORTED
Severity: crash
Priority: NOR
Component: general
Assignee: unassigned-bugs at kde.org
Reporter: ts826848+kde at gmail.com
CC: smartins at kde.org
Target Milestone: ---
Created attachment 139560
--> https://bugs.kde.org/attachment.cgi?id=139560&action=edit
stderr from crash
SUMMARY
Clazy v1.9 compiled against LLVM/Clang 11.1.0 segfaults when parsing <QtTest>
from Qt 6.1.0 with old-style-connect check enabled
STEPS TO REPRODUCE
1. Install llvm at 11 and qt (currently Qt 6.1.0) from Homebrew
2. Check out tag v1.9 from clazy repo
3. Compile/install clazy using CXX=/usr/local/opt/llvm at 11/bin/clang++ and
LLVM_ROOT=/usr/local/opt/llvm at 11
4. $ export CLANGXX=/usr/local/opt/llvm at 11/bin/clang++
5. $ cd /tmp
6. $ echo "#include <QtTest>" > test.cpp
7. $ clazy -std=c++17 -iframework /usr/local/lib -isystem
/usr/local/opt/qt/Frameworks/QtTest.framework/Headers -Xclang -plugin-arg-clazy
-Xclang old-style-connect -c test.cpp
OBSERVED RESULT
Clang segfaults; stderr in attachment.
EXPECTED RESULT
Clang successfully compiles test.cpp
SOFTWARE/OS VERSIONS
macOS: 10.15.7
Qt Version: 6.1.0
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the Unassigned-bugs
mailing list