Re: NetBSD 10.0 - configure test process hang

Riccardo Mottola <[email protected]>
Newsgroups gmane.os.netbsd.ports.sparc
Message-ID <[email protected]>
Hi,

Robert Elz wrote:
> "select" means it is waiting for something to happen, perhaps to read
> some output.
> 
> Its ancestor chain (parent, grandparent, ...) are pids 29639, 24416, 29612,
> 1736, 7001, 28722, 29395, 16410, 11612, 22302, 2638, 2040, 1949
> 
> all of which except the last two are in "wait" state, waiting for a
> child ("the" child I suspect) to complete.   The last two are so far
> up the food chain that even though they're not actually doing a wait,
> that's probably close enough to what they are doing (via a different
> mechanism perhaps).

wonder how that can help us. I hope it can be fixed.

I am continuing to build packages on my SS20 (some considerations
separately in another mail then). I usually stop and resume and things
go on, so the system is not locked up, howeve some process may require
some "kill -9" along in the build tree instead of just a ctrl-c
(sometimes enough) to cleanup.

e.g. here, building emacs

  INFO     Scraping files for diary-loaddefs.el...100%
  INFO     Scraping files for diary-loaddefs.el...done
  GEN      ../lisp/leim/quail/SW.el

hang. Top shows... "nothing".. No activity:

load averages:  0.00,  0.00,  0.00;               up 4+00:53:15
                                  10:50:21
37 processes: 36 sleeping, 1 on CPU
CPU states:  0.2% user,  0.0% nice,  0.8% system,  0.1% interrupt, 98.9%
idle
Memory: 169M Act, 92M Inact, 24K Wired, 47M Exec, 184M File, 21M Free
Swap: 1033M Total, 56M Used, 977M Free / Pools: 93M Used / Network:

  PID USERNAME PRI NICE   SIZE   RES STATE       TIME   WCPU    CPU COMMAND
    0 root     222    0     0K   14M nd6_ti/1   55:49  0.00%  0.00% [system]
24094 multix    43    0  7784K 1772K CPU/1       8:05  0.00%  0.00% top
13763 root      85    0    13M  952K poll/0      1:39  0.00%  0.00% telnetd
 2855 root      33    0    70M 3024K parked/1    0:51  0.00%  0.00% emacs
27032 root      34    0    80M   24M parked/0    0:38  0.00%  0.00%
bootstrap-emacs
 1023 multix    85    0    17M  964K poll/0      0:33  0.00%  0.00% sshd
22996 root      33    0    69M 3772K parked/0    0:31  0.00%  0.00% emacs
22429 root      85    0  8136K 1032K wait/0      0:22  0.00%  0.00% gmake
 1372 root      85    0    16M  964K kqueue/0    0:18  0.00%  0.00% master
 4441 root      82    0  8724K  836K wait/1      0:18  0.00%  0.00% make
23416 root      85    0  8040K 1040K wait/0      0:16  0.00%  0.00% gmake
10412 root      83    0  8184K  836K wait/0      0:15  0.00%  0.00% make
  698 root      85    0    12M 1188K kqueue/0    0:13  0.00%  0.00% syslogd
 1470 root      85    0  6588K 1004K nanosl/1    0:12  0.00%  0.00% cron
11050 root      85    0  8016K 1936K select/1    0:08  0.00%  0.00% gmake
 4550 root      84    0  8152K  832K wait/0      0:06  0.00%  0.00% make
16965 root      43    0    66M 3756K parked/0    0:06  0.00%  0.00% emacs
 8316 root      30    0    66M 3008K parked/1    0:06  0.00%  0.00% emacs
11173 root      29    0    76M   21M parked/1    0:06  0.00%  0.00%
bootstrap-emacs
 1880 postfix   85    0    16M 1444K kqueue/1    0:05  0.00%  0.00% qmgr
  187 root      85    0    16M  864K poll/1      0:05  0.00%  0.00% sshd
22838 root      83    0  7360K 1036K wait/0      0:04  0.00%  0.00% gmake
11060 root      78    0  7504K 2164K wait/1      0:04  0.00%  0.00% gmake
 7239 multix    85    0    13M 1124K poll/0      0:02  0.00%  0.00% sudo
13865 root      85    0    13M  800K wait/0      0:01  0.00%  0.00% login
19705 postfix   85    0    16M 3952K kqueue/0    0:00  0.00%  0.00% pickup
14492 root      85    0  6852K 1828K select/0    0:00  0.00%  0.00% gmake
11594 root      85    0  6228K 1016K wait/0      0:00  0.00%  0.00% sh
15741 multix    85    0  6908K  884K pause/0     0:00  0.00%  0.00% csh
  183 multix    85    0  7020K  864K pause/0     0:00  0.00%  0.00% csh
    1 root      85    0  6176K  800K wait/1      0:00  0.00%  0.00% init
 1139 root      85    0    16M  716K poll/0      0:00  0.00%  0.00% sshd
 1848 root      85    0  6200K  712K kqueue/0    0:00  0.00%  0.00% inetd
 5456 multix    85    0    13M  640K poll/1      0:00  0.00%  0.00% sudo
26961 root      83    0  6132K 1016K wait/1      0:00  0.00%  0.00% sh
 1469 root      81    0  5872K  768K ttyraw/0    0:00  0.00%  0.00% getty
24892 root      80    0  8780K 2356K select/1    0:00  0.00%  0.00% gmake

the two bootstrap-emacs processes are parked. cpu 0.00%

 UID   PID  PPID   CPU PRI NI   VSZ   RSS WCHAN  STAT TTY       TIME COMMAND
   0  1469     1 17886  81  0  5872   768 ttyraw Is+  ttya   0:00.11
