1832108 Members
2924 Online
110038 Solutions
New Discussion

CDE startup problem

 
SOLVED
Go to solution
David Mores
Frequent Advisor

CDE startup problem

A C3600 workstation running 11.11 was previously working fine. However, recently console logins fail for everyone except root. The user startlog shows a permission problem as follows:

--- Tue Jul 13 15:19:35 EDT 2004
--- /usr/dt/bin/Xsession starting...
--- Xsession started by dtlogin
--- sourcing /ede/dmores/.dtprofile...
/usr/dt/bin/Xsession[442]: xwininfo: not found
/usr/dt/bin/Xsession[442]: xwininfo: not found
access control disabled, clients can connect from any host
--- sourcing /usr/dt/config/Xsession.d/0010.dtpaths...
--- sourcing /etc/dt/config/Xsession.d/0010.migration...
--- sourcing /usr/dt/config/Xsession.d/0020.dtims...
--- sourcing /usr/dt/config/Xsession.d/0030.dttmpdir...
--- sourcing /usr/dt/config/Xsession.d/0040.xmbind...
--- sourcing /usr/dt/config/Xsession.d/0060.srcsysenv...
--- sourcing /etc/dt/config/Xsession.d/9000.migration...
--- sourcing /etc/dt/config/Xsession.d/Xmessages...
--- starting /usr/dt/bin/dthello &
--- starting /usr/dt/bin/dtsearchpath -ksh
/usr/lib/dld.sl: Call to mmap() failed - TEXT /usr/lib/libcl.2
/usr/lib/dld.sl: Permission denied
StartFirst[6]: 3686 Abort(coredump)
--- starting /usr/dt/bin/dtappgather &
--- execing /usr/dt/bin/dtsession ...
not sourcing /ede/dmores/.login (see /ede/dmores/.dtprofile)
/usr/lib/dld.sl: Call to mmap() failed - TEXT /usr/lib/libcl.2
/usr/lib/dld.sl: Permission denied
Abort (core dumped)
Starting Xprt
Starting Mozilla on :0.0
Xlib: connection to "yhp785:0.0" refused by server
Xlib: Invalid MIT-MAGIC-COOKIE-1 key
/ede/common_1.0_a/hpux/bin/xv: Can't open display

I have looked through the system directories /usr, /dev, /adm with no success. Any ideas for how to better track this problem down would be appreciated.

Thanks,
Dave
9 REPLIES 9
RAC_1
Honored Contributor

Re: CDE startup problem

Post following.

swapinfo -mat
dmesg
kmtune -lq maxtsiz_64bit
kmtune -lq maxdsiz_64bit

Anil
There is no substitute to HARDWORK
David Mores
Frequent Advisor

Re: CDE startup problem

yhp785# swapinfo -mat
Mb Mb Mb PCT START/ Mb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 4096 0 4096 0% 0 - 1 /dev/vg00/lvol2
dev 4096 0 4096 0% 0 - 1 /dev/vg01/lvol1
reserve - 90 -90
memory 1533 236 1297 15%
total 9725 326 9399 3% - 0 -
yhp785#
yhp785:~# dmesg

Jul 15 12:02
gate64: sysvec_vaddr = 0xc0002000 for 2 pages
NOTICE: autofs_link(): File system was registered at index 3.
NOTICE: cachefs_link(): File system was registered at index 5.
NOTICE: nfs3_link(): File system was registered at index 6.
10 sba
10/0 lba
10/0/12/0 btlan
10/0/13/0 audio
10/0/14/0 side
10/0/14/0.0 tgt
10/0/14/0.0.0 sdisk
10/0/14/0.7 tgt
10/0/14/0.7.0 sctl
10/0/14/1 superio
10/0/14/1/1 asio0
10/0/14/1/2 asio0
10/0/14/1/3 SCentIf
10/0/14/2 hcd
10/0/14/2.1 hub
10/0/14/2.1.2 hid
10/0/14/2.1.3 hid
10/0/15/0 c720
10/0/15/0.7 tgt
10/0/15/0.7.0 sctl
10/0/15/1 c720
10/0/15/1.5 tgt
10/0/15/1.5.0 sdisk
10/0/15/1.6 tgt
10/0/15/1.6.0 sdisk
10/0/15/1.7 tgt
10/0/15/1.7.0 sctl
10/1 lba
10/4 lba
10/6 lba
Variable size pages used to map 1000 graf pages at fffffffffb000000
10/6/2/0 graph3
32 processor
49 memory
btlan: Initializing 10/100BASE-TX card at 10/0/12/0....

