General
cancel
Showing results for 
Search instead for 
Did you mean: 

XFree86 crash on HP-UX 11i v3 Update 4

Andrey Chipalyuk
Frequent Advisor

XFree86 crash on HP-UX 11i v3 Update 4

I had tried to install the HP-UX 11i v3 Update 4.

a) In interactively prompt for keyboard mapping I choose 26 keymap:

# cat /etc/kbdlang
USB_PS2_DIN_US_English

b) The Server XFree86 had crashed when I was trying to open XDMCP session. Xf86.0.log contains strins:

...
(II) Loaded keymap USB_PS2_DIN_US_English from file /etc/X11/XHPKeymaps
(**) Option "Device" "/dev/hid/kbd_000"
(II) Using keyboard device file "/dev/hid/kbd_000"
(WW) Unable to open keyboard device "/dev/hid/kbd_000"
(WW) Reason: No such file or directory
(WW) Continuing without a keyboard
No core pointer
...

c) I was changing /etc/kbdlang much as it was in HP-UX 11.23 version:

# cat /etc/kbdlang
Not_Applicable

Then i shutdown and reboot server. HP-UX was requiring to select keymap by start HP-UX:

1) USB_PS2_DIN_Belgian
...
26) USB_PS2_DIN_US_English
27) USB_PS2_DIN_US_English_Euro

I choose 26 keymap:

# cat /etc/kbdlang
USB_PS2_DIN_US_English

The problem remains.
16 REPLIES
Matti_Kurkela
Honored Contributor

Re: XFree86 crash on HP-UX 11i v3 Update 4

The error message at step b) would seem to indicate that the server had no USB keyboard connected to it at the moment. Did someone unplug it between steps a) and b)?

If you are opening a XDMCP session, that implies your X server is located in your *local* X terminal or workstation. XDMCP does not require an X server at the *remote* side - just the X Display Manager (xdm/dtlogin/whatever).

So, for clarification:

Does the HP-UX 11iv3 server have a keyboard, mouse and display installed or not? (If not, the X server won't start and is not needed.)

When you say you were "trying to open XDMCP session", what exactly were you doing? Did you use ReflectionX, Xming or some other Windows-based X server software on some other host?

When you are choosing the keymap, what type of connection are you using? Local keyboard+display? Serial-attached terminal? Networked iLO remote console? If this is an Itanium machine, what is your console configuration in the EFI?

MK
MK
Andrey Chipalyuk
Frequent Advisor

Re: XFree86 crash on HP-UX 11i v3 Update 4

1) Yes, the server have no keyboard, mouse and display connected to it at the moment.
The keyboard, mouse and display was connected at the moment of server start, i.e. from power on to start HP-UX.
Then it was disconected and HP-UX was shudown and reboot. Power was stayed on.
2) Yes, I was opening a XDMCP session, that implies my X server is located in my workstation.
3) Yes, I use Xming (i was trying other Windows-based X server software as well).
3.1) I was trying to open session.
3.2) At the CDE Window "Please enter your user name" I was typing a user name and pressing "Ok".
3.3) Then I was typing a password. When I was typing letter the session is Ok, but the session is crush when I was typing numeral symbols.
3.4) I was trying to change password only letter symbols. The session was established and I opened X desktop.
3.5) I.e. the session was crash when I typing numeral symbols in the password window. I was trying to type numeral symbols in the user name window and session is Ok!
4) Yes, it is itanium machine. I was choosing keymaps at the hpterm console by installation. Then i was trying to change keymaps at the putty console (xterm).
Andrey Chipalyuk
Frequent Advisor

Re: XFree86 crash on HP-UX 11i v3 Update 4

Probably the head of message is not correct. There is cause of crash may be CDE and there isn't XFree86. Have any idea?
Andrey Chipalyuk
Frequent Advisor

Re: XFree86 crash on HP-UX 11i v3 Update 4

After crash session core file contains strings "Dtlogin..." (i.e. CDE login service). For example:

