Summary: | java/openjdk8: Running a program of infinite recursion dumps core | ||
---|---|---|---|
Product: | Ports & Packages | Reporter: | Gabor Pali <pgj> |
Component: | Individual Port(s) | Assignee: | freebsd-java (Nobody) <java> |
Status: | Closed FIXED | ||
Severity: | Affects Many People | CC: | ari, emaste, girgen, glewis |
Priority: | --- | Flags: | bugzilla:
maintainer-feedback?
(java) |
Version: | Latest | ||
Hardware: | Any | ||
OS: | Any |
Description
Gabor Pali
2017-09-08 14:02:54 UTC
Hi! I've had problems with this as well. Setting a larger stack area helped me. See if adding -Xss8m helps. That is the same for me even with `-Xss8m`. A commit references this bug: Author: glewis Date: Mon Aug 12 04:05:58 UTC 2019 New revision: 508703 URL: https://svnweb.freebsd.org/changeset/ports/508703 Log: Workaround for infinite recursion crash * FreeBSD crashes on infinite recursion rather than throwing a stack overflow because the stack address of the fault is in the page below the guard area. Workaround this by rounding down the fault address to the nearest page boundary. Investigation is still under way into what may be causing this but this appears to prevent it in simple test cases. PR: 222146 Changes: head/java/openjdk8/Makefile head/java/openjdk8/files/patch-hotspot_src_os__cpu_bsd__x86_vm_os__bsd__x86.cpp This is as fixed as it can get from the Java perspective. It will work correctly on 11.3(?), 12.1 and later and on earlier releases if you set security.bsd.stack_guard_page to be zero with sysctl. If you don't set it to zero on earlier releases then it will still mostly work. |