https://bugs.llvm.org/show_bug.cgi?id=36473

            Bug ID: 36473
           Summary: Scanning fis-gtm produces multiple cores
           Product: clang
           Version: 4.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Static Analyzer
          Assignee: dcough...@apple.com
          Reporter: amul.s...@fisglobal.com
                CC: llvm-bugs@lists.llvm.org

I am using the Clang SCA to analyze the source code of FIS GT.M (fis-gtm.com)
and have run into a number of failures that result in analyzer core dumps. I
understand that the bug report in this email will need to be re-entered into
the bug tracker, but since there will be some turn-around time between getting
access to the bug tracker and me needing to write the bug report, I thought it
would prudent to type up the report now.

Thanks,
Amul Shah

Host platform:
$ lsb_release -d
Description:    Fedora release 26 (Twenty Six)

Clang version (default for Fedora):
$ clang --version
clang version 4.0.1 (tags/RELEASE_401/final)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /usr/bin

Source Code:
https://sourceforge.net/projects/fis-gtm/files/GT.M-x86-Linux-src/V6.3-003A/

Steps to reproduce:
1. Download sources and install dependencies listed in the README (on
Debian/Ubuntu installing fis-gtm will install all of the dependencies)
2. Execute the following from the source directory
mkdir build && cd build
export PATH "${PATH}:/usr/libexec"
set utflocale = `locale -a | gawk
'BEGIN{IGNORECASE=1}/en_us.utf-*8/{print;exit}'`
setenv LANG C
setenv LC_ALL "${utflocale}"
setenv LC_COLLATE C

setenv CCC_CC clang
setenv CCC_CXX clang++
set ccc_analyzer=`which ccc-analyzer`
cmake -DCMAKE_C_COMPILER=$ccc_analyzer -DCMAKE_ASM_COMPILER=gcc
-DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_FLAGS_DEBUG="-DSTATIC_ANALYSIS
-DSTATIC_ANALYSIS_NORETURN" -DGTM_ENABLE_DEBUG=0 ..

echo "Building in ${PWD}"
scan-build --status-bugs -analyze-headers -stats -disable-checker
deadcode.DeadStores -analyzer-config stable-report-filename=true -o ${PWD} make
-j 8

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to