RFR: 8345016: [ASAN] java.c false positive ‘%s’ directive argument is null [-Werror=format-truncation=]
Jaikiran Pai
jpai at openjdk.org
Fri Dec 13 09:28:44 UTC 2024
On Wed, 4 Dec 2024 15:42:33 GMT, SendaoYan <syan at openjdk.org> wrote:
>> Hello @sendaoYan, what exact version of `gcc` is this?
>
>> Hello @sendaoYan, what exact version of `gcc` is this?
>
> Hi, the gcc version is gcc14.2.0
>
>
>> gcc -v
> Using built-in specs.
> COLLECT_GCC=gcc
> COLLECT_LTO_WRAPPER=/home/yansendao/software/gcc/gcc-14.2.0-binary/bin/../libexec/gcc/x86_64-pc-linux-gnu/14.2.0/lto-wrapper
> Target: x86_64-pc-linux-gnu
> Configured with: configure --prefix=/home/yansendao/git/tone-matrix-compiler/csmith/gcc-14.2.0/../gcc-14.2.0-binary --disable-multilib --enable-languages=c,c++,objc,obj-c++,fortran,lto
> Thread model: posix
> Supported LTO compression algorithms: zlib
> gcc version 14.2.0 (GCC)
Hello @sendaoYan, can you add a bit more details to the JBS issue to explain what commands were used to configure and build the JDK that resulted in the build failure?
I gave this a try with gcc 14.2.1 on Linux x64:
bash configure --enable-asan
make clean images
The build succeeded without any errors. gcc that was used:
Tools summary:
...
* Toolchain: gcc (GNU Compiler Collection)
* C Compiler: Version 14.2.1 (at /usr/bin/gcc)
* C++ Compiler: Version 14.2.1 (at /usr/bin/g++)
-------------
PR Comment: https://git.openjdk.org/jdk/pull/22546#issuecomment-2540970788
More information about the core-libs-dev
mailing list