Operating System - HP-UX
1833738 Members
2436 Online
110063 Solutions
New Discussion

Tips on Debugging xterm problems...

 
Jack C. Mahaffey
Super Advisor

Tips on Debugging xterm problems...

Are there any logs or tips that can be used to debug xterm problems?

I got some xterms that are no longer working and want a place to start...
10 REPLIES 10
Andreas Voss
Honored Contributor

Re: Tips on Debugging xterm problems...

Hi,

while holding down the CTRL-Key and klicking on the left mouse button you'll get a menu where you can turn logging on.
The logfile is at $HOME/XtermLog.

Regards
Andreas Voss
Honored Contributor

Re: Tips on Debugging xterm problems...

Hi,

while holding down the CTRL-Key and klicking on the left mouse button you'll get a menu where you can turn logging on.
The logfile is at $HOME/XtermLog.

Regards
Alex Glennie
Honored Contributor

Re: Tips on Debugging xterm problems...

appologies I just deleted someone's post on this relating to getting a better description to what enviroment this is occuring in .... trying to clean up multiple postings and juggling 2 many other things ....
Rick Beldin
HPE Pro

Re: Tips on Debugging xterm problems...

The log that xterm could create has nothing to do with debugging. it is a transcript of the sesison.

One way might be to actually run the xterm in another window, in the hopes of catching an error message. Another might to run it like this:

xterm > /tmp/xterm.$$.log 2>&1

so that you could get stdout and stderr for the xterm app itself.
Necessary questions: Why? What? How? When?
Bill Hassell
Honored Contributor

Re: Tips on Debugging xterm problems...

Are you referring to the program called xterm, or do you mean you have some standalone Xterminal boxes that are not booting or running correctly? If the latter, please provide the mfr and model number as Xterminals have a lot of differences for configuration.


Bill Hassell, sysadmin
Jack C. Mahaffey
Super Advisor

Re: Tips on Debugging xterm problems...

Bill, just talking about the program xterm. Had some issues the other day and was looking for tips to determine why I had some xterm problems.


All xterm sessions were ran from the server.

jack...
Robert-Jan Goossens
Honored Contributor

Re: Tips on Debugging xterm problems...

Jack,

Could you be a bit more specific about the problem you facing ?

Two weeks ago I had problems with Xterm myself found out that when you use -ls option your DISPLAY was not exported correctly cause.

1. dtterm, hpterm, and xterm do not create
entries in wtmp.

Resolution:
The xterm, hpterm and dtterm were modified
to update the /etc/wtmp file when invoked
with -ls option.

Patch Name: PHSS_28680

Patch Description: s700_800 11.00 XClients Periodic Patch

Creation Date: 03/03/12

Post Date: 03/05/13

Hardware Platforms - OS Releases:
s700: 11.00
s800: 11.00

http://www4.itrc.hp.com/service/cki/patchDocDisplay.do?patchId=PHSS_28680

If you're OS is 11.11 take a look at PHSS_28681

Hope it helps,

Robert-Jan.
Jack C. Mahaffey
Super Advisor

Re: Tips on Debugging xterm problems...

I have another post on the specific problem. The problem involved xterms that would no longer get created. The xterm program would run and show under top but would not work for the users.

The solution involved creating more /dev/ptym and /dev/pty device files to match my kernel parameters. For some reason or another only 60 device files existed while the kernel parameters were configured for 600.

A limit was apparently reached before our xterm count made it to 60.

jack...
Bill Hassell
Honored Contributor

Re: Tips on Debugging xterm problems...

pty problems are fairly common. There is no connection between the number of pty device files and npty, nstrpty and nstrtel. The kernel parameters limit the number of open pty device files, but if the device files do not exist, then the process aborts the same way. So, if you always use SAM to change npty (and nstrpty and nstrtel), then SAM will automatically run insf to create (recreate) the required device files. Note that pty filenames must be in alphabetic order with no missing names. Searching for the next available pty device file may stop because one of the entries is missing, yet there are several still available. See the bottom of the man page: man 7 pty


Bill Hassell, sysadmin
Jack C. Mahaffey
Super Advisor

Re: Tips on Debugging xterm problems...

Bill, I really appreciate the additional internal stuff that you have to contribute. Wonderful for Just-In-Time Learning!! ;-) Thanks...