[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

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

Posted on 1998-10-20
2
Medium Priority
?
335 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 300 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: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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

Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
Introduction Regular patching is part of a system administrator's tasks. However, many patches require that the system be in single-user mode before they can be installed. A cluster patch in particular can take quite a while to apply if the machine…
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…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Suggested Courses

656 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