This kind of hack is another example of the monopolistic mentality and Bloatware is Proprietary. Weenies want one kernel (Linux), one instruction set (RISC-V), and one compiler (GCC) for everything. Unlike academic researchers or 1970s computer companies, there are no plans for the future beyond that. This monopolistic mentality creates a monoculture that lets these kinds of hacks spread to every computer without detection with no way to prevent these backdoors in the future. The culture of UNIX, which rewards shoddy hacks, also makes them easier to hide because any exploit can be considered a "clever" hack, just like ncurses has "clever" memory leaks.
Bloatware is Proprietary allows backdoors to hide in multi-million line programs without anyone noticing that the source code and object code don't match. Backdoors can be hidden in plain sight in the source code itself. Even worse is that shitty "languages" like C are so broken that nobody can tell whether a backdoor was an intentional "optimization" (another respectable CS term these weenies took a big shit on). How would you know if a debugger had a backdoor or just an "honest" bug?
The problem is that the C standards committee doesn't know what C is because it's too poorly specified. It's both underspecified in the sense that basic meaningful operations are undefined for no reason (well, it's because the standards committee was afraid to make anyone rewrite code, even though ANSI C needed a lot of changes anyway) and overspecified in the sense that it is designed specifically for a PDP-11 memory model and is difficult to run on segmented and tagged architectures, preventing 60 years of CS research from being used.
That hack was actually implemented in PDP-11 UNIX, which is just another reason to avoid anything UNIX. "V7" tools are also so shitty that you would be better off making your own OS. They actually give the PDP-11 a bad name, like UNIX does for all hardware it runs on. The weenies who copied the vacuum cleaner slogan "nothing sucks like a VAX" for DEC's computer weren't running VMS.
The solution is simply to have a variety of compilers and architectures based on a variety of real standards, not weenie "standards" based on whatever one OS, compiler, or browser does. This kind of hack wouldn't have been possible in 60s FORTRAN and COBOL simply because there were so many implementations.
Nice theory, but I'm afraid you are too generous. When I wasporting a Scheme compiler to the RT, I managed to make adb-- nothing like a fancy, source-level debugger, or anything,just dumb ol' adb -- dump core with about 6 or 7keystrokes. Not arcane keystrokes, either. Shit you wouldtend to type at a debugger.It turned out that the symbol table lookup code had afencepost error that barfed if a particular symbol happenedto be first in the list. The C compiler never did this,so... it's good enough for Unix! Note that the RT had beenaround for *years* when I found this bug; it wasn't rawsoftware.The RT implementation of adb also had the interestingfeature of incorrectly printing the value of one of theregisters (r0). After I had spent a pleasant, relaxingafternoon ineffectively trying to debug my code, anddiscovered this, I remarked upon it to my RT-hackingfriends. They replied, "Oh, yeah. The debugger doesn't printout r0 correctly." In order to use adb, it seems, you justhad to know this fact from the grapevine.I was much amused at the idea of a debugger with large,obvious bugs.I recently managed to wedge our laserwriter server byqueueing up a large number of short files to it. Myofficemate flamed me for doing so. I replied, which led tothe following illuminating interchange: >> How was I to know the idiot system would vapor-lock on me? >> Because it's Unix?And that about sums it up for Unix.When the revolution comes, and the mob drags Bill Joyscreaming from his Ferrari at the factory gates, I, for one,will not be there to urge clemency.