question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

JVM crashes for Java 8

See original GitHub issue

I’m trying to create a simple spring boot demo project using Redisson, but I get the following error when I try to run it with Java 8 (perhaps Redisson does not support Java 8?):

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00000001057af436, pid=12673, tid=0x0000000000009503
#
# JRE version: OpenJDK Runtime Environment (8.0_262-b10) (build 1.8.0_262-internal-b10)
# Java VM: OpenJDK 64-Bit Server VM (25.262-b10 mixed mode bsd-amd64 compressed oops)
# Problematic frame:
# V  [libjvm.dylib+0x575436]

My application looks like this:

@SpringBootApplication
public class L2CacheApplication {
    public static void main(String[] args) {
        SpringApplication.run(L2CacheApplication.class, args);
    }

    @Bean
    public CommandLineRunner demo(RedissonClient redisson) {
        return (args) -> redisson.getKeys().getKeys().forEach(System.out::println);
    }
}

My application.properties:

spring.redis.host=localhost
spring.redis.port=6379

My POM:

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <parent>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-parent</artifactId>
        <version>2.6.6</version>
        <relativePath/> <!-- lookup parent from repository -->
    </parent>
    <groupId>org.colton</groupId>
    <artifactId>demo</artifactId>
    <version>0.0.1-SNAPSHOT</version>
    <name>demo</name>
    <properties>
        <java.version>1.8</java.version>
    </properties>
    <dependencies>
        <dependency>
            <groupId>org.redisson</groupId>
            <artifactId>redisson-spring-boot-starter</artifactId>
            <version>3.17.0</version>
        </dependency>
    </dependencies>
</project>

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
avcadcommented, Apr 18, 2022

You can try enabling leak detection logging. Sometimes the problem happens when the object fails to serialize with the codec. -Dio.netty.leakDetection.level=PARANOID

0reactions
coltongoatescommented, Apr 19, 2022

@mrniko no, but if you cannot reproduce it on your side, then we can probably close this issue. I can use a later JDK for my project, because I’m not seeing any problems when I use JDK 15. Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

6 Crashing JVM - Oracle Help Center
A Java application might stop running for several reasons. The most common reason is that the application finished running or was halted normally....
Read more >
JVM crash due to Java 8 GC | AEM - Adobe Support
The AEM instance crashes and the process is missing. The hs_err* file is generated listing G1ParScanThreadState thread as the active thread ...
Read more >
JVM Crashes with homebrew openjdk@8 on Mac m1 pro ...
I was just trying to do local setup of monolithic project. It has been working fine for past 2 months. I started seeing...
Read more >
JVM crashes on repeated access to a MethodHandle linking ...
JDK -8248462 : JVM crashes on repeated access to a MethodHandle linking to ... Environment (8.0_252-b09) (build 1.8.0_252-b09) # Java VM: OpenJDK 64-Bit ......
Read more >
Debugging a JVM Crash for LinkedIn - Part 3
We, therefore, head over to the JDK Bug System and search for vpxor. What do you know? This issue pops up straight away:...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found