Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Java builder fail! #71

Open
gongxh13 opened this issue Mar 4, 2023 · 7 comments
Open

Java builder fail! #71

gongxh13 opened this issue Mar 4, 2023 · 7 comments
Assignees

Comments

@gongxh13
Copy link

gongxh13 commented Mar 4, 2023

When I use pack with java builder on mac, has below error:



*** Invalid JIT return address 0000000706B1FE58 in 0000000000DE7B10

09:01:58.753 0xde7800    j9vm.249    *   ** ASSERTION FAILED ** at ../../../../../openj9/runtime/vm/swalk.c:1602: ((0 ))
JVMDUMP039I Processing dump event "traceassert", detail "" at 2023/03/04 09:01:58 - please wait.
0000000000DE7800: Object neither in heap nor stack-allocated in thread BasicRepositoryConnector-repo.maven.apache.org-3-0
0000000000DE7800:	O-Slot=0000000000E29BF8
0000000000DE7800:	O-Slot value=000000400C465250
0000000000DE7800:	PC=000000401BE92041
0000000000DE7800:	framesWalked=5
0000000000DE7800:	arg0EA=0000000000E29BF8
0000000000DE7800:	walkSP=0000000000E29B50
0000000000DE7800:	literals=0000000000000010
0000000000DE7800:	jitInfo=0000004085628538
0000000000DE7800:	method=0000000000BBD0A0 (java/security/MessageDigest.getInstance(Ljava/lang/String;)Ljava/security/MessageDigest;) (JIT)
0000000000DE7800:	stack=0000000000E27020-0000000000E2A000
0000000000DE7800: Object neither in heap nor stack-allocated in thread BasicRepositoryConnector-repo.maven.apache.org-3-0
0000000000DE7800:	O-Slot=00000042033579E0
0000000000DE7800:	O-Slot value=00000000E0D32F23
0000000000DE7800:	PC=000000401BE92041
0000000000DE7800:	framesWalked=5
0000000000DE7800:	arg0EA=0000000000E29BF8
0000000000DE7800:	walkSP=0000000000E29B50
0000000000DE7800:	literals=0000000000000010
0000000000DE7800:	jitInfo=0000004085628538
0000000000DE7800:	method=0000000000BBD0A0 (java/security/MessageDigest.getInstance(Ljava/lang/String;)Ljava/security/MessageDigest;) (JIT)
0000000000DE7800:	stack=0000000000E27020-0000000000E2A000
JVMDUMP032I JVM requested System dump using '/workspace/core.20230304.090158.131.0001.dmp' in response to an event
JVMDUMP010I System dump written to /workspace/core.20230304.090158.131.0001.dmp
0000000000DE7800: Object neither in heap nor stack-allocated in thread BasicRepositoryConnector-repo.maven.apache.org-3-0
0000000000DE7800:	O-Slot=0000000000E29BF8
0000000000DE7800:	O-Slot value=000000400C465250
0000000000DE7800:	PC=000000401BE92041
0000000000DE7800:	framesWalked=5
0000000000DE7800:	arg0EA=0000000000E29BF8
0000000000DE7800:	walkSP=0000000000E29B50
0000000000DE7800:	literals=0000000000000010
0000000000DE7800:	jitInfo=0000004085628538
0000000000DE7800:	method=0000000000BBD0A0 (java/security/MessageDigest.getInstance(Ljava/lang/String;)Ljava/security/MessageDigest;) (JIT)
0000000000DE7800:	stack=0000000000E27020-0000000000E2A000
0000000000DE7800: Object neither in heap nor stack-allocated in thread BasicRepositoryConnector-repo.maven.apache.org-3-0
0000000000DE7800:	O-Slot=00000042033579E0
0000000000DE7800:	O-Slot value=00000000E0D32F23
0000000000DE7800:	PC=000000401BE92041
0000000000DE7800:	framesWalked=5
0000000000DE7800:	arg0EA=0000000000E29BF8
0000000000DE7800:	walkSP=0000000000E29B50
0000000000DE7800:	literals=0000000000000010
0000000000DE7800:	jitInfo=0000004085628538
0000000000DE7800:	method=0000000000BBD0A0 (java/security/MessageDigest.getInstance(Ljava/lang/String;)Ljava/security/MessageDigest;) (JIT)
0000000000DE7800:	stack=0000000000E27020-0000000000E2A000
JVMDUMP032I JVM requested Java dump using '/workspace/javacore.20230304.090158.131.0002.txt' in response to an event
Done "mvn clean package --batch-mode -DskipTests -Dhttp.keepAlive=..." (6m24.652248509s)
Failure: (ID: 157993e9) 
ERROR: failed to build: exit status 255
ERROR: failed to build: executing lifecycle: failed with status code: 51

Builder cmd as

pack build ${IMAGE_TAG} --trust-builder --path ./ --builder openfunction/builder-java:v2-18 --env FUNC_NAME="dev.openfunction.samples.OpenFunctionImpl"  --env FUNC_CLEAR_SOURCE=true
@wanjunlei
Copy link
Member

Execute this command in your java project

mvn clean package --batch-mode -DskipTests -Dhttp.keepAlive=false

Are there any errors?

@gongxh13
Copy link
Author

gongxh13 commented Mar 8, 2023

Not work

Execute this command in your java project

mvn clean package --batch-mode -DskipTests -Dhttp.keepAlive=false

Are there any errors?

Execute this command in your java project

mvn clean package --batch-mode -DskipTests -Dhttp.keepAlive=false

Are there any errors?

Not work

