Skip to content
This repository has been archived by the owner on Feb 23, 2023. It is now read-only.

send request will interrupt the springweb application when use RestTemplate , message : Segmentation fault #887

Closed
fishandsheep opened this issue Jul 3, 2021 · 4 comments
Labels
status: blocked An issue that's blocked on an external project change or another issue

Comments

@fishandsheep
Copy link

Hi , As the title I want to use RestTemplate in my program , I build a Spring Boot native application using the GraalVM native build tools ,When i send request for binary program, The program is interrupted immediately with the info : Segmentation fault,

I create a web-demo still not working by spring.io use 2.5.2:

`
@RestController
@RequestMapping("/test")
public class TestController {

@GetMapping("/rest")
public String testRest(){
    RestTemplate restTemplate = new RestTemplate();
    String resBody = restTemplate.getForEntity("https://cn.bing.com/", String.class).getBody();
    return resBody;
}

}
`

my pom.xml just added these args in native-maven-plugin :
<configuration> <buildArgs> <arg>--static</arg> <arg>--enable-url-protocols=http,https</arg> </buildArgs> </configuration>

java -version :

openjdk version "11.0.11" 2021-04-20
OpenJDK Runtime Environment GraalVM CE 21.1.0 (build 11.0.11+8-jvmci-21.1-b05)
OpenJDK 64-Bit Server VM GraalVM CE 21.1.0 (build 11.0.11+8-jvmci-21.1-b05, mixed mode, sharing)

I just learned about spring native and my english only depends on google , please help me.
THANKS!

@fishandsheep
Copy link
Author

I use wsl2 and my os is :

No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.2 LTS
Release: 20.04
Codename: focal

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged or decided on label Jul 3, 2021
@sdeleuze
Copy link
Contributor

sdeleuze commented Jul 4, 2021

Please send a sample project that will allow us to reproduce this issue.

@sdeleuze sdeleuze added the status: waiting-for-feedback We need additional information before we can continue label Jul 4, 2021
@fishandsheep
Copy link
Author

fishandsheep commented Jul 5, 2021

Please send a sample project that will allow us to reproduce this issue.

My demo is here spring-native-demo and my detailed steps is in README.md.
I hope I didn't waste your precious time.
Thanks

@spring-projects-issues spring-projects-issues added status: feedback-provided Feedback has been provided and removed status: waiting-for-feedback We need additional information before we can continue labels Jul 5, 2021
@sdeleuze
Copy link
Contributor

sdeleuze commented Jul 5, 2021

I have indeed been able to produce this issue, and I was able to get more details with a dev build of GraalVM. Please create an issue in https://github.com/oracle/graal/issues with the segfault below, a link to your repro project and asking them to tag it with the spring label. Please then comment here with the GraalVM issue link. Thanks.

[ [ SubstrateSegfaultHandler caught a segfault. ] ]

General Purpose Register Set values:

  RAX 0000000000000031
  RBX 00007f40689fd820
  RCX 0000000000000000
  RDX 0000000000000031
  RBP 00007f40689fd420
  RSI 00007f401c000d40
  RDI 00007f40689fd440
  RSP 00007f40689fcee0
  R8  000000000000000e
  R9  000000000000007c
  R10 0000000000000000
  R11 0000000000000246
  R12 00007f40689fd440
  R13 00007f40689fd440
  R14 00007f401c000b60
  R15 00007f40689ff610
  EFL 0000000000010203
  RIP 00007f407de105ca
  
JavaFrameAnchor dump:

  Anchor 00007f40689fd930 LastJavaSP 00007f40689fd910 LastJavaIP 0000000000ce514d
  
TopFrame info:

  Does not look like a Java Frame. Use JavaFrameAnchors to find LastJavaSP:
  Found matching Anchor:00007f40689fd930
  LastJavaSP 00007f40689fd910
  LastJavaIP 0000000000ce514d
  
