Description of problem: Build xscreensaver source with scan-build. Detailed procedure follows. Version-Release number of selected component: clang-3.3-0.6.rc3.fc19.debuginfo Additional info: reporter: libreport-2.1.5 backtrace_rating: 4 cmdline: /usr/bin/clang -cc1 -triple i386-redhat-linux-gnu -analyze -disable-free -disable-llvm-verifier -main-file-name sonar-icmp.c -analyzer-store=region -analyzer-opt-analyze-nested-blocks -analyzer-eagerly-assume -analyzer-checker=core -analyzer-checker=unix -analyzer-checker=deadcode -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-output plist -w -mrelocation-model static -mdisable-fp-elim -fmath-errno -masm-verbose -mconstructor-aliases -fuse-init-array -target-cpu i686 -target-linker-version 2.23.52.0.1 -resource-dir /usr/bin/../lib/clang/3.3 -D STANDALONE -D USE_GL -D HAVE_CONFIG_H -I . -I ../../../hacks/glx -I ../../../hacks/glx/../../utils -I ../../../hacks/glx/.. -I ../.. -I /usr/include/gtk-2.0 -I /usr/lib/gtk-2.0/include -I /usr/include/atk-1.0 -I /usr/include/cairo -I /usr/include/gdk-pixbuf-2.0 -I /usr/include/pango-1.0 -I /usr/include/glib-2.0 -I /usr/lib/glib-2.0/include -I /usr/include/pixman-1 -I /usr/include/freetype2 -I /usr/include/libpng15 -I /usr/include/libdrm -I /usr/include/harfbuzz -I /usr/include/libxml2 -I /usr/include/libglade-2.0 -I /usr/include/gdk-pixbuf-2.0 -I /usr/include/libpng15 -I /usr/include/glib-2.0 -I /usr/lib/glib-2.0/include -I /usr/include -internal-isystem /usr/local/include -internal-isystem /usr/bin/../lib/clang/3.3/include -internal-externc-isystem /usr/include -internal-externc-isystem /usr/lib/gcc/i686-redhat-linux/4.8.1/include -fdebug-compilation-dir /home/mtasaka/rpmbuild/fedora-SCM/xscreensaver/master/xscreensaver-5.21/i686-pc-linux-gnu/hacks/glx -ferror-limit 19 -fmessage-length 0 -mstackrealign -fobjc-runtime=gcc -fobjc-default-synthesize-properties -fdiagnostics-show-option -backend-option -vectorize-loops -analyzer-display-progress -analyzer-output=html -o /home/mtasaka/rpmbuild/fedora-SCM/xscreensaver/master/xscreensaver-5.21/i686-pc-linux-gnu/clang-analyze/2013-07-08-1 -x c ../../../hacks/glx/sonar-icmp.c crash_function: getPointer executable: /usr/bin/clang kernel: 3.9.9-301.fc19.i686 runlevel: 3 5 uid: 500 Truncated backtrace: Thread no. 1 (10 frames) #0 getPointer at /usr/src/debug/llvm.src/include/llvm/ADT/PointerIntPair.h:71 #1 getLocationContext at /usr/src/debug/llvm.src/tools/clang/include/clang/Analysis/ProgramPoint.h:156 #3 getAllocationSite at MallocChecker.cpp:1520 #4 reportLeak at MallocChecker.cpp:1593 #5 (anonymous namespace)::MallocChecker::checkDeadSymbols at MallocChecker.cpp:1669 #6 operator() at /usr/src/debug/llvm.src/tools/clang/include/clang/StaticAnalyzer/Core/CheckerManager.h:93 #7 runChecker at CheckerManager.cpp:444 #8 expandGraphWithCheckers<(anonymous namespace)::CheckDeadSymbolsContext> at CheckerManager.cpp:123 #9 clang::ento::CheckerManager::runCheckersForDeadSymbols at CheckerManager.cpp:457 #10 clang::ento::ExprEngine::removeDead at ExprEngine.cpp:365
Created attachment 770274 [details] File: backtrace
Created attachment 770275 [details] File: cgroup
Created attachment 770276 [details] File: core_backtrace
Created attachment 770277 [details] File: dso_list
Created attachment 770278 [details] File: environ
Created attachment 770279 [details] File: limits
Created attachment 770280 [details] File: maps
Created attachment 770281 [details] File: open_fds
Created attachment 770282 [details] File: proc_pid_status
Created attachment 770283 [details] File: var_log_messages
Note: to actually generate backtrace, modifying llvm.spec was needed (bug 982075). You can reproduce this with: * $ fedpkg co xscreensaver * (and use master branch) * Change "use_clang_analyze 0" to "use_clang_analyze 1" in xscreensaver.spec * $ fedpkg local
Created attachment 770294 [details] Preprocessed source
Reassign to nobody@. I have no time and no interest in working on clang, and the only reason it's even in the llvm package is because it can't be built any other way. If anyone wishes to volunteer for comaintainer with a focus on clang, please let me know (preferably with direct email, if it's in bz I'll likely miss the request), I'll be happy to hook you up.
Unable to reproduce with clang-3.4-10.fc20.x86_64. Seems to be resolved during some rebase.