[Nut-upsuser] Segmentation fault

Magnus Johansson rnd-nut2 at rnd.se
Mon Nov 13 08:26:31 CET 2006


> Can your reproduce this behavior using just NUT commands (rather than
> init scripts?)

I made a script nut-ss that looks like this (the init-script also uses 
upsdrvctl) (I started out with no driver running);

[root at vader ~]# cat ./nut-ss
/usr/local/ups/bin/upsdrvctl stop
/usr/local/ups/bin/upsdrvctl start
[root at vader ~]# ./nut-ss
Network UPS Tools - UPS driver controller 2.1.0
Can't open /var/state/ups/newhidups-VaderUPS.pid: No such file or directory
Network UPS Tools - UPS driver controller 2.1.0
Network UPS Tools: 0.28 USB communication driver 0.28 - core 0.30 (2.1.0)

Detected a UPS: American Power Conversion/Back-UPS CS 500 FW:808.q7.I 
USB FW:q7
Using subdriver: APC/CyberPower HID 0.9
[root at vader ~]# ps -U nut u
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
nut      32767  0.0  0.0   7216   720 ?        Ss   08:24   0:00 
/usr/local/ups/bin/newhidups -a VaderUPS
[root at vader ~]# ./nut-ss
Network UPS Tools - UPS driver controller 2.1.0
Network UPS Tools - UPS driver controller 2.1.0
Network UPS Tools: 0.28 USB communication driver 0.28 - core 0.30 (2.1.0)

Detected a UPS: American Power Conversion/Back-UPS CS 500 FW:808.q7.I 
USB FW:q7
Using subdriver: APC/CyberPower HID 0.9
[root at vader ~]# ps -U nut u
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
nut        305  0.0 87.3 945728 841192 ?       Ss   08:24   0:00 
/usr/local/ups/bin/newhidups -a VaderUPS
[root at vader ~]# ./nut-ss
Network UPS Tools - UPS driver controller 2.1.0
Network UPS Tools - UPS driver controller 2.1.0
Network UPS Tools: 0.28 USB communication driver 0.28 - core 0.30 (2.1.0)

Detected a UPS: American Power Conversion/Back-UPS CS 500 FW:808.q7.I 
USB FW:q7
Using subdriver: APC/CyberPower HID 0.9
[root at vader ~]# ps -U nut u
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
nut        311  0.0 41.8 409588 403092 ?       Ss   08:24   0:00 
/usr/local/ups/bin/newhidups -a VaderUPS
[root at vader ~]# ./nut-ss
Network UPS Tools - UPS driver controller 2.1.0
Network UPS Tools - UPS driver controller 2.1.0
Network UPS Tools: 0.28 USB communication driver 0.28 - core 0.30 (2.1.0)

Detected a UPS: American Power Conversion/Back-UPS CS 500 FW:808.q7.I 
USB FW:q7
Using subdriver: APC/CyberPower HID 0.9
[root at vader ~]# ps -U nut u
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
nut        317  0.0  0.0   7216   720 ?        Ss   08:24   0:00 
/usr/local/ups/bin/newhidups -a VaderUPS
[root at vader ~]#



More information about the Nut-upsuser mailing list