パイプを使うとbashがハングアップ

Debian LS-HGL

かんぱぱさんに パイプを使うとbashがハングアップと指摘いただいた。
おそまきながら検証する。

LS-XHL, LS-QL 対応ハックキットの確認(4)LS-HGL をもう一度実行する。

準備(それ以外 の場合)

標準ファームに root でログインできるようにします

済み

標準ファームで起動

ハックキットのファイルを置きます

ログイン

BUFFALO INC. LinkStation series LS-HGL(SUININ)
LS-HGL487 login: root
root@LS-HGL487:~#

時計を合わせる

root@LS-HGL487:~# date
Thu Nov  1 00:12:59 JST 2007
root@LS-HGL487:~# date 042121202009
Tue Apr 21 21:20:00 JST 2009
root@LS-HGL487:~#

インストールする HDD の準備

(1) ハックキットをインストールする HDD を USB で接続します。

root@LS-HGL487:~# tail -f /var/log/messages
	:
/sbin/hotplug [usb]
/sbin/hotplug [usb]
/sbin/hotplug [scsi_host]
/sbin/hotplug [usb_device]
Apr 21 21:21:53 LS-HGL487 kernel: usb 1-1: new high speed USB device using ehci_platform and address 2
Apr 21 21:21:53 LS-HGL487 kernel: usb 1-1: configuration #1 chosen from 1 choice
Apr 21 21:21:53 LS-HGL487 kernel: scsi2 : SCSI emulation for USB Mass Storage devices
  Vendor: ST325082  Model:         3ND06QAZ  Rev:
  Type:   Direct-Access                      ANSI SCSI revision: 02
/sbin/hotplug [scsi]
SCSI device sdb: 488397168 512-byte hdwr sectors (250059 MB)
sdb: Write Protect is off
sdb: assuming drive cache: write through
/sbin/hotplug [block]
SCSI device sdb: 488397168 512-byte hdwr sectors (250059 MB)
sdb: Write Protect is off
sdb: assuming drive cache: write through
sd 2:0:0:0: Attached scsi disk sdb
sd 2:0:0:0: Attached scsi generic sg1 type 0
/sbin/hotplug [scsi_device]
/sbin/hotplug [scsi_generic]
Apr 21 21:21:58 LS-HGL487 kernel:   Vendor: ST325082  Model:         3ND06QAZ  Rev:
Apr 21 21:21:58 LS-HGL487 kernel:   Type:   Direct-Access                      ANSI SCSI revision: 02
Apr 21 21:21:58 LS-HGL487 kernel: SCSI device sdb: 488397168 512-byte hdwr sectors (250059 MB)
Apr 21 21:21:58 LS-HGL487 kernel: sdb: Write Protect is off
Apr 21 21:21:58 LS-HGL487 kernel: sdb: assuming drive cache: write through
Apr 21 21:21:58 LS-HGL487 kernel: SCSI device sdb: 488397168 512-byte hdwr sectors (250059 MB)
Apr 21 21:21:58 LS-HGL487 kernel: sdb: Write Protect is off
Apr 21 21:21:58 LS-HGL487 kernel: sdb: assuming drive cache: write through
Apr 21 21:21:58 LS-HGL487 kernel:  sdb:
Apr 21 21:21:58 LS-HGL487 kernel: sd 2:0:0:0: Attached scsi disk sdb
Apr 21 21:21:58 LS-HGL487 kernel: sd 2:0:0:0: Attached scsi generic sg1 type 0
DEVNAME=sdb
2 GUID=152d23380000222238d061a0
usb_disk1=152d23380000222238d061a0
in mount_usbdisk(): param 1
BASENAME=usbdisk1
MPT=/mnt/usbdisk1/
/sbin/hotplug [module]
/sbin/hotplug [module]
FAT: utf8 is not a recommended IO charset for FAT filesystems, filesystem will be case sensitive!
FAT: bogus number of reserved sectors
/sbin/hotplug [block]
Apr 21 21:22:04 LS-HGL487 kernel: FAT: utf8 is not a recommended IO charset for FAT filesystems, filesystem will be case sensitive!
Apr 21 21:22:04 LS-HGL487 kernel: FAT: bogus number of reserved sectors
Apr 21 21:22:04 LS-HGL487 kernel: VFS: Can't find a valid FAT filesystem on dev sdb.

