Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6563599
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T13:52:11+00:00 2026-05-25T13:52:11+00:00

My Java application has started to crash regularly with a SIGSEGV and a dump

  • 0

My Java application has started to crash regularly with a SIGSEGV and a dump of stack data and a load of information in a text file.

I have debugged C programs in gdb and I have debugged Java code from my IDE. I’m not sure how to approach C-like crashes in a running Java program.

I’m assuming I’m not looking at a JVM bug here. Other Java programs run just fine, and the JVM from Sun is probably more stable than my code. However, I have no idea how I could even cause segfaults with Java code. There definitely is enough memory available, and when I last checked in the profiler, heap usage was around 50% with occasional spikes around 80%. Are there any startup parameters I could investigate? What is a good checklist when approaching a bug like this?

Though I’m not so far able to reliably reproduce the event, it does not seem to occur entirely at random either, so testing is not completely impossible.

ETA: Some of the gory details

(I’m looking for a general approach, since the actual problem might be very specific. Still, there’s some info I already collected and that may be of some value.)

A while ago, I had similar-looking trouble after upgrading my CI server (see here for more details), but that fix (setting -XX:MaxPermSize) did not help this time.

Further investigation revealed that in the crash log files the thread marked as “current thread” is never one of mine, but either one called “VMThread” or one called “GCTaskThread”- I f it’s the latter, it is additionally marked with the comment “(exited)”, if it’s the former, the GCTaskThread is not in the list. This makes me suppose that the problem might be around the end of a GC operation.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T13:52:12+00:00Added an answer on May 25, 2026 at 1:52 pm

    I’m assuming I’m not looking at a JVM bug here. Other Java programs
    run just fine, and the JVM from Sun is probably more stable than my
    code.

    I don’t think you should make that assumption. Without using JNI, you should not be able to write Java code that causes a SIGSEGV (although we know it happens). My point is, when it happens, it is either a bug in the JVM (not unheard of) or a bug in some JNI code. If you don’t have any JNI in your own code, that doesn’t mean that you aren’t using some library that is, so look for that. When I have seen this kind of problem before, it was in an image manipulation library. If the culprit isn’t in your own JNI code, you probably won’t be able to ‘fix’ the bug, but you may still be able to work around it.

    First, you should get an alternate JVM on the same platform and try to reproduce it. You can try one of these alternatives.

    If you cannot reproduce it, it likely is a JVM bug. From that, you can either mandate a particular JVM or search the bug database, using what you know about how to reproduce it, and maybe get suggested workarounds. (Even if you can reproduce it, many JVM implementations are just tweaks on Oracle’s Hotspot implementation, so it might still be a JVM bug.)

    If you can reproduce it with an alternative JVM, the fault might be that you have some JNI bug. Look at what libraries you are using and what native calls they might be making. Sometimes there are alternative “pure Java” configurations or jar files for the same library or alternative libraries that do almost the same thing.

    Good luck!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a layered application in Java which has a multi thread data access
I have a java application that has Web Services published using Axis. With the
I have a Java application that launches another java application. The launcher has a
At a new job I started, we have both a Java application that handles
I have a Java web application that has a 'disconnected' Java Swing desktop app.
my java application has a loading task which requires two server calls which can
I'm developing a Java application using Eclipse. My project has two source directories that
Has anyone had experience taking a full-fledged Java desktop application and replicating the functionality
My Java application is started from within a native program through java.dll. This native
I have a Java application which I want to shutdown 'nicely' when the user

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.