Open lwrage opened 1 year ago
@lwrage you need a kernel with CONFIG_AUDIT
enabled. The WSL kernel has # CONFIG_AUDIT is not set
:
The latest WSL2 kernel (https://github.com/microsoft/WSL2-Linux-Kernel/releases/tag/linux-msft-wsl-6.1.21.2) has auditing support enabled, however NuSMV
still crashes:
socket(AF_NETLINK, SOCK_RAW, NETLINK_AUDIT) = 3
sendmsg(3, {msg_name={sa_family=AF_NETLINK, nl_pad=0xac, nl_pid=0, nl_groups=00000000}, msg_namelen=12, msg_iov=[{iov_base={nlmsg_len=21, nlmsg_type=0x464 /* NLMSG_??? */, nlmsg_flags=NLM_F_REQUEST, nlmsg_seq=0, nlmsg_pid=0}, iov_len=16}, {iov_base="\x68\x65\x6c\x70\x00", iov_len=5}], msg_iovlen=2, msg_controllen=0, msg_flags=0}, 0) = 21
close(3) = 0
--- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0xffffffffff600400} ---
+++ killed by SIGSEGV +++
and this is from dmesg
output:
[Tue May 9 21:14:22 2023] NuSMV[712] vsyscall attempted with vsyscall=none ip:ffffffffff600400 cs:33 sp:7ffe79d07978 ax:ffffffffff600400 si:190 di:0
[Tue May 9 21:14:22 2023] NuSMV[712]: segfault at ffffffffff600400 ip ffffffffff600400 sp 00007ffe79d07978 error 15 likely on CPU 3 (core 1, socket 0)
[Tue May 9 21:14:22 2023] Code: Unable to access opcode bytes at 0xffffffffff6003d6.
[Tue May 9 21:14:22 2023] potentially unexpected fatal signal 11.
[Tue May 9 21:14:22 2023] CPU: 3 PID: 712 Comm: NuSMV Not tainted 6.1.21.2-wsl2-custom #2
[Tue May 9 21:14:22 2023] RIP: 0033:0xffffffffff600400
[Tue May 9 21:14:22 2023] Code: Unable to access opcode bytes at 0xffffffffff6003d6.
[Tue May 9 21:14:22 2023] RSP: 002b:00007ffe79d07978 EFLAGS: 00010202
[Tue May 9 21:14:22 2023] RAX: ffffffffff600400 RBX: 00007ffe79d07990 RCX: 00000000000001a1
[Tue May 9 21:14:22 2023] RDX: 00000000027ba680 RSI: 0000000000000190 RDI: 0000000000000000
[Tue May 9 21:14:22 2023] RBP: 00000000027a7fc0 R08: 0000000000aed788 R09: 0000000000000001
[Tue May 9 21:14:22 2023] R10: 0000000000000190 R11: 0000000000000246 R12: 000000000279bc70
[Tue May 9 21:14:22 2023] R13: 0000000000000001 R14: 0000000002798120 R15: 00007ffe79d07b90
[Tue May 9 21:14:22 2023] FS: 0000000002756880 GS: 0000000000000000
Time to invoke gdb
!
Hi @lwrage I am having the exact same problem. did you manage to fix it?
Windows Version
Microsoft Windows [Version 10.0.22621.1555]
WSL Version
WSL version: 1.2.5.0 Kernel version: 5.15.90.1 WSLg version: 1.0.51 MSRDC version: 1.2.3770 Direct3D version: 1.608.2-61064218 DXCore version: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp Windows version: 10.0.22621.1555
Are you using WSL 1 or WSL 2?
Kernel Version
5.15.90.1-microsoft-standard-WSL2
Distro Version
Ubuntu 22.04
Other Software
NuSMV 2.6.0 64bit, downloaded from https://nusmv.fbk.eu/distrib/NuSMV-2.6.0-linux64.tar.gz
Repro Steps
extract zip file,
cd NuSMV-2.6.0-Linux/bin
directory run the program./NuSMV -int
at the propmpt typehelp
, then EnterExpected Behavior
display a list of available NuSMV commands
Actual Behavior
Segmentation fault
Diagnostic Logs
Running the above steps with
strace NuSMV -int
contains the error:socket(AF_NETLINK, SOCK_RAW, NETLINK_AUDIT) = -1 EPROTONOSUPPORT (Protocol not supported)
Full output: