clang - jak analizować output

0

Hej
Powiedzmy że nigdy nie używałem clanga (wydaje mi się że używałem ale output jakiś bardziej koszerny był aby dojść o co chodzi). Co zrobić jak mam taki output jak niżej. Jak się zabrac do tego aby rozwiązać ten problem. Czy to znaczy że coś clangowi nie podoba się w funkcji nvm_myconf::MergePartialFromCodedStream? To poniżej jest w pliku clang_crash_zjGc0S.ii.stderr.txt. A może to chodzi o to że clang nie potrafi wygenerować raportu dla pliku myconf-schema.pb.h bądź myconf-schema.pb.cc z jakiegoś powodu a nie że coś jest źle w kodzie? Bo dla innych plików żródłowych to są w htmlu raporty i tam w żółtym dymku komentarze koło funkcji w tych raportach. Chociaż nie wiem czy dla tego pliku jest raport w htmlu czy nie ma, bo wiecie te pliki z raportami to mają nazwy w stylu report-ef5088.html to też jest śmieszne jak w ogóle znaleźć interesujący Cię plik z raportem. To powinna być nazwa w stylu report-nazwaplikuzrodlowego.html aby to jakoś było bardziej koszerne do analizy. Kto może coś doradzić to byłbym wdzięczny. Albo może da się jakoś wywalić plik z analizy bo to kod źródłowy w tym akurat pliku tworzony automatycznie z google-protobufa to tam jak clang widzi jakieś błędy to ja i tak z tym nic nie zrobię bo to nie pisany przez dewelopera kod.

ANALYZE (Path,  Inline_Regular): /var/fpwork/myusername/myproject/mytarget/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/mycomponent/1.0.6-pre-17ece76-r13/build/static_analysis/src/myconf-schema.pb.h nvm_myconf::User::MergePartialFromCodedStream
#1  ....jakieś dziwne stringi
..
#3 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) ....
...
#15 ...
...
#20 0x00000000007a1f65 _start (/var/fpwork/myusername/myproject/mytarget/tmp/sysroots/x86_64-linux/usr/bin/clang-3.9+0x7a1f65)
Stack dump:
0.	Program arguments: /var/fpwork/myusername/myproject/mytarget/tmp/sysroots/x86_64-linux/usr/bin/clang++ -cc1 -triple armv7-poky-linux-gnueabi -analyze -disable-free -disable-llvm-verifier -discard-value-names -main-file-name myconf-schema.pb.cc -analyzer-store=region -analyzer-opt-analyze-nested-blocks -analyzer-eagerly-assume -analyzer-checker=core -analyzer-checker=unix -analyzer-checker=deadcode -analyzer-checker=cplusplus -analyzer-checker=security.insecureAPI.UncheckedReturn -analyzer-checker=security.insecureAPI.getpw -analyzer-checker=security.insecureAPI.gets -analyzer-checker=security.insecureAPI.mktemp -analyzer-checker=security.insecureAPI.mkstemp -analyzer-checker=security.insecureAPI.vfork -analyzer-checker=nullability.NullPassedToNonnull -analyzer-checker=nullability.NullReturnedFromNonnull -analyzer-output plist -w -mrelocation-model pic -pic-level 2 -mthread-model posix -mdisable-fp-elim -fmath-errno -masm-verbose -mconstructor-aliases -fuse-init-array -target-cpu cortex-a8 -target-feature -fp-only-sp -target-feature -d16 -target-feature +vfp3 -target-feature -fp16 -target-feature -vfp4 -target-feature -fp-armv8 -target-feature +neon -target-feature -crypto -target-abi aapcs-linux -mfloat-abi hard -dwarf-column-info -debugger-tuning=gdb -resource-dir /var/fpwork/myusername/myproject/mytarget/tmp/sysroots/x86_64-linux/usr/bin/../lib/clang/3.9.0 -D LIB_VERSION=1.0.6 -D mycomponent_EXPORTS -I /var/fpwork/myusername/myproject/mytarget/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/mycomponent/1.0.6-pre-17ece76-r13/build/static_analysis/src -I /var/fpwork/myusername/myproject/mytarget/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/mycomponent/1.0.6-pre-17ece76-r13/git/interface -I /var/fpwork/myusername/myproject/mytarget/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/mycomponent/1.0.6-pre-17ece76-r13/git/src -isysroot /var/fpwork/myusername/myproject/mytarget/tmp/sysroots/mytarget -internal-isystem /var/fpwork/myusername/myproject/mytarget/tmp/sysroots/mytarget/usr/lib/arm-poky-linux-gnueabi/5.2.0/../../../include/c++/5.2.0 -internal-isystem /var/fpwork/myusername/myproject/mytarget/tmp/sysroots/mytarget/usr/lib/arm-poky-linux-gnueabi/5.2.0/../../../include/c++/5.2.0/arm-poky-linux-gnueabi -internal-isystem /var/fpwork/myusername/myproject/mytarget/tmp/sysroots/mytarget/usr/lib/arm-poky-linux-gnueabi/5.2.0/../../../include/c++/5.2.0/backward -internal-isystem /var/fpwork/myusername/myproject/mytarget/tmp/sysroots/mytarget/usr/local/include -internal-isystem /var/fpwork/myusername/myproject/mytarget/tmp/sysroots/x86_64-linux/usr/bin/../lib/clang/3.9.0/include -internal-externc-isystem /var/fpwork/myusername/myproject/mytarget/tmp/sysroots/mytarget/include -internal-externc-isystem /var/fpwork/myusername/myproject/mytarget/tmp/sysroots/mytarget/usr/include -O2 -std=c++14 -fdeprecated-macro -fdebug-compilation-dir /var/fpwork/myusername/myproject/mytarget/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/mycomponent/1.0.6-pre-17ece76-r13/build/static_analysis/src -ferror-limit 19 -fmessage-length 0 -fvisibility-inlines-hidden -fallow-half-arguments-and-returns -fno-signed-char -fobjc-runtime=gcc -fcxx-exceptions -fexceptions -fdiagnostics-show-option -vectorize-loops -vectorize-slp -analyzer-display-progress -analyzer-checker=debug.Stats -analyzer-output=html -o /var/fpwork/myusername/myproject/mytarget/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/mycomponent/1.0.6-pre-17ece76-r13/build/static_analysis/report/2022-03-18-155434-40476-1 -x c++ /var/fpwork/myusername/myproject/mytarget/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/mycomponent/1.0.6-pre-17ece76-r13/build/static_analysis/src/myconf-schema.pb.cc 
1.	<eof> parser at end of file
3

Problem polega na tym, że

  1. pominąłeś najważniejszy szczegół techniczny z czego wychodzi ten raport. To nie jest raport błędu kompilacji. Przypuszczalnie jest to raport clang-tidy albo jakiegoś sanitizer-a (w ostatniej linijce widać, że to clang analyzer)
  2. wykropkowałeś z tego raportu za dużo, więc nie wiadomo jaki błąd został zgłoszony.
  3. prosiłbym też o więcej troski o sam tekst z opisem. Jakieś akapity, kropki, przecinki, oraz lepsza organizacja treści, żeby ściana krzaczastego tekstu nie straszyła.

1 użytkowników online, w tym zalogowanych: 0, gości: 1