Skip to content

Commit e922d61

Browse files
committed
[GR-41912] More user-friendly reporting of internal errors.
PullRequest: graal/13151
2 parents f4e1fe1 + a8f2e25 commit e922d61

19 files changed

+347
-64
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
# This template is linked from https://graalvm.org/native-image/error-report
3+
name: "\U0001F6A8 Share Native Image error report"
4+
about: Share an error report from Native Image. To report a security vulnerability, please see below or the SECURITY.md file at the root of the repository. Do not open a GitHub issue.
5+
labels: bug, native-image
6+
7+
---
8+
9+
Replace this text with the error report (`svm_err_b_*.md`) generated by the Native Image build process.
10+
Please make sure the report does not contain any sensitive information.

.github/ISSUE_TEMPLATE/1_issues_native_image.md renamed to .github/ISSUE_TEMPLATE/2_issues_native_image_other.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
2-
name: "\U0001F6A8 Native Image Issue Report"
3-
about: Create a report for a failure with Native Image. To report a security vulnerability, please see below or the SECURITY.md file at the root of the repository. Do not open a GitHub issue.
2+
name: "\U0001F6A8 Other Native Image Issues"
3+
about: File an issue for a problem with Native Image. To report a security vulnerability, please see below or the SECURITY.md file at the root of the repository. Do not open a GitHub issue.
44
title: ''
55
labels: bug, native-image
66
assignees: ''
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ blank_issues_enabled: false
22
contact_links:
33
- name: Need help or have a question?
44
url: https://www.graalvm.org/slack-invitation/
5-
about: Visit our slack channel.
5+
about: Join the GraalVM Slack channel.

sdk/mx.sdk/mx_sdk_vm_impl.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1273,6 +1273,7 @@ def contents(self):
12731273
'--install-exit-handlers',
12741274
'--enable-monitoring',
12751275
'-H:+DumpRuntimeCompilationOnSignal',
1276+
'-H:+ReportExceptionStackTraces',
12761277
]
12771278

12781279
if isinstance(image_config, (mx_sdk.LauncherConfig, mx_sdk.LanguageLibraryConfig)):

substratevm/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ This changelog summarizes major changes to GraalVM Native Image.
1212
* (GR-42375) Add `-H:±GenerateBuildArtifactsFile` option, which generates a `build-artifacts.json` file with a list of all artifacts produced by Native Image. `.build_artifacts.txt` files are now deprecated, disabled (can be re-enabled with env setting `NATIVE_IMAGE_DEPRECATED_BUILD_ARTIFACTS_TXT=true`), and will be removed in a future release.
1313
* (GR-34179) Improved debugging support on Windows: Debug information now includes information about Java types (contributed by Red Hat).
1414
* (GR-41096) Support services loaded through the `java.util.ServiceLoader.ModuleServicesLookupIterator`. An example of such service is the `com.sun.jndi.rmi.registry.RegistryContextFactory`.
15+
* (GR-41912) The builder now generated reports for internal errors, which users can share when creating issues. By default, error reports follow the `svm_err_b_<timestamp>_pid<pid>.md` pattern and are created in the working directory. Use `-H:ErrorFile` to adjust the path or filename.
1516

1617
## Version 22.3.0
1718
* (GR-35721) Remove old build output style and the `-H:±BuildOutputUseNewStyle` option.

substratevm/mx.substratevm/mx_substratevm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ def vm_executable_path(executable, config=None):
236236
@contextmanager
237237
def native_image_context(common_args=None, hosted_assertions=True, native_image_cmd='', config=None, build_if_missing=False):
238238
common_args = [] if common_args is None else common_args
239-
base_args = ['--no-fallback', '-H:+EnforceMaxRuntimeCompileMethods']
239+
base_args = ['--no-fallback', '-H:+EnforceMaxRuntimeCompileMethods', '-H:+ReportExceptionStackTraces']
240240
base_args += ['-H:Path=' + svmbuild_dir()]
241241
if mx.get_opts().verbose:
242242
base_args += ['--verbose']

0 commit comments

Comments
 (0)