(2) /mnt/usbdisk1 に自動的にマウントされた場合はアンマウントします。

root@LS-HGL487:~# df
Filesystem           1k-blocks      Used Available Use% Mounted on
/dev/root.old            15351     14671       680  96% /initrd
/dev/sda2              4994004    244480   4749524   5% /
/dev/ram1                15360       104     15256   1% /mnt/ram
/dev/sda1               988212     24464    963748   2% /boot
/dev/sda6            237067816   9338224 227729592   4% /mnt/disk1
root@LS-HGL487:~#
ん?マウントされていない。

(3) sdb にパーティションを切ります。

root@LS-HGL487:~# fdisk -l /dev/sdb

Disk /dev/sdb: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
root@LS-HGL487:~#
なるほど、自動マウントされないのは、パーティションがないからか。
パーティションを切る。
root@LS-HGL487:~# fdisk  /dev/sdb

The number of cylinders for this disk is set to 30401.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
   (e.g., DOS FDISK, OS/2 FDISK)

Command (m for help): n
Command action
   e   extended
   p   primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-30401, default 1):
Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-30401, default 30401): 25

Command (m for help): p

Disk /dev/sdb: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1          25      200781   83  Linux

Command (m for help): n
Command action
   e   extended
   p   primary partition (1-4)
p
Partition number (1-4): 2
First cylinder (26-30401, default 26):
Using default value 26
Last cylinder or +size or +sizeM or +sizeK (26-30401, default 30401): 275

Command (m for help): n
Command action
   e   extended
   p   primary partition (1-4)
p
Partition number (1-4): 3
First cylinder (276-30401, default 276):
Using default value 276
Last cylinder or +size or +sizeM or +sizeK (276-30401, default 30401): 307

Command (m for help): n
Command action
   e   extended
   p   primary partition (1-4)
p
Selected partition 4
First cylinder (308-30401, default 308):
Using default value 308
Last cylinder or +size or +sizeM or +sizeK (308-30401, default 30401):
Using default value 30401

Command (m for help): p

Disk /dev/sdb: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1          25      200781   83  Linux
/dev/sdb2              26         275     2008125   83  Linux
/dev/sdb3             276         307      257040   83  Linux
/dev/sdb4             308       30401   241730055   83  Linux

Command (m for help): t
Partition number (1-4): 3
Hex code (type L to list codes): 82
Changed system type of partition 3 to 82 (Linux swap)

Command (m for help): p

Disk /dev/sdb: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1          25      200781   83  Linux
/dev/sdb2              26         275     2008125   83  Linux
/dev/sdb3             276         307      257040   82  Linux swap
/dev/sdb4             308       30401   241730055   83  Linux

Command (m for help): w
The partition table has been altered!

Calling ioctl() to re-read partition table.
SCSI device sdb: 488397168 512-byte hdwr sectors (250059 MB)
sdb: Write Protect is off
sdb: assuming drive cache: write through
/sbin/hotplug [block]
/sbin/hotplug [block]
/sbin/hotplug [block]
/sbin/hotplug [block]
/sbin/hotplug [block]
/sbin/hotplug [block]
/sbin/hotplug [block]
/sbin/hotplug [block]
SCSI device sdb: 488397168 512-byte hdwr sectors (250059 MB)
sdb: Write Protect is off
sdb: assuming drive cache: write through
/sbin/hotplug [block]
/sbin/hotplug [block]
/sbin/hotplug [block]
/sbin/hotplug [block]
Syncing disks.
root@LS-HGL487:~#

インストール

カスタマイズ

前回作った hackkit_config が残っているはず。
root@LS-HGL487:~# cd /mnt/disk1/share/hackkit
root@LS-HGL487:/mnt/disk1/share/hackkit# cat hackkit_config
ADDRESS=192.168.2.44
HOSTNAME=busu
root@LS-HGL487:/mnt/disk1/share/hackkit#

インストーラの実行

root@LS-HGL487:/mnt/disk1/share/hackkit# sh hackkit_090227.sh
PRODUCTID = 0x0000000E
formating hard drive ...
mke2fs 1.27 (8-Mar-2002)
Filesystem label=
OS type: Linux
Block size=1024 (log=0)
Fragment size=1024 (log=0)
50200 inodes, 200781 blocks
10039 blocks (5.00%) reserved for the super user
First data block=1
25 block groups
8192 blocks per group, 8192 fragments per group
2008 inodes per group
Superblock backups stored on blocks:
        8193, 24577, 40961, 57345, 73729

