Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8331201

UBSAN enabled build reports on Linux x86_64 runtime error: shift exponent 65 is too large for 64-bit type 'long unsigned int'

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P3 P3
    • tbd
    • 21, 23
    • hotspot
    • x86
    • linux

      When enabling UBSAN (configure flag '--enable-ubsan') on Linux x86_64 in a fastdebug build, the new JVM is already used in the build and runs into this runtime error

      /jdk/src/hotspot/share/runtime/signature.hpp:343:42: runtime error: shift exponent 65 is too large for 64-bit type 'long unsigned int'
          #0 0x1532f87668d0 in Fingerprinter::do_type(BasicType) /jdk/src/hotspot/share/runtime/signature.hpp:343
          #1 0x1532f87668d0 in void SignatureIterator::do_parameters_on<Fingerprinter>(Fingerprinter*) /jdk/src/hotspot/share/runtime/signature.hpp:617
          #2 0x1532f87668d0 in Fingerprinter::compute_fingerprint_and_return_type(bool) /jdk/src/hotspot/share/runtime/signature.cpp:169
          #3 0x1532f9e4ca28 in Fingerprinter::Fingerprinter(Symbol*, bool) /jdk/src/hotspot/share/runtime/signature.hpp:363
          #4 0x1532f9e4ca28 in ConstMethod::compute_from_signature(Symbol*, bool) /jdk/src/hotspot/share/oops/constMethod.cpp:81
          #5 0x1532f9c0b360 in ClassFileParser::parse_method(ClassFileStream const*, bool, ConstantPool const*, bool*, JavaThread*) /jdk/src/hotspot/share/classfile/classFileParser.cpp:2733
          #6 0x1532f9c0e4cf in ClassFileParser::parse_methods(ClassFileStream const*, bool, bool*, bool*, bool*, JavaThread*) /jdk/src/hotspot/share/classfile/classFileParser.cpp:2866
          #7 0x1532f9c1054e in ClassFileParser::parse_stream(ClassFileStream const*, JavaThread*) /jdk/src/hotspot/share/classfile/classFileParser.cpp:5867
          #8 0x1532f9c11e1e in ClassFileParser::ClassFileParser(ClassFileStream*, Symbol*, ClassLoaderData*, ClassLoadInfo const*, ClassFileParser::Publicity, JavaThread*) /jdk/src/hotspot/share/classfile/classFileParser.cpp:5593
          #9 0x1532fb24c929 in KlassFactory::create_from_stream(ClassFileStream*, Symbol*, ClassLoaderData*, ClassLoadInfo const&, JavaThread*) /jdk/src/hotspot/share/classfile/klassFactory.cpp:202
          #10 0x1532f9c3edd1 in ClassLoader::load_class(Symbol*, PackageEntry*, bool, JavaThread*) /jdk/src/hotspot/share/classfile/classLoader.cpp:1169
          #11 0x1532fc49db13 in SystemDictionary::load_instance_class_impl(Symbol*, Handle, JavaThread*) /jdk/src/hotspot/share/classfile/systemDictionary.cpp:1279
          #12 0x1532fc4986ec in SystemDictionary::load_instance_class(Symbol*, Handle, JavaThread*) /jdk/src/hotspot/share/classfile/systemDictionary.cpp:1343
          #13 0x1532fc4998d6 in SystemDictionary::resolve_instance_class_or_null(Symbol*, Handle, Handle, JavaThread*) /jdk/src/hotspot/share/classfile/systemDictionary.cpp:702
         ... (rest of output omitted)

      Not sure if it is a big issue but probably the shifting code should be checked.

        There are no Sub-Tasks for this issue.

            Unassigned Unassigned
            mbaesken Matthias Baesken
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated: