Trouble with Network UPS Tool software

I have a UPS GE Match 500 connected to my computer(OpenSuse 11.1). When
I start Network UPS Tools - UPS driver controller 2.2.2(just driver)a
get error:
Network UPS Tools - UPS driver controller 2.2.2
Network UPS Tools - GE/IMV/Victron UPS driver 0.1.9 (2.2.2)

*** stack smashing detected ***: /usr/lib/ups/driver/victronups
terminated
======= Backtrace: =========
/lib/libc.so.6(__fortify_fail+0x48)[0xb7e58da8]
/lib/libc.so.6(__fortify_fail+0x0)[0xb7e58d60]
/usr/lib/ups/driver/victronups[0x804a568]
/usr/lib/ups/driver/victronups[0x804b29d]
/lib/libc.so.6(__libc_start_main+0xe5)[0xb7d88705]
/usr/lib/ups/driver/victronups[0x8049661]
======= Memory map: ========
08048000-08054000 r-xp 00000000 08:02 2553778
/usr/lib/ups/driver/victronups
08054000-08055000 r–p 0000b000 08:02 2553778
/usr/lib/ups/driver/victronups
08055000-08056000 rw-p 0000c000 08:02 2553778
/usr/lib/ups/driver/victronups
08056000-08077000 rw-p 08056000 00:00 0 [heap]
b7d27000-b7d34000 r-xp 00000000 08:02 1733497 /lib/libgcc_s.so.1
b7d34000-b7d35000 r–p 0000c000 08:02 1733497 /lib/libgcc_s.so.1
b7d35000-b7d36000 rw-p 0000d000 08:02 1733497 /lib/libgcc_s.so.1
b7d36000-b7d4b000 r-xp 00000000 08:02 1733442 /lib/libnsl-2.9.so
b7d4b000-b7d4c000 r–p 00014000 08:02 1733442 /lib/libnsl-2.9.so
b7d4c000-b7d4d000 rw-p 00015000 08:02 1733442 /lib/libnsl-2.9.so
b7d4d000-b7d4f000 rw-p b7d4d000 00:00 0
b7d71000-b7d72000 rw-p b7d71000 00:00 0
b7d72000-b7ec7000 r-xp 00000000 08:02 1733332 /lib/libc-2.9.so
b7ec7000-b7ec8000 —p 00155000 08:02 1733332 /lib/libc-2.9.so
b7ec8000-b7eca000 r–p 00155000 08:02 1733332 /lib/libc-2.9.so
b7eca000-b7ecb000 rw-p 00157000 08:02 1733332 /lib/libc-2.9.so
b7ecb000-b7ece000 rw-p b7ecb000 00:00 0
b7ecf000-b7ed9000 r-xp 00000000 08:02 1733457
/lib/libnss_files-2.9.so
b7ed9000-b7eda000 r–p 00009000 08:02 1733457
/lib/libnss_files-2.9.so
b7eda000-b7edb000 rw-p 0000a000 08:02 1733457
/lib/libnss_files-2.9.so
b7edb000-b7ee4000 r-xp 00000000 08:02 1733455
/lib/libnss_nis-2.9.so
b7ee4000-b7ee5000 r–p 00008000 08:02 1733455
/lib/libnss_nis-2.9.so
b7ee5000-b7ee6000 rw-p 00009000 08:02 1733455
/lib/libnss_nis-2.9.so
b7ee6000-b7eed000 r-xp 00000000 08:02 1733445
/lib/libnss_compat-2.9.so
b7eed000-b7eee000 r–p 00006000 08:02 1733445
/lib/libnss_compat-2.9.so
b7eee000-b7eef000 rw-p 00007000 08:02 1733445
/lib/libnss_compat-2.9.so
b7eef000-b7ef1000 rw-p b7eef000 00:00 0
b7ef1000-b7f0f000 r-xp 00000000 08:02 1733321 /lib/ld-2.9.so
b7f0f000-b7f10000 r–p 0001d000 08:02 1733321 /lib/ld-2.9.so
b7f10000-b7f11000 rw-p 0001e000 08:02 1733321 /lib/ld-2.9.so
bfdfc000-bfe11000 rw-p bffeb000 00:00 0 [stack]
ffffe000-fffff000 r-xp 00000000 00:00 0 [vdso]
Driver exited abnormally

NUT version is 2.2.2-63.13.i586.
If I start NUT driver from compiled source file nut-2.2.2.tar.gz and
with same config files(ups.conf, upsd.conf and so on…) everything is
Ok. Why? I want to have rpm package. By the way, if I run a NUT from
src.rpm(nut-2.2.2-67.1.src.rpm) I have same problem too :frowning:


Alexey_ISG

Alexey_ISG’s Profile: http://forums.opensuse.org/member.php?userid=20542
View this thread: http://forums.opensuse.org/showthread.php?t=405618

Hi
Looks like some sort of library conflict. By default (unless you change
it) installing from source will place the libraries
under /usr/local/lib rpm’s install in /usr/lib.

Also any patches to the source code aren’t applied when you have
compiled from the source as well as openSUSE-fication of the source.

I see there is a readme in the src file, perhaps a read of that may
help?


Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 11.1 x86 Kernel 2.6.27.7-9-default
up 3 days 8:43, 2 users, load average: 0.00, 0.00, 0.05
GPU GeForce 6600 TE/6200 TE - Driver Version: 180.22

For nut-2.2.2-67.1(from rpm):
ldd /usr/lib/ups/driver/victronups
linux-gate.so.1 => (0xffffe000)
libc.so.6 => /lib/libc.so.6 (0xb7ec4000)
/lib/ld-linux.so.2 (0xb8042000)
For nut-2.2.2(from source tgz):
ldd ~/src/victronups (precompiled file)
linux-gate.so.1 => (0xffffe000)
libc.so.6 => /lib/libc.so.6 (0xb7f09000)
/lib/ld-linux.so.2 (0xb8087000)
And:
sudo /home/alexey/src/nut-2.2.2/drivers/victronups -a match500
everything is fine and
/usr/lib/ups/driver/victronups -a match500
Network UPS Tools - GE/IMV/Victron UPS driver 0.1.9 (2.2.2)

*** stack smashing detected ***: /usr/lib/ups/driver/victronups
terminated
======= Backtrace: =========
/lib/libc.so.6(__fortify_fail+0x4b)[0xb7fce06b]
/lib/libc.so.6(__fortify_fail+0x0)[0xb7fce020]
/usr/lib/ups/driver/victronups[0x804a568]
/usr/lib/ups/driver/victronups[0x804b29d]
/lib/libc.so.6(__libc_start_main+0xe5)[0xb7efd705]
/usr/lib/ups/driver/victronups[0x8049661]
======= Memory map: ========
08048000-08054000 r-xp 00000000 08:02 2553778
/usr/lib/ups/driver/victronups
08054000-08055000 r–p 0000b000 08:02 2553778
/usr/lib/ups/driver/victronups
08055000-08056000 rw-p 0000c000 08:02 2553778
/usr/lib/ups/driver/victronups
08056000-08077000 rw-p 08056000 00:00 0 [heap]
b7e9c000-b7ea9000 r-xp 00000000 08:02 1733497 /lib/libgcc_s.so.1
b7ea9000-b7eaa000 r–p 0000c000 08:02 1733497 /lib/libgcc_s.so.1
b7eaa000-b7eab000 rw-p 0000d000 08:02 1733497 /lib/libgcc_s.so.1
b7eab000-b7ec0000 r-xp 00000000 08:02 1733438 /lib/libnsl-2.9.so
b7ec0000-b7ec1000 r–p 00014000 08:02 1733438 /lib/libnsl-2.9.so
b7ec1000-b7ec2000 rw-p 00015000 08:02 1733438 /lib/libnsl-2.9.so
b7ec2000-b7ec4000 rw-p b7ec2000 00:00 0
b7ee6000-b7ee7000 rw-p b7ee6000 00:00 0
b7ee7000-b803c000 r-xp 00000000 08:02 1733331 /lib/libc-2.9.so
b803c000-b803e000 r–p 00155000 08:02 1733331 /lib/libc-2.9.so
b803e000-b803f000 rw-p 00157000 08:02 1733331 /lib/libc-2.9.so
b803f000-b8043000 rw-p b803f000 00:00 0
b8044000-b804e000 r-xp 00000000 08:02 1733453
/lib/libnss_files-2.9.so
b804e000-b804f000 r–p 00009000 08:02 1733453
/lib/libnss_files-2.9.so
b804f000-b8050000 rw-p 0000a000 08:02 1733453
/lib/libnss_files-2.9.so
b8050000-b8059000 r-xp 00000000 08:02 1733936
/lib/libnss_nis-2.9.so
b8059000-b805a000 r–p 00008000 08:02 1733936
/lib/libnss_nis-2.9.so
b805a000-b805b000 rw-p 00009000 08:02 1733936
/lib/libnss_nis-2.9.so
b805b000-b8062000 r-xp 00000000 08:02 1733444
/lib/libnss_compat-2.9.so
b8062000-b8063000 r–p 00006000 08:02 1733444
/lib/libnss_compat-2.9.so
b8063000-b8064000 rw-p 00007000 08:02 1733444
/lib/libnss_compat-2.9.so
b8064000-b8065000 rw-p b8064000 00:00 0
b8065000-b8083000 r-xp 00000000 08:02 1734709 /lib/ld-2.9.so
b8083000-b8084000 r–p 0001d000 08:02 1734709 /lib/ld-2.9.so
b8084000-b8085000 rw-p 0001e000 08:02 1734709 /lib/ld-2.9.so
bfa6f000-bfa84000 rw-p bffeb000 00:00 0 [stack]
ffffe000-fffff000 r-xp 00000000 00:00 0 [vdso]
Aborted
Both config file /usr/local/ups/etc/ups.conf and /etc/ups.conf are
equal.


Alexey_ISG

Alexey_ISG’s Profile: http://forums.opensuse.org/member.php?userid=20542
View this thread: http://forums.opensuse.org/showthread.php?t=405618

I have a fresh installed OpenSuSe 11.1 with no any “/usr/local/”, but
NUT(rpm) crash too :frowning:


Alexey_ISG

Alexey_ISG’s Profile: http://forums.opensuse.org/member.php?userid=20542
View this thread: http://forums.opensuse.org/showthread.php?t=405618