VMThreads info:

  VMThread 00007f4024000b80  STATUS_IN_NATIVE  java.lang.Thread@0x7f4068a58018
  VMThread 00007f4030000b80  STATUS_IN_NATIVE  java.lang.Thread@0x7f4068a56f80
  VMThread 00007f402c000b80  STATUS_IN_NATIVE  org.apache.tomcat.util.threads.TaskThread@0x7f4068a564c8
  VMThread 00007f4038000b80  STATUS_IN_NATIVE  org.apache.tomcat.util.threads.TaskThread@0x7f4068a561d8
  VMThread 00007f4034000b80  STATUS_IN_NATIVE  org.apache.tomcat.util.threads.TaskThread@0x7f4068a55ee8
  VMThread 00007f4040000b80  STATUS_IN_NATIVE  org.apache.tomcat.util.threads.TaskThread@0x7f4068a55bf8
  VMThread 00007f403c000b80  STATUS_IN_NATIVE  org.apache.tomcat.util.threads.TaskThread@0x7f4068a55908
  VMThread 00007f4048000b80  STATUS_IN_NATIVE  org.apache.tomcat.util.threads.TaskThread@0x7f4068a55328
  VMThread 00007f4044000b80  STATUS_IN_NATIVE  org.apache.tomcat.util.threads.TaskThread@0x7f4068a55618
  VMThread 00007f4054000b80  STATUS_IN_NATIVE  org.apache.tomcat.util.threads.TaskThread@0x7f4068a54fa8
  VMThread 00007f4050000b80  STATUS_IN_NATIVE  org.apache.tomcat.util.threads.TaskThread@0x7f4068a54cb8
  VMThread 00007f4058000b80  STATUS_IN_JAVA (safepoints disabled)  org.apache.tomcat.util.threads.TaskThread@0x7f4068a54938
  VMThread 00007f405c000b80  STATUS_IN_NATIVE  org.springframework.boot.web.embedded.tomcat.TomcatWebServer$1@0x7f406b4ea128
  VMThread 00007f4064000b80  STATUS_IN_NATIVE  org.apache.tomcat.util.threads.TaskThread@0x7f406b4d5c78
  VMThread 00007f4070000b80  STATUS_IN_NATIVE  org.apache.tomcat.util.threads.TaskThread@0x7f406b4d4ab8
  VMThread 00007f406c000b80  STATUS_IN_NATIVE  java.util.concurrent.ForkJoinWorkerThread@0x7f407a7f2c30
  VMThread 00007f4074000b80  STATUS_IN_NATIVE  java.lang.Thread@0x7f407b8033a8
  VMThread 0000000004bd4880  STATUS_IN_NATIVE  java.lang.Thread@0x7f407ca22d78
  
VM Thread State for current thread 00007f4058000b80:

  0 (8 bytes): com.oracle.svm.jni.JNIThreadLocalEnvironment.jniFunctions = (bytes) 
    00007f4058000b80: 00007f407c52c010
  
  8 (8 bytes): com.oracle.svm.core.graal.snippets.StackOverflowCheckImpl.stackBoundaryTL = (Word) 1  0000000000000001
  16 (4 bytes): com.oracle.svm.core.thread.Safepoint.safepointRequested = (int) 2147379255  7ffe6837
  20 (4 bytes): com.oracle.svm.core.thread.VMThreads$StatusSupport.statusTL = (int) 1  00000001
  24 (32 bytes): com.oracle.svm.core.genscavenge.ThreadLocalAllocation.regularTLAB = (bytes) 
    00007f4058000b98: 00007f4062e00000 00007f4062f00000
    00007f4058000ba8: 00007f4062e97a90 0000000000000000
    
  
  56 (8 bytes): com.oracle.svm.core.thread.JavaThreads.currentThread = (Object) org.apache.tomcat.util.threads.TaskThread  00007f4068a54938
  64 (8 bytes): com.oracle.svm.core.stack.JavaFrameAnchors.lastAnchor = (Word) 139914609940784  00007f40689fd930
  72 (8 bytes): com.oracle.svm.core.heap.NoAllocationVerifier.openVerifiers = (Object) null
  80 (8 bytes): com.oracle.svm.core.identityhashcode.IdentityHashCodeSupport.hashCodeGeneratorTL = (Object) java.util.SplittableRandom  00007f4062e57d78
  88 (8 bytes): com.oracle.svm.core.snippets.ExceptionUnwind.currentException = (Object) null
  96 (8 bytes): com.oracle.svm.core.thread.ThreadingSupportImpl.activeTimer = (Object) null
  104 (8 bytes): com.oracle.svm.graal.isolated.IsolatedCompileClient.currentClient = (Object) null
  112 (8 bytes): com.oracle.svm.graal.isolated.IsolatedCompileContext.currentContext = (Object) null
  120 (8 bytes): com.oracle.svm.jni.JNIObjectHandles.handles = (Object) com.oracle.svm.core.handles.ThreadLocalHandles  00007f4062e29788
  128 (8 bytes): com.oracle.svm.jni.JNIThreadLocalPendingException.pendingException = (Object) null
  136 (8 bytes): com.oracle.svm.jni.JNIThreadLocalPinnedObjects.pinnedObjectsListHead = (Object) null
  144 (8 bytes): com.oracle.svm.jni.JNIThreadOwnedMonitors.ownedMonitors = (Object) null
  152 (8 bytes): com.oracle.svm.core.SubstrateDiagnostics.threadOnlyAttachedForCrashHandler = (bytes) 
    00007f4058000c18: 0000000000000000
  
  160 (8 bytes): com.oracle.svm.core.thread.VMThreads.IsolateTL = (Word) 139914928717824  00007f407ba00000
  168 (8 bytes): com.oracle.svm.core.thread.VMThreads.OSThreadHandleTL = (Word) 139914609948416  00007f40689ff700
  176 (8 bytes): com.oracle.svm.core.thread.VMThreads.OSThreadIdTL = (Word) 139914609948416  00007f40689ff700
  184 (8 bytes): com.oracle.svm.core.thread.VMThreads.nextTL = (Word) 139914398141312  00007f405c000b80
  192 (8 bytes): com.oracle.svm.core.thread.VMThreads.unalignedIsolateThreadMemoryTL = (Word) 139914331032416  00007f4058000b60
  200 (4 bytes): com.oracle.svm.core.graal.snippets.StackOverflowCheckImpl.yellowZoneStateTL = (int) -16843010  fefefefe
  204 (4 bytes): com.oracle.svm.core.snippets.ImplicitExceptions.implicitExceptionsAreFatal = (int) 0  00000000
  208 (4 bytes): com.oracle.svm.core.thread.ThreadingSupportImpl.currentPauseDepth = (int) 0  00000000
  212 (4 bytes): com.oracle.svm.core.thread.VMThreads$ActionOnExitSafepointSupport.actionTL = (int) 0  00000000
  216 (4 bytes): com.oracle.svm.core.thread.VMThreads$ActionOnTransitionToJavaSupport.actionTL = (int) 0  00000000
  220 (4 bytes): com.oracle.svm.core.thread.VMThreads$StatusSupport.safepointsDisabledTL = (int) 1  00000001
  
