Elena ``of Valhalla''

Elena ``of Valhalla'' at

File not found on exec
A simple, standard, C program. Compiling and running it shouldn't produce any surprises... except when it does. The first time I got that, it was quite confusing. So, strace to the rescue -- I thought. But nope: No luck there. What's going on? No, it's not some race condition whereby the file is being removed. A simple ls -l will show it's there, a...


So this is why when you try to run an executable for the wrong arch you get that obscure error!

(I've had it happen a few times with arm executables on x86, evidentely because I also have binfmt_misc and qemu configured, and I've always wondered what the * was happening.)

I'm still convinced that binfmt_misc is magic, probably black magic (but quite wonderful when it works).

Federico, Charles Stanhope likes this.