Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 28th May 2012, 12:47 PM
wajda Offline
Registered User
 
Join Date: Nov 2008
Location: Prague, CZ
Posts: 26
linuxfirefox
Exclamation Java crashes with SIGSEGV on Fedora 16

Hi All,

I am experiencing weird crashes of JVM (both Oracle and OpenJDK) when I run certain set of Java unit tests. They are just a normal Java unit tests using TestNG and there is nothing specific. I run them using Maven or my IDE. If I run them one by one they work, but when I run the entire suite JVM crashes with scary error messages like:
Code:
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007f337efb6168, pid=2646, tid=139859160426240
#
# JRE version: 7.0_04-b20
# Java VM: Java HotSpot(TM) 64-Bit Server VM (23.0-b21 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# C  [libzip.so+0x5168]  ZIP_GetEntry+0x78
#
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.sun.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#

.... and a long thread dump here ....
Sometimes it also complains about memory corruption like this:

*** glibc detected *** /usr/java/jdk1.7.0_04/jre/bin/java: malloc(): memory corruption: 0x00007f9e04000087 ***

I have no idea where to find a problem. I'm using Fedora for work and I don't do anything special. I installed it a few months ago and just do a periodic updates from time to time.
I tried Oracle JDK and OpenJDK, the problem is the same. It makes me believe that the problem is not in a particular JDK, but rather in the OS.
The issue is 100% reproducible. I even know the exact method call in my Java code where it crashes. The problem is that it only crashes if I run the entire suite, not a single test. So I can't reproduce it on some "hello, world" application.

Thanks for any help!

My system is:
OS:Fedora release 16 (Verne)
uname:Linux 3.3.7-1.fc16.x86_64 #1 SMP Tue May 22 13:59:39 UTC 2012 x86_64
libc:glibc 2.14.90 NPTL 2.14.90
rlimit: STACK 8192k, CORE 0k, NPROC 1024, NOFILE 4096, AS infinity
Reply With Quote
  #2  
Old 28th May 2012, 08:59 PM
RupertPupkin's Avatar
RupertPupkin Offline
Registered User
 
Join Date: Nov 2006
Location: Detroit
Posts: 4,617
linuxfedorafirefox
Re: Java crashes with SIGSEGV on Fedora 16

It's possible that your test suite is exceeding the maximum heap size. Run this command to see what your settings are:
Code:
$ java -XshowSettings:vm
On my F16 x86_64 system with Oracle JDK 1.7.0_03-b04 I get this:
Code:
VM settings:
    Stack Size: 1.00M
    Max. Heap Size (Estimated): 485.31M
    Ergonomics Machine Class: client
    Using VM: Java HotSpot(TM) 64-Bit Server VM
You could increase that limit using the -Xmx<size> option, for example set it to 1GB:
Code:
$ java -Xmx1024m yourProgram
__________________
OS: Fedora 18 x86_64 | CPU: AMD64 3700+ 2.2GHz | RAM: 2GB PC3200 DDR | Disk: 160GB PATA | Video: ATI Radeon 7500 AGP 64MB | Sound: Turtle Beach Santa Cruz CS4630 | Ethernet: Realtek 8110SC
Reply With Quote
Reply

Tags
crashes, fedora, java, sigsegv

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ABRT - Multiple Crashes = Killed by signal 11 SIGSEGV synic Using Fedora 20 10th February 2012 02:25 AM
java crashes after update fedora 10 gman1 Using Fedora 0 3rd June 2009 02:38 PM
java program crach with SIGSEGV paul1966 Programming & Packaging 5 20th February 2008 03:43 PM
k3b crashes signal 11 err (SIGSEGV) bharatt Using Fedora 1 24th December 2006 07:45 PM


Current GMT-time: 23:21 (Wednesday, 22-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat