Go Back   Review Linux OS Forums > Review Linux OS Forums Info > News

Reply
Old 10-05-2007, 02:20 PM   #1
Administrator
Administrator
 
Join Date: Jul 2005
Posts: 7,374
Blog Entries: 16
Post Compiler Optimization Bugs and World Domination

A bug report filed by Ingo Molnar regarding a procfs crash in the recently released 2.6.23-rc9 kernel was quickly tracked down by Linus Torvalds as a compiler bug. The bug was ultimately determined to be from a compiler optimization generated with an older version of GCC. Ingo was skeptical at first, "it's 4.0.2. Not the latest & greatest but I've been using it for 2 years and this would be the first time it miscompiles a 32-bit kernel out of tens of thousands of successful kernel bootups." Linus replied, "I am 100% sure. I can look at the disassembly, and point to the fact that your Oops happens on code that is simply totally bogus." He continued on to offer an interesting review of the crash, explaining line by line what should have been generated versus what actually was, causing the crash. In the end, Ingo switched to a distribution compiled GCC 4.1.2 and confirmed that the crash went away, "so you are completely right, it's a compiler bug in 4.0.2."


During the thread, Linus suggested that the optimization made by the compiler wasn't "legal", to which Alan Cox retorted, "pedant: valid. Almost all optimizations are legal, nobody has yet written laws about compilers. Sorry but I'm forever fixing misuse of the word 'illegal' in printks, docs and the like and it gets annoying after a bit." Linus playfully responded, "heh. When I'm ruler of the universe, it *will* be illegal. I'm just getting a bit ahead of myself." When asked how long until he expected to be ruler, Linus added, "I'm working on it, I'm working on it. I'm just as frustrated as you are. It turns out to be a non-trivial problem."


read more | Sponsor KernelTrap.org



[details]
 Administrator is offline Status: Offline

 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux Edges One Step Closer to Total World Domination Administrator News 0 07-15-2008 11:17 AM
Compiler Misoptimizations Administrator News 0 10-25-2007 04:49 PM
IBM DB2 Performance Optimization eKit BlueVoodoo News 0 10-13-2007 02:10 PM
LLVM Compiler 2.1 Released Administrator News 0 09-29-2007 03:57 PM
Richard Stallman on "World Domination 201" Administrator News 0 02-08-2007 01:39 PM


All times are GMT -7. The time now is 07:01 AM.

 
         


Design by: vBulletin Skins Zone
Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0