Comments on: The Reason Behind Most Of YOUR Bugs http://www.geekherocomic.com/2009/05/01/the-reason-behind-most-of-your-bugs/ The geeky adventures of Randie Tue, 09 Feb 2010 12:36:17 +0000 http://wordpress.org/?v=2.8.4 hourly 1 By: Mathias Hasselmann http://www.geekherocomic.com/2009/05/01/the-reason-behind-most-of-your-bugs/comment-page-1/#comment-2018 Mathias Hasselmann Mon, 04 May 2009 13:28:18 +0000 http://www.geekherocomic.com/?p=699#comment-2018 The really sad thing is, that compiling twice really might make sense with gcc: First you compile with "-O2" to let gcc detect uninitialized variables and similar bugs. After that you compile with "-O0" to allow gdb making sense of your mess. The really sad thing is, that compiling twice really might make sense with gcc: First you compile with “-O2″ to let gcc detect uninitialized variables and similar bugs. After that you compile with “-O0″ to allow gdb making sense of your mess.

]]>
By: Maciej Piechotka http://www.geekherocomic.com/2009/05/01/the-reason-behind-most-of-your-bugs/comment-page-1/#comment-2017 Maciej Piechotka Mon, 04 May 2009 12:42:49 +0000 http://www.geekherocomic.com/?p=699#comment-2017 Well. Some time ago X.org 1.5.1 (or 1.5.0 I don't remember) was wrongly compiled with gcc 4.3.0. By wrongly I mean it took 2 GiB of memory during compilation ;) Generally one can observe many bugs after release of a new gcc on, for example Debian or Gentoo bugzilla (gcc bugzilla is a nice place too ;) ). Most of them are program bugs (non-strict aliasing etc.) but there are gcc as well. Well. Some time ago X.org 1.5.1 (or 1.5.0 I don’t remember) was wrongly compiled with gcc 4.3.0. By wrongly I mean it took 2 GiB of memory during compilation ;)

Generally one can observe many bugs after release of a new gcc on, for example Debian or Gentoo bugzilla (gcc bugzilla is a nice place too ;) ). Most of them are program bugs (non-strict aliasing etc.) but there are gcc as well.

]]>
By: Salvatore Iovene http://www.geekherocomic.com/2009/05/01/the-reason-behind-most-of-your-bugs/comment-page-1/#comment-2016 Salvatore Iovene Mon, 04 May 2009 11:04:04 +0000 http://www.geekherocomic.com/?p=699#comment-2016 @etb, you'd still have to do it twice :-) @etb, you’d still have to do it twice :-)

]]>
By: etb http://www.geekherocomic.com/2009/05/01/the-reason-behind-most-of-your-bugs/comment-page-1/#comment-2015 etb Mon, 04 May 2009 10:45:28 +0000 http://www.geekherocomic.com/?p=699#comment-2015 What about -- find /project/dir -type f -exec touch "{}" \; && make clean && make && make -- ;) ? What about

find /project/dir -type f -exec touch “{}” \; && make clean && make && make

;) ?

]]>
By: Charon http://www.geekherocomic.com/2009/05/01/the-reason-behind-most-of-your-bugs/comment-page-1/#comment-2012 Charon Sat, 02 May 2009 23:57:30 +0000 http://www.geekherocomic.com/?p=699#comment-2012 Try Oracle Forms! You have to compile twice to be sure... well at least most of the time! To be completely sure, you have to replace every ";" with a ";" in your whole project, and do a full compile! And yes, its not a typo that there are two ";" :-) Try Oracle Forms! You have to compile twice to be sure… well at least most of the time!

To be completely sure, you have to replace every “;” with a “;” in your whole project, and do a full compile!

And yes, its not a typo that there are two “;” :-)

]]>
By: Cdh http://www.geekherocomic.com/2009/05/01/the-reason-behind-most-of-your-bugs/comment-page-1/#comment-2011 Cdh Sat, 02 May 2009 20:59:42 +0000 http://www.geekherocomic.com/?p=699#comment-2011 I just realised that the last strip from Thursday — April 30th, 2009 is exactly the same as this one except for the speechbubbles and the turned off light. :) My guess would be that the problem lies in the optimization of the compiler which sometimes does not what the programmer wanted... I just realised that the last strip from Thursday — April 30th, 2009 is exactly the same as this one except for the speechbubbles and the turned off light. :)

My guess would be that the problem lies in the optimization of the compiler which sometimes does not what the programmer wanted…

]]>
By: Risos http://www.geekherocomic.com/2009/05/01/the-reason-behind-most-of-your-bugs/comment-page-1/#comment-2007 Risos Sat, 02 May 2009 11:28:36 +0000 http://www.geekherocomic.com/?p=699#comment-2007 Lua shall triumph over all!!! Lua shall triumph over all!!!

]]>
By: etb http://www.geekherocomic.com/2009/05/01/the-reason-behind-most-of-your-bugs/comment-page-1/#comment-2006 etb Sat, 02 May 2009 09:00:37 +0000 http://www.geekherocomic.com/?p=699#comment-2006 Yes, I love programs that throws an unexpected exception and crash after hours of work because they hit a mistake in a rarely used piece of code. I find archaic the compiling errors that being detected outright allow to make correct code directly. Long life to type-less and interpreted languages. Yes, I love programs that throws an unexpected exception and crash after hours of work because they hit a mistake in a rarely used piece of code.

I find archaic the compiling errors that being detected outright allow to make correct code directly.

Long life to type-less and interpreted languages.

]]>
By: progfou http://www.geekherocomic.com/2009/05/01/the-reason-behind-most-of-your-bugs/comment-page-1/#comment-2005 progfou Sat, 02 May 2009 08:58:25 +0000 http://www.geekherocomic.com/?p=699#comment-2005 @MrValdez: well, that's not totally true since GCC has been proven to be wrong a few times already, especially during the Linux kernel development... compilers also _are_ programs, developed by imperfect humans (instead of alien dinosaur robots, who would surely do it perfect), that is why they may be bugged too! @MrValdez: well, that’s not totally true since GCC has been proven to be wrong a few times already, especially during the Linux kernel development… compilers also _are_ programs, developed by imperfect humans (instead of alien dinosaur robots, who would surely do it perfect), that is why they may be bugged too!

]]>
By: AhmedG http://www.geekherocomic.com/2009/05/01/the-reason-behind-most-of-your-bugs/comment-page-1/#comment-2004 AhmedG Sat, 02 May 2009 06:57:05 +0000 http://www.geekherocomic.com/?p=699#comment-2004 Owww...my head hurts from that last panel. Owww…my head hurts from that last panel.

]]>