Bug 13126 - snptd segfaults
Summary: snptd segfaults
Status: CLOSED WONTFIX
Alias: None
Product: Branch 4.0
Classification: Distributions
Component: net-snmp (show other bugs)
Version: 4.0
Hardware: all Linux
: P2 critical
Assignee: Nobody's working on this, feel free to take it
QA Contact: Q.A. 4.0
URL:
Keywords: qawanted
Depends on:
Blocks: 14168
  Show dependency tree
 
Reported: 2007-10-15 20:28 MSD by Denis Kuznetsov
Modified: 2011-01-21 01:59 MSK (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Denis Kuznetsov 2007-10-15 20:28:09 MSD
strace -f -p `pidof snmpd` :

ioctl(8, SIOCGIFINDEX, {ifr_name="tun10", ifr_index=19}) = 0
ioctl(8, SIOCGIFNETMASK, {ifr_name="tun10", ifr_netmask={AF_INET,
inet_addr("255.255.255.255")}}) = 0
ioctl(8, SIOCGIFFLAGS, {ifr_name="tun10",
ifr_flags=IFF_UP|IFF_POINTOPOINT|IFF_RUNNING|IFF_NOARP|IFF_MULTICAST}) = 0
ioctl(8, SIOCGIFINDEX, {ifr_name="tun4", ifr_index=21}) = 0
ioctl(8, SIOCGIFNETMASK, {ifr_name="tun4", ifr_netmask={AF_INET,
inet_addr("255.255.255.255")}}) = 0
ioctl(8, SIOCGIFFLAGS, {ifr_name="tun4",
ifr_flags=IFF_UP|IFF_POINTOPOINT|IFF_RUNNING|IFF_NOARP|IFF_MULTICAST}) = 0
ioctl(8, SIOCGIFINDEX, {ifr_name="tun11", ifr_index=23}) = 0
ioctl(8, SIOCGIFNETMASK, {ifr_name="tun11", ifr_netmask={AF_INET,
inet_addr("255.255.255.255")}}) = 0
ioctl(8, SIOCGIFFLAGS, {ifr_name="tun11",
ifr_flags=IFF_UP|IFF_POINTOPOINT|IFF_RUNNING|IFF_NOARP|IFF_MULTICAST}) = 0
ioctl(8, SIOCGIFINDEX, {ifr_name="tun12", ifr_index=25}) = 0
ioctl(8, SIOCGIFNETMASK, {ifr_name="tun12", ifr_netmask={AF_INET,
inet_addr("255.255.255.255")}}) = 0
ioctl(8, SIOCGIFFLAGS, {ifr_name="tun12",
ifr_flags=IFF_UP|IFF_POINTOPOINT|IFF_RUNNING|IFF_NOARP|IFF_MULTICAST}) = 0
ioctl(8, SIOCGIFINDEX, {ifr_name="ppp0", ifr_index=269}) = 0
ioctl(8, SIOCGIFNETMASK, {ifr_name="ppp0", ifr_netmask={AF_INET,
inet_addr("255.255.255.255")}}) = 0
ioctl(8, SIOCGIFFLAGS, {ifr_name="ppp0",
ifr_flags=IFF_UP|IFF_POINTOPOINT|IFF_RUNNING|IFF_NOARP|IFF_MULTICAST}) = 0
write(3, "error on subcontainer \'ia_addr\' "..., 44) = 44
time(NULL)                              = 1192465077
send(4, "<27>Oct 15 12:17:57 snmpd[27311]"..., 78, MSG_NOSIGNAL) = 78
ioctl(8, SIOCGIFINDEX, {ifr_name="ppp1", ifr_index=275}) = 0
ioctl(8, SIOCGIFNETMASK, {ifr_name="ppp1", ifr_netmask={AF_INET,
inet_addr("255.255.255.255")}}) = 0
ioctl(8, SIOCGIFFLAGS, {ifr_name="ppp1",
ifr_flags=IFF_UP|IFF_POINTOPOINT|IFF_RUNNING|IFF_NOARP|IFF_MULTICAST}) = 0
write(3, "error on subcontainer \'ia_index\'"..., 45) = 45
time(NULL)                              = 1192465077
send(4, "<27>Oct 15 12:17:57 snmpd[27311]"..., 79, MSG_NOSIGNAL) = 79
write(3, "error on subcontainer \'ia_addr\' "..., 44) = 44
time(NULL)                              = 1192465077
send(4, "<27>Oct 15 12:17:57 snmpd[27311]"..., 78, MSG_NOSIGNAL) = 78
close(8)                                = 0
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
Process 27311 detached

Steps to Reproduce:
1. конфиг дефолтный
2. настроен mrtg для мониторинга интерфейсов сервера 
3. ядро vz 
4. репозитории с сизифом не мешал, т.е. server+branch
Comment 2 Konstantin Pavlov 2008-02-17 16:44:54 MSK
Сборка с исправлением есть в Сизифе и бранче, ситуация повторяется?
Comment 3 Александр Новосёлов 2008-05-21 00:03:07 MSD
повторяется не работает. Конфиг по умолчанию.

May 20 23:54:44 localhost last message repeated 152 times
May 20 23:54:44 localhost snmpd[1917]: error on subcontainer '' insert (-1)
May 20 23:54:44 localhost last message repeated 152 times
May 20 23:54:48 localhost snmpd[1917]: Received TERM or STOP signal...  shutting
down...
May 20 23:54:48 localhost snmpd: snmpd shutdown succeeded
May 20 23:54:48 localhost snmpd: snmpd startup succeeded
May 20 23:54:49 localhost snmpd[2805]: error on subcontainer 'ia_addr' insert (-1)
May 20 23:54:49 localhost last message repeated 152 times
May 20 23:54:49 localhost snmpd[2805]: error on subcontainer '' insert (-1)
May 20 23:54:49 localhost last message repeated 152 times
May 20 23:54:49 localhost snmpd[2805]: error finding row index in
_ifXTable_container_row_restore
May 20 23:54:49 localhost last message repeated 6 times
May 20 23:54:49 localhost snmpd[2805]: NET-SNMP version 5.4
Comment 4 Konstantin Pavlov 2008-05-21 00:08:00 MSD
У меня есть еще идеи насчет этого, см.:
02:23 <@tanders> thresh: http://www.net-
snmp.org/wiki/index.php/5.4.2_open_issues#ipAddressTable_crashes                                                                                                
02:24 <@tanders> solved in r16804.                                                                  

Я не доберусь приложить эти патчи раньше конца недели, поэтому если Вы сможете их проверить, 
было бы очень хорошо.
Comment 5 Александр Новосёлов 2008-05-22 00:31:23 MSD
прошу пардона... у меня сервер 4.0.1 без бранча - соответственно snmpd там
net-snmp-5.4-alt3

проблема с впн интерфейсами и их повторяющимися адресами

6240: ppp90: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1400 qdisc htb qlen 3
    link/ppp
    inet 192.168.6.1 peer 172.16.24.245/32 scope global ppp90
6242: ppp108: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1400 qdisc htb qlen 3
    link/ppp
    inet 192.168.6.1 peer 172.16.24.174/32 scope global ppp108

тут есть решение
http://net-snmp.svn.sourceforge.net/viewvc/net-snmp?view=rev&revision=16804

очень надо обновление для Server...
Comment 6 Александр Новосёлов 2008-05-31 17:42:36 MSD
Сервер 4.0.1. Поставил обновление net-snmp из бранча... не работает... очень
нужен snmp... 

May 31 17:28:31 vpn6 snmpd[5134]: error on subcontainer 'ia_addr' insert (-1)
May 31 17:28:31 vpn6 snmpd[5134]: error on subcontainer 'ia_index' insert (-1)
May 31 17:28:31 vpn6 snmpd[5134]: error on subcontainer 'ia_addr' insert (-1)
May 31 17:28:31 vpn6 snmpd[5134]: error on subcontainer 'ia_index' insert (-1)
May 31 17:28:31 vpn6 snmpd[5134]: error on subcontainer 'ia_addr' insert (-1)
May 31 17:28:31 vpn6 snmpd[5134]: error on subcontainer 'ia_index' insert (-1)
May 31 17:28:31 vpn6 snmpd[5134]: error on subcontainer 'ia_addr' insert (-1)
May 31 17:28:31 vpn6 snmpd[5134]: error on subcontainer 'ia_index' insert (-1)
May 31 17:28:31 vpn6 snmpd[5134]: error on subcontainer 'ia_addr' insert (-1)
May 31 17:28:31 vpn6 snmpd[5134]: error on subcontainer 'ia_index' insert (-1
Comment 7 Michael Shigorin 2008-06-01 22:11:29 MSD
(In reply to comment #4)
>
http://www.net-snmp.org/wiki/index.php/5.4.2_open_issues#ipAddressTable_crashes
                                                                               
               
> solved in r16804.                                                            
     
2 dek: мож попробуешь собрать/выложить?
Comment 8 Slava Dubrovskiy 2011-01-21 01:59:18 MSK
Устарело для 4.0