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

JVM crash when taking thread dump #122

Closed
alexsuter opened this issue Jun 5, 2020 · 18 comments
Closed

JVM crash when taking thread dump #122

alexsuter opened this issue Jun 5, 2020 · 18 comments
Labels
bug Something isn't working jbs:reported Someone from our org has reported it to OpenJDK stale

Comments

@alexsuter
Copy link

alexsuter commented Jun 5, 2020

A fatal error has been detected by the Java Runtime Environment:

SIGSEGV (0xb) at pc=0x00007f20570e8559, pid=16013, tid=16026

JRE version: OpenJDK Runtime Environment (11.0.7+10) (build 11.0.7+10)
Java VM: OpenJDK 64-Bit Server VM (11.0.7+10, mixed mode, tiered, compressed oops, g1 gc, linux-amd64)

Problematic frame:
C [libpthread.so.0+0x12559] pthread_getcpuclockid+0x9

hs_err_pid16013.log

@aahlenst
Copy link
Contributor

aahlenst commented Jun 5, 2020

What exactly did you do? There's at least half a dozen ways to produce a thread dump.

@alexsuter
Copy link
Author

I have a hanging jvm application. When I take a threadump in VisualVM or with command line tool jstack the application is crashing. Is there anything what I can provide?

@karianna karianna added this to Needs triage in openjdk-support via automation Jun 5, 2020
@karianna karianna added the bug Something isn't working label Jun 5, 2020
@karianna
Copy link
Contributor

karianna commented Jun 5, 2020

Can you provide a test case / reproduced? Also, can you try an adoptopenjdk.net/upstream.html build?

@alexsuter
Copy link
Author

Reproduce
I only can reproduce it with our product "Axon.ivy Designer", which is based on Eclipse. https://developer.axonivy.com/download

  1. Need to start Axon.ivy Designer
  2. Opening a Web Editor
  3. Opening the Java Editor and working with "editor proposal" feature.
    After a while the JVM is hanging, which seems to be a deadlock with the Eclipse SWT environment and our own Web Editor which is based on JavaFX. Therefore I have created a bug report for eclipse: https://bugs.eclipse.org/bugs/show_bug.cgi?id=563990
    I'm not sure this could also be a bug in the native code of eclipse swt.

I think the deadlock is an issue in the Eclipse stack. Anyway, I think the JVM should never crash when taking thread dump, therefore I thought I think this is bug in the JVM itself? But if its a bug in native code of other components (eclipse swt) than the JVM could crash and this must be fixed in this component. Is this right?

Upstream Build
I can reproduce the problem with an upstream build.

@karianna
Copy link
Contributor

karianna commented Jun 8, 2020

Reproduce
I only can reproduce it with our product "Axon.ivy Designer", which is based on Eclipse. https://developer.axonivy.com/download

  1. Need to start Axon.ivy Designer
  2. Opening a Web Editor
  3. Opening the Java Editor and working with "editor proposal" feature.
    After a while the JVM is hanging, which seems to be a deadlock with the Eclipse SWT environment and our own Web Editor which is based on JavaFX. Therefore I have created a bug report for eclipse: https://bugs.eclipse.org/bugs/show_bug.cgi?id=563990
    I'm not sure this could also be a bug in the native code of eclipse swt.

I think the deadlock is an issue in the Eclipse stack. Anyway, I think the JVM should never crash when taking thread dump, therefore I thought I think this is bug in the JVM itself? But if its a bug in native code of other components (eclipse swt) than the JVM could crash and this must be fixed in this component. Is this right?

Upstream Build
I can reproduce the problem with an upstream build.

Yeah, this is almost certainly an underlying Eclipse issue. We'll close this, for now, bu the Eclipse folks can reopen it if need be.

@karianna karianna closed this as completed Jun 8, 2020
openjdk-support automation moved this from Needs triage to Closed Jun 8, 2020
@karianna karianna added jbs:needs-report Waiting for someone from our org to report to OpenJDK wontfix This will not be worked on and removed Waiting on OP labels Jun 8, 2020
@karianna karianna added this to the June 2020 milestone Jun 8, 2020
@iloveeclipse
Copy link

Regarding the crash: see https://bugzilla.redhat.com/show_bug.cgi?id=1832121. The native stack looks same.

Once we restore our RH account rights (lost in transition from one company to another) we will ask RH account guys to drive investigation, especially now we have here a better reproducer.

I think this is JVM bug unless the opposite is proven :-).

@iloveeclipse
Copy link

I'm trying to follow steps, but I fail at point 3 below: I have no idea about how to open Web Editor (I assume I have to create a project, but again, I have no idea how to proceed with that).

Please could you update Axon specific steps, so that every one can reproduce it?