Writing inode tables: done
Creating journal (4096 blocks): done
Writing superblocks and filesystem accounting information: done

This filesystem will be automatically checked every 24 mounts or
180 days, whichever comes first.  Use tune2fs -c or -i to override.
meta-data=/dev/sdb2              isize=256    agcount=8, agsize=62754 blks
         =                       sectsz=512
data     =                       bsize=4096   blocks=502031, imaxpct=25
         =                       sunit=0      swidth=0 blks, unwritten=1
naming   =version 2              bsize=4096
log      =internal log           bsize=4096   blocks=2560, version=1
         =                       sectsz=512   sunit=0 blks
realtime =none                   extsz=65536  blocks=0, rtextents=0
Setting up swapspace version 1, size = 263204864 bytes
meta-data=/dev/sdb4              isize=256    agcount=58, agsize=1048576 blks
         =                       sectsz=512
data     =                       bsize=4096   blocks=60432513, imaxpct=25
         =                       sunit=0      swidth=0 blks, unwritten=1
naming   =version 2              bsize=4096
log      =internal log           bsize=4096   blocks=29508, version=1
         =                       sectsz=512   sunit=0 blks
realtime =none                   extsz=65536  blocks=0, rtextents=0
mounting root file system ...
XFS mounting filesystem sdb2
/sbin/hotplug [block]
extracting hackkit archive ...
./
./var/
./var/lib/
./var/lib/apt/
./var/lib/apt/lists/
./var/lib/apt/lists/partial/
	:
	:
./media/
./initrd/
creating miconapl ...
creating kernelmon ...
copying /lib/modules ...
lib/modules/
lib/modules/usblp.ko
	:
	:
lib/modules/2.6.16.16-arm1/modules.symbols
creating usb ...
/sbin/hotplug [block]
checking /dev/sdb1
fsck 1.27 (8-Mar-2002)
e2fsck 1.27 (8-Mar-2002)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
/dev/sdb1: 11/50200 files (0.0% non-contiguous), 10465/200781 blocks
mounting /boot ...
/sbin/hotplug [block]
copying /boot ...
initrd.buffalo
uImage.buffalo
editing initrd ...
93266+1 records in
93266+1 records out
gunziping /mnt/debinst/boot/initrd.gz ...
/sbin/hotplug [block]
/sbin/hotplug [block]
gziping /mnt/debinst/boot/initrd ... wait 5 minutes
Image Name:   initrd
Created:      Tue Apr 21 21:38:21 2009
Image Type:   ARM Linux RAMDisk Image (gzip compressed)
Data Size:    5950105 Bytes = 5810.65 kB = 5.67 MB
Load Address: 0x00000000
Entry Point:  0x00000000
unmount /boot ...
umount: /mnt/debinst/boot: device is busy
umount: /mnt/debinst/boot: device is busy
root@LS-HGL487:/mnt/disk1/share/hackkit#

電源 OFF

ハックキットで起動

HDD の交換

起動

	:
	:
---- in hackkit linuxrc ---
XFS mounting filesystem sda2
VFS: Mounted root (xfs filesystem).
Trying to move old root to /initrd ... okay
Freeing init memory: 108K
INIT: version 2.86 booting
Setting the system clock.
Activating swap...Adding 257032k swap on /dev/sda3.  Priority:-1 extents:1 across:257032k
done.
Setting the system clock.
Cleaning up ifupdown....
Loading kernel modules...done.
Checking file systems...fsck 1.41.3 (12-Oct-2008)
/dev/sda1: recovering journal
/dev/sda1: Clearing orphaned inode 6027 (uid=0, gid=0, mode=0100644, size=16777216)
/dev/sda1: Superblock last mount time is in the future.  FIXED.
/dev/sda1: Backing up journal inode block information.

