News for hackers. Stuff that matters.
Re:AVX register corruption from signal delivery by chrisseaton on Wednesday November 27, 2019 @03:30AM (#21646230)
> and at first no one wanted to believe me :)

I don't know why people think compilers are so infallible, or are more likely to be better written than your application. If people write bugs in applications guess what the same people write similar bugs in compilers too.

Re:AVX register corruption from signal delivery by pingyong on Wednesday November 27, 2019 @07:08AM (#21647196)
Probably because everyone still has the numerous starting experiences in the back of their head where they thought their code must be correct and it couldn't possibly your fault only to realize the next day that it was absolutely your fault.

It definitely took me a while to realize that VS was just always executing the default statement of a switch (instead of an applying case) if the default was at the top of the switch instead of the bottom, and only when the switch was being executed at compile time in a constexpr context.

Re:AVX register corruption from signal delivery by bayindirh on Wednesday November 27, 2019 @05:49AM (#21646842)
> I don't know why people think compilers are so infallible, or are more likely to be better written than your application.

Since they are rare and written by relatively small and knowledgeable people, most of the users (incl. me) think that they're meticulously tested and developed with utmost care.

I just remembered that one of my applications were hanging in a hot code path if I didn't write a small debug directive in the middle of it. I always thought the problem was with me but, it can be anywhere between me and the silicon. When you're in the middle of the development heat, you always blame your code or the libraries you use. Compiler and the lower levels are not put in the suspect list until bug becomes fairly stubborn to persist.

Re:AVX register corruption from signal delivery by patrec on Wednesday November 27, 2019 @08:46AM (#21647742)
How many bugs did you find in (production versions of) your applications? How many in compilers?
Re:AVX register corruption from signal delivery by bregma on Wednesday November 27, 2019 @10:25AM (#21648599)
I maintain compilers for a living for a safety-critical embedded OS. I've found dozens of bugs in the compiler, dozens of bugs in the OS kernel, and dozens of bugs in the third-party validation test suites we use to qualify the compiler.

I also live in a log cabin in the back woods and can go off-grid. I've seen shit you people would not believe. It's just a matter of time now. Dominoes.

Re:AVX register corruption from signal delivery by SomeHacker44 on Wednesday November 27, 2019 @11:51PM (#21654660)
Attack ships on fire off the shoulder of Orion yet?
Re:AVX register corruption from signal delivery by chrisseaton on Wednesday November 27, 2019 @09:03AM (#21647881)
I write compilers so I find tons of bugs in them, and in other people’s compilers I’m looking at, all the time.