Today i tried to open a new ticket, but it refuses to
accept it, because it's SPAM and i have not solved the
captcha (which is'nt there). This was the Tickets, first line
ist subject line:

opkg loops forever with high load / r38427 / opkg v0.1.8 / ar71xx


Today we detected some issues:

in our setup we automatically 'opkg install' a package after flashing.
from ~250 nodes around 10 nodes where in a state where
opkg consumes 100% cpu without doing anything (useful):

the package in question is an _empty_ package with a postinstall.sh:
http://intercity-vpn.de/networks/schoeneck/packages/sshpubkeys_0.6.ipk

fetching the package is NOT the problem, because we first download into
ramdisc and then install.

top:
{{{
Mem: 23488K used, 5580K free, 0K shrd, 1176K buff, 4904K cached
CPU: 100% usr   0% sys   0% nic   0% idle   0% io   0% irq   0% sirq
Load average: 1.00 1.01 1.05 3/41 8976
  PID  PPID USER     STAT   VSZ %VSZ %CPU COMMAND
 7199  7197 root     R     1116   4%  92% /bin/opkg install
/tmp/sshpubkeys_0.6
 8976  8942 root     R     1492   5%   8% top
 1957     1 root     S     1756   6%   0% /usr/sbin/olsrd -f
/var/etc/olsrd.con
 6659  6658 root     S     1692   6%   0% {cron.upgrade_pa} /bin/sh
/usr/sbin/c
 7006     1 root     S     1664   6%   0% hostapd -P
/var/run/wifi-phy0.pid -B
 2679     1 root     S     1656   6%   0% /usr/sbin/uhttpd -f -h /www -r
HausB-
 5213  2736 root     S     1648   6%   0% /bin/sh -c .
/tmp/CRON_IS_CAREFUL
 8942  8941 root     S     1520   5%   0% -ash
 1370     1 root     S     1508   5%   0% /sbin/netifd
 2736     1 root     S     1508   5%   0% /usr/sbin/crond -L /dev/null
 6658  5213 root     S     1488   5%   0% /bin/sh -c
cron.upgrade_packages; rm
    1     0 root     S     1376   5%   0% /sbin/procd
 8941  2646 root     S     1204   4%   0% /usr/sbin/dropbear -F -P
/var/run/dro
 2646     1 root     S     1160   4%   0% /usr/sbin/dropbear -F -P
/var/run/dro
 7197  6659 root     S     1048   4%   0% /bin/opkg install
/tmp/sshpubkeys_0.6
 2779     1 nobody   S     1032   4%   0% /usr/sbin/dnsmasq -C
/var/etc/dnsmasq
 2784  2779 root     S     1024   4%   0% /usr/sbin/dnsmasq -C
/var/etc/dnsmasq
  360     1 root     S <    880   3%   0% ubusd
  258     2 root     SW       0   0%   0% [kworker/u2:2]
^C776     2 root     SW       0   0%   0% [kworker/0:1]
}}}

{{{
root@HausB-1339-AP:~ uptime
 08:47:54 up  6:00,  load average: 1.00, 1.01, 1.04
}}}

it also happens with other packages, e.g on this node:
{{{
root@schoeneck-ap--41:~ ps
  PID USER       VSZ STAT COMMAND
    1 root      1376 S    /sbin/procd
    2 root         0 SW   [kthreadd]
    3 root         0 SW   [ksoftirqd/0]
    5 root         0 SW<  [kworker/0:0H]
    7 root         0 SW<  [khelper]
   58 root         0 SW<  [writeback]
   60 root         0 SW<  [bioset]
   62 root         0 SW<  [kblockd]
   92 root         0 SW   [kswapd0]
  137 root         0 SW   [fsnotify_mark]
  151 root         0 SW<  [ath79-spi]
  227 root         0 SW<  [deferwq]
  239 root         0 SW   [khubd]
  261 root         0 SW   [kworker/0:2]
  313 root         0 SWN  [jffs2_gcd_mtd3]
  360 root       880 S <  ubusd
 1195 root         0 SW<  [bat_events]
 1268 root         0 SW<  [cfg80211]
 1357 root      1508 S    /sbin/netifd
 2007 root      1800 S    /usr/sbin/olsrd -f /var/etc/olsrd.conf -nofork
 2019 root         0 SW<  [kworker/0:1H]
 2257 root      1664 S    hostapd -P /var/run/wifi-phy0.pid -B
/var/run/hostapd-phy0.conf
 2633 root      1160 S    /usr/sbin/dropbear -F -P
/var/run/dropbear.1.pid -p 22
 2666 root      1692 S    /usr/sbin/uhttpd -f -h /www -r
schoeneck-ap--41 -c /etc/httpd.conf -x /cgi-bin -t 60 -T 30 -A 1 -E
/cgi-bin-404.sh -n 3 -R -p 0.0.0
 2723 root      1508 S    /usr/sbin/crond -L /dev/null
 2766 nobody    1048 S    /usr/sbin/dnsmasq -C /var/etc/dnsmasq.conf -k
 2770 root      1024 S    /usr/sbin/dnsmasq -C /var/etc/dnsmasq.conf -k
 5004 root         0 SW   [kworker/0:1]
 7172 root      1648 S    /bin/sh -c . /tmp/CRON_IS_CAREFUL
 8423 root      1488 S    /bin/sh -c cron.upgrade_packages; rm
/tmp/DEBUG   # cron.upgrade_packages; rm /tmp/DEBUG
 8424 root      1692 S    {cron.upgrade_pa} /bin/sh
/usr/sbin/cron.upgrade_packages
 8589 root      1048 S    /bin/opkg install /tmp/mydesign_0.1_8424.ipk
 8590 root      1112 R    /bin/opkg install /tmp/mydesign_0.1_8424.ipk
 9546 root         0 SW   [kworker/u2:2]
11138 root         0 SW   [kworker/u2:1]
12626 root      1204 S    /usr/sbin/dropbear -F -P
/var/run/dropbear.1.pid -p 22
12627 root      1516 S    -ash
12632 root         0 SW   [kworker/0:0]
12633 root         0 SW   [kworker/u2:0]
12650 root      1492 R    ps
}}}

{{{
root@schoeneck-ap--41:~ free
             total         used         free       shared      buffers
Mem:         29068        27632         1436            0         2664
-/+ buffers:              24968         4100
Swap:        14332            0        14332
root@schoeneck-ap--41:~ uptime
 08:41:07 up 10:11,  load average: 1.00, 1.01, 1.04
}}}

what should i do for debugging this?
idea: crash opkg in this state to get a crashdump -> gdb

# this ticket was detected as 'spam' and i must solve a captcha, which
# is not there 8-( so a append text to force a new check ("TypePad says
# the content is SPAM")
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to