...
Dtlogin*altDtKey4: /usr/dt/bin/Xsession
Dtlogin*altDtName: %DisplayName%Home
Dtlogin*altDtName1: Current
Dtlogin*altDtName2: Home
Dtlogin*altDtName3: %DisplayName%Current
Dtlogin*altDtName4: %DisplayName%Home
Dtlogin*altDtStart: /usr/dt/bin/Xsession -session display-home
...

I have found patch PHSS_39409:

Patch Description: 11.31 CDE Applications Creation Date: 09/04/06

I have installed this patch. The messages "No core pointer" disappeared, but problem remains.
Andrey Chipalyuk
Frequent Advisor

Re: XFree86 crash on HP-UX 11i v3 Update 4

I have tried to enables dtlogin debug auto-start feature with a debug level of 10:

/usr/dt/bin/dtconfig -debug

I have run:

/sbin/init.d/dtlogin.rc start

When I was typing numeral symbols in password window of CDE the session was crash.
The dtlogin.11330.log file contains strings:

...
...
[Mon Jun 29 11:29:38 2009] [11330](main) select() returns -1. Rescan: 0 ChildReady: 1
[Mon Jun 29 11:29:38 2009] [11330](main) select() error - 4
[Mon Jun 29 11:29:38 2009] [11330](main) Processing child death, pid = 11954, status 1024
[Mon Jun 29 11:29:38 2009] [11330](main) Account: id=35:0, user=NULL, line=NULL, pid=11954, type=DEAD_PROCESS
[Mon Jun 29 11:29:38 2009] [11330](main) PamAccounting: prog_name=dtlogin
...
...
[Mon Jun 29 11:29:38 2009] [11330](main) PamAccounting: display_location=1024
[Mon Jun 29 11:29:38 2009] [11330](main) PamAccounting: exitcode=1599099471
[Mon Jun 29 11:29:38 2009] [11330](main) PamInit: pam_start success
[Mon Jun 29 11:29:38 2009] [11330](main) Display exited with OPENFAILED_DISPLAY
[Mon Jun 29 11:29:38 2009] [11330](main) Display start failed, sending Failed
[Mon Jun 29 11:29:38 2009] [11330](main) Send FAILED to session ID 1, msg = Session 1 failed for display 172.16.248.35:0: Cannot open display
[Mon Jun 29 11:29:38 2009] [11330](main) XdmcpFlush - send_failed - addr.sin6_port = 4955 addr.sin6_addr
[Mon Jun 29 11:29:38 2009] [11330](main) StopDisplay(): 172.16.248.35:0, server pid = -1, manager pid = -1, dtlogin_shutdown = 0
[Mon Jun 29 11:29:38 2009] [11330](main) Account: id=35:0, user=NULL, line=NULL, pid=0, type=DEAD_PROCESS
...
...
Dennis Handly
Acclaimed Contributor

Re: XFree86 crash on HP-UX 11i v3 Update 4

>core file contains strings "Dtlogin..."

This is why you don't use strings(1) on a core file. It can only confuse you.
Instead you should use gdb on your core file and get a stack trace:
$ gdb executable core
(gdb) bt
(gdb) q
Steven E. Protter
Exalted Contributor

Re: XFree86 crash on HP-UX 11i v3 Update 4

Shalom,

At this point to have things clean, I would swremove CDE, uninstall xfree86, whatever its source, boot the system and reinstall both.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Andrey Chipalyuk
Frequent Advisor

Re: XFree86 crash on HP-UX 11i v3 Update 4

Thank!
The output of gdb is next:

# gdb -core=core
...
warning: Unknown symbols for 'core'; use the 'symbol-file' command.
Core was generated by `dtgreet'.
Program terminated with signal 10, Bus error.
BUS_ADRALN - Invalid address alignment. Please refer to the following link that helps in handling unaligned data: http://docs.hp.com/en/7730/newhelp0610/pragmas.htm#pragma-pack-ex3
No object file symbols.
#0 0x60000000cbc992d0 in ()
(gdb) bt
#0 0x60000000cbc992d0 in ()
warning: Attempting to unwind past bad PC 0x60000000cbc992d0
#1 0x60000000cbc99270 in ()
Dennis Handly
Acclaimed Contributor

Re: XFree86 crash on HP-UX 11i v3 Update 4

># gdb -core=core
>Core was generated by `dtgreet'.