/dev/sda1 has filesystem last checked time in the future, check forced.
/dev/sda1: 13/50200 files (7.7% non-contiguous), 17984/200781 blocks
/sbin/fsck.xfs: XFS file system.
fsck died with exit status 1
done.
Setting kernel variables (/etc/sysctl.conf)...Unknown HZ value! (113) Assume 100.
done.
Mounting local filesystems...kjournald starting.  Commit interval 5 seconds
EXT3 FS on sda1, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
XFS mounting filesystem sda4
done.
Activating swapfile swap...done.
Setting up networking....
Configuring network interfaces...eth0: link down
done.
INIT: Entering runlevel: 2
Starting enhanced syslogd: rsyslogd.
usbcore: registered new driver usbfs
usbcore: registered new driver hub
ehci_platform ehci_platform.4523: EHCI Platform Host Controller
ehci_platform ehci_platform.4523: new USB bus registered, assigned bus number 1
ehci_platform ehci_platform.4523: irq 17, io mem 0x00000000
ehci_platform ehci_platform.4523: USB 0.0 started, EHCI 1.00, driver 10 Dec 2004
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
ehci_platform ehci_platform.16781: EHCI Platform Host Controller
ehci_platform ehci_platform.16781: new USB bus registered, assigned bus number 2
eth0: link up<5>, full duplex<5>, speed 1 Gbps<5>
ehci_platform ehci_platform.16781: irq 12, io mem 0x00000000
ehci_platform ehci_platform.16781: USB 0.0 started, EHCI 1.00, driver 10 Dec 2004
usb usb2: configuration #1 chosen from 1 choice
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 1 port detected
Initializing USB Mass Storage driver...
usbcore: registered new driver usb-storage
USB Mass Storage support registered.
usbcore: registered new driver usblp
drivers/usb/class/usblp.c: v0.13: USB Printer Device Class driver
Starting internet superserver: inetd.
Starting periodic command scheduler: crond.

Debian GNU/Linux 5.0 busu ttyS0

busu login:

最初の設定

ログイン

Debian GNU/Linux 5.0 busu ttyS0

busu login: guest
Password:
Linux busu 2.6.16.16-arm1 #131 Sat Dec 27 13:21:07 JST 2008 armv5tejl

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
No directory, logging in with HOME=/
guest@busu:/$ 

| パイプを試す

ここでパイプを使うと bash がハングアップするかどうかを確認する。
guest@busu:/$ ls | more
bin
boot
dev
etc
home
initrd
lib
media
mnt
opt
proc
root
sbin
selinux
srv
sys
tmp
usr
var
guest@busu:/$ ls | more
bin
boot
dev
etc
home
initrd
lib
media
mnt
opt
proc
root
sbin
selinux
srv
sys
tmp
usr
var
guest@busu:/$ ls | more
3回目にハングアップした。
サスペンドさせる
(CTRL-Z)
[1]+  Stopped                 ls | more
guest@busu:/$
kill する。
guest@busu:/$ kill %
guest@busu:/$ jobs
[1]+  Running                 ls | more &
guest@busu:/$ kill %
guest@busu:/$ kill %1
guest@busu:/$ jobs
[1]+  Running                 ls | more &
guest@busu:/$
死なない(藁)

最後の手段

guest@busu:/$ kill -9 563
guest@busu:/$ 
[1]+  Done                    ls | more
guest@busu:/$ jobs
guest@busu:/$
もう一度試す。
guest@busu:/$ ls |more
bin
boot
dev
etc
home
initrd
lib
media
mnt
opt
proc
root
sbin
selinux
srv
sys
tmp
usr
var
guest@busu:/$ ls |more
bin
boot
dev
etc
home
initrd
lib
media
mnt
opt
proc
root
sbin
selinux
srv
sys
tmp
usr
var
guest@busu:/$ ls |more
bin
boot
dev
etc
home
initrd
lib
media
mnt
opt
proc
root
sbin
selinux
srv
sys
tmp
usr
var
guest@busu:/$ ls |more
bin
boot
dev
etc
home
initrd
lib
media
mnt
opt
proc
root
sbin
selinux
srv
sys
tmp
usr
var
guest@busu:/$ ls |more
bin
boot
dev
etc
home
initrd
lib
media
mnt
opt
proc
root
sbin
selinux
srv
sys
tmp
usr
var
guest@busu:/$ ls |more
bin
boot
dev
etc
home
initrd
lib
media
mnt
opt
proc
root
sbin
selinux
srv
sys
tmp
usr
var
guest@busu:/$ ls |more
bin
boot
dev
etc
home
initrd
lib
media
mnt
opt
proc
root
sbin
selinux
srv
sys
tmp
usr
var
guest@busu:/$ ls |more
bin
boot
dev
etc
home
initrd
lib
media
mnt
opt
proc
root
sbin
selinux
srv
sys
tmp
usr
var
guest@busu:/$ ls |more
bin
boot
dev
etc
home
initrd
lib
media
mnt
opt
proc
root
sbin
selinux
srv
sys
tmp
usr
var
guest@busu:/$
全然平気。なぞ。

