adoptium / adoptium/adoptium-support
JVM Crash with SIGSEGV on libnet.so NET_POLL
Nobody has claimed this yet.
- Dominant language
- No language data
- Stars
- 60
- Forks
- 13
- PR merge metrics
- No merged PRs in 30d
Description
Please provide a brief summary of the bug
I am getting a JVM crash on OpenJDK 11
The core dump created shows a Problematic Frame in "native code" libnet.so NET_POLL
hs_err_pid8831.log
The core dump error is
A fatal error has been detected by the Java Runtime Environment:
SIGSEGV (0xb) at pc=0x00007f7f093a1146, pid=8831, tid=11962
JRE version: OpenJDK Runtime Environment Temurin-11.0.18+10 (11.0.18+10) (build 11.0.18+10)
Java VM: OpenJDK 64-Bit Server VM Temurin-11.0.18+10 (11.0.18+10, mixed mode, tiered, g1 gc, linux-amd64)
Problematic frame:
C [libnet.so+0xf146] NET_Poll+0x186
Core dump will be written. Default location: Core dumps may be processed with "/usr/libexec/abrt-hook-ccpp %s %c %p %u %g %t e %P %I %h" (or dumping to /opt/NetScout/rtm/bin/core.8831)
If you would like to submit a bug report, please visit:
https://github.com/adoptium/adoptium-support/issues
The crash happened outside the Java Virtual Machine in native code.
See problematic frame for where to report the bug.
--------------- S U M M A R Y ------------
Command Line: -DbootstrapStartup=true -Dasi.only.mode=false -DNSTOTPHYMEM_MB=386397 -DSERVER_MODE=Master -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Dcatalina.base=/opt/NetScout/tomcat/nsacontent -Dfile.encoding=UTF-8 -Xmx270000m -Djava.rmi.server.hostname=127.0.0.1 -Djava.util.logging.config.file=/opt/NetScout/tomcat/conf/logging.properties -DprocessName=NSNSAContent -Dasi.only.mode=false -Dcatalina.home=/opt/NetScout/tomcat -Dorg.owasp.esapi.resources=/opt/NetScout/rtm/bin -Djava.security.policy=/opt/NetScout/tomcat/bin/tomcat.policy -Djava.security.properties=/opt/NetScout/rtm/bin/append_java.security -XX:OnOutOfMemoryError=/opt/NetScout/rtm/bin/nsprocessoomscript.sh NSNSAContent -XX:+AggressiveOpts -XX:+UseG1GC -XX:+UnlockExperimentalVMOptions -XX:G1MixedGCLiveThresholdPercent=85 -XX:InitiatingHeapOccupancyPercent=30 -XX:G1HeapWastePercent=5 -XX:MaxGCPauseMillis=1000 -XX:G1HeapRegionSize=16M -Djava.io.tmpdir=/opt/NetScout/tomcat/nsacontent/temp -Ddata.root=/opt/NetScout -Dapp.root=/opt/NetScout -DbootstrapStartup=true -Djava.awt.headless=true org.apache.catalina.startup.Bootstrap start
Host: Intel(R) Xeon(R) Gold 6238 CPU @ 2.10GHz, 88 cores, 376G, CentOS Linux release 7.9.2009 (Core)
Time: Fri Jul 7 07:58:00 2023 CDT elapsed time: 33699.306068 seconds (0d 9h 21m 39s)
--------------- T H R E A D ---------------
Current thread (0x00007f7c00001000): JavaThread "SESSION-MAINT-1" [_thread_in_native, id=11962, stack(0x00007f7d1bafd000,0x00007f7d1bbfe000)]
Stack: [0x00007f7d1bafd000,0x00007f7d1bbfe000], sp=0x00007f7d1bbfb8d0, free space=1018k
Native frames: (J=compiled Java code, A=aot compiled Java code, j=interpreted, Vv=VM code, C=native code)
C [libnet.so+0xf146] NET_Poll+0x186
C [libnet.so+0xc3ee] Java_java_net_PlainSocketImpl_socketConnect+0x20e
J 10451 java.net.PlainSocketImpl.socketConnect(Ljava/net/InetAddress;II)V java.base@11.0.18 (0 bytes) @ 0x00007fc3a0c0da0d [0x00007fc3a0c0d940+0x00000000000000cd]
J 20025 c2 java.net.AbstractPlainSocketImpl.connect(Ljava/net/SocketAddress;I)V java.base@11.0.18 (135 bytes) @ 0x00007fc3a1808f50 [0x00007fc3a1808bc0+0x0000000000000390]
J 21261 c2 java.net.SocksSocketImpl.connect(Ljava/net/SocketAddress;I)V java.base@11.0.18 (1522 bytes) @ 0x00007fc3a0fda9e4 [0x00007fc3a0fd96a0+0x0000000000001344]
J 14640 c2 org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(Lorg/apache/http/conn/ManagedHttpClientConnection;Lorg/apache/http/HttpHost;Ljava/net/InetSocketAddress;ILorg/apache/http/config/SocketConfig;Lorg/apache/http/protocol/HttpContext;)V (525 bytes) @ 0x00007fc3a137ab34 [0x00007fc3a1379500+0x0000000000001634]
Full dump file is attached.
Please provide steps to reproduce where possible
No response
Expected Results
The crash should not happen
Actual Results
JVM crashes
What Java Version are you using?
OpenJDK 64-Bit Server VM Temurin-11.0.18+10
What is your operating system and platform?
CentOS Linux release 7.9.2009
How did you install Java?
No response
Did it work before?
No response
Did you test with the latest update version?
No response
Did you test with other Java versions?
No response
Relevant log output
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the attached hs_err_pid8831.log and the native stack showing libnet.so NET_POLL during PlainSocketImpl.socketConnect. Check the reported Temurin 11.0.18 environment on CentOS 7.9 and investigate whether the crash can be reproduced through the shown socket connection path. Done means identifying a reproducible cause or confirming the issue is fixed in a tested Java update.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, linux
- Domain
- networking, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100