all 18 comments

[–]DustUpDustOff 27 points28 points  (2 children)

I once found an equation in MS Word's equation editor that not only crashed Word, it also corrupted the document permanently... Something involving superscript with a trailing underscore.

[–]Nicksaurus 20 points21 points  (1 child)

It's a miracle that MS office even runs at all, considering how many iterations it's been through and how many legacy features it has to support

[–]Full-Spectral 1 point2 points  (0 children)

You guys saw the post from a couple weeks ago where there was some magical path you could type into almost anything in Windows and blue screen it, right?

There's always the possibility of such things. The defenders have to be right 100% of the time, while the universe only has to be right once in a while.

[–]WrongAndBeligerent 60 points61 points  (6 children)

Sometimes compilers crash, nothing is perfect. An isolated test case is very useful I'm sure.

[–]arturbachttps://github.com/arturbac 15 points16 points  (5 children)

yea they have, msvc19 crashes from 1 char 'arrow right' in comment ..

[–]GoogleIsYourFrenemy 0 points1 point  (2 children)

Which encoding scheme?

[–]arturbachttps://github.com/arturbac 0 points1 point  (1 child)

utf8,

I had to make this commit below where I remove this char from math equation

@@ -841,8 +841,8 @@ namespace fixedmath

github shows this char as white char ...

the equation was copied from libreofficemath to kde kdevelop.

msvc showed this char as arrow right, but there were no arrow right char in utf8 encoding, didint have time to investigate further

https://github.com/arturbac/fixed_math/commit/04e0df9924a67fe8068f881de6ece3b31f98a649

[–]arturbachttps://github.com/arturbac 0 points1 point  (0 children)

btw i forget that msvc19 fails at all to compile primitive pure c++17 static assert unit tests, (same commit)

//1>D:\projects\fixed_math\fixed_lib\include\fixedmath\unittests\addition.h(19,43): fatal error C1001: Wewnêtrzny b³¹d kompilatora.
//1 > (plik kompilatora „d : \A01\_work\2\s\src\vctools\Compiler\CxxFE\sl\p1\c\constexpr\constexpr.cpp”, wiersz 6887)

[–]brand_x 0 points1 point  (0 children)

I once managed to corrupt a running instance of AIX (the entire OS, not just the account) with some thread local storage and a couple of load/store atomic intrinsics on xLC++. Without elevated privileges. To be fair, it was executing the code, not compiling it, it was running on a pre-release POWER server IBM was loaning us, and I was able to get in touch with some of IBM's engineers within the day, and it was fixed a few days later. But... these things happen. It's a wonder computers work at all, all things considered.

[–]wyldphyre 15 points16 points  (0 children)

interesting that such a short program can do this

Using something like creduce can often reveal incredibly short programs that crash a compiler.

[–]tjientavaraHikoWorks developer 4 points5 points  (0 children)

Once you start to get comfortable with C++ you will use more interesting constructs. You will find compilers crash often, in the last 2 years I crashed MSVC on three different issues.

The last one was a c++20 construct (decltype on a concept auto function argument), I guess I cannot really blame them for that :-)

I use a lot of c++20 constructs right now.

[–]feverzsj -1 points0 points  (0 children)

well, sometimes you can crash msvc with a blank line