System Console is on the ITE
Logical volume 64, 0x3 configured as ROOT
Logical volume 64, 0x2 configured as SWAP
Logical volume 64, 0x2 configured as DUMP
Swap device table: (start & size given in 512-byte blocks)
entry 0 - major is 64, minor is 0x2; start = 0, size = 8388608
Dump device table: (start & size given in 1-Kbyte blocks)
entry 0000000000000000 - major is 31, minor is 0x36000; start = 150368,size = 4194304
Starting the STREAMS daemons-phase 1
Create STCP device files
$Revision: vmunix: vw: -proj selectors: CUPI80_BL200_1108 -c 'Vw for CUPI80_BL2000_1108 build' -- cupi80_bl2000_1108 'CUPI80_BL200_1108' Wed Nov 8 19:24:56 PST 2000 $
Memory Information:
physical page size = 4096 bytes, logical page size = 4096 bytes
Physical: 2097152 Kbytes, lockable: 1567460 Kbytes, available: 1806584 Kbyts

yhp785:~#
yhp785:~# kmtune -lq maxtsiz_64bit
mtune -lq maxdsiz_64bitParameter: maxtsiz_64bit
Current: 0x100000000
Planned: 0X100000000
Default: 0x0000000040000000
Minimum: -
Module: -
Version: -
Dynamic: Yes
yhp785:~# kmtune -lq maxdsiz_64bit
Parameter: maxdsiz_64bit
Current: 0x400000000
Planned: 0X400000000
Default: 0x0000000040000000
Minimum: -
Module: -
Version: -
Dynamic: No
yhp785:~#
RAC_1
Honored Contributor

Re: CDE startup problem

swap, and kernel settings for maxtsiz_64bit and maxdsiz_64bit look OK.

What are the perms on /usr/lib/dldl.sl. Also compare it's size to the dld.sl on other system.

Anil
There is no substitute to HARDWORK
Sundar_7
Honored Contributor

Re: CDE startup problem

Dave, pardon if I am not fully understanding your problem.

/usr/lib/dld.sl: Call to mmap() failed - TEXT /usr/lib/libcl.2
/usr/lib/dld.sl: Permission denied
StartFirst[6]: 3686 Abort(coredump)

this may sound like a long shot, but it is not going to hurt to give it a try.

Looks like the process is trying to lock the memory region and by default the normal user belongs to only group CHOWN.

root belongs to all the below mentioned groups. RTPRIO, RTSCHED, MLOCK, CHOWN, LOCKRDONLY, SETRUGID, and SERIALIZE.

# getprivgrp

this will return only CHOWN.

Try adding the MLOCK privileges to the user's group using setprivgrp and then try again.

If it doesnâ t help, then revert it back.

-- Sunda
Learn What to do ,How to do and more importantly When to do ?
David Mores
Frequent Advisor

Re: CDE startup problem

RAC:

The permissions, size and timestamp on /usr/lib/dld.sl are the same as another system that is operating without this problem:

-r-xr-xr-x 1 bin bin 188416 Jul 17 2002 /usr/lib/dld.sl

Sundar:

getprivgrp only returns CHOWN for any user including root on any of our HP systems. I don't think this could be part of the problem. We have never deal with these global privs ever.
RAC_1
Honored Contributor

Re: CDE startup problem

Did this get resolved???

Also are there any errors in /var/dt/Xerrors??

Call to mmap() failed makes me think, that it has something to do with maxdsiz and maxtsiz. Not sure.

Try moving .dt directory of user and then logging in.

Post if this gets solved.

Anil
There is no substitute to HARDWORK
David Mores
Frequent Advisor

Re: CDE startup problem

>Did this get resolved???

Not resolved.

>Also are there any errors in /var/dt/Xerrors??

Yes:
AUDIT: Tue Jul 13 15:20:10 2004: 2030 X: client 5 rejected from local host
Auth name: MIT-MAGIC-COOKIE-1 ID: -1
X connection to :0.0 broken (explicit kill or server shutdown).
^[gX connection to :0.0 broken (explicit kill or server shutdown).
^[g


>Call to mmap() failed makes me think, that it >has something to do with maxdsiz and maxtsiz. >Not sure.

But root can login okay.

>Try moving .dt directory of user and then >logging in.

Tried with no change.

Sundar_7
Honored Contributor
Solution

Re: CDE startup problem

Dave,

What about the permissions of this file /usr/lib/libcl.2 ?

did you any new scripts/binary to the directory /usr/dt/config/Xsession.d ?

-- Sundar
Learn What to do ,How to do and more importantly When to do ?
David Mores
Frequent Advisor

Re: CDE startup problem

Sundar:

You win this one! Someone changed the permissions on /usr/lib/libcl.2 to 776.

After changing them to 555, console login was successfull.

Thanks!