Link to home
Start Free TrialLog in
Avatar of um3814
um3814

asked on

How to set up the environment for chroot with dyn. linked programs ?

I try to run "chroot /xxx /ls" as root on Solaris 2.5.1 but i get segmentation fault - core dumped.
I have copied ld.so and all libraries that ldd "/usr/ucb/ls" listed to /xxx/usr/lib and /usr/ucb/ls to /xxx/ls.
"adb /xxx/ls core" says :
SIGSEGV Segmentation Fault
Error while reading shared library:data address not found

Who can help me to correct the problem ?
 

ASKER CERTIFIED SOLUTION
Avatar of arthurd
arthurd

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of um3814
um3814

ASKER

meanwhile i found out with the help of truss that /dev/zero was missing