View Single Post
Posts: 189 | Thanked: 171 times | Joined on Jul 2011
#82
Sorry to revive this thread but im having the same problem as sanylcs, Megaltariak and Applesaws: Bash cannot fork.

Firstly I am using a chroot environment with sshfs from an ubuntu 10.04 box (mounting the directories mentioned by damion except the /usr/X11, as it is no longer placed there in modern debians).

I tried chrooting into the environment and i got the "cannot execute /bin/sh: No such file..." error.
I then tried manually invoking ld-linux.so.2 and i got a "syntax error: "(" unexpected..." error
I then tried loading bash from qemu directly (..qemu-i386 -L lib bin/bash), but i once again failed atrociously as it did not show any output (just the same happened when I ran ls)
After loading ../qemu lib/ld-linux.so.2 --library-path lib bin/bash bash runs but however cannot fork.
xterm cannot open because it cannot fork bash.
Basically I can run x86 executables as long as they do not fork.

I once did this a while back on the ps3 to run wine and had bash forking problems, however i cannot recall the fix i used. I believe because the kernel doesn't know it needs to run ld-linux.so.2 with qemu (even though i did the binfmt magic) every time it is called on a fork it fails, or maybe it is the executable and my n900 has different revision of hardware to damion's ?? I don't know, I am no big expert, just a linux lover . I would like to know if you devs and whatnot can guide me to getting the kernel to run ld-linux automatically with qemu to see if that is the problem. How do i add this ELF header to the binfmt?? Or any other suggestions??

Thank you for the time and keep the awesome work up

Pablo

Edit: By the way my old qemu thread for wine I cannot find however I found the one for PCSX2 on PS3 linux, no important data but just any possible reference/old idea I forgot/spark of though might appear here: http://forums.pcsx2.net/archive/inde...d-16970-1.html

Edit2: Actually I will also try a pre-nptl linux (i.e. slackware 10.2 I believe I think it was still in the 2.4 realm), just in case that could be the problem, I will update with news

Last edited by pablocrossa; 2011-07-18 at 02:46.