SIGSEGV crashing server

I am getting strange SIGSEGV crashes lately and it mostly happens close to server start, at server stop and sometimes randomly during operations.

This is one of the crashes:

/proc/self/maps:
40820000-40830000 rwxp 00000000 00:00 0 
40f2a000-412f2000 rwxp 00000000 00:00 0 
413c2000-41482000 rwxp 00000000 00:00 0 
1f4f00000000-1f4f00003000 rw-p 00000000 00:00 0 
1f4f00003000-1f4f00004000 ---p 00000000 00:00 0 
1f4f00004000-1f4f00014000 r-xp 00000000 00:00 0 
1f4f00014000-1f4f0003f000 ---p 00000000 00:00 0 
1f4f0003f000-1f4f00040000 ---p 00000000 00:00 0 
1f4f00040000-1f4f00043000 rw-p 00000000 00:00 0 
1f4f00043000-1f4f00044000 ---p 00000000 00:00 0 
1f4f00044000-1f4f0007f000 r-xp 00000000 00:00 0 
1f4f0007f000-1f4f00080000 ---p 00000000 00:00 0 
1f4f00080000-1f4f00083000 rw-p 00000000 00:00 0 
1f4f00083000-1f4f00084000 ---p 00000000 00:00 0 
1f4f00084000-1f4f000bf000 r-xp 00000000 00:00 0 
1f4f000bf000-1f4f08000000 ---p 00000000 00:00 0 
1f4f08000000-1f4f08021000 r--p 00000000 00:00 0 
1f4f08021000-1f4f080c0000 ---p 00000000 00:00 0 
1f4f080c0000-1f4f080cd000 rw-p 00000000 00:00 0 
1f4f080cd000-1f4f08100000 ---p 00000000 00:00 0 
1f4f08100000-1f4f08103000 rw-p 00000000 00:00 0
1f4f08103000-1f4f08140000 ---p 00000000 00:00 0 
1f4f08140000-1f4f08263000 rw-p 00000000 00:00 0 
1f4f08263000-1f4f08280000 ---p 00000000 00:00 0 
1f4f08280000-1f4f083c0000 rw-p 00000000 00:00 0 
Memory around native instruction pointer (0x7f1149017571):
0x7f1149017561  d0 01 00 00 48 8b a9 d8 01 00 00 48 85 ed 74 47  ....H......H..tG
0x7f1149017571  f0 83 45 08 01 49 89 04 24 49 89 6c 24 08 f0 83  ..E..I..$I.l$...
0x7f1149017581  45 08 01 4d 8d 74 24 08 f0 83 6d 08 01 75 1b 48  E..M.t$...m..u.H
0x7f1149017591  8b 45 00 48 89 ef ff 50 10 f0 83 6d 0c 01 75 0a  .E.H...P...m..u.

=================================================================
Got a SIGSEGV while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries 
used by your application.
=================================================================
[    script:Keyinator] [+]⠀⠀⠀<Player Name>
> quit "Server Restart (Crash erkannt)."

I have replaced one of the names by “”. Before the message there were only usual prints (server joins, leaves and player messages). After that there was the normal start up procedure.

This is the server information:

  • OS: Ubuntu 20.04.3 LTS
  • FXServer 5182

Is there anything I can do to debug this issue? (Maybe show a more detailed traceback)?

Here are two files found in /proc/<pid>/maps which have been created by fivem and have been created close to the crash:
First one:

