Solved

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

Posted on 1998-10-20
2
298 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
2 Comments
 
LVL 1

Accepted Solution

by:
arthurd earned 100 total points
Comment Utility
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
Comment Utility
meanwhile i found out with the help of truss that /dev/zero was missing
 
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

I promised to write further about my project, and here I am.  First, I needed to setup the Primary Server.  You can read how in this article: Setup FreeBSD Server with full HDD encryption (http://www.experts-exchange.com/OS/Unix/BSD/FreeBSD/A_3660-S…
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

762 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now