Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2174473 | 7 | Tom Rodriguez | P3 | Closed | Fixed | b51 |
JDK-2178994 | 6-pool | Dmeetry Degrave | P3 | Closed | Won't Fix | |
JDK-2180520 | 6u18 | Tom Rodriguez | P3 | Closed | Fixed | b01 |
JDK-2178993 | hs14.3 | Dmeetry Degrave | P3 | Closed | Won't Fix |
I think this is a previously unreported bug in MacroAssembler::serialize_memory.
void MacroAssembler::serialize_memory(Register thread,
Register tmp) {
movl(tmp, thread);
shrl(tmp, os::get_serialize_page_shift_count());
andl(tmp, (os::vm_page_size() - sizeof(int)));
Address index(noreg, tmp, Address::times_1);
ExternalAddress page(os::get_memory_serialize_page());
movptr(ArrayAddress(page, index), tmp);
}
It's storing a 64-bit quantity but only masking for an int. In your faulting case we've got this:
;; fffffd7ffac6ff1d 81 e1 fc 0f 00 00 and $0xffc,%ecx
;; fffffd7ffac6ff23 49 ba 00 00 e9 fd 7f fd ff ff mov $0xfffffd7ffde90000,%r10
;; ---------------
;; fffffd7ffac6ff2d 49 89 0c 0a mov %rcx,(%r10,%rcx,1)
RCX=0x0000000000000ffc, R10=0xfffffd7ffde90000
siginfo:si_signo=SIGSEGV: si_errno=0, si_code=1 (SEGV_MAPERR), si_addr=0xfffffd7ffde91000;;
So we're crossing the boundary and accessing off the end of the page because of the 8 byte store. It either needs to mask more or use smaller stores.
*** (#1 of 1): [ UNSAVED ] ###@###.###
- backported by
-
JDK-2174473 MacroAssembler::serialize_memory may touch next page on amd64
- Closed
-
JDK-2178993 MacroAssembler::serialize_memory may touch next page on amd64
- Closed
-
JDK-2178994 MacroAssembler::serialize_memory may touch next page on amd64
- Closed
-
JDK-2180520 MacroAssembler::serialize_memory may touch next page on amd64
- Closed
- duplicates
-
JDK-6891532 6u16 JVM crash when using -XX:+AggressiveOpts on 64-bit intel system
- Closed
-
JDK-6863838 6u14 SEGV crash when -XX:-UseBiasedLocking was used
- Closed
-
JDK-6885108 JVM crash on linux
- Closed
- relates to
-
JDK-6859722 6u14 Frequent ParNew promotion failure degrades performance
- Closed