5555568a7000-5555568a8000 ---p 00000000 00:00 0                          [heap]
5555568a8000-5555568a9000 rw-p 00000000 00:00 0                          [heap]
7fc1abfac000-7fc1abfae000 ---p 00000000 00:00 0
7fc1abfae000-7fc1ac3c2000 rw-p 00000000 00:00 0
7fc1ac3c2000-7fc1ac3c5000 r--p 00000000 08:01 261878                     /home/fivem/alpine/usr/lib/libgcc_s.so.1
7fc1ac3c5000-7fc1ac3d6000 r-xp 00003000 08:01 261878                     /home/fivem/alpine/usr/lib/libgcc_s.so.1
7fc1ac3d6000-7fc1ac3d9000 r--p 00014000 08:01 261878                     /home/fivem/alpine/usr/lib/libgcc_s.so.1
7fc1ac3d9000-7fc1ac3da000 r--p 00016000 08:01 261878                     /home/fivem/alpine/usr/lib/libgcc_s.so.1
7fc1ac3da000-7fc1ac3db000 rw-p 00017000 08:01 261878                     /home/fivem/alpine/usr/lib/libgcc_s.so.1
7fc1ac3db000-7fc1ac495000 r--p 00000000 08:01 261822                     /home/fivem/alpine/usr/lib/libstdc++.so.6.0.29
7fc1ac495000-7fc1ac538000 r-xp 000ba000 08:01 261822                     /home/fivem/alpine/usr/lib/libstdc++.so.6.0.29
7fc1ac538000-7fc1ac5a0000 r--p 0015d000 08:01 261822                     /home/fivem/alpine/usr/lib/libstdc++.so.6.0.29
7fc1ac5a0000-7fc1ac5af000 r--p 001c4000 08:01 261822                     /home/fivem/alpine/usr/lib/libstdc++.so.6.0.29
7fc1ac5af000-7fc1ac5b0000 rw-p 001d3000 08:01 261822                     /home/fivem/alpine/usr/lib/libstdc++.so.6.0.29
7fc1ac5b0000-7fc1ac5b3000 rw-p 00000000 00:00 0
7fc1ac5b3000-7fc1ac630000 r--p 00000000 08:01 262505                     /home/fivem/alpine/opt/cfx-server/libCoreRT.so
7fc1ac630000-7fc1ac6ae000 r-xp 0007c000 08:01 262505                     /home/fivem/alpine/opt/cfx-server/libCoreRT.so
7fc1ac6ae000-7fc1ac6b3000 r--p 000f9000 08:01 262505                     /home/fivem/alpine/opt/cfx-server/libCoreRT.so
7fc1ac6b3000-7fc1ac6c8000 rw-p 000fd000 08:01 262505                     /home/fivem/alpine/opt/cfx-server/libCoreRT.so
7fc1ac6c8000-7fc1ac6c9000 rw-p 00000000 00:00 0
7fc1ac6c9000-7fc1ac6e2000 r--p 00000000 08:01 262466                     /home/fivem/alpine/opt/cfx-server/FXServer
7fc1ac6e2000-7fc1ac71d000 r-xp 00018000 08:01 262466                     /home/fivem/alpine/opt/cfx-server/FXServer
7fc1ac71d000-7fc1ac71f000 r--p 00052000 08:01 262466                     /home/fivem/alpine/opt/cfx-server/FXServer
7fc1ac71f000-7fc1ac720000 rw-p 00053000 08:01 262466                     /home/fivem/alpine/opt/cfx-server/FXServer
7fc1ac720000-7fc1ac721000 rw-p 00000000 00:00 0
7fc1ac721000-7fc1ac736000 r--p 00000000 08:01 262511                     /home/fivem/alpine/opt/cfx-server/ld-musl-x86_64.so.1
7fc1ac736000-7fc1ac77e000 r-xp 00015000 08:01 262511                     /home/fivem/alpine/opt/cfx-server/ld-musl-x86_64.so.1
7fc1ac77e000-7fc1ac7b4000 r--p 0005d000 08:01 262511                     /home/fivem/alpine/opt/cfx-server/ld-musl-x86_64.so.1
7fc1ac7b4000-7fc1ac7b5000 r--p 00092000 08:01 262511                     /home/fivem/alpine/opt/cfx-server/ld-musl-x86_64.so.1
7fc1ac7b5000-7fc1ac7b6000 rw-p 00093000 08:01 262511                     /home/fivem/alpine/opt/cfx-server/ld-musl-x86_64.so.1
7fc1ac7b6000-7fc1ac7b9000 rw-p 00000000 00:00 0
7fffb238f000-7fffb23b0000 rw-p 00000000 00:00 0                          [stack]
7fffb23f7000-7fffb23fa000 r--p 00000000 00:00 0                          [vvar]
7fffb23fa000-7fffb23fb000 r-xp 00000000 00:00 0                          [vdso]
ffffffffff600000-ffffffffff601000 --xp 00000000 00:00 0                  [vsyscall]

