jruby 9.1.12.0 crashed on ubuntu 20.04 while using libcurl

Hi there,

I have experienced issues due to running libcurl on jruby 9.1.12.0, here are the logs:

# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007f80720e2763, pid=52790, tid=0x00007f8068ff3700
#
# JRE version: Java(TM) SE Runtime Environment (8.0_131-b11) (build 1.8.0_131-b11)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.131-b11 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# C  [libcurl.so+0x43763]
#
# 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.java.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#

---------------  T H R E A D  ---------------

Current thread (0x00007f807c074800):  JavaThread "Ruby-0-Thread-91@puma 002: /opt/oms/vendor/bundle/jruby/2.3.0/gems/puma-3.10.0-java/lib/puma/server.rb:354" daemon [_thread_in_native, id=53283, stack(0x00007f8068df3000,0x00007f8068ff4000)]

siginfo: si_signo: 11 (SIGSEGV), si_code: 1 (SEGV_MAPERR), si_addr: 0x00000000f801580d

Running on:

  • JRuby 9.1.12.0
  • ubuntu 20.04
  • Downgraded curl 7.47
  • Downgraded OpenSSL 1.0.1g

What’s the issue’s root cause?
Thanks|