#Segmentation fault when running bun with chroot

1 messages · Page 1 of 1 (latest)

lyric mirage
#

I'm trying to get bun to run inside a chroot jail.

I've used ldd to gather the shared libraries it should need and copied these over, but get a segmentation fault when actually running bun. Following the same process with node, I'm able to successfully get node running inside chroot.

I figure there's some dependency missing that I need to make sure exists.

mystic marlinBOT
cyan bolt
#

i think you may need to use strace to check what syscall fails

torn light
#

the chroot doesnt have /proc is my guess

fierce pilot
lyric mirage
#

I tried to follow along with strace and copied over files I saw it accessing and failing. I was able to get to a version that returned "Aborted" instead of "Segmentation fault". But then I couldn't really see anything else missing. I might try mounting directories instead of copying the specific files.