Linux Users

cancel
Showing results forΒ 
Search instead forΒ 
Did you mean:Β 

/dev/nipalk not a character device - 2025Q3 - Kernel 6.14

I am running kernel version 6.14 with ni-daqmx, ni-kal, ni-pal, etc. installed from the 2025Q3 ni-rhel9-driver-stream sources (having installed ni-rhel9-drivers-stream)

I have added iommu=pt to my kernel args. Initially the kernel modules weren't loading because this kernel was configured with ibt by default. I also added ibt=off to the kernel args to get at the ni kernel modules that I believe are needed to load. 

Now that I have the core modules loading: 
lsmod | egrep '(^nipalk|^nikal)'
nipalk 1314816 1 NiViPciK
nikal 204800 1 nipalk

I still get a core dump when calling nidaqmxconfig --find-net-devs --verbose: 

Spoiler

nidaqmxconfig --find-net-devs --verbose

libnipalu.so failed to initialize
Verify that nipalk.ko is built and loaded.
[1] 814850 IOT instruction (core dumped) nidaqmxconfig --find-net-devs --verbose


Looking in the journal after running above: 

Spoiler
Sep 18 12:24:14 justin-zbpower nidaqmxconfig[940495]: [nipalu] Warning: /home/rfmibuild/myagent/_work/_r/26/src/platform_services/legacy/nipald/nipal/source/lib/linux/linLoadKern.cpp:168 - libKernelDriverLoad: Failed to open nipalk, errno: 13
Sep 18 12:24:14 justin-zbpower audit[940495]: ANOM_ABEND auid=1000 uid=1000 gid=1000 ses=4 subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 pid=940495 comm="nidaqmxconfig" exe="/usr/bin/nidaqmxconfig" sig=6 res=1
Sep 18 12:24:14 justin-zbpower nidaqmxconfig[940495]: [nipalu] Warning: /home/rfmibuild/myagent/_work/_r/26/src/platform_services/legacy/nipald/nipal/source/initcln/initcln.cpp:147 - Posix: Init kInitClnPackage: kernelDriver: failed! status=-50204
Sep 18 12:24:14 justin-zbpower nidaqmxconfig[940495]: [nipalu] Warning: /home/rfmibuild/myagent/_work/_r/26/src/platform_services/legacy/nipald/nipal/source/package/posix/ulibEntry.cpp:185 - initialize: unable to load NI-PAL. status=-50204
Sep 18 12:24:14 justin-zbpower audit: BPF prog-id=1319 op=LOAD
Sep 18 12:24:14 justin-zbpower audit: BPF prog-id=1320 op=LOAD
Sep 18 12:24:14 justin-zbpower audit: BPF prog-id=1321 op=LOAD
Sep 18 12:24:14 justin-zbpower systemd[1]: Started systemd-coredump@15-940506-0.service - Process Core Dump (PID 940506/UID 0).
Sep 18 12:24:14 justin-zbpower audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=systemd-coredump@15-940506-0 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Sep 18 12:24:14 justin-zbpower systemd-coredump[940516]: [πŸ‘•] Process 940495 (nidaqmxconfig) of user 1000 dumped core.

Module libzstd.so.1 from rpm zstd-1.5.7-1.fc40.x86_64
Module liblzma.so.5 from rpm xz-5.8.1-2.fc40.x86_64
Module liblz4.so.1 from rpm lz4-1.9.4-6.fc40.x86_64
Module libcap.so.2 from rpm libcap-2.69-8.fc40.x86_64
Module libsystemd.so.0 from rpm systemd-255.18-1.fc40.x86_64
Module libexpat.so.1 from rpm expat-2.7.1-1.fc40.x86_64
Module libdbus-1.so.3 from rpm dbus-1.14.10-3.fc40.x86_64
Module libavahi-common.so.3 from rpm avahi-0.8-26.fc40.x86_64
Module libavahi-client.so.3 from rpm avahi-0.8-26.fc40.x86_64
Stack trace of thread 940495:
#0 0x00007fc70325a034 __pthread_kill_implementation (libc.so.6 + 0x9a034)
#1 0x00007fc703200f1e raise (libc.so.6 + 0x40f1e)
#2 0x00007fc7031e8902 abort (libc.so.6 + 0x28902)
#3 0x00007fc700e76846 n/a (libnipalu.so.1 + 0x76846)
#4 0x00007fc700e25c00 n/a (libnipalu.so.1 + 0x25c00)
#5 0x00007fc70352b437 call_init (ld-linux-x86-64.so.2 + 0x5437)
#6 0x00007fc70352b52d _dl_init (ld-linux-x86-64.so.2 + 0x552d)
#7 0x00007fc7035431e0 _dl_start_user (ld-linux-x86-64.so.2 + 0x1d1e0)
ELF object binary architecture: AMD x86-64

If I run with strace (and greatly truncate the trace):

