Installing deb package

hello! I need to install a deb package on nixos.

.nix file

{ pkgs ? import <nixpkgs> {} }:

pkgs.stdenv.mkDerivation rec {
 pname = "my-app";
 version = "1.0.0";


 src = ./my-app.deb;

 sourceRoot = ".";

 nativeBuildInputs = with pkgs; [ dpkg wget autoPatchelfHook];
 buildInputs = with pkgs; [ 
  libz 
  gst_all_1.gst-plugins-bad
  glib
  freetype
  alsa-lib
  xorg.libXrender
  xorg.libXt
  xorg.libXi 
  xorg.libXtst
 ];

 unpackCmd = "dpkg-deb -x ${src} .";

 unpackPhase = ''
  dpkg -x $src unpacked
  cp -r unpacked/* $out/
 '';


 meta = with pkgs.lib; {
   homepage = "https://my-app.im";
   description = "My-java-app";
   license = licenses.free;
   platforms = platforms.linux;
   maintainers = [ "hator" ];
 };
}

strace ./bin

bin ./my-app
[0.001s][warning][pagesize] UseLargePages disabled, no large pages configured and available on the system.
[0.001s][warning][stringdedup] String Deduplication disabled: not supported by selected GC

A fatal error has been detected by the Java Runtime Environment:

SIGSEGV (0xb) at pc=0x0000000000000000, pid=3819210, tid=3819219

JRE version: (17.0.1+12) (build )

Java VM: OpenJDK 64-Bit Server VM (17.0.1+12-39, mixed mode, tiered, compressed class ptrs, z gc, linux-amd64)

Problematic frame:

C 0x0000000000000000

Core dump will be written. Default location: Core dumps may be processed with “/nix/store/nb1q59h4sx5qjvhxx679d3qjhlgs3v74-systemd/lib/systemd/systemd-coredump %P %u %g %s %t %c %h” (or dumping to /nix/store/83fgmh5x3hk5vw3ppr2lq7qsnbzxzxal-my-app-1.0.0/my-app/bin/core.3819210)

An error report file with more information is saved as:

/tmp/hs_err_pid3819210.log

[1] 3819210 IOT instruction (core dumped) ./my-app
➜ bin strace ./my-app
execve(“./my-app”, [“./my-app”], 0x7ffd61455080 /* 92 vars /) = 0
brk(NULL) = 0x563a6639b000
access(“/etc/ld-nix.so.preload”, R_OK) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, “/nix/store/dbcw19dshdwnxdv5q2g6wldj6syyvq7l-glibc-2.39-52/etc/ld.so.cache”, O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, “/nix/store/dbcw19dshdwnxdv5q2g6wldj6syyvq7l-glibc-2.39-52/lib/glibc-hwcaps/x86-64-v3/libdl.so.2”, O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, “/nix/store/dbcw19dshdwnxdv5q2g6wldj6syyvq7l-glibc-2.39-52/lib/glibc-hwcaps/x86-64-v3/”, 0x7ffc80d6cfb0, 0) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, “/nix/store/dbcw19dshdwnxdv5q2g6wldj6syyvq7l-glibc-2.39-52/lib/glibc-hwcaps/x86-64-v2/libdl.so.2”, O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, “/nix/store/dbcw19dshdwnxdv5q2g6wldj6syyvq7l-glibc-2.39-52/lib/glibc-hwcaps/x86-64-v2/”, 0x7ffc80d6cfb0, 0) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, “/nix/store/dbcw19dshdwnxdv5q2g6wldj6syyvq7l-glibc-2.39-52/lib/libdl.so.2”, O_RDONLY|O_CLOEXEC) = 3
read(3, “\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\0\0\0\0\0\0\0\0”…, 832) = 832
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f098ec1f000
fstat(3, {st_mode=S_IFREG|0555, st_size=15688, …}) = 0
mmap(NULL, 16400, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f098ec1a000
mmap(0x7f098ec1b000, 4096, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1000) = 0x7f098ec1b000
mmap(0x7f098ec1c000, 4096, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2000) = 0x7f098ec1c000
mmap(0x7f098ec1d000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2000) = 0x7f098ec1d000
close(3) = 0
openat(AT_FDCWD, “/nix/store/dbcw19dshdwnxdv5q2g6wldj6syyvq7l-glibc-2.39-52/lib/libc.so.6”, O_RDONLY|O_CLOEXEC) = 3
read(3, “\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\320\242\2\0\0\0\0\0”…, 832) = 832
pread64(3, “\6\0\0\0\4\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0”…, 784, 64) = 784
fstat(3, {st_mode=S_IFREG|0555, st_size=2285600, …}) = 0
pread64(3, “\6\0\0\0\4\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0”…, 784, 64) = 784
mmap(NULL, 2018704, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f098ea2d000
mmap(0x7f098ea55000, 1425408, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x28000) = 0x7f098ea55000
mmap(0x7f098ebb1000, 352256, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x184000) = 0x7f098ebb1000
mmap(0x7f098ec07000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1d9000) = 0x7f098ec07000
mmap(0x7f098ec0d000, 52624, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f098ec0d000
close(3) = 0
mmap(NULL, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f098ea2a000
arch_prctl(ARCH_SET_FS, 0x7f098ea2a740) = 0
set_tid_address(0x7f098ea2aa10) = 3819645
set_robust_list(0x7f098ea2aa20, 24) = 0
rseq(0x7f098ea2b060, 0x20, 0, 0x53053053) = 0
mprotect(0x7f098ec07000, 16384, PROT_READ) = 0
mprotect(0x7f098ec1d000, 4096, PROT_READ) = 0
mprotect(0x563a65f1e000, 4096, PROT_READ) = 0
mprotect(0x7f098ec54000, 8192, PROT_READ) = 0
prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192
1024, rlim_max=RLIM64_INFINITY}) = 0
readlink(“/proc/self/exe”, “/nix/store/83fgmh5x3hk5vw3ppr2lq”…, 4095) = 80
getrandom(“\xe9\x3a\x52\x06\xcc\x71\xcc\xc0”, 8, GRND_NONBLOCK) = 8
brk(NULL) = 0x563a6639b000
brk(0x563a663bc000) = 0x563a663bc000
pipe2([3, 4], O_CLOEXEC) = 0
prlimit64(0, RLIMIT_NOFILE, NULL, {rlim_cur=1024, rlim_max=5121024}) = 0
prlimit64(0, RLIMIT_NOFILE, NULL, {rlim_cur=1024, rlim_max=512
1024}) = 0
mmap(NULL, 36864, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, -1, 0) = 0x7f098ea21000
rt_sigprocmask(SIG_BLOCK, ~, , 8) = 0
clone3({flags=CLONE_VM|CLONE_VFORK|CLONE_CLEAR_SIGHAND, exit_signal=SIGCHLD, stack=0x7f098ea21000, stack_size=0x9000}, 88) = 3819646
munmap(0x7f098ea21000, 36864) = 0
rt_sigprocmask(SIG_SETMASK, , NULL, 8) = 0
close(4) = 0
fcntl(3, F_SETFD, 0) = 0
fstat(3, {st_mode=S_IFIFO|0600, st_size=0, …}) = 0
read(3, “”, 4096) = 0
— SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=3819646, si_uid=1000, si_status=127, si_utime=0, si_stime=0} —
close(3) = 0
wait4(3819646, [{WIFEXITED(s) && WEXITSTATUS(s) == 127}], 0, NULL) = 3819646
pipe2([3, 4], O_CLOEXEC) = 0
prlimit64(0, RLIMIT_NOFILE, NULL, {rlim_cur=1024, rlim_max=5121024}) = 0
prlimit64(0, RLIMIT_NOFILE, NULL, {rlim_cur=1024, rlim_max=512
1024}) = 0
mmap(NULL, 36864, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, -1, 0) = 0x7f098ea21000
rt_sigprocmask(SIG_BLOCK, ~, , 8) = 0
clone3({flags=CLONE_VM|CLONE_VFORK|CLONE_CLEAR_SIGHAND, exit_signal=SIGCHLD, stack=0x7f098ea21000, stack_size=0x9000}, 88) = 3819648
munmap(0x7f098ea21000, 36864) = 0
rt_sigprocmask(SIG_SETMASK, , NULL, 8) = 0
close(4) = 0
fcntl(3, F_SETFD, 0) = 0
fstat(3, {st_mode=S_IFIFO|0600, st_size=0, …}) = 0
read(3, “”, 4096) = 0
— SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=3819648, si_uid=1000, si_status=1, si_utime=0, si_stime=0} —
close(3) = 0
wait4(3819648, [{WIFEXITED(s) && WEXITSTATUS(s) == 1}], 0, NULL) = 3819648
openat(AT_FDCWD, “/nix/store/83fgmh5x3hk5vw3ppr2lq7qsnbzxzxal-my-app-1.0.0/my-app/lib/libapplauncher.so”, O_RDONLY|O_CLOEXEC) = 3
read(3, “\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\0\0\0\0\0\0\0\0”…, 832) = 832
fstat(3, {st_mode=S_IFREG|0555, st_size=1580080, …}) = 0
mmap(NULL, 1167968, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f098e90c000
mprotect(0x7f098ea1d000, 4096, PROT_NONE) = 0
mmap(0x7f098ea1e000, 36864, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x111000) = 0x7f098ea1e000
mmap(0x7f098ea27000, 8800, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f098ea27000
close(3) = 0
openat(AT_FDCWD, “/nix/store/dbcw19dshdwnxdv5q2g6wldj6syyvq7l-glibc-2.39-52/lib/libm.so.6”, O_RDONLY|O_CLOEXEC) = 3
read(3, “\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\0\0\0\0\0\0\0\0”…, 832) = 832
fstat(3, {st_mode=S_IFREG|0555, st_size=1007016, …}) = 0
mmap(NULL, 925720, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f098e829000
mmap(0x7f098e839000, 487424, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x10000) = 0x7f098e839000
mmap(0x7f098e8b0000, 368640, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x87000) = 0x7f098e8b0000
mmap(0x7f098e90a000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xe0000) = 0x7f098e90a000
close(3) = 0
mprotect(0x7f098e90a000, 4096, PROT_READ) = 0
mprotect(0x7f098ea1e000, 32768, PROT_READ) = 0
futex(0x7f098ea2747c, FUTEX_WAKE_PRIVATE, 2147483647) = 0
futex(0x7f098ea27488, FUTEX_WAKE_PRIVATE, 2147483647) = 0
readlink(“/proc/self/exe”, “/nix/store/83fgmh5x3hk5vw3ppr2lq”…, 4096) = 80
pipe2([3, 4], O_CLOEXEC) = 0
prlimit64(0, RLIMIT_NOFILE, NULL, {rlim_cur=1024, rlim_max=5121024}) = 0
prlimit64(0, RLIMIT_NOFILE, NULL, {rlim_cur=1024, rlim_max=512
1024}) = 0
mmap(NULL, 36864, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, -1, 0) = 0x7f098e820000
rt_sigprocmask(SIG_BLOCK, ~, , 8) = 0
clone3({flags=CLONE_VM|CLONE_VFORK|CLONE_CLEAR_SIGHAND, exit_signal=SIGCHLD, stack=0x7f098e820000, stack_size=0x9000}, 88) = 3819650
munmap(0x7f098e820000, 36864) = 0
rt_sigprocmask(SIG_SETMASK, , NULL, 8) = 0
close(4) = 0
fcntl(3, F_SETFD, 0) = 0
fstat(3, {st_mode=S_IFIFO|0600, st_size=0, …}) = 0
read(3, “”, 4096) = 0
— SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=3819650, si_uid=1000, si_status=127, si_utime=0, si_stime=0} —
close(3) = 0
wait4(3819650, [{WIFEXITED(s) && WEXITSTATUS(s) == 127}], 0, NULL) = 3819650
pipe2([3, 4], O_CLOEXEC) = 0
prlimit64(0, RLIMIT_NOFILE, NULL, {rlim_cur=1024, rlim_max=5121024}) = 0
prlimit64(0, RLIMIT_NOFILE, NULL, {rlim_cur=1024, rlim_max=512
1024}) = 0
mmap(NULL, 36864, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, -1, 0) = 0x7f098e820000
rt_sigprocmask(SIG_BLOCK, ~, , 8) = 0
clone3({flags=CLONE_VM|CLONE_VFORK|CLONE_CLEAR_SIGHAND, exit_signal=SIGCHLD, stack=0x7f098e820000, stack_size=0x9000}, 88) = 3819652
munmap(0x7f098e820000, 36864) = 0
rt_sigprocmask(SIG_SETMASK, , NULL, 8) = 0
close(4) = 0
fcntl(3, F_SETFD, 0) = 0
fstat(3, {st_mode=S_IFIFO|0600, st_size=0, …}) = 0
read(3, “”, 4096) = 0
— SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=3819652, si_uid=1000, si_status=1, si_utime=0, si_stime=0} —
close(3) = 0
wait4(3819652, [{WIFEXITED(s) && WEXITSTATUS(s) == 1}], 0, NULL) = 3819652
readlink(“/proc/self/exe”, “/nix/store/83fgmh5x3hk5vw3ppr2lq”…, 4096) = 80
openat(AT_FDCWD, “/nix/store/83fgmh5x3hk5vw3ppr2lq7qsnbzxzxal-my-app-1.0.0/my-app/lib/app/my-app.cfg”, O_RDONLY) = 3
read(3, “[Application]\napp.classpath=$APP”…, 8191) = 6397
read(3, “”, 8191) = 0
close(3) = 0
stat(“/nix/store/83fgmh5x3hk5vw3ppr2lq7qsnbzxzxal-my-app-1.0.0/my-app/lib/runtime/lib/libjli.so”, {st_mode=S_IFREG|0444, st_size=77712, …}) = 0
brk(0x563a663e0000) = 0x563a663e0000
brk(0x563a663dd000) = 0x563a663dd000
readlink(“/proc/self/exe”, “/nix/store/83fgmh5x3hk5vw3ppr2lq”…, 4096) = 80
munmap(0x7f098e90c000, 1167968) = 0
munmap(0x7f098e829000, 925720) = 0
openat(AT_FDCWD, “/nix/store/83fgmh5x3hk5vw3ppr2lq7qsnbzxzxal-my-app-1.0.0/my-app/lib/runtime/lib/libjli.so”, O_RDONLY|O_CLOEXEC) = 3
read(3, “\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\0\0\0\0\0\0\0\0”…, 832) = 832
fstat(3, {st_mode=S_IFREG|0444, st_size=77712, …}) = 0
mmap(NULL, 73616, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f098ea18000
mmap(0x7f098ea27000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xe000) = 0x7f098ea27000
mmap(0x7f098ea29000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x12000) = 0x7f098ea29000
close(3) = 0
openat(AT_FDCWD, “/nix/store/1c2xlmwj9rkf470fkxhqb8d1h45z0wjc-libz-1.2.8.2015.12.26-unstable-2018-03-31/lib/glibc-hwcaps/x86-64-v3/libz.so.1”, O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, “/nix/store/1c2xlmwj9rkf470fkxhqb8d1h45z0wjc-libz-1.2.8.2015.12.26-unstable-2018-03-31/lib/glibc-hwcaps/x86-64-v3/”, 0x7ffc80d6cc60, 0) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, “/nix/store/1c2xlmwj9rkf470fkxhqb8d1h45z0wjc-libz-1.2.8.2015.12.26-unstable-2018-03-31/lib/glibc-hwcaps/x86-64-v2/libz.so.1”, O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, “/nix/store/1c2xlmwj9rkf470fkxhqb8d1h45z0wjc-libz-1.2.8.2015.12.26-unstable-2018-03-31/lib/glibc-hwcaps/x86-64-v2/”, 0x7ffc80d6cc60, 0) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, “/nix/store/1c2xlmwj9rkf470fkxhqb8d1h45z0wjc-libz-1.2.8.2015.12.26-unstable-2018-03-31/lib/libz.so.1”, O_RDONLY|O_CLOEXEC) = 3
read(3, “\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\0\0\0\0\0\0\0\0”…, 832) = 832
fstat(3, {st_mode=S_IFREG|0444, st_size=103576, …}) = 0
mmap(NULL, 94224, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f098ea00000
mmap(0x7f098ea03000, 53248, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x3000) = 0x7f098ea03000
mmap(0x7f098ea10000, 24576, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x10000) = 0x7f098ea10000
mmap(0x7f098ea16000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x16000) = 0x7f098ea16000
close(3) = 0
openat(AT_FDCWD, “/nix/store/1c2xlmwj9rkf470fkxhqb8d1h45z0wjc-libz-1.2.8.2015.12.26-unstable-2018-03-31/lib/libpthread.so.0”, O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, “/nix/store/dbcw19dshdwnxdv5q2g6wldj6syyvq7l-glibc-2.39-52/lib/libpthread.so.0”, O_RDONLY|O_CLOEXEC) = 3
read(3, “\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\0\0\0\0\0\0\0\0”…, 832) = 832
fstat(3, {st_mode=S_IFREG|0555, st_size=16536, …}) = 0
mmap(NULL, 16400, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f098e9fb000
mmap(0x7f098e9fc000, 4096, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1000) = 0x7f098e9fc000
mmap(0x7f098e9fd000, 4096, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2000) = 0x7f098e9fd000
mmap(0x7f098e9fe000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2000) = 0x7f098e9fe000
close(3) = 0
mprotect(0x7f098e9fe000, 4096, PROT_READ) = 0
mprotect(0x7f098ea16000, 4096, PROT_READ) = 0
mprotect(0x7f098ea27000, 4096, PROT_READ) = 0
readlink(“/proc/self/exe”, “/nix/store/83fgmh5x3hk5vw3ppr2lq”…, 4096) = 80
access(“/nix/store/83fgmh5x3hk5vw3ppr2lq7qsnbzxzxal-my-app-1.0.0/my-app/lib/libjava.so”, F_OK) = -1 ENOENT (No such file or directory)
access(“/nix/store/83fgmh5x3hk5vw3ppr2lq7qsnbzxzxal-my-app-1.0.0/my-app/jre/lib/libjava.so”, F_OK) = -1 ENOENT (No such file or directory)
readlink(“/nix”, 0x7ffc80d68580, 1023) = -1 EINVAL (Invalid argument)
readlink(“/nix/store”, 0x7ffc80d68580, 1023) = -1 EINVAL (Invalid argument)
readlink(“/nix/store/83fgmh5x3hk5vw3ppr2lq7qsnbzxzxal-my-app-1.0.0”, 0x7ffc80d68580, 1023) = -1 EINVAL (Invalid argument)
readlink(“/nix/store/83fgmh5x3hk5vw3ppr2lq7qsnbzxzxal-my-app-1.0.0/my-app”, 0x7ffc80d68580, 1023) = -1 EINVAL (Invalid argument)
readlink(“/nix/store/83fgmh5x3hk5vw3ppr2lq7qsnbzxzxal-my-app-1.0.0/my-app/lib”, 0x7ffc80d68580, 1023) = -1 EINVAL (Invalid argument)
readlink(“/nix/store/83fgmh5x3hk5vw3ppr2lq7qsnbzxzxal-my-app-1.0.0/my-app/lib/runtime”, 0x7ffc80d68580, 1023) = -1 EINVAL (Invalid argument)
readlink(“/nix/store/83fgmh5x3hk5vw3ppr2lq7qsnbzxzxal-my-app-1.0.0/my-app/lib/runtime/lib”, 0x7ffc80d68580, 1023) = -1 EINVAL (Invalid argument)
readlink(“/nix/store/83fgmh5x3hk5vw3ppr2lq7qsnbzxzxal-my-app-1.0.0/my-app/lib/runtime/lib/libjli.so”, 0x7ffc80d68580, 1023) = -1 EINVAL (Invalid argument)
stat(“/nix/store/83fgmh5x3hk5vw3ppr2lq7qsnbzxzxal-my-app-1.0.0/my-app/lib/runtime/lib/libjava.so”, {st_mode=S_IFREG|0444, st_size=218896, …}) = 0
openat(AT_FDCWD, “/nix/store/83fgmh5x3hk5vw3ppr2lq7qsnbzxzxal-my-app-1.0.0/my-app/lib/runtime/lib/jvm.cfg”, O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0444, st_size=29, …}) = 0
read(3, “-server KNOWN\n-client IGNORE\n”, 4096) = 29
read(3, “”, 4096) = 0
close(3) = 0
stat(“/nix/store/83fgmh5x3hk5vw3ppr2lq7qsnbzxzxal-my-app-1.0.0/my-app/lib/runtime/lib/server/libjvm.so”, {st_mode=S_IFREG|0444, st_size=22785280, …}) = 0
getgid() = 100
getegid() = 100
getuid() = 1000
geteuid() = 1000
openat(AT_FDCWD, “/nix/store/83fgmh5x3hk5vw3ppr2lq7qsnbzxzxal-my-app-1.0.0/my-app/lib/runtime/lib/server/libjvm.so”, O_RDONLY|O_CLOEXEC) = 3
read(3, “\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\0\0\0\0\0\0\0\0”…, 832) = 832
fstat(3, {st_mode=S_IFREG|0444, st_size=22785280, …}) = 0
mmap(NULL, 19300928, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f098d600000
mmap(0x7f098e727000, 950272, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1126000) = 0x7f098e727000
mmap(0x7f098e80f000, 365120, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f098e80f000
close(3) = 0
openat(AT_FDCWD, “/nix/store/dbcw19dshdwnxdv5q2g6wldj6syyvq7l-glibc-2.39-52/lib/librt.so.1”, O_RDONLY|O_CLOEXEC) = 3
read(3, “\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\0\0\0\0\0\0\0\0”…, 832) = 832
fstat(3, {st_mode=S_IFREG|0555, st_size=16352, …}) = 0
mmap(NULL, 16400, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f098e9f6000
mmap(0x7f098e9f7000, 4096, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1000) = 0x7f098e9f7000
mmap(0x7f098e9f8000, 4096, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2000) = 0x7f098e9f8000
mmap(0x7f098e9f9000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2000) = 0x7f
098e9f9000
close(3) = 0
openat(AT_FDCWD, “/nix/store/dbcw19dshdwnxdv5q2g6wldj6syyvq7l-glibc-2.39-52/lib/libm.so.6”, O_RDONLY|O_CLOEXEC) = 3
read(3, “\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\0\0\0\0\0\0\0\0”…, 832) = 832
fstat(3, {st_mode=S_IFREG|0555, st_size=1007016, …}) = 0
mmap(NULL, 925720, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f098e913000
mmap(0x7f098e923000, 487424, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x10000) = 0x7f098e923000
mmap(0x7f098e99a000, 368640, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x87000) = 0x7f098e99a000
mmap(0x7f098e9f4000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xe0000) = 0x7f098e9f4000
close(3) = 0
mprotect(0x7f098e9f4000, 4096, PROT_READ) = 0
mprotect(0x7f098e9f9000, 4096, PROT_READ) = 0
mprotect(0x7f098e727000, 741376, PROT_READ) = 0
getpid() = 3819645
getpid() = 3819645
rt_sigaction(SIGRT_1, {sa_handler=0x7f098eab84c0, sa_mask=, sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x7f098ea6cf30}, NULL, 8) = 0
rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0
mmap(NULL, 1048576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, -1, 0) = 0x7f098d500000
rt_sigprocmask(SIG_BLOCK, ~, , 8) = 0
clone3({flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, child_tid=0x7f098d5ff990, parent_tid=0x7f098d5ff990, exit_signal=0, stack=0x7f098d500000, stack_size=0xfef80, tls=0x7f098d5ff6c0} => {parent_tid=[3819654]}, 88) = 3819654
rt_sigprocmask(SIG_SETMASK, , NULL, 8) = 0
futex(0x7f098d5ff990, FUTEX_WAIT_BITSET|FUTEX_CLOCK_REALTIME, 3819654, NULL, FUTEX_BITSET_MATCH_ANY[0.001s][warning][pagesize] UseLargePages disabled, no large pages configured and available on the system.
[0.001s][warning][stringdedup] String Deduplication disabled: not supported by selected GC

A fatal error has been detected by the Java Runtime Environment:

SIGSEGV (0xb) at pc=0x0000000000000000, pid=3819645, tid=3819654

JRE version: (17.0.1+12) (build )

Java VM: OpenJDK 64-Bit Server VM (17.0.1+12-39, mixed mode, tiered, compressed class ptrs, z gc, linux-amd64)

Problematic frame:

C 0x0000000000000000

Core dump will be written. Default location: Core dumps may be processed with “/nix/store/nb1q59h4sx5qjvhxx679d3qjhlgs3v74-systemd/lib/systemd/systemd-coredump %P %u %g %s %t %c %h” (or dumping to /nix/store/83fgmh5x3hk5vw3ppr2lq7qsnbzxzxal-my-app-1.0.0/my-app/bin/core.3819645)

An error report file with more information is saved as:

/tmp/hs_err_pid3819645.log

) = ?
+++ killed by SIGABRT (core dumped) +++
[1] 3819642 IOT instruction (core dumped) strace ./my-app

ldd:
linux-vdso.so.1 (0x00007ffcef553000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007ed7dce27000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007ed7dca00000)
/lib64/ld-linux-x86-64.so.2 (0x00007ed7dce54000)

So is it possible to run this on nixos? how? :pray:

Is this software not packaged for Nix?

exactly, only deb and rpm (

If it’s open source you might be better off trying to package it for Nix yourself.

There’s GitHub - ngi-nix/debnix: Mapping library names from debian to nix maintained by @a-kenji which may be worth trying. (I haven’t used it, would like to know how well it works!)