root になる

guest@busu:/$ su - root
Password:
busu:~#

時計を合わせる

busu:~# date
Thu Nov  1 00:45:44 JST 2007
busu:~# date 042121532009
Tue Apr 21 21:53:00 JST 2009
busu:~#

とりあえず、アップデート

busu:~# apt-get update
Get:1 http://ftp.jp.debian.org lenny Release.gpg [394B]
Get:2 http://ftp.jp.debian.org lenny Release [73.6kB]
Get:3 http://security.debian.org lenny/updates Release.gpg [197B]
Ign http://ftp.jp.debian.org lenny/main Packages/DiffIndex
Ign http://ftp.jp.debian.org lenny/main Sources/DiffIndex
Get:4 http://security.debian.org lenny/updates Release [40.8kB]
Get:5 http://ftp.jp.debian.org lenny/main Packages [6706kB]
Ign http://security.debian.org lenny/updates/main Packages/DiffIndex
Ign http://security.debian.org lenny/updates/main Sources/DiffIndex
Get:6 http://security.debian.org lenny/updates/main Packages [97.7kB]
Get:7 http://ftp.jp.debian.org lenny/main Sources [2980kB]
Get:8 http://security.debian.org lenny/updates/main Sources [29.1kB]
Fetched 9927kB in 21s (465kB/s)
Reading package lists... Done
busu:~# apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be upgraded:
  base-files libgnutls26 libpam-modules libpam-runtime libpam0g libssl0.9.8
6 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 1920kB of archives.
After this operation, 4096B of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://security.debian.org lenny/updates/main libssl0.9.8 0.9.8g-15+lenny1 [850kB]
Get:2 http://ftp.jp.debian.org lenny/main base-files 5lenny2 [60.4kB]
Get:3 http://ftp.jp.debian.org lenny/main libpam-modules 1.0.1-5+lenny1 [288kB]
Get:4 http://ftp.jp.debian.org lenny/main libpam-runtime 1.0.1-5+lenny1 [165kB]
Get:5 http://ftp.jp.debian.org lenny/main libpam0g 1.0.1-5+lenny1 [103kB]
Get:6 http://ftp.jp.debian.org lenny/main libgnutls26 2.4.2-6+lenny1 [452kB]
Fetched 1920kB in 6s (282kB/s)
Preconfiguring packages ...
(Reading database ... 8591 files and directories currently installed.)
Preparing to replace base-files 5 (using .../base-files_5lenny2_armel.deb) ...
Unpacking replacement base-files ...
Processing triggers for man-db ...
Setting up base-files (5lenny2) ...
Installing new version of config file /etc/debian_version ...
(Reading database ... 8591 files and directories currently installed.)
Preparing to replace libpam-modules 1.0.1-5 (using .../libpam-modules_1.0.1-5+lenny1_armel.deb) ...
Unpacking replacement libpam-modules ...
Processing triggers for man-db ...
Setting up libpam-modules (1.0.1-5+lenny1) ...
(Reading database ... 8591 files and directories currently installed.)
Preparing to replace libpam-runtime 1.0.1-5 (using .../libpam-runtime_1.0.1-5+lenny1_all.deb) ...
Unpacking replacement libpam-runtime ...
Processing triggers for man-db ...
Setting up libpam-runtime (1.0.1-5+lenny1) ...
(Reading database ... 8591 files and directories currently installed.)
Preparing to replace libpam0g 1.0.1-5 (using .../libpam0g_1.0.1-5+lenny1_armel.deb) ...
Unpacking replacement libpam0g ...
Setting up libpam0g (1.0.1-5+lenny1) ...
(Reading database ... 8591 files and directories currently installed.)
Preparing to replace libgnutls26 2.4.2-6 (using .../libgnutls26_2.4.2-6+lenny1_armel.deb) ...
Unpacking replacement libgnutls26 ...
Preparing to replace libssl0.9.8 0.9.8g-15 (using .../libssl0.9.8_0.9.8g-15+lenny1_armel.deb) ...
Unpacking replacement libssl0.9.8 ...
Setting up libgnutls26 (2.4.2-6+lenny1) ...
Setting up libssl0.9.8 (0.9.8g-15+lenny1) ...
busu:~#

