ELF Crimes: Program Interpreter Fun
nytpu.com
ELF Crimes: Program Interpreter Fun
1–10 of 15 posts
Re: ELF Crimes: Program Interpreter Fun
#2Re: ELF Crimes: Program Interpreter Fun
#3I think I would have eventually just loaded up a debugger and binary searched the codebase until I found the spot returning the error.
Re: ELF Crimes: Program Interpreter Fun
#4> But after getting the linked script setup working, even though it seemed like it should've been enough, it absolutely refused to work. It would only give me an opaque exec format error error, no matter how many different shotgun debugging things I tried, I ended up spending something like six hours over the course of two days on it with no real progress. I think I would have eventually just loaded up a debugger and…
But yeah, I was just being lazy and dumb. I solved it within ten minutes of someone saying "why don't you just go through the binfmt_elf code?" A debugger would've probably been more tedious than reading the relevant code directly, but would've been just as effective.
Re: ELF Crimes: Program Interpreter Fun
#5> But after getting the linked script setup working, even though it seemed like it should've been enough, it absolutely refused to work. It would only give me an opaque exec format error error, no matter how many different shotgun debugging things I tried, I ended up spending something like six hours over the course of two days on it with no real progress. I think I would have eventually just loaded up a debugger and…
Because attaching a debugger to the Linux Kernel is so convenient and easy :P But yeah, I was just being lazy and dumb. I solved it within ten minutes of someone saying "why don't you just go through the binfmt_elf code?" A debugger would've probably been more tedious than reading the relevant code directly, but would've been just as effective.
Re: ELF Crimes: Program Interpreter Fun
#6Re: ELF Crimes: Program Interpreter Fun
#7> But after getting the linked script setup working, even though it seemed like it should've been enough, it absolutely refused to work. It would only give me an opaque exec format error error, no matter how many different shotgun debugging things I tried, I ended up spending something like six hours over the course of two days on it with no real progress. I think I would have eventually just loaded up a debugger and…
Plan 9’s debugger Acid can attach to a running kernel on a remote machine and debug it.
Re: ELF Crimes: Program Interpreter Fun
#8> But after getting the linked script setup working, even though it seemed like it should've been enough, it absolutely refused to work. It would only give me an opaque exec format error error, no matter how many different shotgun debugging things I tried, I ended up spending something like six hours over the course of two days on it with no real progress. I think I would have eventually just loaded up a debugger and…
Because attaching a debugger to the Linux Kernel is so convenient and easy :P But yeah, I was just being lazy and dumb. I solved it within ten minutes of someone saying "why don't you just go through the binfmt_elf code?" A debugger would've probably been more tedious than reading the relevant code directly, but would've been just as effective.
Unless the other os and debugger mentioned has an easy way to do it with a machine that's not virtualized?
Re: ELF Crimes: Program Interpreter Fun
#9> But after getting the linked script setup working, even though it seemed like it should've been enough, it absolutely refused to work. It would only give me an opaque exec format error error, no matter how many different shotgun debugging things I tried, I ended up spending something like six hours over the course of two days on it with no real progress. I think I would have eventually just loaded up a debugger and…
Because attaching a debugger to the Linux Kernel is so convenient and easy :P But yeah, I was just being lazy and dumb. I solved it within ten minutes of someone saying "why don't you just go through the binfmt_elf code?" A debugger would've probably been more tedious than reading the relevant code directly, but would've been just as effective.
But I'm not a kernel dev and it's been a very long time since I would have needed to debug the kernel; does this not actually work?
Re: ELF Crimes: Program Interpreter Fun
#10> But after getting the linked script setup working, even though it seemed like it should've been enough, it absolutely refused to work. It would only give me an opaque exec format error error, no matter how many different shotgun debugging things I tried, I ended up spending something like six hours over the course of two days on it with no real progress. I think I would have eventually just loaded up a debugger and…
It’s a terrible shame Linux is still a 1970s program. Plan 9’s debugger Acid can attach to a running kernel on a remote machine and debug it.
This is a needlessly snide and inaccurate characterization.
> Plan 9’s debugger Acid can attach to a running kernel on a remote machine and debug it.
KGDB over Ethernet does the same on Linux.