Second one:

7f738e2f9000-7f738e2fa000 rw-p 00095000 08:01 262481                     /home/fivem/alpine/opt/cfx-server/libnet-http-server.so
7f738e2fa000-7f738e2fb000 rw-p 00000000 00:00 0
7f738e2fb000-7f738e311000 r--p 00000000 08:01 262923                     /home/fivem/alpine/opt/cfx-server/libcitizen-server-instance.so
7f738e311000-7f738e334000 r-xp 00015000 08:01 262923                     /home/fivem/alpine/opt/cfx-server/libcitizen-server-instance.so
7f738e334000-7f738e336000 r--p 00037000 08:01 262923                     /home/fivem/alpine/opt/cfx-server/libcitizen-server-instance.so
7f738e336000-7f738e337000 rw-p 00038000 08:01 262923                     /home/fivem/alpine/opt/cfx-server/libcitizen-server-instance.so
7f738e337000-7f738e339000 rw-p 00000000 00:00 0
7f738e339000-7f738e537000 r--p 00000000 08:01 262484                     /home/fivem/alpine/opt/cfx-server/libbotan.so
7f738e537000-7f738e8de000 r-xp 001fd000 08:01 262484                     /home/fivem/alpine/opt/cfx-server/libbotan.so
7f738e8de000-7f738e905000 r--p 005a3000 08:01 262484                     /home/fivem/alpine/opt/cfx-server/libbotan.so
7f738e905000-7f738e906000 rw-p 005c9000 08:01 262484                     /home/fivem/alpine/opt/cfx-server/libbotan.so
7f738e906000-7f738e90f000 rw-p 00000000 00:00 0
7f738e90f000-7f738e920000 r--p 00000000 08:01 262490                     /home/fivem/alpine/opt/cfx-server/liblibuv.so
7f738e920000-7f738e93a000 r-xp 00010000 08:01 262490                     /home/fivem/alpine/opt/cfx-server/liblibuv.so
7f738e93a000-7f738e93c000 r--p 00029000 08:01 262490                     /home/fivem/alpine/opt/cfx-server/liblibuv.so
7f738e93c000-7f738e93d000 rw-p 0002a000 08:01 262490                     /home/fivem/alpine/opt/cfx-server/liblibuv.so
7f738e93d000-7f738e9e1000 r--p 00000000 08:01 262935                     /home/fivem/alpine/opt/cfx-server/libnet-tcp-server.so
7f738e9e1000-7f738ea6b000 r-xp 000a3000 08:01 262935                     /home/fivem/alpine/opt/cfx-server/libnet-tcp-server.so
7f738ea6b000-7f738ea73000 r--p 0012c000 08:01 262935                     /home/fivem/alpine/opt/cfx-server/libnet-tcp-server.so
7f738ea73000-7f738ea88000 rw-p 00133000 08:01 262935                     /home/fivem/alpine/opt/cfx-server/libnet-tcp-server.so
7f738ea88000-7f738ea89000 rw-p 00000000 00:00 0
7f738ea89000-7f738eaa5000 r--p 00000000 08:01 262515                     /home/fivem/alpine/opt/cfx-server/libnet-base.so
7f738eaa5000-7f738eacd000 r-xp 0001b000 08:01 262515                     /home/fivem/alpine/opt/cfx-server/libnet-base.so
7f738eacd000-7f738eacf000 r--p 00042000 08:01 262515                     /home/fivem/alpine/opt/cfx-server/libnet-base.so
7f738eacf000-7f738ead0000 rw-p 00043000 08:01 262515                     /home/fivem/alpine/opt/cfx-server/libnet-base.so
7f738ead0000-7f738ec74000 rw-p 00000000 00:00 0
7f738ec74000-7f738ec7d000 rw-p 00000000 00:00 0
7f738ec7d000-7f738ec7f000 ---p 00000000 00:00 0
7f738ec7f000-7f738f0d9000 rw-p 00000000 00:00 0
7f738f0d9000-7f738f0dc000 r--p 00000000 08:01 261878                     /home/fivem/alpine/usr/lib/libgcc_s.so.1
7f738f0dc000-7f738f0ed000 r-xp 00003000 08:01 261878                     /home/fivem/alpine/usr/lib/libgcc_s.so.1
7f738f0ed000-7f738f0f0000 r--p 00014000 08:01 261878                     /home/fivem/alpine/usr/lib/libgcc_s.so.1
7f738f0f0000-7f738f0f1000 r--p 00016000 08:01 261878                     /home/fivem/alpine/usr/lib/libgcc_s.so.1
7f738f0f1000-7f738f0f2000 rw-p 00017000 08:01 261878                     /home/fivem/alpine/usr/lib/libgcc_s.so.1
7f738f0f2000-7f738f1ac000 r--p 00000000 08:01 261822                     /home/fivem/alpine/usr/lib/libstdc++.so.6.0.29
7f738f1ac000-7f738f24f000 r-xp 000ba000 08:01 261822                     /home/fivem/alpine/usr/lib/libstdc++.so.6.0.29
7f738f24f000-7f738f2b7000 r--p 0015d000 08:01 261822                     /home/fivem/alpine/usr/lib/libstdc++.so.6.0.29
7f738f2b7000-7f738f2c6000 r--p 001c4000 08:01 261822                     /home/fivem/alpine/usr/lib/libstdc++.so.6.0.29
7f738f2c6000-7f738f2c7000 rw-p 001d3000 08:01 261822                     /home/fivem/alpine/usr/lib/libstdc++.so.6.0.29
7f738f2c7000-7f738f2ca000 rw-p 00000000 00:00 0
7f738f2ca000-7f738f347000 r--p 00000000 08:01 262505                     /home/fivem/alpine/opt/cfx-server/libCoreRT.so
7f738f347000-7f738f3c5000 r-xp 0007c000 08:01 262505                     /home/fivem/alpine/opt/cfx-server/libCoreRT.so
7f738f3c5000-7f738f3ca000 r--p 000f9000 08:01 262505                     /home/fivem/alpine/opt/cfx-server/libCoreRT.so
7f738f3ca000-7f738f3df000 rw-p 000fd000 08:01 262505                     /home/fivem/alpine/opt/cfx-server/libCoreRT.so
7f738f3df000-7f738f3e0000 rw-p 00000000 00:00 0
7f738f3e0000-7f738f3f9000 r--p 00000000 08:01 262466                     /home/fivem/alpine/opt/cfx-server/FXServer
7f738f3f9000-7f738f434000 r-xp 00018000 08:01 262466                     /home/fivem/alpine/opt/cfx-server/FXServer
7f738f434000-7f738f436000 r--p 00052000 08:01 262466                     /home/fivem/alpine/opt/cfx-server/FXServer
7f738f436000-7f738f437000 rw-p 00053000 08:01 262466                     /home/fivem/alpine/opt/cfx-server/FXServer
7f738f437000-7f738f438000 rw-p 00000000 00:00 0
7f738f438000-7f738f44d000 r--p 00000000 08:01 262511                     /home/fivem/alpine/opt/cfx-server/ld-musl-x86_64.so.1
7f738f44d000-7f738f495000 r-xp 00015000 08:01 262511                     /home/fivem/alpine/opt/cfx-server/ld-musl-x86_64.so.1
7f738f495000-7f738f4cb000 r--p 0005d000 08:01 262511                     /home/fivem/alpine/opt/cfx-server/ld-musl-x86_64.so.1
7f738f4cb000-7f738f4cd000 rw-p 00092000 08:01 262511                     /home/fivem/alpine/opt/cfx-server/ld-musl-x86_64.so.1
7f738f4cd000-7f738f4d0000 rw-p 00000000 00:00 0
7ffc97e36000-7ffc97e37000 rw-p 00000000 00:00 0
7ffc97e37000-7ffc97e3f000 ---p 00000000 00:00 0
7ffc97e3f000-7ffc97e57000 rw-p 00000000 00:00 0                          [stack]
7ffc97f22000-7ffc97f25000 r--p 00000000 00:00 0                          [vvar]
7ffc97f25000-7ffc97f26000 r-xp 00000000 00:00 0                          [vdso]
ffffffffff600000-ffffffffff601000 --xp 00000000 00:00 0                  [vsyscall]