[Nut-upsuser] Generic UPS driver
Ariel Wainer
ari at ariwainer.com.ar
Thu Jan 16 21:51:30 UTC 2014
One small comment:
When the driver has no permission to access the device, it exits with a
segmentation fault, it would be nice to have a more informative error.
I'm not really sure if the issue is speciffic to this driver or is it
general.
I attached the output of an strace with the driver crashing.
Best regards.
-------------- next part --------------
execve("./nutdrv_atcl_usb", ["./nutdrv_atcl_usb", "-a", "ups", "-DDD", "-u", "nobody"], [/* 27 vars */]) = 0
brk(0) = 0x1758000
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fa313f8f000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=171006, ...}) = 0
mmap(NULL, 171006, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fa313f65000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/libusb-0.1.so.4", 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\0000\27\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=30856, ...}) = 0
mmap(NULL, 2131304, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fa313b66000
mprotect(0x7fa313b6d000, 2093056, PROT_NONE) = 0
mmap(0x7fa313d6c000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x6000) = 0x7fa313d6c000
mmap(0x7fa313d6e000, 1384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7fa313d6e000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/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\360l\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=135757, ...}) = 0
mmap(NULL, 2212936, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fa313949000
mprotect(0x7fa313960000, 2097152, PROT_NONE) = 0
mmap(0x7fa313b60000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x17000) = 0x7fa313b60000
mmap(0x7fa313b62000, 13384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7fa313b62000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/libc.so.6", 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\360\36\2\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=1853400, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fa313f64000
mmap(NULL, 3961912, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fa313581000
mprotect(0x7fa31373e000, 2097152, PROT_NONE) = 0
mmap(0x7fa31393e000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1bd000) = 0x7fa31393e000
mmap(0x7fa313944000, 17464, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7fa313944000
close(3) = 0
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fa313f62000
arch_prctl(ARCH_SET_FS, 0x7fa313f62740) = 0
mprotect(0x7fa31393e000, 16384, PROT_READ) = 0
mprotect(0x7fa313b60000, 4096, PROT_READ) = 0
mprotect(0x7fa313d6c000, 4096, PROT_READ) = 0
mprotect(0x60c000, 4096, PROT_READ) = 0
mprotect(0x7fa313f91000, 4096, PROT_READ) = 0
munmap(0x7fa313f65000, 171006) = 0
set_tid_address(0x7fa313f62a10) = 5094
set_robust_list(0x7fa313f62a20, 24) = 0
futex(0x7fff2c4c06bc, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 1, NULL, 7fa313f62740) = -1 EAGAIN (Resource temporarily unavailable)
rt_sigaction(SIGRTMIN, {0x7fa31394f7e0, [], SA_RESTORER|SA_SIGINFO, 0x7fa313958bb0}, NULL, 8) = 0
rt_sigaction(SIGRT_1, {0x7fa31394f860, [], SA_RESTORER|SA_RESTART|SA_SIGINFO, 0x7fa313958bb0}, NULL, 8) = 0
rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0
getrlimit(RLIMIT_STACK, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0
brk(0) = 0x1758000
brk(0x1779000) = 0x1779000
socket(PF_LOCAL, SOCK_DGRAM|SOCK_CLOEXEC, 0) = 3
connect(3, {sa_family=AF_LOCAL, sun_path="/dev/log"}, 110) = 0
fstat(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 5), ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fa313f8e000
write(1, "Network UPS Tools - 'ATCL FOR UP"..., 78) = 78
write(1, "Warning: This is an experimental"..., 41) = 41
write(1, "Some features may not function c"..., 42) = 42
write(1, "\n", 1) = 1
open("/usr/local/ups/etc/ups.conf", O_RDONLY) = 4
fstat(4, {st_mode=S_IFREG|0644, st_size=3751, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fa313f8d000
read(4, "# Network UPS Tools: example ups"..., 4096) = 3751
read(4, "", 4096) = 0
close(4) = 0
munmap(0x7fa313f8d000, 4096) = 0
write(2, " 0.000000\t", 12) = 12
write(2, "debug level is '3'\n", 19) = 19
socket(PF_LOCAL, SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOCK, 0) = 4
connect(4, {sa_family=AF_LOCAL, sun_path="/var/run/nscd/socket"}, 110) = -1 ENOENT (No such file or directory)
close(4) = 0
socket(PF_LOCAL, SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOCK, 0) = 4
connect(4, {sa_family=AF_LOCAL, sun_path="/var/run/nscd/socket"}, 110) = -1 ENOENT (No such file or directory)
close(4) = 0
open("/etc/nsswitch.conf", O_RDONLY|O_CLOEXEC) = 4
fstat(4, {st_mode=S_IFREG|0644, st_size=513, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fa313f8d000
read(4, "# /etc/nsswitch.conf\n#\n# Example"..., 4096) = 513
read(4, "", 4096) = 0
close(4) = 0
munmap(0x7fa313f8d000, 4096) = 0
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 4
fstat(4, {st_mode=S_IFREG|0644, st_size=171006, ...}) = 0
mmap(NULL, 171006, PROT_READ, MAP_PRIVATE, 4, 0) = 0x7fa313f38000
close(4) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/libnss_compat.so.2", O_RDONLY|O_CLOEXEC) = 4
read(4, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\260\23\0\0\0\0\0\0"..., 832) = 832
fstat(4, {st_mode=S_IFREG|0644, st_size=35728, ...}) = 0
mmap(NULL, 2131288, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 4, 0) = 0x7fa313378000
mprotect(0x7fa313380000, 2093056, PROT_NONE) = 0
mmap(0x7fa31357f000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 4, 0x7000) = 0x7fa31357f000
close(4) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/libnsl.so.1", O_RDONLY|O_CLOEXEC) = 4
read(4, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0`A\0\0\0\0\0\0"..., 832) = 832
fstat(4, {st_mode=S_IFREG|0644, st_size=97296, ...}) = 0
mmap(NULL, 2202360, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 4, 0) = 0x7fa31315e000
mprotect(0x7fa313175000, 2093056, PROT_NONE) = 0
mmap(0x7fa313374000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 4, 0x16000) = 0x7fa313374000
mmap(0x7fa313376000, 6904, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7fa313376000
close(4) = 0
mprotect(0x7fa313374000, 4096, PROT_READ) = 0
mprotect(0x7fa31357f000, 4096, PROT_READ) = 0
munmap(0x7fa313f38000, 171006) = 0
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 4
fstat(4, {st_mode=S_IFREG|0644, st_size=171006, ...}) = 0
mmap(NULL, 171006, PROT_READ, MAP_PRIVATE, 4, 0) = 0x7fa313f38000
close(4) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/libnss_nis.so.2", O_RDONLY|O_CLOEXEC) = 4
read(4, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\240!\0\0\0\0\0\0"..., 832) = 832
fstat(4, {st_mode=S_IFREG|0644, st_size=47760, ...}) = 0
mmap(NULL, 2143616, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 4, 0) = 0x7fa312f52000
mprotect(0x7fa312f5d000, 2093056, PROT_NONE) = 0
mmap(0x7fa31315c000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 4, 0xa000) = 0x7fa31315c000
close(4) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/libnss_files.so.2", O_RDONLY|O_CLOEXEC) = 4
read(4, "\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"..., 832) = 832
fstat(4, {st_mode=S_IFREG|0644, st_size=52160, ...}) = 0
mmap(NULL, 2148504, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 4, 0) = 0x7fa312d45000
mprotect(0x7fa312d51000, 2093056, PROT_NONE) = 0
mmap(0x7fa312f50000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 4, 0xb000) = 0x7fa312f50000
close(4) = 0
mprotect(0x7fa312f50000, 4096, PROT_READ) = 0
mprotect(0x7fa31315c000, 4096, PROT_READ) = 0
munmap(0x7fa313f38000, 171006) = 0
open("/etc/passwd", O_RDONLY|O_CLOEXEC) = 4
lseek(4, 0, SEEK_CUR) = 0
fstat(4, {st_mode=S_IFREG|0644, st_size=2126, ...}) = 0
mmap(NULL, 2126, PROT_READ, MAP_SHARED, 4, 0) = 0x7fa313f8d000
lseek(4, 2126, SEEK_SET) = 2126
munmap(0x7fa313f8d000, 2126) = 0
close(4) = 0
geteuid() = 0
getuid() = 0
setresuid(-1, 0, -1) = 0
open("/proc/sys/kernel/ngroups_max", O_RDONLY) = 4
read(4, "65536\n", 31) = 6
close(4) = 0
socket(PF_LOCAL, SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOCK, 0) = 4
connect(4, {sa_family=AF_LOCAL, sun_path="/var/run/nscd/socket"}, 110) = -1 ENOENT (No such file or directory)
close(4) = 0
socket(PF_LOCAL, SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOCK, 0) = 4
connect(4, {sa_family=AF_LOCAL, sun_path="/var/run/nscd/socket"}, 110) = -1 ENOENT (No such file or directory)
close(4) = 0
open("/etc/group", O_RDONLY|O_CLOEXEC) = 4
lseek(4, 0, SEEK_CUR) = 0
fstat(4, {st_mode=S_IFREG|0644, st_size=1038, ...}) = 0
mmap(NULL, 1038, PROT_READ, MAP_SHARED, 4, 0) = 0x7fa313f8d000
lseek(4, 1038, SEEK_SET) = 1038
fstat(4, {st_mode=S_IFREG|0644, st_size=1038, ...}) = 0
munmap(0x7fa313f8d000, 1038) = 0
close(4) = 0
setgroups(1, [65534]) = 0
setgid(65534) = 0
setuid(65534) = 0
chdir("/var/state/ups") = 0
write(2, " 0.008773\t", 12) = 12
write(2, "Searching for USB device...\n", 28) = 28
openat(AT_FDCWD, "/dev/bus/usb", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 4
getdents(4, /* 11 entries */, 32768) = 264
close(4) = 0
openat(AT_FDCWD, "/dev/bus/usb", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 4
getdents(4, /* 11 entries */, 32768) = 264
getdents(4, /* 0 entries */, 32768) = 0
close(4) = 0
openat(AT_FDCWD, "/dev/bus/usb/009", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 4
getdents(4, /* 3 entries */, 32768) = 72
open("/dev/bus/usb/009/001", O_RDWR) = -1 EACCES (Permission denied)
open("/dev/bus/usb/009/001", O_RDONLY) = 5
ioctl(5, SNDRV_CTL_IOCTL_ELEM_INFO or USBDEVFS_CONNECTINFO, 0x7fff2c4be0e0) = -1 EPERM (Operation not permitted)
read(5, "\22\1\20\1\t\0\0 at k\35\1\0\21\3\3\2\1\1", 18) = 18
read(5, "\t\2\31\0\1\1\0\340", 8) = 8
read(5, "\0\t\4\0\0\1\t\0\0\0\7\5\201\3\2\0\377", 17) = 17
close(5) = 0
getdents(4, /* 0 entries */, 32768) = 0
close(4) = 0
open("/dev/bus/usb/009/001", O_RDWR) = -1 EACCES (Permission denied)
open("/dev/bus/usb/009/001", O_RDONLY) = 4
ioctl(4, SNDRV_CTL_IOCTL_ELEM_READ or USBDEVFS_IOCTL, 0x7fff2c4bf8d0) = -1 EPERM (Operation not permitted)
close(4) = 0
openat(AT_FDCWD, "/dev/bus/usb/008", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 4
getdents(4, /* 3 entries */, 32768) = 72
open("/dev/bus/usb/008/001", O_RDWR) = -1 EACCES (Permission denied)
open("/dev/bus/usb/008/001", O_RDONLY) = 5
ioctl(5, SNDRV_CTL_IOCTL_ELEM_INFO or USBDEVFS_CONNECTINFO, 0x7fff2c4be0e0) = -1 EPERM (Operation not permitted)
read(5, "\22\1\20\1\t\0\0 at k\35\1\0\21\3\3\2\1\1", 18) = 18
read(5, "\t\2\31\0\1\1\0\340", 8) = 8
read(5, "\0\t\4\0\0\1\t\0\0\0\7\5\201\3\2\0\377", 17) = 17
close(5) = 0
getdents(4, /* 0 entries */, 32768) = 0
close(4) = 0
open("/dev/bus/usb/008/001", O_RDWR) = -1 EACCES (Permission denied)
open("/dev/bus/usb/008/001", O_RDONLY) = 4
ioctl(4, SNDRV_CTL_IOCTL_ELEM_READ or USBDEVFS_IOCTL, 0x7fff2c4bf8d0) = -1 EPERM (Operation not permitted)
close(4) = 0
openat(AT_FDCWD, "/dev/bus/usb/007", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 4
getdents(4, /* 3 entries */, 32768) = 72
open("/dev/bus/usb/007/001", O_RDWR) = -1 EACCES (Permission denied)
open("/dev/bus/usb/007/001", O_RDONLY) = 5
ioctl(5, SNDRV_CTL_IOCTL_ELEM_INFO or USBDEVFS_CONNECTINFO, 0x7fff2c4be0e0) = -1 EPERM (Operation not permitted)
read(5, "\22\1\20\1\t\0\0 at k\35\1\0\21\3\3\2\1\1", 18) = 18
read(5, "\t\2\31\0\1\1\0\340", 8) = 8
read(5, "\0\t\4\0\0\1\t\0\0\0\7\5\201\3\2\0\377", 17) = 17
close(5) = 0
getdents(4, /* 0 entries */, 32768) = 0
close(4) = 0
open("/dev/bus/usb/007/001", O_RDWR) = -1 EACCES (Permission denied)
open("/dev/bus/usb/007/001", O_RDONLY) = 4
ioctl(4, SNDRV_CTL_IOCTL_ELEM_READ or USBDEVFS_IOCTL, 0x7fff2c4bf8d0) = -1 EPERM (Operation not permitted)
close(4) = 0
openat(AT_FDCWD, "/dev/bus/usb/006", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 4
getdents(4, /* 5 entries */, 32768) = 120
open("/dev/bus/usb/006/003", O_RDWR) = -1 EACCES (Permission denied)
open("/dev/bus/usb/006/003", O_RDONLY) = 5
ioctl(5, SNDRV_CTL_IOCTL_ELEM_INFO or USBDEVFS_CONNECTINFO, 0x7fff2c4be0e0) = -1 EPERM (Operation not permitted)
read(5, "\22\1\20\1\0\0\0\10:\0070\"\0\2\0\0\0\1", 18) = 18
read(5, "\t\2)\0\1\1\0\240", 8) = 8
read(5, "2\t\4\0\0\1\3\1\2\0\t!\20\1\0\1\"\357\0\7\5\201\3\10\0\n\7\5\1\3\10\0"..., 33) = 33
close(5) = 0
open("/dev/bus/usb/006/002", O_RDWR) = -1 EACCES (Permission denied)
open("/dev/bus/usb/006/002", O_RDONLY) = 5
ioctl(5, SNDRV_CTL_IOCTL_ELEM_INFO or USBDEVFS_CONNECTINFO, 0x7fff2c4be0e0) = -1 EPERM (Operation not permitted)
read(5, "\22\1\0\2\0\0\0\10\317\33\2\0\22\1\0\2\0\1", 18) = 18
read(5, "\t\2\"\0\1\1\0\240", 8) = 8
read(5, "1\t\4\0\0\1\3\1\2\0\t!\21\1\0\1\";\0\7\5\201\3\7\0\n", 26) = 26
close(5) = 0
open("/dev/bus/usb/006/001", O_RDWR) = -1 EACCES (Permission denied)
open("/dev/bus/usb/006/001", O_RDONLY) = 5
ioctl(5, SNDRV_CTL_IOCTL_ELEM_INFO or USBDEVFS_CONNECTINFO, 0x7fff2c4be0e0) = -1 EPERM (Operation not permitted)
read(5, "\22\1\20\1\t\0\0 at k\35\1\0\21\3\3\2\1\1", 18) = 18
read(5, "\t\2\31\0\1\1\0\340", 8) = 8
read(5, "\0\t\4\0\0\1\t\0\0\0\7\5\201\3\2\0\377", 17) = 17
close(5) = 0
getdents(4, /* 0 entries */, 32768) = 0
close(4) = 0
open("/dev/bus/usb/006/003", O_RDWR) = -1 EACCES (Permission denied)
open("/dev/bus/usb/006/003", O_RDONLY) = 4
ioctl(4, SNDRV_CTL_IOCTL_ELEM_READ or USBDEVFS_IOCTL, 0x7fff2c4bf8d0) = -1 EPERM (Operation not permitted)
close(4) = 0
open("/dev/bus/usb/006/002", O_RDWR) = -1 EACCES (Permission denied)
open("/dev/bus/usb/006/002", O_RDONLY) = 4
ioctl(4, SNDRV_CTL_IOCTL_ELEM_READ or USBDEVFS_IOCTL, 0x7fff2c4bf8d0) = -1 EPERM (Operation not permitted)
close(4) = 0
open("/dev/bus/usb/006/001", O_RDWR) = -1 EACCES (Permission denied)
open("/dev/bus/usb/006/001", O_RDONLY) = 4
ioctl(4, SNDRV_CTL_IOCTL_ELEM_READ or USBDEVFS_IOCTL, 0x7fff2c4bf8d0) = -1 EPERM (Operation not permitted)
close(4) = 0
openat(AT_FDCWD, "/dev/bus/usb/005", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 4
getdents(4, /* 3 entries */, 32768) = 72
open("/dev/bus/usb/005/001", O_RDWR) = -1 EACCES (Permission denied)
open("/dev/bus/usb/005/001", O_RDONLY) = 5
ioctl(5, SNDRV_CTL_IOCTL_ELEM_INFO or USBDEVFS_CONNECTINFO, 0x7fff2c4be0e0) = -1 EPERM (Operation not permitted)
read(5, "\22\1\0\3\t\0\3\tk\35\3\0\21\3\3\2\1\1", 18) = 18
read(5, "\t\2\37\0\1\1\0\340", 8) = 8
read(5, "\0\t\4\0\0\1\t\0\0\0\7\5\201\3\4\0\f\0060\0\0\2\0", 23) = 23
close(5) = 0
getdents(4, /* 0 entries */, 32768) = 0
close(4) = 0
open("/dev/bus/usb/005/001", O_RDWR) = -1 EACCES (Permission denied)
open("/dev/bus/usb/005/001", O_RDONLY) = 4
ioctl(4, SNDRV_CTL_IOCTL_ELEM_READ or USBDEVFS_IOCTL, 0x7fff2c4bf8d0) = -1 EPERM (Operation not permitted)
close(4) = 0
openat(AT_FDCWD, "/dev/bus/usb/004", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 4
getdents(4, /* 4 entries */, 32768) = 96
open("/dev/bus/usb/004/002", O_RDWR) = -1 EACCES (Permission denied)
open("/dev/bus/usb/004/002", O_RDONLY) = 5
ioctl(5, SNDRV_CTL_IOCTL_ELEM_INFO or USBDEVFS_CONNECTINFO, 0x7fff2c4be0e0) = -1 EPERM (Operation not permitted)
read(5, "\22\1\0\2\0\0\0\10\1\0\0\0\0\0\1\1\1\1", 18) = 18
read(5, "\t\2)\0\1\1\0\340", 8) = 8
read(5, "1\t\4\0\0\2\3\0\0\0\t!\21\1\0\1\" \0\7\5\201\3\10\0\n\7\5\2\3\10\0"..., 33) = 33
close(5) = 0
open("/dev/bus/usb/004/001", O_RDWR) = -1 EACCES (Permission denied)
open("/dev/bus/usb/004/001", O_RDONLY) = 5
ioctl(5, SNDRV_CTL_IOCTL_ELEM_INFO or USBDEVFS_CONNECTINFO, 0x7fff2c4be0e0) = -1 EPERM (Operation not permitted)
read(5, "\22\1\0\2\t\0\1 at k\35\2\0\21\3\3\2\1\1", 18) = 18
read(5, "\t\2\31\0\1\1\0\340", 8) = 8
read(5, "\0\t\4\0\0\1\t\0\0\0\7\5\201\3\4\0\f", 17) = 17
close(5) = 0
getdents(4, /* 0 entries */, 32768) = 0
close(4) = 0
open("/dev/bus/usb/004/002", O_RDWR) = -1 EACCES (Permission denied)
open("/dev/bus/usb/004/002", O_RDONLY) = 4
ioctl(4, SNDRV_CTL_IOCTL_ELEM_READ or USBDEVFS_IOCTL, 0x7fff2c4bf8d0) = -1 EPERM (Operation not permitted)
close(4) = 0
open("/dev/bus/usb/004/001", O_RDWR) = -1 EACCES (Permission denied)
open("/dev/bus/usb/004/001", O_RDONLY) = 4
ioctl(4, SNDRV_CTL_IOCTL_ELEM_READ or USBDEVFS_IOCTL, 0x7fff2c4bf8d0) = -1 EPERM (Operation not permitted)
close(4) = 0
openat(AT_FDCWD, "/dev/bus/usb/003", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 4
getdents(4, /* 3 entries */, 32768) = 72
open("/dev/bus/usb/003/001", O_RDWR) = -1 EACCES (Permission denied)
open("/dev/bus/usb/003/001", O_RDONLY) = 5
ioctl(5, SNDRV_CTL_IOCTL_ELEM_INFO or USBDEVFS_CONNECTINFO, 0x7fff2c4be0e0) = -1 EPERM (Operation not permitted)
read(5, "\22\1\0\2\t\0\0 at k\35\2\0\21\3\3\2\1\1", 18) = 18
read(5, "\t\2\31\0\1\1\0\340", 8) = 8
read(5, "\0\t\4\0\0\1\t\0\0\0\7\5\201\3\4\0\f", 17) = 17
close(5) = 0
getdents(4, /* 0 entries */, 32768) = 0
close(4) = 0
open("/dev/bus/usb/003/001", O_RDWR) = -1 EACCES (Permission denied)
open("/dev/bus/usb/003/001", O_RDONLY) = 4
ioctl(4, SNDRV_CTL_IOCTL_ELEM_READ or USBDEVFS_IOCTL, 0x7fff2c4bf8d0) = -1 EPERM (Operation not permitted)
close(4) = 0
openat(AT_FDCWD, "/dev/bus/usb/002", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 4
getdents(4, /* 3 entries */, 32768) = 72
open("/dev/bus/usb/002/001", O_RDWR) = -1 EACCES (Permission denied)
open("/dev/bus/usb/002/001", O_RDONLY) = 5
ioctl(5, SNDRV_CTL_IOCTL_ELEM_INFO or USBDEVFS_CONNECTINFO, 0x7fff2c4be0e0) = -1 EPERM (Operation not permitted)
read(5, "\22\1\0\2\t\0\0 at k\35\2\0\21\3\3\2\1\1", 18) = 18
read(5, "\t\2\31\0\1\1\0\340", 8) = 8
read(5, "\0\t\4\0\0\1\t\0\0\0\7\5\201\3\4\0\f", 17) = 17
close(5) = 0
getdents(4, /* 0 entries */, 32768) = 0
close(4) = 0
open("/dev/bus/usb/002/001", O_RDWR) = -1 EACCES (Permission denied)
open("/dev/bus/usb/002/001", O_RDONLY) = 4
ioctl(4, SNDRV_CTL_IOCTL_ELEM_READ or USBDEVFS_IOCTL, 0x7fff2c4bf8d0) = -1 EPERM (Operation not permitted)
close(4) = 0
openat(AT_FDCWD, "/dev/bus/usb/001", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 4
getdents(4, /* 3 entries */, 32768) = 72
open("/dev/bus/usb/001/001", O_RDWR) = -1 EACCES (Permission denied)
open("/dev/bus/usb/001/001", O_RDONLY) = 5
ioctl(5, SNDRV_CTL_IOCTL_ELEM_INFO or USBDEVFS_CONNECTINFO, 0x7fff2c4be0e0) = -1 EPERM (Operation not permitted)
read(5, "\22\1\0\2\t\0\0 at k\35\2\0\21\3\3\2\1\1", 18) = 18
read(5, "\t\2\31\0\1\1\0\340", 8) = 8
read(5, "\0\t\4\0\0\1\t\0\0\0\7\5\201\3\4\0\f", 17) = 17
close(5) = 0
getdents(4, /* 0 entries */, 32768) = 0
close(4) = 0
open("/dev/bus/usb/001/001", O_RDWR) = -1 EACCES (Permission denied)
open("/dev/bus/usb/001/001", O_RDONLY) = 4
ioctl(4, SNDRV_CTL_IOCTL_ELEM_READ or USBDEVFS_IOCTL, 0x7fff2c4bf8d0) = -1 EPERM (Operation not permitted)
close(4) = 0
write(2, " 0.575600\t", 12) = 12
write(2, "Checking USB device [1d6b:0001] "..., 42) = 42
open("/dev/bus/usb/009/001", O_RDWR) = -1 EACCES (Permission denied)
open("/dev/bus/usb/009/001", O_RDONLY) = 4
ioctl(4, SNDRV_CTL_IOCTL_PVERSION or USBDEVFS_CONTROL, 0x7fff2c4c0080) = -1 EPERM (Operation not permitted)
ioctl(4, SNDRV_CTL_IOCTL_PVERSION or USBDEVFS_CONTROL, 0x7fff2c4c0080) = -1 EPERM (Operation not permitted)
ioctl(4, SNDRV_CTL_IOCTL_PVERSION or USBDEVFS_CONTROL, 0x7fff2c4c0080) = -1 EPERM (Operation not permitted)
close(4) = 0
write(2, " 0.639059\t", 12) = 12
write(2, "Checking USB device [1d6b:0001] "..., 42) = 42
open("/dev/bus/usb/008/001", O_RDWR) = -1 EACCES (Permission denied)
open("/dev/bus/usb/008/001", O_RDONLY) = 4
ioctl(4, SNDRV_CTL_IOCTL_PVERSION or USBDEVFS_CONTROL, 0x7fff2c4c0080) = -1 EPERM (Operation not permitted)
ioctl(4, SNDRV_CTL_IOCTL_PVERSION or USBDEVFS_CONTROL, 0x7fff2c4c0080) = -1 EPERM (Operation not permitted)
ioctl(4, SNDRV_CTL_IOCTL_PVERSION or USBDEVFS_CONTROL, 0x7fff2c4c0080) = -1 EPERM (Operation not permitted)
close(4) = 0
write(2, " 0.703150\t", 12) = 12
write(2, "Checking USB device [1d6b:0001] "..., 42) = 42
open("/dev/bus/usb/007/001", O_RDWR) = -1 EACCES (Permission denied)
open("/dev/bus/usb/007/001", O_RDONLY) = 4
ioctl(4, SNDRV_CTL_IOCTL_PVERSION or USBDEVFS_CONTROL, 0x7fff2c4c0080) = -1 EPERM (Operation not permitted)
ioctl(4, SNDRV_CTL_IOCTL_PVERSION or USBDEVFS_CONTROL, 0x7fff2c4c0080) = -1 EPERM (Operation not permitted)
ioctl(4, SNDRV_CTL_IOCTL_PVERSION or USBDEVFS_CONTROL, 0x7fff2c4c0080) = -1 EPERM (Operation not permitted)
close(4) = 0
write(2, " 0.767058\t", 12) = 12
write(2, "Checking USB device [073a:2230] "..., 42) = 42
open("/dev/bus/usb/006/003", O_RDWR) = -1 EACCES (Permission denied)
open("/dev/bus/usb/006/003", O_RDONLY) = 4
close(4) = 0
write(2, " 0.767602\t", 12) = 12
write(2, "Checking USB device [1bcf:0002] "..., 42) = 42
open("/dev/bus/usb/006/002", O_RDWR) = -1 EACCES (Permission denied)
open("/dev/bus/usb/006/002", O_RDONLY) = 4
ioctl(4, SNDRV_CTL_IOCTL_PVERSION or USBDEVFS_CONTROL, 0x7fff2c4c0080) = -1 EPERM (Operation not permitted)
close(4) = 0
write(2, " 0.768096\t", 12) = 12
write(2, "Checking USB device [1d6b:0001] "..., 42) = 42
open("/dev/bus/usb/006/001", O_RDWR) = -1 EACCES (Permission denied)
open("/dev/bus/usb/006/001", O_RDONLY) = 4
ioctl(4, SNDRV_CTL_IOCTL_PVERSION or USBDEVFS_CONTROL, 0x7fff2c4c0080) = -1 EPERM (Operation not permitted)
ioctl(4, SNDRV_CTL_IOCTL_PVERSION or USBDEVFS_CONTROL, 0x7fff2c4c0080) = -1 EPERM (Operation not permitted)
ioctl(4, SNDRV_CTL_IOCTL_PVERSION or USBDEVFS_CONTROL, 0x7fff2c4c0080) = -1 EPERM (Operation not permitted)
close(4) = 0
write(2, " 0.768724\t", 12) = 12
write(2, "Checking USB device [1d6b:0003] "..., 42) = 42
open("/dev/bus/usb/005/001", O_RDWR) = -1 EACCES (Permission denied)
open("/dev/bus/usb/005/001", O_RDONLY) = 4
ioctl(4, SNDRV_CTL_IOCTL_PVERSION or USBDEVFS_CONTROL, 0x7fff2c4c0080) = -1 EPERM (Operation not permitted)
ioctl(4, SNDRV_CTL_IOCTL_PVERSION or USBDEVFS_CONTROL, 0x7fff2c4c0080) = -1 EPERM (Operation not permitted)
ioctl(4, SNDRV_CTL_IOCTL_PVERSION or USBDEVFS_CONTROL, 0x7fff2c4c0080) = -1 EPERM (Operation not permitted)
close(4) = 0
write(2, " 0.769443\t", 12) = 12
write(2, "Checking USB device [0001:0000] "..., 42) = 42
open("/dev/bus/usb/004/002", O_RDWR) = -1 EACCES (Permission denied)
open("/dev/bus/usb/004/002", O_RDONLY) = 4
ioctl(4, SNDRV_CTL_IOCTL_PVERSION or USBDEVFS_CONTROL, 0x7fff2c4c0080) = -1 EPERM (Operation not permitted)
ioctl(4, SNDRV_CTL_IOCTL_PVERSION or USBDEVFS_CONTROL, 0x7fff2c4c0080) = -1 EPERM (Operation not permitted)
ioctl(4, SNDRV_CTL_IOCTL_PVERSION or USBDEVFS_CONTROL, 0x7fff2c4c0080) = -1 EPERM (Operation not permitted)
--- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0} ---
+++ killed by SIGSEGV (core dumped) +++
More information about the Nut-upsuser
mailing list