433 st->print(", pid=%d", os::current_process_id()); 434 st->print(", tid=" UINTX_FORMAT, os::current_thread_id()); 435 st->cr(); 436 437 STEP(40, "(printing error message)") 438 439 if (should_report_bug(_id)) { // already printed the message. 440 // error message 441 if (_detail_msg) { 442 st->print_cr("# %s: %s", _message ? _message : "Error", _detail_msg); 443 } else if (_message) { 444 st->print_cr("# Error: %s", _message); 445 } 446 } 447 448 STEP(50, "(printing Java version string)") 449 450 // VM version 451 st->print_cr("#"); 452 JDK_Version::current().to_string(buf, sizeof(buf)); 453 st->print_cr("# JRE version: %s", buf); 454 st->print_cr("# Java VM: %s (%s %s %s %s)", 455 Abstract_VM_Version::vm_name(), 456 Abstract_VM_Version::vm_release(), 457 Abstract_VM_Version::vm_info_string(), 458 Abstract_VM_Version::vm_platform_string(), 459 UseCompressedOops ? "compressed oops" : "" 460 ); 461 462 STEP(60, "(printing problematic frame)") 463 464 // Print current frame if we have a context (i.e. it's a crash) 465 if (_context) { 466 st->print_cr("# Problematic frame:"); 467 st->print("# "); 468 frame fr = os::fetch_frame_from_context(_context); 469 fr.print_on_error(st, buf, sizeof(buf)); 470 st->cr(); 471 st->print_cr("#"); 472 } 473 STEP(63, "(printing core file information)") 474 st->print("# "); | 433 st->print(", pid=%d", os::current_process_id()); 434 st->print(", tid=" UINTX_FORMAT, os::current_thread_id()); 435 st->cr(); 436 437 STEP(40, "(printing error message)") 438 439 if (should_report_bug(_id)) { // already printed the message. 440 // error message 441 if (_detail_msg) { 442 st->print_cr("# %s: %s", _message ? _message : "Error", _detail_msg); 443 } else if (_message) { 444 st->print_cr("# Error: %s", _message); 445 } 446 } 447 448 STEP(50, "(printing Java version string)") 449 450 // VM version 451 st->print_cr("#"); 452 JDK_Version::current().to_string(buf, sizeof(buf)); 453 const char* runtime_name = JDK_Version::runtime_name() != NULL ? 454 JDK_Version::runtime_name() : ""; 455 st->print_cr("# JRE version: %s (%s)", runtime_name, buf); 456 st->print_cr("# Java VM : %s (%s %s %s %s)", 457 Abstract_VM_Version::vm_name(), 458 Abstract_VM_Version::vm_release(), 459 Abstract_VM_Version::vm_info_string(), 460 Abstract_VM_Version::vm_platform_string(), 461 UseCompressedOops ? "compressed oops" : "" 462 ); 463 464 STEP(60, "(printing problematic frame)") 465 466 // Print current frame if we have a context (i.e. it's a crash) 467 if (_context) { 468 st->print_cr("# Problematic frame:"); 469 st->print("# "); 470 frame fr = os::fetch_frame_from_context(_context); 471 fr.print_on_error(st, buf, sizeof(buf)); 472 st->cr(); 473 st->print_cr("#"); 474 } 475 STEP(63, "(printing core file information)") 476 st->print("# "); |