sendaoYan / riscv-port-jdk8u-ysd

https://openjdk.org/projects/riscv-port
GNU General Public License v2.0
0 stars 0 forks source link

[riscv64-8u][fastdebug]array.hpp:384:123: error: writing 1 byte into a region of size 0 #97

Open sendaoYan opened 1 month ago

sendaoYan commented 1 month ago
+ cd build/linux-riscv64-normal-server-release/hotspot/linux_riscv_compiler2/generated
+ bash -c '/usr/bin/g++ -DLINUX -D_GNU_SOURCE -DRISCV64 -DASSERT -DCHECK_UNHANDLED_OOPS -I. -I/home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/share/vm/prims -I/home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/share/vm -I/home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/share/vm/precompiled -I/home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/cpu/riscv/vm -I/home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/os_cpu/linux_riscv/vm -I/home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/os/linux/vm -I/home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/os/posix/vm -I../generated -DHOTSPOT_RELEASE_VERSION="\"25.412-b00\"" -DHOTSPOT_BUILD_TARGET="\"fastdebug\"" -DHOTSPOT_BUILD_USER="\"yansendao\"" -DHOTSPOT_LIB_ARCH=\"riscv64\" -DHOTSPOT_VM_DISTRO="\"OpenJDK\""  -DTARGET_OS_FAMILY_linux -DTARGET_ARCH_riscv -DTARGET_ARCH_MODEL_riscv -DTARGET_OS_ARCH_linux_riscv -DTARGET_OS_ARCH_MODEL_linux_riscv64 -DTARGET_COMPILER_gcc -DINCLUDE_JFR=1 -DCOMPILER2 -DCOMPILER1 -fPIC -fno-rtti -fno-exceptions -D_REENTRANT -fcheck-new -fvisibility=hidden  -pipe -fno-strict-aliasing  -fno-omit-frame-pointer -O3  -g -DVM_LITTLE_ENDIAN -D_LP64=1 -Werror -Wpointer-arith -Wsign-compare -Wundef -Wunused-function -Wunused-value -Wformat=2 -Wreturn-type   -fstack-protector  -fno-delete-null-pointer-checks -fno-lifetime-dse -std=gnu++98 -DDTRACE_ENABLED -c -MMD -MP -MF ../generated/dependencies/bytecodeAssembler.o.d -fpch-deps -o bytecodeAssembler.o /home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/share/vm/classfile/bytecodeAssembler.cpp'
In file included from /home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/share/vm/memory/universe.hpp:29,
                 from /home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/share/vm/code/oopRecorder.hpp:28,
                 from /home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/share/vm/asm/codeBuffer.hpp:28,
                 from /home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/share/vm/asm/assembler.hpp:28,
                 from /home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/share/vm/precompiled/precompiled.hpp:29,
                 from /home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/share/vm/classfile/bytecodeAssembler.cpp:25:
In member function ‘void Array<T>::at_put(int, const T&) [with T = unsigned char]’,
    inlined from ‘void ConstantPool::tag_at_put(int, jbyte)’ at /home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/share/vm/oops/constantPool.hpp:123:64,
    inlined from ‘void ConstantPool::method_at_put(int, int, int)’ at /home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/share/vm/oops/constantPool.hpp:337:15,
    inlined from ‘ConstantPool* BytecodeConstantPool::create_constant_pool(Thread*) const’ at /home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/share/vm/classfile/bytecodeAssembler.cpp:101:26:
/home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/share/vm/utilities/array.hpp:384:123: error: writing 1 byte into a region of size 0 [-Werror=stringop-overflow=]
  384 |   void at_put(const int i, const T& x) { assert(i >= 0 && i< _length, err_msg("oob: 0 <= %d < %d", i, _length)); _data[i] = x; }
      |                                                                                                                  ~~~~~~~~~^~~
/home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/share/vm/utilities/array.hpp: In member function ‘ConstantPool* BytecodeConstantPool::create_constant_pool(Thread*) const’:
/home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/share/vm/utilities/array.hpp:311:7: note: at offset [-2147483648, -1] into destination object ‘Array<unsigned char>::_data’ of size [0, 9223372036854775799]
  311 |   T   _data[1];                                // the array memory
      |       ^~~~~
In member function ‘void Array<T>::at_put(int, const T&) [with T = unsigned char]’,
    inlined from ‘void ConstantPool::tag_at_put(int, jbyte)’ at /home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/share/vm/oops/constantPool.hpp:123:64,
    inlined from ‘void ConstantPool::name_and_type_at_put(int, int, int)’ at /home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/share/vm/oops/constantPool.hpp:347:15,
    inlined from ‘ConstantPool* BytecodeConstantPool::create_constant_pool(Thread*) const’ at /home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/share/vm/classfile/bytecodeAssembler.cpp:96:33:
/home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/share/vm/utilities/array.hpp:384:123: error: writing 1 byte into a region of size 0 [-Werror=stringop-overflow=]
  384 |   void at_put(const int i, const T& x) { assert(i >= 0 && i< _length, err_msg("oob: 0 <= %d < %d", i, _length)); _data[i] = x; }
      |                                                                                                                  ~~~~~~~~~^~~
/home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/share/vm/utilities/array.hpp: In member function ‘ConstantPool* BytecodeConstantPool::create_constant_pool(Thread*) const’:
/home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/share/vm/utilities/array.hpp:311:7: note: at offset [-2147483648, -1] into destination object ‘Array<unsigned char>::_data’ of size [0, 9223372036854775799]
  311 |   T   _data[1];                                // the array memory
      |       ^~~~~
In member function ‘void Array<T>::at_put(int, const T&) [with T = unsigned char]’,
    inlined from ‘void ConstantPool::tag_at_put(int, jbyte)’ at /home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/share/vm/oops/constantPool.hpp:123:64,
    inlined from ‘void ConstantPool::symbol_at_put(int, Symbol*)’ at /home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/share/vm/oops/constantPool.hpp:317:15,
    inlined from ‘ConstantPool* BytecodeConstantPool::create_constant_pool(Thread*) const’ at /home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/share/vm/classfile/bytecodeAssembler.cpp:85:26:
/home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/share/vm/utilities/array.hpp:384:123: error: writing 1 byte into a region of size 0 [-Werror=stringop-overflow=]
  384 |   void at_put(const int i, const T& x) { assert(i >= 0 && i< _length, err_msg("oob: 0 <= %d < %d", i, _length)); _data[i] = x; }
      |                                                                                                                  ~~~~~~~~~^~~
/home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/share/vm/utilities/array.hpp: In member function ‘ConstantPool* BytecodeConstantPool::create_constant_pool(Thread*) const’:
/home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/share/vm/utilities/array.hpp:311:7: note: at offset [-2147483648, -1] into destination object ‘Array<unsigned char>::_data’ of size [0, 9223372036854775799]
  311 |   T   _data[1];                                // the array memory
      |       ^~~~~
cc1plus: all warnings being treated as errors

make-gcc13-aarch64-fastdebug.log make-gcc13-aarch64-release.log make-gcc13-aarch64-slowdebug.log make-gcc13-riscv64-fastdebug.log make-gcc13-riscv64-release.log make-gcc13-riscv64-slowdebug.log make-gcc13-x86_64-fastdebug.log make-gcc13-x86_64-release.log make-gcc13-x86_64-slowdebug.log hotspot-only.log

sendaoYan commented 1 month ago

hotspot-only.log make-gcc13-aarch64-fastdebug.log make-gcc13-aarch64-release.log make-gcc13-aarch64-slowdebug.log make-gcc13-riscv64-fastdebug.log make-gcc13-riscv64-release.log make-gcc13-riscv64-slowdebug.log make-gcc13-x86_64-fastdebug.log make-gcc13-x86_64-release.log make-gcc13-x86_64-slowdebug.log standalone.log

sendaoYan commented 1 month ago

97.patch

sendaoYan commented 1 month ago

To github.com:sendaoYan/riscv-port-jdk8u-ysd.git c946ee27d95..2070ff78491 minus-jbs8276799 -> minus-jbs8276799

sendaoYan commented 1 month ago

hotspot-only.log make-gcc13-aarch64-fastdebug.log make-gcc13-aarch64-release.log make-gcc13-aarch64-slowdebug.log make-gcc13-riscv64-fastdebug.log make-gcc13-riscv64-release.log make-gcc13-riscv64-slowdebug.log make-gcc13-x86_64-fastdebug.log make-gcc13-x86_64-release.log make-gcc13-x86_64-slowdebug.log