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

Segfaults in error traces when module version is null

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b150

      Description

      On 09/11/2016 11:42, Andrew Haley wrote:

      I'm seeing repeated segfaults in error traces. These seem to be caused by

      void frame::print_on_error(outputStream* st, char* buf, int buflen, bool verbose) const {
          if (_cb != NULL) {
            if (Interpreter::contains(pc())) {
              Method* m = this->interpreter_frame_method();
              if (m != NULL) {
                m->name_and_sig_as_C_string(buf, buflen);
                st->print("j %s", buf);
                st->print("+%d", this->interpreter_frame_bci());
                ModuleEntry* module = m->method_holder()->module();
                if (module->is_named()) {
                  module->name()->as_C_string(buf, buflen);
                  st->print(" %s", buf);
                  module->version()->as_C_string(buf, buflen);

       where module->version() returns NULL.

        Attachments

          Activity

            People

            Assignee:
            hseigel Harold Seigel
            Reporter:
            hseigel Harold Seigel
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Due:
              Created:
              Updated:
              Resolved: