[Nut-upsuser] upsd crashes with a "broken pipe" error

Zach La Celle lacelle at roboticresearch.com
Mon Dec 27 14:36:14 UTC 2010


I ran this in debug mode and captures the backtrace.

root@*********:/etc/nut# upsd -D
Network UPS Tools upsd 2.4.3
    0.000000     listening on 0.0.0.0 port 3493
    0.000354     Connected to UPS [rack1ups]: apcsmart-rack1ups
    2.550554     User upsmon at 127.0.0.1 logged into UPS [rack1ups]
*** glibc detected *** upsd: free(): invalid next size (fast): 
0x00000000012c9870 ***
======= Backtrace: =========
/lib/libc.so.6(+0x775b6)[0x7f4b09d1c5b6]
/lib/libc.so.6(cfree+0x73)[0x7f4b09d22e83]
upsd[0x4094f8]
upsd[0x40230d]
upsd[0x402b9c]
upsd[0x4036f9]
/lib/libc.so.6(__libc_start_main+0xfd)[0x7f4b09cc3c4d]
upsd[0x401fe9]
======= Memory map: ========
00400000-0040d000 r-xp 00000000 fb:00 8808105                            
/sbin/upsd
0060c000-0060d000 r--p 0000c000 fb:00 8808105                            
/sbin/upsd
0060d000-0060e000 rw-p 0000d000 fb:00 8808105                            
/sbin/upsd
012bc000-012dd000 rw-p 00000000 00:00 0                                  
[heap]
7f4b04000000-7f4b04021000 rw-p 00000000 00:00 0
7f4b04021000-7f4b08000000 ---p 00000000 00:00 0
7f4b0946d000-7f4b09483000 r-xp 00000000 fb:00 9093248                    
/lib/libgcc_s.so.1
7f4b09483000-7f4b09682000 ---p 00016000 fb:00 9093248                    
/lib/libgcc_s.so.1
7f4b09682000-7f4b09683000 r--p 00015000 fb:00 9093248                    
/lib/libgcc_s.so.1
7f4b09683000-7f4b09684000 rw-p 00016000 fb:00 9093248                    
/lib/libgcc_s.so.1
7f4b09684000-7f4b09690000 r-xp 00000000 fb:00 9093407                    
/lib/libnss_files-2.11.1.so
7f4b09690000-7f4b0988f000 ---p 0000c000 fb:00 9093407                    
/lib/libnss_files-2.11.1.so
7f4b0988f000-7f4b09890000 r--p 0000b000 fb:00 9093407                    
/lib/libnss_files-2.11.1.so
7f4b09890000-7f4b09891000 rw-p 0000c000 fb:00 9093407                    
/lib/libnss_files-2.11.1.so
7f4b09891000-7f4b0989b000 r-xp 00000000 fb:00 9093362                    
/lib/libnss_nis-2.11.1.so
7f4b0989b000-7f4b09a9a000 ---p 0000a000 fb:00 9093362                    
/lib/libnss_nis-2.11.1.so
7f4b09a9a000-7f4b09a9b000 r--p 00009000 fb:00 9093362                    
/lib/libnss_nis-2.11.1.so
7f4b09a9b000-7f4b09a9c000 rw-p 0000a000 fb:00 9093362                    
/lib/libnss_nis-2.11.1.so
7f4b09a9c000-7f4b09aa4000 r-xp 00000000 fb:00 9093361                    
/lib/libnss_compat-2.11.1.so
7f4b09aa4000-7f4b09ca3000 ---p 00008000 fb:00 9093361                    
/lib/libnss_compat-2.11.1.so
7f4b09ca3000-7f4b09ca4000 r--p 00007000 fb:00 9093361                    
/lib/libnss_compat-2.11.1.so
7f4b09ca4000-7f4b09ca5000 rw-p 00008000 fb:00 9093361                    
/lib/libnss_compat-2.11.1.so
7f4b09ca5000-7f4b09e1f000 r-xp 00000000 fb:00 9093404                    
/lib/libc-2.11.1.so
7f4b09e1f000-7f4b0a01e000 ---p 0017a000 fb:00 9093404                    
/lib/libc-2.11.1.so
7f4b0a01e000-7f4b0a022000 r--p 00179000 fb:00 9093404                    
/lib/libc-2.11.1.so
7f4b0a022000-7f4b0a023000 rw-p 0017d000 fb:00 9093404                    
/lib/libc-2.11.1.so
7f4b0a023000-7f4b0a028000 rw-p 00000000 00:00 0
7f4b0a028000-7f4b0a031000 r-xp 00000000 fb:00 9093205                    
/lib/libwrap.so.0.7.6
7f4b0a031000-7f4b0a230000 ---p 00009000 fb:00 9093205                    
/lib/libwrap.so.0.7.6
7f4b0a230000-7f4b0a231000 r--p 00008000 fb:00 9093205                    
/lib/libwrap.so.0.7.6
7f4b0a231000-7f4b0a232000 rw-p 00009000 fb:00 9093205                    
/lib/libwrap.so.0.7.6
7f4b0a232000-7f4b0a233000 rw-p 00000000 00:00 0
7f4b0a028000-7f4b0a031000 r-xp 00000000 fb:00 9093205                    
/lib/libwrap.so.0.7.6
7f4b0a031000-7f4b0a230000 ---p 00009000 fb:00 9093205                    
/lib/libwrap.so.0.7.6
7f4b0a230000-7f4b0a231000 r--p 00008000 fb:00 9093205                    
/lib/libwrap.so.0.7.6
7f4b0a231000-7f4b0a232000 rw-p 00009000 fb:00 9093205                    
/lib/libwrap.so.0.7.6
7f4b0a232000-7f4b0a233000 rw-p 00000000 00:00 0
7f4b0a233000-7f4b0a24a000 r-xp 00000000 fb:00 9093353                    
/lib/libnsl-2.11.1.so
7f4b0a24a000-7f4b0a449000 ---p 00017000 fb:00 9093353                    
/lib/libnsl-2.11.1.so
7f4b0a449000-7f4b0a44a000 r--p 00016000 fb:00 9093353                    
/lib/libnsl-2.11.1.so
7f4b0a44a000-7f4b0a44b000 rw-p 00017000 fb:00 9093353                    
/lib/libnsl-2.11.1.so
7f4b0a44b000-7f4b0a44d000 rw-p 00000000 00:00 0
7f4b0a44d000-7f4b0a46d000 r-xp 00000000 fb:00 9093354                    
/lib/ld-2.11.1.so
7f4b0a660000-7f4b0a663000 rw-p 00000000 00:00 0
7f4b0a669000-7f4b0a66c000 rw-p 00000000 00:00 0
7f4b0a66c000-7f4b0a66d000 r--p 0001f000 fb:00 9093354                    
/lib/ld-2.11.1.so
7f4b0a66d000-7f4b0a66e000 rw-p 00020000 fb:00 9093354                    
/lib/ld-2.11.1.so
7f4b0a66e000-7f4b0a66f000 rw-p 00000000 00:00 0
7fffd1c8a000-7fffd1c9f000 rw-p 00000000 00:00 0                          
[stack]
7fffd1dff000-7fffd1e00000 r-xp 00000000 00:00 0                          
[vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0                  
[vsyscall]
Aborted


On 12/23/2010 01:32 PM, Zach La Celle wrote:
> In /var/log/syslog
>
> Dec 23 13:04:50 ************** upsmon[2010]: Poll UPS 
> [rack1ups at localhost] failed - Write error: Broken pipe
>
> After this, there is no longer a upsd daemon running.
>
> Error messages follow:
>
> Dec 23 13:04:50 ************** upsmon[2010]: Communications with UPS 
> rack1ups at localhost lost
> ...
> Dec 23 13:04:55 ************** upsmon[2010]: UPS [rack1ups at localhost]: 
> connect failed: Connection failure: Connection refused
>
> Any ideas?
>
> _______________________________________________
> Nut-upsuser mailing list
> Nut-upsuser at lists.alioth.debian.org
> http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser




More information about the Nut-upsuser mailing list