Alpine Linux - openjdk8-8.171.11-r0 causes segfault during jvm instantiation
Hi Natanael,
When I upgraded to 8.171.11-r0 from 8.131.11-r2 rather accidentally I
see a segfault. I reverted to older jdk.
This is the new one. I saw your name in the commit so thought will let you know. https://pkgs.alpinelinux.org/package/edge/community/x86\_64/openjdk8
npm jdbc module while creating the jvm instance hits this. I have not tried to debug much.
var jinst = require(‘jdbc/lib/jinst’);
…
jvmInstance.newInstance(jdbcutil.driverClassName, function(err, driver)
{
Regards
Ragu
Reproduce:
- create a node server in an alpine resty image
- apk add openjdk8
- install jdbc node module
- create jvm instance
var jinst = require(‘jdbc/lib/jinst’);
function initJDBCJvm(callback) {
var jvmInstance = jinst.getInstance();
if (!jinst.isJvmCreated()) {
jinst.addOption(‘-Xrs -Xms258m -Xmx1024m -Xss32m ’);
jinst.setupClasspath([’’]);
jinst.newInstance(“someclassName”, function(err, driver) {});
}
(from redmine: issue id 9025, created on 2018-06-20)