VMOperation dump:

  No VMOperation in progress
  
  The 10 most recent VM operation status changes (oldest first):
    
  
Dump Counters:

  
Raw Stacktrace:

  00007f40689fcee0: 00007f407aca2130 00000000000003e0
  00007f40689fcef0: 0000000000000014 00007f40689fd130
  00007f40689fcf00: 00007f407de16003 00007f40689ff6b0
  00007f40689fcf10: 00007f407de16077 00007f40689ff6e8
  00007f40689fcf20: 00007f407de16003 00007f40689fd130
  00007f40689fcf30: 0000000004bd8480 00007f40689fd420
  00007f40689fcf40: 0000000000000000 00007f401c000b60
  00007f40689fcf50: 0000000000000400 00007f407de117fe
  
Stacktrace Stage 0:

  SP 00007f40689fcee0 IP 00007f407de105ca  IP is not within Java code. Trying frame anchor of last Java frame instead.
  SP 00007f40689fd910 IP 0000000000ce514d  FrameSize 80
  SP 00007f40689fd960 IP 0000000000ced0f0  FrameSize 16
  SP 00007f40689fd970 IP 0000000000cee0c3  FrameSize 48
  SP 00007f40689fd9a0 IP 0000000000cec901  FrameSize 112
  SP 00007f40689fda10 IP 0000000000cefbf1  FrameSize 80
  SP 00007f40689fda60 IP 0000000000cee815  FrameSize 80
  SP 00007f40689fdab0 IP 0000000000cf06d6  FrameSize 16
  SP 00007f40689fdac0 IP 0000000000cf3151  FrameSize 64
  SP 00007f40689fdb00 IP 0000000001d8744c  FrameSize 64
  SP 00007f40689fdb40 IP 0000000001dad8cb  FrameSize 48
  SP 00007f40689fdb70 IP 0000000001dad46d  FrameSize 32
  SP 00007f40689fdb90 IP 0000000001dda1ca  FrameSize 80
  SP 00007f40689fdbe0 IP 0000000001dda8f7  FrameSize 112
  SP 00007f40689fdc50 IP 0000000001dd97ee  FrameSize 32
  SP 00007f40689fdc70 IP 0000000001dcfed8  FrameSize 112
  SP 00007f40689fdce0 IP 0000000001dcf886  FrameSize 32
  SP 00007f40689fdd00 IP 0000000001dd9655  FrameSize 48
  SP 00007f40689fdd30 IP 0000000001ddd6e4  FrameSize 16
  SP 00007f40689fdd40 IP 0000000001b1064e  FrameSize 48
  SP 00007f40689fdd70 IP 0000000001b0f083  FrameSize 80
  SP 00007f40689fddc0 IP 0000000001b0f4b7  FrameSize 32
  SP 00007f40689fdde0 IP 0000000001ba3a6f  FrameSize 64
  SP 00007f40689fde20 IP 0000000001ba422b  FrameSize 48
  SP 00007f40689fde50 IP 0000000001ba43ea  FrameSize 64
  SP 00007f40689fde90 IP 000000000045a811  FrameSize 32
  SP 00007f40689fdeb0 IP 00000000009c33e6  FrameSize 48
  SP 00007f40689fdee0 IP 0000000001be76fe  FrameSize 80
  SP 00007f40689fdf30 IP 0000000001be8fca  FrameSize 64
  SP 00007f40689fdf70 IP 0000000001c7d03b  FrameSize 64
  SP 00007f40689fdfb0 IP 0000000001c7100b  FrameSize 112
  SP 00007f40689fe020 IP 0000000001c6f962  FrameSize 80
  SP 00007f40689fe070 IP 0000000001c47ff3  FrameSize 16
  SP 00007f40689fe080 IP 0000000001bf2c4c  FrameSize 160
  SP 00007f40689fe120 IP 0000000001bf48d9  FrameSize 128
  SP 00007f40689fe1a0 IP 0000000001c07d18  FrameSize 128
  SP 00007f40689fe220 IP 000000000111dd3e  FrameSize 64
  SP 00007f40689fe260 IP 0000000001c08b46  FrameSize 48
  SP 00007f40689fe290 IP 000000000111d9bc  FrameSize 32
  SP 00007f40689fe2b0 IP 000000000121412b  FrameSize 80
  SP 00007f40689fe300 IP 0000000001622771  FrameSize 80
  SP 00007f40689fe350 IP 00000000012142f5  FrameSize 80
  SP 00007f40689fe3a0 IP 0000000001bcca12  FrameSize 96
  SP 00007f40689fe400 IP 0000000001bcbefd  FrameSize 80
  SP 00007f40689fe450 IP 00000000012142f5  FrameSize 80
  SP 00007f40689fe4a0 IP 0000000001bc5ac0  FrameSize 64
  SP 00007f40689fe4e0 IP 0000000001bcbefd  FrameSize 80
  SP 00007f40689fe530 IP 00000000012142f5  FrameSize 80
  SP 00007f40689fe580 IP 0000000001bc4de9  FrameSize 64
  SP 00007f40689fe5c0 IP 0000000001bcbefd  FrameSize 80
  SP 00007f40689fe610 IP 00000000012142f5  FrameSize 80
  SP 00007f40689fe660 IP 000000000128feca  FrameSize 272
  SP 00007f40689fe770 IP 0000000001272597  FrameSize 64
  SP 00007f40689fe7b0 IP 00000000011c1dab  FrameSize 96
  SP 00007f40689fe810 IP 000000000127893b  FrameSize 128
  SP 00007f40689fe890 IP 00000000013160cf  FrameSize 80
  SP 00007f40689fe8e0 IP 0000000001274eef  FrameSize 48
  SP 00007f40689fe910 IP 00000000011d1519  FrameSize 176
  SP 00007f40689fe9c0 IP 0000000001395a6e  FrameSize 176
  SP 00007f40689fea70 IP 0000000001351326  FrameSize 208
  SP 00007f40689feb40 IP 00000000013520e6  FrameSize 224
  SP 00007f40689fec20 IP 000000000152e11d  FrameSize 64
  SP 00007f40689fec60 IP 0000000001560e9d  FrameSize 32
  SP 00007f40689fec80 IP 0000000000fef9b4  FrameSize 80
  SP 00007f40689fecd0 IP 00000000015d856c  FrameSize 16
  SP 00007f40689fece0 IP 0000000000c6b4a4  FrameSize 16
  SP 00007f40689fecf0 IP 0000000000765b81  FrameSize 48
  SP 00007f40689fed20 IP 0000000000714635  FrameSize 96
  
