I am trying to create a chroot so I can run programs in a restricted environment. I also want the programs to deal with files (input or output). When I run programs in the chroot jail as user nobody, I get segmentation faults. If I run the program in the jail but not as nobody, everything works properly. Why is this happening, and how can I fix it?

link|improve this question
Try running your program under strace and past the last bit back into your question if it looks interesting. For example: strace ./my_prog – ed. Sep 14 '11 at 15:38
feedback

migrated from stackoverflow.com Sep 11 '11 at 12:33

This question came from our site for professional and enthusiast programmers.

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
or
required, but never shown