Spoiler
828910 openat(AT_FDCWD, "/dev/nipalk", O_RDWR|O_NONBLOCK) = 6
828910 ioctl(6, _IOC(_IOC_READ|_IOC_WRITE, 0xd5, 0x1, 0x18), 0x7ffe3114c300) = -1 ENOTTY (Inappropriate ioctl for device)
828910 close(6) = 0
828910 openat(AT_FDCWD, "/etc/localtime", O_RDONLY|O_CLOEXEC) = 6
828910 fstat(6, {st_mode=S_IFREG|0644, st_size=360, ...}) = 0
828910 fstat(6, {st_mode=S_IFREG|0644, st_size=360, ...}) = 0
828910 read(6, "TZif2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\5\0\0\0\5\0\0\0\0\0\0\0\v\0\0\0\5\0\0\0\20\200\0\0\0\236\246:\220\237\273\7\200\240\206\34\220\241\232\351\200\313\211\f\220\317\27\337\34\317\217\345\254\320\201\32\34\372\370u\20\373\350X\0\4\1\2\1\2\3\2\3\2\1\2\377\377\226\356\0\0\377\377\253\240\1\4\377\377\235\220\0\10\377\377\253\240\1\f\377\377\235\220\0\10LMT\0MDT\0MST\0MWT\0\0\0\0\0\1\0\0\0\0\1TZif2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\5\0\0\0\5\0\0\0\0\0\0\0\v\0\0\0\5\0\0\0\20\377"..., 4096) = 360
828910 lseek(6, -205, SEEK_CUR) = 155
828910 read(6, "TZif2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\5\0\0\0\5\0\0\0\0\0\0\0\v\0\0\0\5\0\0\0\20\377\377\377\377^\4\f\260\377\377\377\377\236\246:\220\377\377\377\377\237\273\7\200\377\377\377\377\240\206\34\220\377\377\377\377\241\232\351\200\377\377\377\377\313\211\f\220\377\377\377\377\317\27\337\34\377\377\377\377\317\217\345\254\377\377\377\377\320\201\32\34\377\377\377\377\372\370u\20\377\377\377\377\373\350X\0\4\1\2\1\2\3\2\3\2\1\2\377\377\226\356\0\0\377\377\253\240\1\4\377\377\235\220\0\10\377\377\253\240\1\f\377\377\235\220\0\10LMT\0MDT\0MST\0MWT\0\0\0\0\0\1\0\0\0\0\1\n"..., 4096) = 205
828910 close(6) = 0
828910 socket(AF_UNIX, SOCK_DGRAM|SOCK_CLOEXEC, 0) = 6
828910 connect(6, {sa_family=AF_UNIX, sun_path="/dev/log"}, 110) = 0
828910 sendto(6, "<12>Sep 18 12:22:55 nidaqmxconfig: [nipalu] Warning: /home/rfmibuild/myagent/_work/_r/26/src/platform_services/legacy/nipald/nipal/source/lib/linux/linLoadKern.cpp:97 - libKernelDriverInit: Failure l"..., 236, MSG_NOSIGNAL, NULL, 0) = 236
828910 sendto(6, "<12>Sep 18 12:22:55 nidaqmxconfig: [nipalu] Warning: /home/rfmibuild/myagent/_work/_r/26/src/platform_services/legacy/nipald/nipal/source/initcln/initcln.cpp:147 - Posix: Init kInitClnPackage: kernel"..., 230, MSG_NOSIGNAL, NULL, 0) = 230
828910 munmap(0x7fbce45e5000, 16680) = 0
828910 fcntl(5, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
828910 close(5) = 0
828910 fcntl(4, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
828910 fcntl(3, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
828910 close(3) = 0
828910 close(4) = 0
828910 write(2, "libnipalu.so failed to initialize\n", 34) = 34
828910 write(2, "Verify that nipalk.ko is built and loaded.\n", 43) = 43
828910 sendto(6, "<12>Sep 18 12:22:55 nidaqmxconfig: [nipalu] Warning: /home/rfmibuild/myagent/_work/_r/26/src/platform_services/legacy/nipald/nipal/source/package/posix/ulibEntry.cpp:185 - initialize: unable to load "..., 222, MSG_NOSIGNAL, NULL, 0) = 222
828910 rt_sigprocmask(SIG_UNBLOCK, [ABRT], NULL, 😎 = 0
828910 gettid() = 828910
828910 getpid() = 828910
828910 tgkill(828910, 828910, SIGABRT) = 0
828910 --- SIGABRT {si_signo=SIGABRT, si_code=SI_TKILL, si_pid=828910, si_uid=0} ---
828910 +++ killed by SIGABRT (core dumped) +++

There at: 
828910 openat(AT_FDCWD, "/dev/nipalk", O_RDWR|O_NONBLOCK) = 6
828910 ioctl(6, _IOC(_IOC_READ|_IOC_WRITE, 0xd5, 0x1, 0x18), 0x7ffe3114c300) = -1 ENOTTY (Inappropriate ioctl for device)

Indeed /dev/nipalk is not a character device. 
ls -lt /dev/nipalk
-rw-r--r--. 1 root root 18752 Sep 18 12:22 /dev/nipal

nipal.service is up 

Is the segfault when enumerating network devices related to this? Is this a known issue?






0 Kudos
Message 1 of 1
(53 Views)