hns - 日記自動生成システム - Version 2.19.9

先月 2003年05月 来月
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
Namazu for hns による簡易全文検索
詳しくは 詳細指定/ヘルプを参照して下さい
検索式:

2003年05月30日(金) 旧暦 [n年日記]

#1 [機械] 219 ?? IWsa 0:29.33 /usr/pkg/sbin/named

これって止っている ?
ttyp0:makoto@st3240  18:03:22/030530(~)> ps ax|grep named
 219 ?? IWsa 0:29.33 /usr/pkg/sbin/named 
kill -1 219 しても反応しない

1.6R:

ttyp0:root@st3240 18:09:36/030530(/home/makoto)# uname -a NetBSD st3240 1.6R NetBSD 1.6R (L2CR) #0: Sat May 17 20:04:39 JST 2003 makoto@st3240:/usr/s/src/sys/arch/macppc/compile/L2CR macppc

BIND 9.2.2:

ttyp0:root@st3240 18:09:44/030530(/home/makoto)# named -version さふいへば、こんな字が残っていた

/netbsd: sa_switch(219.10 flag 900004): Not enough stacks.:

May 30 11:34:12 st3240 /netbsd: sa_switch(219.10 flag 900004): Not enough stacks. May 30 11:34:12 st3240 /netbsd: sa_switch(219.10 flag 900004): Not enough stacks

また来た:

May 30 20:51:32 st3240 named[3941]: couldn't add command channel ::1#953: file n
sa_switch(3941.10 flag 900004): Not enough stacks.
sa_switch(3941.10 flag 900004): Not enough stacks.
May 30 21:01:44 st3240 /netbsd: sa_switch(3941.10 flag 900004): Not enough stack

netbsd-bugs: kern/20245:

core 有:

ttyp1:root@st3240 21:07:19/030530(/etc/named)# gdb /usr/pkg/sbin/named named.core
GNU gdb 5.0nb1
(gdb) where
#0 0x41b55ef4 in pthread__switch () from /usr/lib/libpthread.so.0
#1 0x41b55ee8 in pthread__switch () from /usr/lib/libpthread.so.0
(gdb)

kern_sa.c:

464 sa_switch(struct lwp *l, int type)
465 {
...  
505                 /*
506                  * XXX We need to allocate the sadata_upcall structure here,
507                  * XXX since we can't sleep while waiting for memory inside
508                  * XXX sa_upcall().  It would be nice if we could safely
509                  * XXX allocate the sadata_upcall structure on the stack, here.
510                  */
511
512                 if (sa->sa_nstacks == 0) {
513 #ifdef DIAGNOSTIC
514                         printf("sa_switch(%d.%d flag %x): Not enough stacks.\n",
515                             p->p_pid, l->l_lid, l->l_flag);
516 #endif
517                         goto sa_upcall_failed;

sysctl -a:

まさかこういう簡単な話 ?
> sysctl -a | grep stacks
proc.curproc.rlimit.stacksize.soft = 2097152
proc.curproc.rlimit.stacksize.hard = 33554432
# sysctl -w proc.curproc.rlimit.stacksize.soft=4194304
proc.curproc.rlimit.stacksize.soft: 2097152 -> 4194304
どこかで memory leak のようなことが起きていて、それがどこかが問題ということか。

#2 [MTA] send-pr したメールが送られていないなぁ

ということがあって、echo test | mail hoge@foo とかしても同じ。

/var/log/maillog:

May 30 18:34:28 harry sendmail[557]: h4U9YSrw000557: to=hoge@foo, ctladdr=makoto (2029/500), delay=00:00:00, xdelay=00:00:0 0, mailer=relay, pri=30030, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]
なんて書いてある。そうか sendmail を起動しておく必要があるのかと思って

/var/spool/clientmqueue:

May 30 18:34:28 harry sendmail[557]: dangerous permissions=40775 on queue directory /var/spool/clientmqueue/ と言っているので他の機械を見て、
drwxrwx--- 2 smmsp smmsp 1024 May 30 17:11 .
に直したら、その瞬間に起動したような気配。 で、/var/spool/clientmqueue に溜っているのを出すのはどうやるのかな というのがきょうの疑問
if [ -x /usr/sbin/sendmail ]; then
echo "Starting sendmail MTA daemon: /usr/sbin/sendmail -L sm-mta -bd -q25m"
/usr/sbin/sendmail -L sm-mta -bd -q25m
echo "Starting sendmail MSP queue runner: /usr/sbin/sendmail -L sm-msp-queue -Ac -q25m"
/usr/sbin/sendmail -L sm-msp-queue -Ac -q25m
fi
この辺かな。一つ目が MTA で、これが起動し終ってから二つ目を実行する。(& を付けてはいけない)

#3 [MTA] mail back to myself (Mx problem)

またこれで 38 通くらい失ってしまった。 内部用 dns



最近の日記
2024年03月10日
停電 (瞬電)
2024年03月03日
the second try on bare-metal
useradd
2024年02月29日
opendkim and senmail
2024年01月24日
chat/iam 0.0.8
2024年01月21日
uselocale vs setlocale (textproc/R-readxl)
以上、1 日分です。
タイトル一覧
カテゴリ分類
Powered by hns-2.19.9, HyperNikkiSystem Project

Count.cgi (since 2000/02/05)