@wanjunlei
Copy link
Member

First of all, please make sure that your java project can be packaged, that is, make sure that the above commands are executed correctly.

The above commands are not directly related to OpenFunction, only related to java and Maven.

@gongxh13
Copy link
Author

gongxh13 commented Mar 9, 2023

I am sure my code is ok, because When I use google cloud to package is well, also can push to docker hub.

@wanjunlei
Copy link
Member

Not work

Execute this command in your java project

mvn clean package --batch-mode -DskipTests -Dhttp.keepAlive=false

Are there any errors?

Execute this command in your java project

mvn clean package --batch-mode -DskipTests -Dhttp.keepAlive=false

Are there any errors?

Not work

Any errors log can provide?

@gongxh13
Copy link
Author

Not work

Execute this command in your java project

mvn clean package --batch-mode -DskipTests -Dhttp.keepAlive=false

Are there any errors?

Execute this command in your java project

mvn clean package --batch-mode -DskipTests -Dhttp.keepAlive=false

Are there any errors?

Not work

Any errors log can provide?

AS below:



*** Invalid JIT return address 0000000706B1FE58 in 0000000000DE7B10

09:01:58.753 0xde7800    j9vm.249    *   ** ASSERTION FAILED ** at ../../../../../openj9/runtime/vm/swalk.c:1602: ((0 ))
JVMDUMP039I Processing dump event "traceassert", detail "" at 2023/03/04 09:01:58 - please wait.
0000000000DE7800: Object neither in heap nor stack-allocated in thread BasicRepositoryConnector-repo.maven.apache.org-3-0
0000000000DE7800:	O-Slot=0000000000E29BF8
0000000000DE7800:	O-Slot value=000000400C465250
0000000000DE7800:	PC=000000401BE92041
0000000000DE7800:	framesWalked=5
0000000000DE7800:	arg0EA=0000000000E29BF8
0000000000DE7800:	walkSP=0000000000E29B50
0000000000DE7800:	literals=0000000000000010
0000000000DE7800:	jitInfo=0000004085628538
0000000000DE7800:	method=0000000000BBD0A0 (java/security/MessageDigest.getInstance(Ljava/lang/String;)Ljava/security/MessageDigest;) (JIT)
0000000000DE7800:	stack=0000000000E27020-0000000000E2A000
0000000000DE7800: Object neither in heap nor stack-allocated in thread BasicRepositoryConnector-repo.maven.apache.org-3-0
0000000000DE7800:	O-Slot=00000042033579E0
0000000000DE7800:	O-Slot value=00000000E0D32F23
0000000000DE7800:	PC=000000401BE92041
0000000000DE7800:	framesWalked=5
0000000000DE7800:	arg0EA=0000000000E29BF8
0000000000DE7800:	walkSP=0000000000E29B50
0000000000DE7800:	literals=0000000000000010
0000000000DE7800:	jitInfo=0000004085628538
0000000000DE7800:	method=0000000000BBD0A0 (java/security/MessageDigest.getInstance(Ljava/lang/String;)Ljava/security/MessageDigest;) (JIT)
0000000000DE7800:	stack=0000000000E27020-0000000000E2A000
JVMDUMP032I JVM requested System dump using '/workspace/core.20230304.090158.131.0001.dmp' in response to an event
JVMDUMP010I System dump written to /workspace/core.20230304.090158.131.0001.dmp
0000000000DE7800: Object neither in heap nor stack-allocated in thread BasicRepositoryConnector-repo.maven.apache.org-3-0
0000000000DE7800:	O-Slot=0000000000E29BF8
0000000000DE7800:	O-Slot value=000000400C465250
0000000000DE7800:	PC=000000401BE92041
0000000000DE7800:	framesWalked=5
0000000000DE7800:	arg0EA=0000000000E29BF8
0000000000DE7800:	walkSP=0000000000E29B50
0000000000DE7800:	literals=0000000000000010
0000000000DE7800:	jitInfo=0000004085628538
0000000000DE7800:	method=0000000000BBD0A0 (java/security/MessageDigest.getInstance(Ljava/lang/String;)Ljava/security/MessageDigest;) (JIT)
0000000000DE7800:	stack=0000000000E27020-0000000000E2A000
0000000000DE7800: Object neither in heap nor stack-allocated in thread BasicRepositoryConnector-repo.maven.apache.org-3-0
0000000000DE7800:	O-Slot=00000042033579E0
0000000000DE7800:	O-Slot value=00000000E0D32F23
0000000000DE7800:	PC=000000401BE92041
0000000000DE7800:	framesWalked=5
0000000000DE7800:	arg0EA=0000000000E29BF8
0000000000DE7800:	walkSP=0000000000E29B50
0000000000DE7800:	literals=0000000000000010
0000000000DE7800:	jitInfo=0000004085628538
0000000000DE7800:	method=0000000000BBD0A0 (java/security/MessageDigest.getInstance(Ljava/lang/String;)Ljava/security/MessageDigest;) (JIT)
0000000000DE7800:	stack=0000000000E27020-0000000000E2A000
JVMDUMP032I JVM requested Java dump using '/workspace/javacore.20230304.090158.131.0002.txt' in response to an event
Done "mvn clean package --batch-mode -DskipTests -Dhttp.keepAlive=..." (6m24.652248509s)
Failure: (ID: 157993e9) 
ERROR: failed to build: exit status 255
ERROR: failed to build: executing lifecycle: failed with status code: 51

@wanjunlei
Copy link
Member

I think this is the problem with your java project, please make sure that the above commands are executed correctly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants