Slashdot Mirror


GCC 4.3.0 Exposes a Kernel Bug

ohxten sends news from earlier this month that GCC 4.3.0's new behavior of not clearing the direction flag before a string operation on x86 systems poses problems with kernels — such as Linux and BSD — that do not clear the direction flag before a signal handler is called, despite the ABI specification.

22 of 256 comments (clear)

  1. Yep, by EkriirkE · · Score: 5, Funny

    That's what happens when you don't clear that STD...

    --
    from 09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0
    to 45 2F 6E 40 3C DF 10 71 4E 41 DF AA 25 7D 31 3F
    1. Re:Yep, by Creepy+Crawler · · Score: 3, Funny

      ---That's what happens when you don't clear that STD...

      And the answer is to.... use condoms?

      And I thought we were here discussing bugs between GCC and LK.

      --
    2. Re:Yep, by EkriirkE · · Score: 2, Funny

      Some CLD will clear that STD, silly!

      --
      from 09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0
      to 45 2F 6E 40 3C DF 10 71 4E 41 DF AA 25 7D 31 3F
    3. Re:Yep, by cralewyth · · Score: 2, Funny

      All it really needs is some TLC.

      --
      "Women are just like ninjas; They lie even when it is more convenient to tell the truth." ~ Unknown
  2. Kernel bug by Harmonious+Botch · · Score: 4, Funny

    Better than a general fault.

  3. EVERYBODY PANIC!!! by Anonymous Coward · · Score: 5, Funny

    GCC 4.3.0's new behavior of not clearing the direction flag before a string operation on x86 systems poses problems with kernels -- such as Linux and BSD -- that do not clear the direction flag before a signal handler is called, despite the ABI specification.

    Oh my GOD! If this is true, that means- that means-- it... the-

    Uh, what does it mean exactly?

    1. Re:EVERYBODY PANIC!!! by Anonymous Coward · · Score: 5, Funny

      I'm sorry, I'll need a car analogy on that one.

  4. Telling your age by symbolset · · Score: 1, Funny

    1991 was a long time ago. Linux is old.

    --
    Help stamp out iliturcy.
  5. Re:EVERYBODY PANIC!!! (Car Version) by Anonymous Coward · · Score: 1, Funny

    It's like you got a bunch of cars at a stoplight and you want to walk by each to panhandle for money but instead of starting at the first car in line and the walking down to the back, you start at the first then head out into cross traffic and get run over and something crashes.

  6. Re:so what by Profane+MuthaFucka · · Score: 2, Funny

    I'm a consultant, and I'm wondering what the billing rate times a fuckton is going to total out to.

    --
    Fascism trolls keeping me up every night. When I starts a preachin', he HITS ME WITH HIS REICH!
  7. Re:so what by serviscope_minor · · Score: 3, Funny

    Is a fuckton more or less than a metric assload?

    --
    SJW n. One who posts facts.
  8. Re:What this really exposes... by HonIsCool · · Score: 2, Funny

    Hehe, I'm going to try that approach the next time I'm assigned a bug: "No, it's not the code that's wrong, it's the specification."

    --
    "Give me six lines of C++ code written by the most competent programmer, and I will find enough in there to hang him."
  9. Re:[LWN subscriber-only content] by gambolt · · Score: 5, Funny

    Information wants to be free. Bandwidth wants to cost money.

  10. Re:What this really exposes... by Anonymous Coward · · Score: 1, Funny

    What the hell are you talking about?

    You two are on different wavelengths. Consider that before you open your little can of whoop-ass next time. BTW, your attitude is a real turn-off which makes hearing your point much more difficult.

  11. Re:GCC is wrong by badfish99 · · Score: 3, Funny

    On the other hand: the instructions affected by this aren't used very much, so if you want optimizations, a good candidate would be to not clear the flag unless it is needed. If the ABI were simply changed to allow this, no existing code would break (obviously), and future code could both conform to the new ABI *and* avoid the overhead of unnecessary instructions to clear the flag when it is not being used.

    I suppose the only barrier to this optimization would be the political effort needed to get everyone to agreee to change the ABI.

  12. Re:[LWN subscriber-only content] by martin-boundary · · Score: 2, Funny

    They could have waited another day: the article becomes freely available on March 20.
    Bloody northern hemisphere drongos! Some of us have the shrimps on the barbie a day earlier than the rest of youse insensitive clods!
  13. Re:so what by larry+bagina · · Score: 5, Funny

    at least nothing of value is affected.

    --
    Do you even lift?

    These aren't the 'roids you're looking for.

  14. Re:I fixed this bug in 1989 too by X3J11 · · Score: 3, Funny

    I fixed this bug in 1989 in an Intel C compiler. That was some years before the GCC project was started. Some people never learn...

    From http://en.wikipedia.org/wiki/GNU_Compiler_Collection:

    Originally named the GNU C Compiler, because it only handled the C programming language, GCC 1.0 was released in 1987, and the compiler was extended to compile C++ in December of that year.

    Perhaps the error in your assertion is a side effect of an uncleared direction flag.

  15. Re:so what by xaxa · · Score: 4, Funny

    It depends, the US Fuckton is less than a metric assload, but the Imperial Fuckton, previously used in the UK, was more.

    NB The use of 'assload' without the 'metric' qualifier is discouraged, the customary US assload being a much greater mass.

  16. Re:[LWN subscriber-only content] by Cro+Magnon · · Score: 2, Funny

    Well, they could always link again in the dupe.

    --
    Slow down, cowboy! It has been 4 hours since you last posted. You must wait another few hours.
  17. Re:GCC is wrong by bytesex · · Score: 2, Funny

    You lose one CPU cycle ?

    --
    Religion is what happens when nature strikes and groupthink goes wrong.
  18. Oh No by fluffykitty1234 · · Score: 3, Funny

    I just heard that this has seriously set back the release date of Duke Nukem Forever!