My steps

  1. Download https://developer.axonivy.com/download. For Linux

$ cd /tmp
$ wget "https://download.axonivy.com/8.0.6/AxonIvyDesigner8.0.6.2005291209_Linux_x64.zip"
$ unzip /tmp/AxonIvyDesigner8.0.6.2005291209_Linux_x64.zip

  1. Run the designer, select /tmp/workspace as workspace
    $ ./Axon.ivy\ Designer
  2. Open a Web Editor // FROM HERE ON I'm lost
  3. Open the Java Editor and work with "editor proposal" feature. After a while the JVM is hanging, which seems to be a deadlock with the Eclipse SWT environment and Web Editor which is based on JavaFX.
  4. Try to create JVM thread dump via jstack.

@karianna karianna reopened this Jun 8, 2020
openjdk-support automation moved this from Closed to Needs triage Jun 8, 2020
@alexsuter
Copy link
Author

Hello @iloveeclipse
Thanks for investigation!

The following GIF shows how you can reproduce the problem:
hangin-axonivy-designer

I can pretty good reproduce the problem on my system (Ubuntu 20.04). After the web editor was open you may need to search different types in the Java Editor. The Java Editor shows up the proposal itself and next to the proposals there is a further window which shows the Javadoc. I assume that this window is based on webkit, because JavaDoc is pseudo-html and will be rendered in a "browser-like window". And it seems to be that while disposing this window the issue occurs.

@karianna karianna modified the milestones: June 2020, July 2020 Jul 1, 2020
@aahlenst
Copy link
Contributor

aahlenst commented Jul 6, 2020

@karianna You've reopened this one. Have you reached the conclusion that this isn't an Eclipse issue?

@karianna karianna removed the wontfix This will not be worked on label Jul 6, 2020
@karianna
Copy link
Contributor

karianna commented Jul 6, 2020

@alexsuter Can you re-run this with Jacoco removed? Also, can you try our nightly 11.0.8?

@alexsuter
Copy link
Author

I'm currently on holiday. I will give you feedback next week!

@karianna karianna self-assigned this Jul 6, 2020
@aahlenst aahlenst removed the jbs:needs-report Waiting for someone from our org to report to OpenJDK label Jul 10, 2020
@alexsuter
Copy link
Author

@karianna

  • I could not find any Jacoco libraries in the product. Did you find something?
  • Tried with 11.0.8 nightly. Error still exists.

@karianna
Copy link
Contributor

I got my wires crossed on Jacoco sorry!

@alexsuter
Copy link
Author

@aahlenst I will choose option one and try to get in touch with Read Hat.

@aahlenst aahlenst added jbs:reported Someone from our org has reported it to OpenJDK and removed Waiting on OP labels Aug 3, 2020
@karianna karianna modified the milestones: August 2020, September 2020 Sep 1, 2020
@karianna karianna modified the milestones: September 2020, October 2020 Oct 5, 2020
@karianna karianna modified the milestones: October 2020, November 2020 Nov 3, 2020
@karianna karianna modified the milestones: November 2020, December 2020 Dec 2, 2020
@iloveeclipse
Copy link

While the JVM bug is still there and not fixed (https://bugzilla.redhat.com/show_bug.cgi?id=1897150), Eclipse specific crashes should be fixed now with 4.19, see bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=569853.

@karianna karianna modified the milestones: December 2020, January 2021 Jan 3, 2021
@karianna karianna moved this from Needs triage to High priority in openjdk-support Jan 3, 2021
@karianna karianna moved this from High priority to Low priority in openjdk-support Jan 3, 2021
@karianna karianna removed their assignment Jan 3, 2021
@karianna karianna modified the milestones: January 2021, February 2021 Feb 3, 2021
@karianna karianna modified the milestones: February 2021, March 2021 Mar 8, 2021
@karianna karianna modified the milestones: March 2021, April 2021 Apr 16, 2021
@karianna karianna modified the milestones: April 2021, June 2021 Jun 7, 2021
@karianna karianna removed this from the June 2021 milestone Jul 19, 2021
@github-actions
Copy link

github-actions bot commented May 9, 2022

We are marking this issue as stale because it has not been updated for a while. This is just a way to keep the support issues queue manageable.
It will be closed soon unless the stale label is removed by a committer, or a new comment is made.

@github-actions github-actions bot added the stale label May 9, 2022
@karianna
Copy link
Contributor

karianna commented May 9, 2022

This was marked as a won't fix for Java 11 upstream (it is resolved in 17). Clients will need to use the API calls in the correct order

@karianna karianna closed this as completed May 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working jbs:reported Someone from our org has reported it to OpenJDK stale
Projects
No open projects
openjdk-support
  
Low priority
Development

No branches or pull requests

4 participants