| パイプを試す

アップデート後にパイプを使うと bash が ハングアップするかどうかを確認する。
bash も libc も変っていないし。。。
busu:~# ps|more
  PID TTY          TIME CMD
  554 ttyS0    00:00:00 login
  604 ttyS0    00:00:00 su
  606 ttyS0    00:00:00 bash
 1188 ttyS0    00:00:00 ps
 1189 ttyS0    00:00:00 more
busu:~# ps|more
  PID TTY          TIME CMD
  554 ttyS0    00:00:00 login
  604 ttyS0    00:00:00 su
  606 ttyS0    00:00:00 bash
 1190 ttyS0    00:00:00 ps
 1191 ttyS0    00:00:00 more
busu:~# ps|more
  PID TTY          TIME CMD
  554 ttyS0    00:00:00 login
  604 ttyS0    00:00:00 su
  606 ttyS0    00:00:00 bash
 1192 ttyS0    00:00:00 ps
 1193 ttyS0    00:00:00 more
busu:~# ps|more
  PID TTY          TIME CMD
  554 ttyS0    00:00:00 login
  604 ttyS0    00:00:00 su
  606 ttyS0    00:00:00 bash
 1194 ttyS0    00:00:00 ps
 1195 ttyS0    00:00:00 more
busu:~# ps|more
  PID TTY          TIME CMD
  554 ttyS0    00:00:00 login
  604 ttyS0    00:00:00 su
  606 ttyS0    00:00:00 bash
 1196 ttyS0    00:00:00 ps
 1197 ttyS0    00:00:00 more
busu:~# ps|more
  PID TTY          TIME CMD
  554 ttyS0    00:00:00 login
  604 ttyS0    00:00:00 su
  606 ttyS0    00:00:00 bash
 1198 ttyS0    00:00:00 ps
 1199 ttyS0    00:00:00 more
busu:~# ps|more
  PID TTY          TIME CMD
  554 ttyS0    00:00:00 login
  604 ttyS0    00:00:00 su
  606 ttyS0    00:00:00 bash
 1200 ttyS0    00:00:00 ps
 1201 ttyS0    00:00:00 more
busu:~# ps|more
  PID TTY          TIME CMD
  554 ttyS0    00:00:00 login
  604 ttyS0    00:00:00 su
  606 ttyS0    00:00:00 bash
 1202 ttyS0    00:00:00 ps
 1203 ttyS0    00:00:00 more
busu:~# ps|more
  PID TTY          TIME CMD
  554 ttyS0    00:00:00 login
  604 ttyS0    00:00:00 su
  606 ttyS0    00:00:00 bash
 1204 ttyS0    00:00:00 ps
 1205 ttyS0    00:00:00 more
busu:~# ps|more
  PID TTY          TIME CMD
  554 ttyS0    00:00:00 login
  604 ttyS0    00:00:00 su
  606 ttyS0    00:00:00 bash
 1206 ttyS0    00:00:00 ps
 1207 ttyS0    00:00:00 more
busu:~# ps|more
  PID TTY          TIME CMD
  554 ttyS0    00:00:00 login
  604 ttyS0    00:00:00 su
  606 ttyS0    00:00:00 bash
 1208 ttyS0    00:00:00 ps
 1209 ttyS0    00:00:00 more
busu:~# ps|more
  PID TTY          TIME CMD
  554 ttyS0    00:00:00 login
  604 ttyS0    00:00:00 su
  606 ttyS0    00:00:00 bash
 1210 ttyS0    00:00:00 ps
 1211 ttyS0    00:00:00 more
busu:~# ps|more
  PID TTY          TIME CMD
  554 ttyS0    00:00:00 login
  604 ttyS0    00:00:00 su
  606 ttyS0    00:00:00 bash
 1212 ttyS0    00:00:00 ps
 1213 ttyS0    00:00:00 more
busu:~# ps|more
  PID TTY          TIME CMD
  554 ttyS0    00:00:00 login
  604 ttyS0    00:00:00 su
  606 ttyS0    00:00:00 bash
 1214 ttyS0    00:00:00 ps
 1215 ttyS0    00:00:00 more
busu:~# ps|more
  PID TTY          TIME CMD
  554 ttyS0    00:00:00 login
  604 ttyS0    00:00:00 su
  606 ttyS0    00:00:00 bash
 1216 ttyS0    00:00:00 ps
 1217 ttyS0    00:00:00 more
