Operating System - Linux
1748284 Members
3517 Online
108761 Solutions
New Discussion юеВ

when i execute su ,it report some error

 
SOLVED
Go to solution
leelangco_1
Frequent Advisor

when i execute su ,it report some error

su - icsadm
/usr/lib/dld.sl: Unresolved symbol: initialize_error_table_r (code) from /usr/local/lib/libkrb5.sl
Abort(coredump)

what does the error mean?and how can i find solutions for that ?
9 REPLIES 9
Steven E. Protter
Exalted Contributor

Re: when i execute su ,it report some error

Shalom,

It means that the user profile icsadm probably the .profile file refers to a program that fails and core dumps.

Examine the user profile and see what it runs. Perhaps add a few echo statements so you can find the problem.

It could however be a problem with su. Please check with a different user and report back.

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
leelangco_1
Frequent Advisor

Re: when i execute su ,it report some error

thank you ,Steven E. Protter.
now this is the .profie of icsadm:
# more .profile
PATH=/usr/bin:/etc:/usr/sbin:/usr/ucb:$HOME/bin:/usr/bin/X11:/sbin:.
day=`date +%d`

alias l="ls -l"
alias lf="ls -F"
alias cdl="cd $HOME/log/$day"
alias cdt="cd $HOME/trc/$day"
alias cde="cd $HOME/etc"

set -o vi

PS1="[`hostname`] "'$LOGNAME:''$PWD''>';export PS1

# icsM-2M-NM-JM-}
WORKDIR=$HOME
export WORKDIR

REGION_CONFIG_FILE=$WORKDIR/etc/REGION.XML
export REGION_CONFIG_FILE

CONFDIR=$WORKDIR/hicmd
export CONFDIR

#M-TM-vM-export LANG=zh_CN.hp15CN
stty -istrip -parity cs8

ICS_SERVER=182.119.171.144:20070
export ICS_SERVER

# set DB2 profile
if [ -f /home/db2inst1/sqllib/db2profile ]; then
. /home/db2inst1/sqllib/db2profile
fi

SHLIB_PATH=/home/db2inst1/sqllib/lib32:/opt/sna/lib
export SHLIB_PATH
--------------------
and what echo statement you think can add to the .profile which can help me to find the problem?


Ivan Krastev
Honored Contributor

Re: when i execute su ,it report some error

Add one before DB2 includes:

echo "check"

# set DB2 profile
if [ -f /home/db2inst1/sqllib/db2profile ]; then
. /home/db2inst1/sqllib/db2profile
fi

regards,
ivan
Dennis Handly
Acclaimed Contributor

Re: when i execute su ,it report some error

>what echo statement you think can add to the .profile which can help me to find the problem?

Something like:
echo "I got to line XXX"
...
echo "I got to line YYY"

So you can track how far you got by looking at the output.
Dennis Handly
Acclaimed Contributor

Re: when i execute su ,it report some error

If you can find the core file, "file core" will tell you the executable.
leelangco_1
Frequent Advisor

Re: when i execute su ,it report some error

>If you can find the core file, "file core" will tell you the executable

how can i get the corefile?
Dennis Handly
Acclaimed Contributor

Re: when i execute su ,it report some error

>how can i get the corefile?

Well, it is either in the directory where you did the su or the home directory for icsadm, or somewhere else and you would have to use find(1) to find it.
Steven E. Protter
Exalted Contributor
Solution

Re: when i execute su ,it report some error

Shalom,

Make sure the SHLIB_PATH includes /usr/lib and /usr/local/lib

Set it up in the profile before you try to start the database.

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
Matti_Kurkela
Honored Contributor

Re: when i execute su ,it report some error

The problem could be in the PAM libraries too: the library name /usr/local/lib/libkrb5.sl sounds like it could be refer to Kerberos 5.
If the icsadm user's .profile does not get executed at all, this is likely.

Check /etc/pam.conf and /etc/pam_user.conf and compare them to factory default versions in /usr/newconfig/etc. If there are any differences, try to determine whether the current configuration makes sense in your environment.

Do you have Kerberos authentication in use? If not, this might be a remnant of some previous installation. If yes, find the documentation of your Kerberos authentication software and follow its troubleshooting steps.

MK
MK