ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
From: Vitaly Blinov <vital@eltrast.ru>
To: "Dmitry V. Levin" <sisyphus@altlinux.ru>
Subject: Re[2]: [sisyphus] netstat problem
Date: Thu, 20 Feb 2003 15:24:00 +0300
Message-ID: <1701144459425.20030220152400@eltrast.ru> (raw)
In-Reply-To: <20030220114653.GB31893@basalt.office.altlinux.org>

Hello Dmitry,

Thursday, February 20, 2003, 2:46:53 PM, you wrote:

>> Нажил себе проблема - вдруг netstat стал впадать в кору
>> /usr/share/msec/security.sh: line 76: 14892 Segmentation fault      netstat
>> -pvlA inet 2>/dev/null >${OPEN_PORT_TODAY}
>> Ситуация повторяется при запуске netstat -lpu
>> ничего с ситемой серьезного не делалось.
>> net-tools-1.60-alt4
DVL> Не воспроизводится.
Условия еще не созданы, может быть...
DVL> А кто такой /usr/share/msec/security.sh?
Это в castle. Этот штук по ночам присылал мне, какие порты открылись,
а какие закрылись, пока нетстат не гикнулся.
Уже нашел, в чем проблема.
Это бага в ядре (2.4.18, судя по публикациям в инете она осталась
и в 2.4.19, а также имеется в 2.5.x)
в /proc/net/udp повявляются строчки с отрицательными инодами.
в /proc/net/raw тоже, судя по всему, могут
Похоже, в ядре зачем-то для вывода отведен signed long. Вот после пары
месяцев работы и наступил перенос.
Нетстат видит отрицательный инод и от удивления валится. Чтобы он
больше не удивлялся, пока мои руки до ядра не дойдут (сервер таки
боевой), патч для нетстата я нашел тут
http://www.mail-archive.com/cooker@linux-mandrake.com/msg83993.html
Описание ядерного бага и что-то похожее на патч, например, тут
http://www.uwsg.iu.edu/hypermail/linux/kernel/0202.2/0246.html


-- 
Best regards,
 Vitaly                            mailto:vital@eltrast.ru



      reply	other threads:[~2003-02-20 12:24 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-02-20 10:41 Vitaly Blinov
2003-02-20 11:46 ` Dmitry V. Levin
2003-02-20 12:24   ` Vitaly Blinov [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1701144459425.20030220152400@eltrast.ru \
    --to=vital@eltrast.ru \
    --cc=sisyphus@altlinux.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Sisyphus discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
		sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
	public-inbox-index sisyphus

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sisyphus


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git