busu:~# ps|more
  PID TTY          TIME CMD
  554 ttyS0    00:00:00 login
  604 ttyS0    00:00:00 su
  606 ttyS0    00:00:00 bash
 1218 ttyS0    00:00:00 ps
 1219 ttyS0    00:00:00 more
busu:~# ps|more
  PID TTY          TIME CMD
  554 ttyS0    00:00:00 login
  604 ttyS0    00:00:00 su
  606 ttyS0    00:00:00 bash
 1220 ttyS0    00:00:00 ps
 1221 ttyS0    00:00:00 more
busu:~# ps|more
  PID TTY          TIME CMD
  554 ttyS0    00:00:00 login
  604 ttyS0    00:00:00 su
  606 ttyS0    00:00:00 bash
 1222 ttyS0    00:00:00 ps
 1223 ttyS0    00:00:00 more
busu:~# ps|more
  PID TTY          TIME CMD
  554 ttyS0    00:00:00 login
  604 ttyS0    00:00:00 su
  606 ttyS0    00:00:00 bash
 1224 ttyS0    00:00:00 ps
 1225 ttyS0    00:00:00 more
busu:~# ps|more
  PID TTY          TIME CMD
  554 ttyS0    00:00:00 login
  604 ttyS0    00:00:00 su
  606 ttyS0    00:00:00 bash
 1226 ttyS0    00:00:00 ps
 1227 ttyS0    00:00:00 more
busu:~# ps|more
  PID TTY          TIME CMD
  554 ttyS0    00:00:00 login
  604 ttyS0    00:00:00 su
  606 ttyS0    00:00:00 bash
 1228 ttyS0    00:00:00 ps
 1229 ttyS0    00:00:00 more
busu:~# ps|more
  PID TTY          TIME CMD
  554 ttyS0    00:00:00 login
  604 ttyS0    00:00:00 su
  606 ttyS0    00:00:00 bash
 1230 ttyS0    00:00:00 ps
 1231 ttyS0    00:00:00 more
busu:~# ps|more
  PID TTY          TIME CMD
  554 ttyS0    00:00:00 login
  604 ttyS0    00:00:00 su
  606 ttyS0    00:00:00 bash
 1232 ttyS0    00:00:00 ps
 1233 ttyS0    00:00:00 more
busu:~# ps|more
  PID TTY          TIME CMD
  554 ttyS0    00:00:00 login
  604 ttyS0    00:00:00 su
  606 ttyS0    00:00:00 bash
 1234 ttyS0    00:00:00 ps
 1235 ttyS0    00:00:00 more
busu:~# ps|more
  PID TTY          TIME CMD
  554 ttyS0    00:00:00 login
  604 ttyS0    00:00:00 su
  606 ttyS0    00:00:00 bash
 1236 ttyS0    00:00:00 ps
 1237 ttyS0    00:00:00 more
busu:~# ps|more
  PID TTY          TIME CMD
  554 ttyS0    00:00:00 login
  604 ttyS0    00:00:00 su
  606 ttyS0    00:00:00 bash
 1238 ttyS0    00:00:00 ps
 1239 ttyS0    00:00:00 more
busu:~# ps|more
  PID TTY          TIME CMD
  554 ttyS0    00:00:00 login
  604 ttyS0    00:00:00 su
  606 ttyS0    00:00:00 bash
 1240 ttyS0    00:00:00 ps
 1241 ttyS0    00:00:00 more
busu:~# ps|more
  PID TTY          TIME CMD
  554 ttyS0    00:00:00 login
  604 ttyS0    00:00:00 su
  606 ttyS0    00:00:00 bash
 1242 ttyS0    00:00:00 ps
 1243 ttyS0    00:00:00 more
busu:~# ps|more
  PID TTY          TIME CMD
  554 ttyS0    00:00:00 login
  604 ttyS0    00:00:00 su
  606 ttyS0    00:00:00 bash
 1244 ttyS0    00:00:00 ps
 1245 ttyS0    00:00:00 more
busu:~# ps|more
  PID TTY          TIME CMD
  554 ttyS0    00:00:00 login
  604 ttyS0    00:00:00 su
  606 ttyS0    00:00:00 bash
 1246 ttyS0    00:00:00 ps
 1247 ttyS0    00:00:00 more