Stacktrace Stage 1:

  SP 00007f40689fcee0 IP 00007f407de105ca  IP is not within Java code. Trying frame anchor of last Java frame instead.
  SP 00007f40689fd910 IP 0000000000ce514d  com.oracle.svm.core.code.CodeInfo@0x7f407c973c50 name = image code
  SP 00007f40689fd960 IP 0000000000ced0f0  com.oracle.svm.core.code.CodeInfo@0x7f407c973c50 name = image code
  SP 00007f40689fd970 IP 0000000000cee0c3  com.oracle.svm.core.code.CodeInfo@0x7f407c973c50 name = image code
  SP 00007f40689fd9a0 IP 0000000000cec901  com.oracle.svm.core.code.CodeInfo@0x7f407c973c50 name = image code
  SP 00007f40689fda10 IP 0000000000cefbf1  com.oracle.svm.core.code.CodeInfo@0x7f407c973c50 name = image code
  SP 00007f40689fda60 IP 0000000000cee815  com.oracle.svm.core.code.CodeInfo@0x7f407c973c50 name = image code
  SP 00007f40689fdab0 IP 0000000000cf06d6  com.oracle.svm.core.code.CodeInfo@0x7f407c973c50 name = image code
  SP 00007f40689fdac0 IP 0000000000cf3151  com.oracle.svm.core.code.CodeInfo@0x7f407c973c50 name = image code
  SP 00007f40689fdb00 IP 0000000001d8744c  com.oracle.svm.core.code.CodeInfo@0x7f407c973c50 name = image code
  SP 00007f40689fdb40 IP 0000000001dad8cb  com.oracle.svm.core.code.CodeInfo@0x7f407c973c50 name = image code
  SP 00007f40689fdb70 IP 0000000001dad46d  com.oracle.svm.core.code.CodeInfo@0x7f407c973c50 name = image code
  SP 00007f40689fdb90 IP 0000000001dda1ca  com.oracle.svm.core.code.CodeInfo@0x7f407c973c50 name = image code
  SP 00007f40689fdbe0 IP 0000000001dda8f7  com.oracle.svm.core.code.CodeInfo@0x7f407c973c50 name = image code
  SP 00007f40689fdc50 IP 0000000001dd97ee  com.oracle.svm.core.code.CodeInfo@0x7f407c973c50 name = image code
  SP 00007f40689fdc70 IP 0000000001dcfed8  com.oracle.svm.core.code.CodeInfo@0x7f407c973c50 name = image code
  SP 00007f40689fdce0 IP 0000000001dcf886  com.oracle.svm.core.code.CodeInfo@0x7f407c973c50 name = image code
  SP 00007f40689fdd00 IP 0000000001dd9655  com.oracle.svm.core.code.CodeInfo@0x7f407c973c50 name = image code
  SP 00007f40689fdd30 IP 0000000001ddd6e4  com.oracle.svm.core.code.CodeInfo@0x7f407c973c50 name = image code
  SP 00007f40689fdd40 IP 0000000001b1064e  com.oracle.svm.core.code.CodeInfo@0x7f407c973c50 name = image code
  SP 00007f40689fdd70 IP 0000000001b0f083  com.oracle.svm.core.code.CodeInfo@0x7f407c973c50 name = image code
  SP 00007f40689fddc0 IP 0000000001b0f4b7  com.oracle.svm.core.code.CodeInfo@0x7f407c973c50 name = image code
  SP 00007f40689fdde0 IP 0000000001ba3a6f  com.oracle.svm.core.code.CodeInfo@0x7f407c973c50 name = image code
  SP 00007f40689fde20 IP 0000000001ba422b  com.oracle.svm.core.code.CodeInfo@0x7f407c973c50 name = image code
  SP 00007f40689fde50 IP 0000000001ba43ea  com.oracle.svm.core.code.CodeInfo@0x7f407c973c50 name = image code
  SP 00007f40689fde90 IP 000000000045a811  com.oracle.svm.core.code.CodeInfo@0x7f407c973c50 name = image code
  SP 00007f40689fdeb0 IP 00000000009c33e6  com.oracle.svm.core.code.CodeInfo@0x7f407c973c50 name = image code
  SP 00007f40689fdee0 IP 0000000001be76fe  com.oracle.svm.core.code.CodeInfo@0x7f407c973c50 name = image code
  SP 00007f40689fdf30 IP 0000000001be8fca  com.oracle.svm.core.code.CodeInfo@0x7f407c973c50 name = image code
  SP 00007f40689fdf70 IP 0000000001c7d03b  com.oracle.svm.core.code.CodeInfo@0x7f407c973c50 name = image code
  SP 00007f40689fdfb0 IP 0000000001c7100b  com.oracle.svm.core.code.CodeInfo@0x7f407c973c50 name = image code
  SP 00007f40689fe020 IP 0000000001c6f962  com.oracle.svm.core.code.CodeInfo@0x7f407c973c50 name = image code
  SP 00007f40689fe070 IP 0000000001c47ff3  com.oracle.svm.core.code.CodeInfo@0x7f407c973c50 name = image code
  SP 00007f40689fe080 IP 0000000001bf2c4c  com.oracle.svm.core.code.CodeInfo@0x7f407c973c50 name = image code
  SP 00007f40689fe120 IP 0000000001bf48d9  com.oracle.svm.core.code.CodeInfo@0x7f407c973c50 name = image code
  SP 00007f40689fe1a0 IP 0000000001c07d18  com.oracle.svm.core.code.CodeInfo@0x7f407c973c50 name = image code
  SP 00007f40689fe220 IP 000000000111dd3e  com.oracle.svm.core.code.CodeInfo@0x7f407c973c50 name = image code
  SP 00007f40689fe260 IP 0000000001c08b46  com.oracle.svm.core.code.CodeInfo@0x7f407c973c50 name = image code
  SP 00007f40689fe290 IP 000000000111d9bc  com.oracle.svm.core.code.CodeInfo@0x7f407c973c50 name = image code
  SP 00007f40689fe2b0 IP 000000000121412b  com.oracle.svm.core.code.CodeInfo@0x7f407c973c50 name = image code
  SP 00007f40689fe300 IP 0000000001622771  com.oracle.svm.core.code.CodeInfo@0x7f407c973c50 name = image code
  SP 00007f40689fe350 IP 00000000012142f5  com.oracle.svm.core.code.CodeInfo@0x7f407c973c50 name = image code
  SP 00007f40689fe3a0 IP 0000000001bcca12  com.oracle.svm.core.code.CodeInfo@0x7f407c973c50 name = image code
  SP 00007f40689fe400 IP 0000000001bcbefd  com.oracle.svm.core.code.CodeInfo@0x7f407c973c50 name = image code
  SP 00007f40689fe450 IP 00000000012142f5  com.oracle.svm.core.code.CodeInfo@0x7f407c973c50 name = image code
  SP 00007f40689fe4a0 IP 0000000001bc5ac0  com.oracle.svm.core.code.CodeInfo@0x7f407c973c50 name = image code
  SP 00007f40689fe4e0 IP 0000000001bcbefd  com.oracle.svm.core.code.CodeInfo@0x7f407c973c50 name = image code
  SP 00007f40689fe530 IP 00000000012142f5  com.oracle.svm.core.code.CodeInfo@0x7f407c973c50 name = image code
  SP 00007f40689fe580 IP 0000000001bc4de9  com.oracle.svm.core.code.CodeInfo@0x7f407c973c50 name = image code
  SP 00007f40689fe5c0 IP 0000000001bcbefd  com.oracle.svm.core.code.CodeInfo@0x7f407c973c50 name = image code
  SP 00007f40689fe610 IP 00000000012142f5  com.oracle.svm.core.code.CodeInfo@0x7f407c973c50 name = image code
  SP 00007f40689fe660 IP 000000000128feca  com.oracle.svm.core.code.CodeInfo@0x7f407c973c50 name = image code
  SP 00007f40689fe770 IP 0000000001272597  com.oracle.svm.core.code.CodeInfo@0x7f407c973c50 name = image code
  SP 00007f40689fe7b0 IP 00000000011c1dab  com.oracle.svm.core.code.CodeInfo@0x7f407c973c50 name = image code
  SP 00007f40689fe810 IP 000000000127893b  com.oracle.svm.core.code.CodeInfo@0x7f407c973c50 name = image code
  SP 00007f40689fe890 IP 00000000013160cf  com.oracle.svm.core.code.CodeInfo@0x7f407c973c50 name = image code
  SP 00007f40689fe8e0 IP 0000000001274eef  com.oracle.svm.core.code.CodeInfo@0x7f407c973c50 name = image code
  SP 00007f40689fe910 IP 00000000011d1519  com.oracle.svm.core.code.CodeInfo@0x7f407c973c50 name = image code
  SP 00007f40689fe9c0 IP 0000000001395a6e  com.oracle.svm.core.code.CodeInfo@0x7f407c973c50 name = image code
  SP 00007f40689fea70 IP 0000000001351326  com.oracle.svm.core.code.CodeInfo@0x7f407c973c50 name = image code
  SP 00007f40689feb40 IP 00000000013520e6  com.oracle.svm.core.code.CodeInfo@0x7f407c973c50 name = image code
  SP 00007f40689fec20 IP 000000000152e11d  com.oracle.svm.core.code.CodeInfo@0x7f407c973c50 name = image code
  SP 00007f40689fec60 IP 0000000001560e9d  com.oracle.svm.core.code.CodeInfo@0x7f407c973c50 name = image code
  SP 00007f40689fec80 IP 0000000000fef9b4  com.oracle.svm.core.code.CodeInfo@0x7f407c973c50 name = image code
  SP 00007f40689fecd0 IP 00000000015d856c  com.oracle.svm.core.code.CodeInfo@0x7f407c973c50 name = image code
  SP 00007f40689fece0 IP 0000000000c6b4a4  com.oracle.svm.core.code.CodeInfo@0x7f407c973c50 name = image code
  SP 00007f40689fecf0 IP 0000000000765b81  com.oracle.svm.core.code.CodeInfo@0x7f407c973c50 name = image code
  SP 00007f40689fed20 IP 0000000000714635  com.oracle.svm.core.code.CodeInfo@0x7f407c973c50 name = image code
  
