https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71378

            Bug ID: 71378
           Summary: A compilable file fails to compile when ASAN options
                    are specified
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: major
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: asankau at millenniumit dot com
  Target Milestone: ---

Created attachment 38622
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=38622&action=edit
compressed "FGConfig.ii" file. Had to compress since file is 5 MB which is
larger than File size limit: 1000 KB

Mentioned file is compiled when ASAN options are NOT specified.
But gives below internal compiler error when ASAN options (fsanitize=address
-static-libasan) are specified.


/home/asankau/exch_7/app_ATS_MarketDataGateway/git_src/core/FGConfig.cpp:2284:1:
internal compiler error: in tree_to_uhwi, at tree.h:3668
 }
 ^
0x9a4012 tree_to_uhwi
        ../.././gcc/tree.h:3668
0x9a4012 asan_add_global
        ../.././gcc/asan.c:2202
0x9a44bc add_string_csts
        ../.././gcc/asan.c:2359
0xe64487 htab_traverse_noresize
        ../.././libiberty/hashtab.c:776
0x9a433b asan_finish_file()
        ../.././gcc/asan.c:2420
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.

Command : 
/usr/local/gcc-4.9.3/bin/g++ -std=c++11 -ggdb -m64 -D BIG_ENDIAN=1  -Wall
-Wshadow -Wpointer-arith -Wcast-qual -D _LARGEFILE_SOURCE -D LITTLE_ENDIAN=0
-fno-strict-aliasing -D RM3_ORA_VERSION=120000 -D _REENTRANT -include relman.h
-fPIC -fsanitize=address -stati
c-libasan  [Set of base libraries]  -c -o FGConfig.o
/home/asankau/exch_7/app_ATS_MarketDataGateway/git_src/core/FGConfig.cpp

Version : 
/usr/local/gcc-4.9.3/bin/g++ -v
Using built-in specs.
COLLECT_GCC=/usr/local/gcc-4.9.3/bin/g++
COLLECT_LTO_WRAPPER=/x02/usr/local/gcc-4.9.3/bin/../libexec/gcc/x86_64-unknown-linux-gnu/4.9.3/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: ./configure --prefix=/usr/local/gcc-4.9.3
--with-gmp=/usr/local/gcc-4.9.3/gmp-5.1.2/
--with-mpfr=/usr/local/gcc-4.9.3/mpfr-3.1.2/
--with-mpc=/usr/local/gcc-4.9.3/mpc-1.0.1/
Thread model: posix
gcc version 4.9.3 (GCC)

Reply via email to