Hello,
> upsmon doesn't work on amd64.
> On i686 everything is OK. Configs are the same.
> I'm attaching strace - could You help?
this might be linked to that:
https://alioth.debian.org/tracker/index.php?func=detail&aid=301880&group_id=30602&atid=411544
when you say work", can you give a bit of detail (ie doesn't receive
events,
crash (seems not as per your below strace), ...).
I don't see anything special, at first sight, in your strace.
Also, do you use an x68 generated binary, and if so can you try to recompile
nut and relaunch... just to see.
strace provided:>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
23186 execve("/usr/sbin/upsmon", ["upsmon"], [/* 21 vars
*/]) = 0
23186 uname({sys="Linux", node="azawadzki", ...}) = 0
23186 brk(0) = 0x50d000
23186 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x2aaaaaac0000
23186 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or
directory)
23186 open("/etc/ld.so.cache", O_RDONLY) = 4
23186 fstat(4, {st_mode=S_IFREG|0644, st_size=73760, ...}) = 0
23186 mmap(NULL, 73760, PROT_READ, MAP_PRIVATE, 4, 0) = 0x2aaaaaac1000
23186 close(4) = 0
23186 open("/usr/lib64/libssl.so.0.9.7", O_RDONLY) = 4
23186 read(4,
"\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\200\312"...,
640) = 640
23186 fstat(4, {st_mode=S_IFREG|0755, st_size=223784, ...}) = 0
23186 mmap(NULL, 1273824, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 4,
0) = 0x2aaaaabc2000
23186 mprotect(0x2aaaaabf4000, 1069024, PROT_NONE) = 0
23186 mmap(0x2aaaaacf4000, 20480, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 4, 0x32000) = 0x2aaaaacf4000
23186 close(4) = 0
23186 open("/usr/lib64/libcrypto.so.0.9.7", O_RDONLY) = 4
23186 read(4,
"\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0@\370\4\0"...,
640) = 640
23186 fstat(4, {st_mode=S_IFREG|0755, st_size=1290272, ...}) = 0
23186 mmap(NULL, 2354360, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 4,
0) = 0x2aaaaacf9000
23186 mprotect(0x2aaaaae16000, 1187000, PROT_NONE) = 0
23186 mmap(0x2aaaaaf15000, 126976, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 4, 0x11c000) = 0x2aaaaaf15000
23186 mmap(0x2aaaaaf34000, 15544, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x2aaaaaf34000
23186 mprotect(0x7fffff89a000, 4096,
PROT_READ|PROT_WRITE|PROT_EXEC|PROT_GROWSDOWN) = 0
23186 close(4) = 0
23186 open("/lib64/tls/libc.so.6", O_RDONLY) = 4
23186 read(4,
"\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\300\310"...,
640) = 640
23186 lseek(4, 64, SEEK_SET) = 64
23186 read(4,
"\6\0\0\0\5\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0"...,
616) = 616
23186 lseek(4, 680, SEEK_SET) = 680
23186 read(4,
"\4\0\0\0\20\0\0\0\1\0\0\0GNU\0\0\0\0\0\2\0\0\0\6\0\0\0"...,
32) = 32
23186 fstat(4, {st_mode=S_IFREG|0755, st_size=1189168, ...}) = 0
23186 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x2aaaaaf38000
23186 lseek(4, 64, SEEK_SET) = 64
23186 read(4,
"\6\0\0\0\5\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0"...,
616) = 616
23186 mmap(NULL, 2248680, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 4,
0) = 0x2aaaaaf39000
23186 mprotect(0x2aaaab055000, 1085416, PROT_NONE) = 0
23186 mmap(0x2aaaab154000, 24576, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 4, 0x11b000) = 0x2aaaab154000
23186 mmap(0x2aaaab15a000, 16360, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x2aaaab15a000
23186 close(4) = 0
23186 open("/lib64/libdl.so.2", O_RDONLY) = 4
23186 read(4,
"\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\0\20\0\0"...,
640) = 640
23186 lseek(4, 624, SEEK_SET) = 624
23186 read(4,
"\4\0\0\0\20\0\0\0\1\0\0\0GNU\0\0\0\0\0\2\0\0\0\4\0\0\0"...,
32) = 32
23186 fstat(4, {st_mode=S_IFREG|0755, st_size=10280, ...}) = 0
23186 mmap(NULL, 1056984, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 4,
0) = 0x2aaaab15e000
23186 mprotect(0x2aaaab160000, 1048792, PROT_NONE) = 0
23186 mmap(0x2aaaab25f000, 8192, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 4, 0x1000) = 0x2aaaab25f000
23186 close(4) = 0
23186 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x2aaaab261000
23186 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x2aaaab262000
23186 mprotect(0x2aaaab154000, 12288, PROT_READ) = 0
23186 arch_prctl(ARCH_SET_FS, 0x2aaaab261b00) = 0
23186 munmap(0x2aaaaaac1000, 73760) = 0
23186 fstat(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 12), ...}) = 0
23186 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x2aaaaaac1000
23186 write(1, "Network UPS Tools upsmon 2.0.2\n", 31) = 31
23186 brk(0) = 0x50d000
23186 brk(0x52e000) = 0x52e000
23186 open("/etc/ups/upsmon.conf", O_RDONLY) = 4
23186 fstat(4, {st_mode=S_IFREG|0600, st_size=11109, ...}) = 0
23186 mmap(NULL, 131072, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,
-1, 0) = 0x2aaaaaac2000
23186 read(4, "# Network UPS Tools: example ups"..., 131072) = 11109
23186 write(2, "UPS: apc@fabryka (slave) (power "..., 41) = 41
23186 read(4, "", 131072) = 0
23186 close(4) = 0
23186 munmap(0x2aaaaaac2000, 131072) = 0
23186 clone(child_stack=0,
flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD,
child_tidptr=0x2aaaab261b90) = 23187
23186 close(0) = 0
23186 close(1) = 0
23186 close(2) = 0
23186 exit_group(0) = ?
23187 close(0) = 0
23187 close(1) = 0
23187 close(2) = 0
23187 open("/dev/null", O_RDWR) = 0
23187 dup(0) = 1
23187 dup(0) = 2
23187 setsid() = 23187
23187 open("/etc/localtime", O_RDONLY) = 4
23187 fstat(4, {st_mode=S_IFREG|0644, st_size=961, ...}) = 0
23187 fstat(4, {st_mode=S_IFREG|0644, st_size=961, ...}) = 0
23187 mmap(NULL, 131072, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,
-1, 0) = 0x2aaaaaac2000
23187 read(4,
"TZif\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\n\0\0\0\n\0"...,
131072) = 961
23187 close(4) = 0
23187 munmap(0x2aaaaaac2000, 131072) = 0
23187 stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=961, ...})
= 0
23187 stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=961, ...})
= 0
23187 stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=961, ...})
= 0
23187 socket(PF_FILE, SOCK_DGRAM, 0) = 4
23187 fcntl(4, F_SETFD, FD_CLOEXEC) = 0
23187 connect(4, {sa_family=AF_FILE, path="/dev/log"}, 16) = -1
EPROTOTYPE
(Protocol wrong type for socket)
23187 close(4) = 0
23187 socket(PF_FILE, SOCK_STREAM, 0) = 4
23187 fcntl(4, F_SETFD, FD_CLOEXEC) = 0
23187 connect(4, {sa_family=AF_FILE, path="/dev/log"}, 16) = 0
23187 sendto(4, "<30>Sep 14 17:48:24 upsmon[23187"..., 54,
MSG_NOSIGNAL,
NULL, 0) = 54
23187 socket(PF_FILE, SOCK_STREAM, 0) = 6
23187 fcntl(6, F_GETFL) = 0x2 (flags O_RDWR)
23187 fcntl(6, F_SETFL, O_RDWR|O_NONBLOCK) = 0
23187 connect(6, {sa_family=AF_FILE, path="/var/run/nscd/socket"},
110) = -1
ENOENT (No such file or directory)
23187 close(6) = 0
23187 socket(PF_FILE, SOCK_STREAM, 0) = 6
23187 fcntl(6, F_GETFL) = 0x2 (flags O_RDWR)
23187 fcntl(6, F_SETFL, O_RDWR|O_NONBLOCK) = 0
23187 connect(6, {sa_family=AF_FILE, path="/var/run/nscd/socket"},
110) = -1
ENOENT (No such file or directory)
23187 close(6) = 0
23187 open("/etc/nsswitch.conf", O_RDONLY) = 6
23187 fstat(6, {st_mode=S_IFREG|0644, st_size=277, ...}) = 0
23187 mmap(NULL, 131072, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,
-1, 0) = 0x2aaaaaac2000
23187 read(6, "# /etc/nsswitch.conf\n#\n# Example"..., 131072) = 277
23187 read(6, "", 131072) = 0
23187 close(6) = 0
23187 munmap(0x2aaaaaac2000, 131072) = 0
23187 open("/etc/ld.so.cache", O_RDONLY) = 6
23187 fstat(6, {st_mode=S_IFREG|0644, st_size=73760, ...}) = 0
23187 mmap(NULL, 73760, PROT_READ, MAP_PRIVATE, 6, 0) = 0x2aaaaaac2000
23187 close(6) = 0
23187 open("/lib64/tls/x86_64/libnss_db.so.2", O_RDONLY) = -1 ENOENT
(No
such file or directory)
23187 stat("/lib64/tls/x86_64", 0x7fffff89a2a0) = -1 ENOENT (No such
file or
directory)
23187 open("/lib64/tls/libnss_db.so.2", O_RDONLY) = -1 ENOENT (No such
file
or directory)
23187 stat("/lib64/tls", {st_mode=S_IFDIR|0755, st_size=392, ...}) = 0
23187 open("/lib64/x86_64/libnss_db.so.2", O_RDONLY) = -1 ENOENT (No
such
file or directory)
23187 stat("/lib64/x86_64", 0x7fffff89a2a0) = -1 ENOENT (No such file
or
directory)
23187 open("/lib64/libnss_db.so.2", O_RDONLY) = -1 ENOENT (No such
file or
directory)
23187 stat("/lib64", {st_mode=S_IFDIR|0755, st_size=3480, ...}) = 0
23187 open("/usr/lib64/tls/x86_64/libnss_db.so.2", O_RDONLY) = -1
ENOENT (No
such file or directory)
23187 stat("/usr/lib64/tls/x86_64", 0x7fffff89a2a0) = -1 ENOENT (No
such
file or directory)
23187 open("/usr/lib64/tls/libnss_db.so.2", O_RDONLY) = -1 ENOENT (No
such
file or directory)
23187 stat("/usr/lib64/tls", 0x7fffff89a2a0) = -1 ENOENT (No such file
or
directory)
23187 open("/usr/lib64/x86_64/libnss_db.so.2", O_RDONLY) = -1 ENOENT
(No
such file or directory)
23187 stat("/usr/lib64/x86_64", 0x7fffff89a2a0) = -1 ENOENT (No such
file or
directory)
23187 open("/usr/lib64/libnss_db.so.2", O_RDONLY) = -1 ENOENT (No such
file
or directory)
23187 stat("/usr/lib64", {st_mode=S_IFDIR|0755, st_size=60888, ...}) =
0
23187 munmap(0x2aaaaaac2000, 73760) = 0
23187 open("/etc/ld.so.cache", O_RDONLY) = 6
23187 fstat(6, {st_mode=S_IFREG|0644, st_size=73760, ...}) = 0
23187 mmap(NULL, 73760, PROT_READ, MAP_PRIVATE, 6, 0) = 0x2aaaaaac2000
23187 close(6) = 0
23187 open("/lib64/libnss_files.so.2", O_RDONLY) = 6
23187 read(6,
"\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0@#\0\0\0"...,
640) = 640
23187 lseek(6, 624, SEEK_SET) = 624
23187 read(6,
"\4\0\0\0\20\0\0\0\1\0\0\0GNU\0\0\0\0\0\2\0\0\0\4\0\0\0"...,
32) = 32
23187 fstat(6, {st_mode=S_IFREG|0755, st_size=43256, ...}) = 0
23187 mmap(NULL, 1090856, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 6,
0) = 0x2aaaab263000
23187 mprotect(0x2aaaab26d000, 1049896, PROT_NONE) = 0
23187 mmap(0x2aaaab36c000, 8192, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 6, 0x9000) = 0x2aaaab36c000
23187 close(6) = 0
23187 munmap(0x2aaaaaac2000, 73760) = 0
23187 open("/etc/passwd", O_RDONLY) = 6
23187 fcntl(6, F_GETFD) = 0
23187 fcntl(6, F_SETFD, FD_CLOEXEC) = 0
23187 fstat(6, {st_mode=S_IFREG|0644, st_size=1301, ...}) = 0
23187 mmap(NULL, 131072, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,
-1, 0) = 0x2aaaaaac2000
23187 read(6, "root:x:0:0:root:/root:/bin/bash\n"..., 131072) = 1301
23187 read(6, "", 131072) = 0
23187 close(6) = 0
23187 munmap(0x2aaaaaac2000, 131072) = 0
23187 stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=961, ...})
= 0
23187 stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=961, ...})
= 0
23187 stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=961, ...})
= 0
23187 sendto(4, "<27>Sep 14 17:48:24 upsmon[23187"..., 61,
MSG_NOSIGNAL,
NULL, 0) = 61
23187 munmap(0x2aaaaaac1000, 4096) = 0
23187 exit_group(1) = ?>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Arnaud
--
Linux / Unix Expert - MGE UPS SYSTEMS - R&D Dpt
Network UPS Tools (NUT) Project Leader - http://www.networkupstools.org/
Debian Developer -
http://people.debian.org/~aquette/<http://people.debian.org/%7Eaquette/>
OpenSource Developer - http://arnaud.quette.free.fr/
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20050916/fb658968/attachment.html