Stacktrace Stage 2:

  SP 00007f40689fcee0 IP 00007f407de105ca  IP is not within Java code. Trying frame anchor of last Java frame instead.
  SP 00007f40689fd910 IP 0000000000ce514d  [image code] java.net.Inet4AddressImpl.lookupAllHostAddr(Inet4AddressImpl.java)
  SP 00007f40689fd960 IP 0000000000ced0f0  [image code] java.net.InetAddress$PlatformNameService.lookupAllHostAddr(InetAddress.java:929)
  SP 00007f40689fd970 IP 0000000000cee0c3  [image code] java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1519)
  SP 00007f40689fd9a0 IP 0000000000cec901  [image code] java.net.InetAddress$NameServiceAddresses.get(InetAddress.java:848)
  SP 00007f40689fda10 IP 0000000000cefbf1  [image code] java.net.InetAddress.getAllByName0(InetAddress.java:1509)
  SP 00007f40689fda60 IP 0000000000cee815  [image code] java.net.InetAddress.getAllByName(InetAddress.java:1368)
  SP 00007f40689fdab0 IP 0000000000cf06d6  [image code] java.net.InetAddress.getAllByName(InetAddress.java:1302)
  SP 00007f40689fdab0 IP 0000000000cf06d6  [image code] java.net.InetAddress.getByName(InetAddress.java:1252)
  SP 00007f40689fdac0 IP 0000000000cf3151  [image code] java.net.InetSocketAddress.<init>(InetSocketAddress.java:220)
  SP 00007f40689fdb00 IP 0000000001d8744c  [image code] sun.net.NetworkClient.doConnect(NetworkClient.java:182)
  SP 00007f40689fdb40 IP 0000000001dad8cb  [image code] sun.net.www.http.HttpClient.openServer(HttpClient.java:474)
  SP 00007f40689fdb70 IP 0000000001dad46d  [image code] sun.net.www.http.HttpClient.openServer(HttpClient.java:569)
  SP 00007f40689fdb90 IP 0000000001dda1ca  [image code] sun.net.www.protocol.https.HttpsClient.<init>(HttpsClient.java:266)
  SP 00007f40689fdbe0 IP 0000000001dda8f7  [image code] sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:373)
  SP 00007f40689fdc50 IP 0000000001dd97ee  [image code] sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:203)
  SP 00007f40689fdc70 IP 0000000001dcfed8  [image code] sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1187)
  SP 00007f40689fdce0 IP 0000000001dcf886  [image code] sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1081)
  SP 00007f40689fdd00 IP 0000000001dd9655  [image code] sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:189)
  SP 00007f40689fdd30 IP 0000000001ddd6e4  [image code] sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(HttpsURLConnectionImpl.java:168)
  SP 00007f40689fdd40 IP 0000000001b1064e  [image code] org.springframework.http.client.SimpleBufferingClientHttpRequest.executeInternal(SimpleBufferingClientHttpRequest.java:76)
  SP 00007f40689fdd70 IP 0000000001b0f083  [image code] org.springframework.http.client.AbstractBufferingClientHttpRequest.executeInternal(AbstractBufferingClientHttpRequest.java:48)
  SP 00007f40689fddc0 IP 0000000001b0f4b7  [image code] org.springframework.http.client.AbstractClientHttpRequest.execute(AbstractClientHttpRequest.java:66)
  SP 00007f40689fdde0 IP 0000000001ba3a6f  [image code] org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:776)
  SP 00007f40689fde20 IP 0000000001ba422b  [image code] org.springframework.web.client.RestTemplate.execute(RestTemplate.java:711)
  SP 00007f40689fde50 IP 0000000001ba43ea  [image code] org.springframework.web.client.RestTemplate.getForEntity(RestTemplate.java:361)
  SP 00007f40689fde90 IP 000000000045a811  [image code] com.example.springnative.TestController.testRest(TestController.java:16)
  SP 00007f40689fdeb0 IP 00000000009c33e6  [image code] com.oracle.svm.reflect.TestController_testRest_a022550dd3684ac54d95fe097f1921e084e2fdd8.invoke(Unknown Source)
  SP 00007f40689fdee0 IP 0000000001be76fe  [image code] java.lang.reflect.Method.invoke(Method.java:566)
  SP 00007f40689fdee0 IP 0000000001be76fe  [image code] org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:197)
  SP 00007f40689fdf30 IP 0000000001be8fca  [image code] org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:141)
  SP 00007f40689fdf70 IP 0000000001c7d03b  [image code] org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:106)
  SP 00007f40689fdfb0 IP 0000000001c7100b  [image code] org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:894)
  SP 00007f40689fe020 IP 0000000001c6f962  [image code] org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:808)
  SP 00007f40689fe070 IP 0000000001c47ff3  [image code] org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)
  SP 00007f40689fe080 IP 0000000001bf2c4c  [image code] org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1063)
  SP 00007f40689fe120 IP 0000000001bf48d9  [image code] org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:963)
  SP 00007f40689fe1a0 IP 0000000001c07d18  [image code] org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006)
  SP 00007f40689fe220 IP 000000000111dd3e  [image code] org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:898)
  SP 00007f40689fe220 IP 000000000111dd3e  [image code] javax.servlet.http.HttpServlet.service(HttpServlet.java:655)
  SP 00007f40689fe260 IP 0000000001c08b46  [image code] org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883)
  SP 00007f40689fe290 IP 000000000111d9bc  [image code] javax.servlet.http.HttpServlet.service(HttpServlet.java:764)
  SP 00007f40689fe2b0 IP 000000000121412b  [image code] org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:228)
  SP 00007f40689fe300 IP 0000000001622771  [image code] org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:163)
  SP 00007f40689fe300 IP 0000000001622771  [image code] org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
  SP 00007f40689fe350 IP 00000000012142f5  [image code] org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:190)
  SP 00007f40689fe3a0 IP 0000000001bcca12  [image code] org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:163)
  SP 00007f40689fe3a0 IP 0000000001bcca12  [image code] org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100)
  SP 00007f40689fe400 IP 0000000001bcbefd  [image code] org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119)
  SP 00007f40689fe450 IP 00000000012142f5  [image code] org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:190)
  SP 00007f40689fe4a0 IP 0000000001bc5ac0  [image code] org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:163)
  SP 00007f40689fe4a0 IP 0000000001bc5ac0  [image code] org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93)
  SP 00007f40689fe4e0 IP 0000000001bcbefd  [image code] org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119)
  SP 00007f40689fe530 IP 00000000012142f5  [image code] org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:190)
  SP 00007f40689fe580 IP 0000000001bc4de9  [image code] org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:163)
  SP 00007f40689fe580 IP 0000000001bc4de9  [image code] org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201)
  SP 00007f40689fe5c0 IP 0000000001bcbefd  [image code] org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119)
  SP 00007f40689fe610 IP 00000000012142f5  [image code] org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:190)
  SP 00007f40689fe660 IP 000000000128feca  [image code] org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:163)
  SP 00007f40689fe660 IP 000000000128feca  [image code] org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:202)
  SP 00007f40689fe770 IP 0000000001272597  [image code] org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:97)
  SP 00007f40689fe7b0 IP 00000000011c1dab  [image code] org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:542)
  SP 00007f40689fe810 IP 000000000127893b  [image code] org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:143)
  SP 00007f40689fe890 IP 00000000013160cf  [image code] org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
  SP 00007f40689fe8e0 IP 0000000001274eef  [image code] org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:78)
  SP 00007f40689fe910 IP 00000000011d1519  [image code] org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:357)
  SP 00007f40689fe9c0 IP 0000000001395a6e  [image code] org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:382)
  SP 00007f40689fea70 IP 0000000001351326  [image code] org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)
  SP 00007f40689feb40 IP 00000000013520e6  [image code] org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:893)
  SP 00007f40689fec20 IP 000000000152e11d  [image code] org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1723)
  SP 00007f40689fec60 IP 0000000001560e9d  [image code] org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
  SP 00007f40689fec80 IP 0000000000fef9b4  [image code] java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
  SP 00007f40689fecd0 IP 00000000015d856c  [image code] java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
  SP 00007f40689fecd0 IP 00000000015d856c  [image code] org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
  SP 00007f40689fece0 IP 0000000000c6b4a4  [image code] java.lang.Thread.run(Thread.java:829)
  SP 00007f40689fecf0 IP 0000000000765b81  [image code] com.oracle.svm.core.thread.JavaThreads.threadStartRoutine(JavaThreads.java:567)
  SP 00007f40689fed20 IP 0000000000714635  [image code] com.oracle.svm.core.posix.thread.PosixJavaThreads.pthreadStartRoutine(PosixJavaThreads.java:192)
  SP 00007f40689fed20 IP 0000000000714635  [image code] com.oracle.svm.core.code.IsolateEnterStub.PosixJavaThreads_pthreadStartRoutine_e1f4a8c0039f8337338252cd8734f63a79b5e3df(IsolateEnterStub.java:0)
  
