Thread: Today I crashed gcc!

  1. #1
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654

    Today I crashed gcc!

    I just felt like I had to share this because I consider it an achievement! ^_^
    Btw, the same code compiles fine with Visual C++ and clang.

    g++ -std=c++1y -O -fopenmp -fdump-tree-ompexp -lboost_math_tr1 -I . -o recursive_omp_gcc recursive_omp_solution.cpp -g
    In file included from recursive_omp_solution.cpp:7:0:
    ./Stuff/Statistics.hpp:28:8: internal compiler error: in gen_type_die_with_usage, at dwarf2out.c:19486
    class XStatistics
    ^
    Please submit a full bug report,
    with preprocessed source if appropriate.
    See <file:///usr/share/doc/gcc-4.8/README.Bugs> for instructions.
    Preprocessed source stored into /tmp/ccOXYWdn.out file, please attach this to your bugreport.

    Interestingly enough, removing the "-g" flag causes the compiler to compile fine (but the program still crashes and I don't know why; it works fine with clang and VC).

    For those interested, here's a link to the source of the code that crashed the compiler. It will a nice little note in the history books.
    Last edited by Elysia; 12-31-2014 at 08:32 PM.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  2. #2
    Registered User
    Join Date
    Jun 2005
    Posts
    6,815
    Meh! You consider it an achievement. I'd say you're compounding your lack of achievement by not reporting the bug. Can we expect a rant in a few months about how the gcc maintainers don't fix the problem, despite the fact you haven't reported it?

    Tickling a compiler bug when you're using relatively new/developmental/experimental features (which is certainly the case from that command line) is not exactly an achievement. With any compiler.

    I've personally lost count of the number of compiler bugs I've reported - including bugs in clang, VC, as well as quite a few ICE reports for gcc. But, when I encounter them, I report them with all details needed, rather than posting in a forum that I'm not going to report the problem.
    Right 98% of the time, and don't care about the other 3%.

    If I seem grumpy or unhelpful in reply to you, or tell you you need to demonstrate more effort before you can expect help, it is likely you deserve it. Suck it up, Buttercup, and read this, this, and this before posting again.

  3. #3
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    I like to call this an achievement because it's my first time crashing gcc and I find it funny, so it's an achievement to me, though not necessarily a "real" achievement. This is my first time crashing gcc. I'm not posting this here because I want someone else to report a problem or to complain about something. I posted it because I found it funny.

    I'm not going to rant about things not getting fixed. I don't do that. I don't make posts on forums about things that don't work while providing "no details," because I find that to be a pointless post. And I certainly can't be bothered to report it due to the work in takes in read up how to submit it, where to submit it, subscribe to mailing list, etc. Takes too much time and I get too little gain from it. I know full well it's not going to get fixed then, but I'm not going to complain or rant about it.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  4. #4
    Lurking whiteflags's Avatar
    Join Date
    Apr 2006
    Location
    United States
    Posts
    9,616
    I have no interest in reporting a bug to a mailing list though (seriously, mailing lists are so outdated now), so I'm not going to report this, if anyone wants to know. Feel free to do it yourself if you really, really, absolutely want to, though!
    Is that really the only reason?

    Anyway, I'm surprised your next thought is someone here will do your legwork.

  5. #5
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    No, I don't expect anyone to do my "legwork." I shared something I found funny.

    EDIT:
    Removed the "bug report" part, so one thinks I want someone else to do it for me >_<
    Really, I don't. Please don't submit it on my behalf.
    Last edited by Elysia; 12-31-2014 at 08:34 PM.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  6. #6
    Registered User
    Join Date
    Jun 2005
    Posts
    6,815
    Well ..... thanks for the insight into your sense of humour.

    It explains more than you realise.
    Right 98% of the time, and don't care about the other 3%.

    If I seem grumpy or unhelpful in reply to you, or tell you you need to demonstrate more effort before you can expect help, it is likely you deserve it. Suck it up, Buttercup, and read this, this, and this before posting again.

  7. #7
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    Well... you know, when working on a huge project with a deadline approaching, running into an internal compile error might not very fun.
    But when poking around with testing code and compilers and stuff for fun, crashing the compiler can be a fun thing.
    I certainly found it more humorous than annoying this time around.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  8. #8
    Registered User MutantJohn's Avatar
    Join Date
    Feb 2013
    Posts
    2,665
    Report it, mang!!!

  9. #9
    Master Apprentice phantomotap's Avatar
    Join Date
    Jan 2008
    Posts
    5,108
    I'm not going to rant about things not getting fixed. I don't do that. I don't make posts on forums about things that don't work while providing "no details," because I find that to be a pointless post. And I certainly can't be bothered to report it due to the work in takes in read up how to submit it, where to submit it, subscribe to mailing list, etc. Takes too much time and I get too little gain from it. I know full well it's not going to get fixed then, but I'm not going to complain or rant about it.
    O_o

    Looks like a duck...

    Soma
    “Salem Was Wrong!” -- Pedant Necromancer
    “Four isn't random!” -- Gibbering Mouther

  10. #10
    Master Apprentice phantomotap's Avatar
    Join Date
    Jan 2008
    Posts
    5,108
    Report it, mang!!!
    O_o

    I appreciate that you and grumpy weren't having the problem, but the problem here is pretty much just Elysia... being Elysia.

    [Edit]
    I wonder to whom you'd report that bug? ^_^;
    [/Edit]

    Despite all the times Elysia has barked at someone to use a different compiler or upgrade their compiler, Elysia is using an older version.

    The first thing to do is actually see if the current compiler works before even considering a bug report.

    Soma
    “Salem Was Wrong!” -- Pedant Necromancer
    “Four isn't random!” -- Gibbering Mouther

  11. #11
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    Quote Originally Posted by phantomotap View Post
    Despite all the times Elysia has barked at someone to use a different compiler or upgrade their compiler, Elysia is using an older version.
    I use an older version here because of the same reason I stick to an older version in Windows... the reason being that some lazy package maintainer has failed to update the package to the latest version in the linux repository. It's not my main compiler, so I don't want to bother trying to manually compile gcc to get the latest version. VC is different. Just download latest version, install, done. Not so with gcc/clang.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  12. #12
    Master Apprentice phantomotap's Avatar
    Join Date
    Jan 2008
    Posts
    5,108
    the reason being that some lazy package maintainer has failed to update the package to the latest version in the linux repository.
    O_o

    Okay. I'll bite. What distribution and/or package manager are you using?

    Soma
    “Salem Was Wrong!” -- Pedant Necromancer
    “Four isn't random!” -- Gibbering Mouther

  13. #13
    Registered User MutantJohn's Avatar
    Join Date
    Feb 2013
    Posts
    2,665
    I'm using "gcc (GCC) 4.9.2 20141224 (prerelease)" (this is my gcc --version output). Is this not the latest version of gcc? It's whatever was in the Arch Linux repos.

    I also just checked the gcc site and I think 4.9.2 is the latest.

    But this is the only good news on the site :
    News

    GCC 5 C++14 language feature-complete [2014-12-23]Support for all C++14 language features has been added to the development sources for GCC, and will be available when GCC 5 is released next year. Contributed by Jason Merrill, Braden Obrzut, Adam Butcher, Edward Smith-Rowland, and Jakub Jelinek.

    It's coming, guys! C++14 is coming!!!! GCC 5: prepare to bow down, mortals!

  14. #14
    Master Apprentice phantomotap's Avatar
    Join Date
    Jan 2008
    Posts
    5,108
    Is this not the latest version of gcc?
    O_o

    Your compiler is irrelevant unless you are going to try to reproduce the error.

    I was making you aware that Elysia is not using the latest version.

    You said "Report it, mang!!!", but the occurrence should not be reported until reproduced on the latest version as the problem may have already been fixed.

    Soma
    “Salem Was Wrong!” -- Pedant Necromancer
    “Four isn't random!” -- Gibbering Mouther

  15. #15
    Registered User MutantJohn's Avatar
    Join Date
    Feb 2013
    Posts
    2,665
    Quote Originally Posted by phantomotap View Post
    O_o

    Your compiler is irrelevant unless you are going to try to reproduce the error.

    I was making you aware that Elysia is not using the latest version.

    You said "Report it, mang!!!", but the occurrence should not be reported until reproduced on the latest version as the problem may have already been fixed.

    Soma
    Oh man, now that's​ too much work.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Program crashed
    By byebyebyezzz in forum C++ Programming
    Replies: 1
    Last Post: 12-06-2011, 04:42 PM
  2. Pass by reference crashed
    By audinue in forum C Programming
    Replies: 34
    Last Post: 06-13-2008, 09:39 AM
  3. The Internet has crashed
    By DavidP in forum A Brief History of Cprogramming.com
    Replies: 2
    Last Post: 03-27-2008, 11:22 AM
  4. MS Updates crashed my system
    By ober in forum A Brief History of Cprogramming.com
    Replies: 7
    Last Post: 12-20-2004, 06:11 AM
  5. My Program Crashed help!!!
    By St0rmTroop3er in forum C++ Programming
    Replies: 6
    Last Post: 09-05-2003, 04:25 PM