You need to specify the executable and core file. It told you that it was dtgreet and you now need to find the absolute path.
Andrey Chipalyuk
Frequent Advisor

Re: XFree86 crash on HP-UX 11i v3 Update 4

I had tryed to deinstall and install CDE.
I had installed patch for XServer:

Patch Name: PHSS_39706
Patch Description: 11.31 Xserver cumulative patch
Creation Date: 09/05/15

It didn't eliminate problem.
Andrey Chipalyuk
Frequent Advisor

Re: XFree86 crash on HP-UX 11i v3 Update 4

The absolute path is dtgree is next:

# whereis dtgreet
dtgreet: /usr/dt/bin/dtgreet /usr/dt/man/man1/dtgreet.1 /usr/dt/share/man/man1/dtgreet.1
Andrey Chipalyuk
Frequent Advisor

Re: XFree86 crash on HP-UX 11i v3 Update 4

I had tryed to install HP-UX 11i v3 Update 4 on PA-RISC based server.
I had successfully established X-session on the PA-RISC server.
Andrey Chipalyuk
Frequent Advisor

Re: XFree86 crash on HP-UX 11i v3 Update 4

I tried to traces the system calls a dtgreet process invokes.
When password window of CDE was opened i tried to invoke tusc for pid of dtgreet process.

# ps -ef |grep dt
root 12822 12803 0 11:46:34 ? 0:00 dtgreet -display 172.16.248.35:1
root 2587 2571 0 Jul 2 ? 0:00 /usr/dt/bin/dtlogin
root 12826 12088 1 11:46:51 pts/0 0:00 /sbin/sh -c ps -ef |grep dt
root 2571 1 0 Jul 2 ? 0:00 /sbin/sh /usr/dt/bin/dtrc
root 12803 2587 0 11:46:33 ? 0:00 /usr/dt/bin/dtlogin
root 12828 12826 0 11:46:51 pts/0 0:00 grep dt

# tusc 12822|egrep -v "gettimeofday|select|ioctl|write"
( Attached to process 12822 ("dtgreet -display 172.16.248.35:1") [32-bit] )
read(6, "021b\fc3f d . aa\0\0\0> \080\0Z ".., 32) .............................................................................. = 32
read(6, "031b\fd6f d . e8\0\0\0> \080\0Z ".., 32) .............................................................................. = 32
read(6, "02\n\r3 f d m d6\0\0\0> \080\0Z ".., 32) .............................................................................. = 32
Received signal 10, SIGBUS, in user mode, [SIG_DFL], partial siginfo
Siginfo: si_code: BUS_ADRALN, faulting address: 0x31, si_errno: 0
PC: 00000001000000a0.0 break.m 0x14000
exit(10) [implicit] ............................................................................................................ WIFSIGNALED(SIGBUS)|WCOREDUMP

The first two system calls of read is moment when i typed a letter symbol "r".
Then i typed a numeric symbol and the dtgreet process was crashed after the third read system call.
Have anyone some idea?
Dennis Handly
Acclaimed Contributor

Re: XFree86 crash on HP-UX 11i v3 Update 4

>Have anyone some idea?

If this is an HP product, you should contact the Response Center.

It would better to use a debugger to look at the problem and not tusc.
public
Regular Advisor

Re: XFree86 crash on HP-UX 11i v3 Update 4

Please update path PHSS_39706
All realted XServer driver (espceially USB 2.0) included.
Andrey Chipalyuk
Frequent Advisor

Re: XFree86 crash on HP-UX 11i v3 Update 4

I already tried to install this patch. See above.

>>I had installed patch for XServer:
>>Patch Name: PHSS_39706

# swlist |grep PHSS_39706
PHSS_39706 1.0 Xserver cumulative patch

It didn't help me. :-(
Have anything patchs yet?