Solved

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

Posted on 1998-10-20
2
315 Views
Last Modified: 2013-12-27
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 ?
 

0
Comment
Question by:um3814
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 1

Accepted Solution

by:
arthurd earned 100 total points
ID: 2007509
My guess is that your still missing a library or too.  An easy way to find out would be to use truss.  When you go to run the chroot, put "truss" in before "truss chroot /xxx /ls".  This will spit out quite a bit of info.  But if you look at it closely, you 'll see that which libraries are being accesses.  So, when it bombs out, look back and see which library is causing it or which one your missing.

Dave
0
 

Author Comment

by:um3814
ID: 2007510
meanwhile i found out with the help of truss that /dev/zero was missing
 
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In tuning file systems on the Solaris Operating System, changing some parameters of a file system usually destroys the data on it. For instance, changing the cache segment block size in the volume of a T3 requires that you delete the existing volu…
This tech tip describes how to install the Solaris Operating System from a tape backup that was created using the Solaris flash archive utility. I have used this procedure on the Solaris 8 and 9 OS, and it shoudl also work well on the Solaris 10 rel…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question