/usr/libexec/getty suncons constty
1000   183  1023     0  85  0  7020   864 pause  Is   pts/0  0:00.50 -csh
   0  7239   183   682  85  0 12976  1124 poll   I+   pts/0  0:02.78
sudo make install
   0  2855 22429 21845  33  0 71348  3024 parked Il   pts/1- 0:51.24
../src/emacs -batch --no-site-lisp --no-site-file --eval (setq
load-prefer-newer t) -f batch-byte-compile cedet/semantic/db-javascript.el
   0  4441 26961 13932  82  0  8724   836 wait   I+   pts/1  0:18.72
/usr/bin/make LOWER_OPSYS=netbsd _PKGSRC_BARRIER=yes
ALLOW_VULNERABLE_PACKAGES= package-install
   0  4550  5456  5127  84  0  8152   832 wait   I+   pts/1  0:06.55
make install
   0  5456  7239     0  85  0 12976   640 poll   Is   pts/1  0:00.03
sudo make install
   0  8316 22429 27067  43  0 67104  3008 parked Il   pts/1- 0:06.41
../src/emacs -batch --no-site-lisp --no-site-file --eval (setq
load-prefer-newer t) -f batch-byte-compile cedet/ede/proj-obj.el
   0 10412 11594  8589  83  0  8184   836 wait   I+   pts/1  0:15.48
/usr/bin/make _MAKE=/usr/bin/make OPSYS=NetBSD OS_VERSION=10.0
OPSYS_VERSION=100000 LOWER_OPSYS=netbsd _PKGSRCDIR=/usr/pkgsrc
PKGTOOLS_VERSION=20210410 UNPRIVILEGED_USER=root UN
   0 11050 11060     0  85  0  8016  1936 select I+   pts/1  0:08.02
/usr/pkg/bin/gmake -C src VCSWITNESS= BIN_DESTDIR=/usr/pkg/bin/
ELN_DESTDIR=/usr/pkg/lib/emacs/28.2/ all
   0 11060 22838 29228  78  0  7504  2164 wait   I+   pts/1  0:04.55
/usr/pkg/bin/gmake all
   0 11173 14492 58590  29  0 78240 21348 parked Il+  pts/1  0:06.95
../src/bootstrap-emacs -batch --no-site-lisp --no-site-file -l
titdic-cnv -f batch-titdic-convert -dir ./../lisp/leim/quail
CXTERM-DIC/Punct.tit
   0 11594  4550  3898  85  0  6228  1016 wait   I+   pts/1  0:00.14
/bin/sh -c set -e;\t\t\t\t\t\t\t\t test -n "" && echo 1>&2 "ERROR:"  &&
exit 1;  exec 3<&0;\t\t\t\t\t\t\t while read type pattern dir;
do\t\t\t\t\t test "$type" != "bootstrap" |
   0 14492 24892   682  85  0  6852  1828 select I+   pts/1  0:00.48
/usr/pkg/bin/gmake -C ../leim all EMACS=../src/bootstrap-emacs
   0 16965 23416 23592  43  0 67104  3756 parked Il   pts/1- 0:06.36
../src/emacs -batch --no-site-lisp --no-site-file --eval (setq
load-prefer-newer t) -f batch-byte-compile calc/calc-graph.el
   0 22429     1     0  85  0  8136  1032 wait   I    pts/1- 0:22.21
/usr/pkg/bin/gmake compile-targets NATIVE_DISABLED=
TARGETS=./emacs-lisp/eieio.elc ./emacs-lisp/eieio-base.elc
./cedet/semantic/db.elc ./abbrev.elc ./align.elc ./allout-widgets.
   0 22838  4441  9421  83  0  7360  1036 wait   I+   pts/1  0:04.63
/usr/pkg/bin/gmake -j2 -f Makefile bootstrap
   0 22996 23416 21365  33  0 70956  3772 parked Il   pts/1- 0:31.76
../src/emacs -batch --no-site-lisp --no-site-file --eval (setq
load-prefer-newer t) -f batch-byte-compile calc/calc-incom.el
   0 23416     1     0  85  0  8040  1040 wait   I    pts/1- 0:16.04
/usr/pkg/bin/gmake compile-targets NATIVE_DISABLED=
TARGETS=./emacs-lisp/eieio.elc ./emacs-lisp/eieio-base.elc
./cedet/semantic/db.elc ./abbrev.elc ./align.elc ./allout-widgets.
   0 24892 11050 21390  80  0  8780  2356 select I+   pts/1  0:00.84
/usr/pkg/bin/gmake -C ../lisp autoloads EMACS=../src/bootstrap-emacs
   0 26961 10412  9131  83  0  6132  1016 wait   I+   pts/1  0:00.09
/bin/sh -c set -e;\t\t\t\t\t if test -n "" &&  /usr/sbin/pkg_info -K
/var/db/pkg -qe emacs28-28.2nb15; then  echo ===\\> "Skipping
installation of already handled package";  els
   0 27032 14492 40649  34  0 82268 24116 parked Il+  pts/1  0:38.62
../src/bootstrap-emacs -batch --no-site-lisp --no-site-file -l
titdic-cnv -f batch-titdic-convert -dir ./../lisp/leim/quail
CXTERM-DIC/SW.tit
   0 13865 13763     0  85  0 13596   800 wait   Is   pts/2  0:01.41 login
1000 15741 13865     0  85  0  6908  1304 pause  S    pts/2  0:00.61 -csh
1000 21282 15741  1024  42  0  6208  1396 -      O+   pts/2  0:00.08 ps -al

what kind of hang/lock is going on?

I'm installing pstree now. Should help next time.

-R
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.