- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- CPU Loop of vi process after killing terminal
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2006 08:32 PM
01-09-2006 08:32 PM
CPU Loop of vi process after killing terminal
ps -ef|grep vi
orashadb 6767 6244 241 15:18:12 pts/0 1035:03 vi awrrpt_2_3573_3574.txt
tusc reports a loop of:
tusc -a -f -v -p 6767
( Attached to process 6767 ("vi awrrpt_2_3573_3574.txt") [32-bit] ) [6767] In user-mode ........................................................................................................................................ [running] [6767] write(1, 0x400c9780, 2047) .......................................................................................................................... ERR#6 ENXIO [6767] sigvec(SIGCONT, 0x7fff19e0, 0x7fff19f0) ............................................................................................................. = 0
vec.sv_handler: 0x777ce5e0
vec.sv_mask: EMPTY SET
vec.sv_flags: SV_RESETHAND
ovec.sv_handler: SIG_IGN
ovec.sv_mask: EMPTY SET
ovec.sv_flags: SV_RESETHAND
[6767] write(1, 0x400c9780, 1648) .......................................................................................................................... ERR#6 ENXIO [6767] Received signal 27, SIGTTIN, in read(), [SIG_DFL], no siginfo [6767] Received signal 26, SIGCONT, in read(), [caught], no siginfo [6767] read(0, 0x7fff6b38, 1) .............................................................................................................................. = 0 [6767] sigvec(SIGCONT, 0x7fff19e0, 0x7fff19f0) ............................................................................................................. = 0
vec.sv_handler: SIG_IGN
vec.sv_mask: EMPTY SET
vec.sv_flags: SV_RESETHAND
ovec.sv_handler: SIG_DFL
ovec.sv_mask: EMPTY SET
ovec.sv_flags: SV_RESETHAND
Is this a bug or does it work as designed?
Regards,
Martin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2006 08:37 PM
01-09-2006 08:37 PM
Re: CPU Loop of vi process after killing terminal
Do you have PHCO_31705 installed on your server? Just check and it could be a reason for this..
http://www1.itrc.hp.com/service/patch/patchDetail.do?BC=patch.breadcrumb.main|patch.breadcrumb.search|&patchid=PHCO_31705&context=hpux:800:11:23
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2006 08:48 PM
01-09-2006 08:48 PM
Re: CPU Loop of vi process after killing terminal
yes, the PHCO_31705 is installed. Moreover, we do not use ied.
It may be worth mentioning that we log in with a personal account and then use "super" to switch to an application account. The vi command was executed from the application account. We use super version 3.20 patchlevel 0.
Regards,
Martin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2006 08:51 PM
01-09-2006 08:51 PM
Re: CPU Loop of vi process after killing terminal
--
Muthu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2006 08:54 PM
01-09-2006 08:54 PM
Re: CPU Loop of vi process after killing terminal
I believe when a terminal is disconnected abruptly, user process remains.. This can be an expected behaviour since user process such as VI remains in memory.
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2006 08:59 PM
01-09-2006 08:59 PM
Re: CPU Loop of vi process after killing terminal
and PHCO_32856 http://www1.itrc.hp.com/service/patch/patchDetail.do?BC=patch.breadcrumb.main|patch.breadcrumb.search|&patchid=PHCO_32856&context=hpux:800:11:23
both are SH-PSOX and KSH patches. You can try them as well to make sure you have latest patches for the shell.
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2006 08:59 PM
01-09-2006 08:59 PM
Re: CPU Loop of vi process after killing terminal
If I enter "vi
Is this expected behaviour?
Regards,
Martin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2006 09:04 PM
01-09-2006 09:04 PM
Re: CPU Loop of vi process after killing terminal
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2006 09:09 PM
01-09-2006 09:09 PM
Re: CPU Loop of vi process after killing terminal
>>>
May be a problem with super. Try to do this in normal account as,
a) login as normal user
b) vi test
c) esc>:sh
d) exit
it will come to normal vi test screen.
Can you try this after login with su to application user account?
--
Muthu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2006 09:14 PM
01-09-2006 09:14 PM
Re: CPU Loop of vi process after killing terminal
#2) su
#3) vi test.c
#4) In vi, :sh
#5) From another terminal, kill sshd
I am not able to reproduce the problem and i could n't see any VI in loop.
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2006 09:20 PM
01-09-2006 09:20 PM
Re: CPU Loop of vi process after killing terminal
I use HP-UX B.11.23 U ia64.
Regards,
Martin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2006 09:30 PM
01-09-2006 09:30 PM
Re: CPU Loop of vi process after killing terminal
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2006 09:35 PM
01-09-2006 09:35 PM
Re: CPU Loop of vi process after killing terminal
Regards,
Martin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2006 09:35 PM
01-09-2006 09:35 PM
Re: CPU Loop of vi process after killing terminal
swlist -l file | grep -w vi
what `which vi`
--
Muthu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2006 09:37 PM
01-09-2006 09:37 PM
Re: CPU Loop of vi process after killing terminal
/usr/bin/vi:
$ B.11.23 Jul 15 2003 02:09:47 $
$Revision: B11.23_LR
Fri Aug 29 21:42:38 PDT 2003 $
Unfortunately, I don´t have access to swlist.
Regards,
Martin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2006 09:40 PM
01-09-2006 09:40 PM
Re: CPU Loop of vi process after killing terminal
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2006 09:45 PM
01-09-2006 09:45 PM
Re: CPU Loop of vi process after killing terminal
# what `which vi`
/usr/bin/vi:
$ B.11.23 Jul 15 2003 02:09:47 $
$Revision: B11.23_LR
Fri Aug 29 21:42:38 PDT 2003 $
# swlist -l file |grep -w vi
TextEditors.EDITORS2: /usr/bin/vi
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2006 09:50 PM
01-09-2006 09:50 PM
Re: CPU Loop of vi process after killing terminal
# ps -ae |grep -i vi
26194 ? 0:00 vi
But, when you close the terminal, all the processes are getting cleared. (I use putty, after killing user terminal, i close putty window) Now,
# ps -ae |grep -i vi
lists nothing..
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2006 09:57 PM
01-09-2006 09:57 PM
Re: CPU Loop of vi process after killing terminal
Regards,
Martin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2006 01:45 AM
01-10-2006 01:45 AM
Re: CPU Loop of vi process after killing terminal
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2006 01:49 AM
01-10-2006 01:49 AM
Re: CPU Loop of vi process after killing terminal
$ trap
trap -- 'echo '\''logout'\' EXIT
In my personal .profile, it says:
# Set up the shell environment:
set -u
trap "echo 'logout'" 0
Is that the problem?
Regards,
martin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2006 12:59 PM
01-10-2006 12:59 PM
Re: CPU Loop of vi process after killing terminal
trap "" 1 2 3
...
trap 1 2 3
The first turns off (ignores) signals 1 2 and 3, and the second (at the bottom of /etc/profile) turns normal traps back on again. So SIGHUP isn't your problem here.
Bill Hassell, sysadmin