[Heap settings and statistics: 
  Supports isolates: true
  Object reference size: 8
  Incremental collections: 0
  Complete collections: 0]

[Native image heap boundaries: 
  ReadOnly Primitives: 0x7f407ba01028 .. 0x7f407c1ad0a8
  ReadOnly References: 0x7f407c1ad0b8 .. 0x7f407c52bee8
  ReadOnly Relocatables: 0x7f407c52c000 .. 0x7f407c8a7bc8
  Writable Primitives: 0x7f407c8a8000 .. 0x7f407c9b5300
  Writable References: 0x7f407c9b5310 .. 0x7f407d2620e0
  Writable Huge: 0x0 .. 0x0
  ReadOnly Huge: 0x7f407d300030 .. 0x7f407dd17e60]


[Heap:
  [Young generation: 
    [Eden: 
      [edenSpace:
        aligned: 1044440/1 unaligned: 0/0
        aligned chunks:
          0x7f4079100000 (0x7f4079101028-0x7f4079102660)]]
    [Survivors: 
      ]]
  [Old generation: 
    [oldFromSpace:
      aligned: 0/0 unaligned: 0/0]
    [oldToSpace:
      aligned: 0/0 unaligned: 0/0]
    ]
  [Unused:
    aligned: 0/0]]

Segfault detected, aborting process. Use runtime option -R:-InstallSegfaultHandler if you don't want to use SubstrateSegfaultHandler.

@sdeleuze sdeleuze closed this as completed Jul 5, 2021
@sdeleuze sdeleuze added status: blocked An issue that's blocked on an external project change or another issue and removed status: feedback-provided Feedback has been provided status: waiting-for-triage An issue we've not yet triaged or decided on labels Jul 5, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
status: blocked An issue that's blocked on an external project change or another issue
Development

No branches or pull requests

3 participants