I need to run sybase-220.127.116.11 or 11.9.2 on centos5.
Because the glibc-2.5-24 of centos5 is too newer for sybase-11 and the known “seg fault” problem, I make a plan to install and run sybase11 in a chroot jail on centos5.
And in the chroot jail, there is a glibc-2.2.93 from Redhat8.0.
I've made many researches.
I've succeeded once (sybase18.104.22.168 running ok ), then I deleted the virtual machine since I thought all things were ok.
But after that, I've never succeeded and I still got the “segmentation fault” when booting the sybase server.
I think that something detail was important in that success, but I didn’t notice it.
Any help would be greatly appreciated.
Here’s my steps:
(1)Install and run a sybase-22.214.171.124 instance. All things are ok.
# ldd $SYBASE/bin/dataserver
/lib/libNoVersion.so.1 => /lib/libNoVersion.so.1 (0×40013000)
libm.so.6 => /lib/i686/libm.so.6 (0x4001a000)
libc.so.6 => /lib/i686/libc.so.6 (0×42000000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0×40000000)
(2)Make a chroot jail:/home/dbroot. In the jail, there are these dirs:
/bin, /lib, /sbin, /var/lib/rpm, /usr/lib, /usr/bin, /dev, /proc, /sys, /tmp
mount -o bind /proc /home/dbroot/proc
mount -o bind /dev /home/dbroot/dev
mount -o bind /sys /home/dbroot/sys
(3)Move these dirs with all their subdirs & files from Redhat8.0 to CentOS jail(/home/dbroot):
/bin, /lib, /sbin, /var/lib/rpm, /usr/lib, /usr/bin
(4)Configure /etc/chroot.conf and /etc/pam.d/login to make sybase loginning into jail.
All seems to be right, the dataserver is based on just the same libraries as those on Redhat8.0.
(6)Login as sybase, of cause it’s into $jail/opt/sybase(/home/dbroot/opt/sybase) now.
$ export LD_POINTER_GUARD=0 (LD_POINTER_GUARD=1 is tried also, no help)
I still get the “segmentation fault” when trying to boot the server.
It’s so unreasonable!
Login this jail, the /lib that sybase can find only is in jail($jail/lib).
And the only glibc that sybase can address is the glibc-2.2.93 in $jail/lib.
It’s impossible for sybase to find glibc-2.5-24 of CentOS5 out of the jail.
Then, what’s wrong?