busu:~# ps|more
  PID TTY          TIME CMD
  554 ttyS0    00:00:00 login
  604 ttyS0    00:00:00 su
  606 ttyS0    00:00:00 bash
 1248 ttyS0    00:00:00 ps
 1249 ttyS0    00:00:00 more
busu:~# ps|more
  PID TTY          TIME CMD
  554 ttyS0    00:00:00 login
  604 ttyS0    00:00:00 su
  606 ttyS0    00:00:00 bash
 1250 ttyS0    00:00:00 ps
 1251 ttyS0    00:00:00 more
busu:~# ps|more
  PID TTY          TIME CMD
  554 ttyS0    00:00:00 login
  604 ttyS0    00:00:00 su
  606 ttyS0    00:00:00 bash
 1252 ttyS0    00:00:00 ps
 1253 ttyS0    00:00:00 more
busu:~# ps|more
  PID TTY          TIME CMD
  554 ttyS0    00:00:00 login
  604 ttyS0    00:00:00 su
  606 ttyS0    00:00:00 bash
 1254 ttyS0    00:00:00 ps
 1255 ttyS0    00:00:00 more
busu:~# ps|more
  PID TTY          TIME CMD
  554 ttyS0    00:00:00 login
  604 ttyS0    00:00:00 su
  606 ttyS0    00:00:00 bash
 1256 ttyS0    00:00:00 ps
 1257 ttyS0    00:00:00 more
busu:~# ps|more
  PID TTY          TIME CMD
  554 ttyS0    00:00:00 login
  604 ttyS0    00:00:00 su
  606 ttyS0    00:00:00 bash
 1258 ttyS0    00:00:00 ps
 1259 ttyS0    00:00:00 more
busu:~# ps|cat
  PID TTY          TIME CMD
  554 ttyS0    00:00:00 login
  604 ttyS0    00:00:00 su
  606 ttyS0    00:00:00 bash
 1260 ttyS0    00:00:00 ps
 1261 ttyS0    00:00:00 cat
busu:~# ps|cat
  PID TTY          TIME CMD
  554 ttyS0    00:00:00 login
  604 ttyS0    00:00:00 su
  606 ttyS0    00:00:00 bash
 1262 ttyS0    00:00:00 ps
 1263 ttyS0    00:00:00 cat
busu:~# ps|cat
  PID TTY          TIME CMD
  554 ttyS0    00:00:00 login
  604 ttyS0    00:00:00 su
  606 ttyS0    00:00:00 bash
 1264 ttyS0    00:00:00 ps
 1265 ttyS0    00:00:00 cat
busu:~# ps|cat
  PID TTY          TIME CMD
  554 ttyS0    00:00:00 login
  604 ttyS0    00:00:00 su
  606 ttyS0    00:00:00 bash
 1266 ttyS0    00:00:00 ps
 1267 ttyS0    00:00:00 cat
busu:~# ps|cat
  PID TTY          TIME CMD
  554 ttyS0    00:00:00 login
  604 ttyS0    00:00:00 su
  606 ttyS0    00:00:00 bash
 1268 ttyS0    00:00:00 ps
 1269 ttyS0    00:00:00 cat
busu:~# ps|cat
  PID TTY          TIME CMD
  554 ttyS0    00:00:00 login
  604 ttyS0    00:00:00 su
  606 ttyS0    00:00:00 bash
 1270 ttyS0    00:00:00 ps
 1271 ttyS0    00:00:00 cat
busu:~# ps|cat
  PID TTY          TIME CMD
  554 ttyS0    00:00:00 login
  604 ttyS0    00:00:00 su
  606 ttyS0    00:00:00 bash
 1272 ttyS0    00:00:00 ps
 1273 ttyS0    00:00:00 cat
busu:~# ps|cat
固まった。困った(藁)

かじ~さんによると、 bash-static を使うか、 ソースパッケージを利用してインストールすれば回避できる という事である。



LS-HGL
バッファローダイレクト
楽天市場
livedoor デパート
Yahoo!ショッピング
ムラウチドットコム
ヤマダ電機WEB


busybox の init
ハックの記録
LinkStation/玄箱 をハックしよう

ネットワーク対応 HDD リンクステーション ベーシックモデル

Copyright (C) 2003-2010 Yasunari Yamashita. All Rights Reserved.
yasunari @ yamasita.jp 山下康成@京都府向日市