[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: OpenJDK in core-updates
From: |
Andreas Enge |
Subject: |
Re: OpenJDK in core-updates |
Date: |
Wed, 5 Apr 2023 14:26:07 +0200 |
Next problem, hopefully fixed by the following patch:
diff -u -r openjdk-9.alt/hotspot/test/runtime/StackGuardPages/exeinvoke.c
openjdk-9/hotspot/test/runtime/StackGuardPages/exeinvoke.c
--- openjdk-9.alt/hotspot/test/runtime/StackGuardPages/exeinvoke.c
2023-04-05 13:46:58.689964892 +0200
+++ openjdk-9/hotspot/test/runtime/StackGuardPages/exeinvoke.c 2023-04-05
14:15:52.435613325 +0200
@@ -67,8 +67,17 @@
longjmp(context, 1);
}
+static char* altstack = NULL;
+
void set_signal_handler() {
- static char altstack[SIGSTKSZ];
+ if (altstack == NULL) {
+ // Dynamically allocated in case SIGSTKSZ is not constant
+ altstack = (char*)malloc(SIGSTKSZ);
+ if (altstack == NULL) {
+ fprintf(stderr, "Test ERROR. Unable to malloc altstack space\n");
+ exit(7);
+ }
+ }
stack_t ss = {
.ss_size = SIGSTKSZ,
This is related to a change in glibc, and we have seen it in other places.
It is not new, so I do not quite understand how openjdk@9 compiled a few
weeks ago on core-updates and suddenly stopped to compile. At least openjdk@10
is also affected, and maybe later versions.
Andreas