GCC Easter Eggs?
Michael Torrie
torriem at chem.byu.edu
Mon Jul 24 10:39:45 MDT 2006
On Mon, 2006-07-24 at 09:33 -0600, Steve wrote:
> Yes I'm sure it was compiled using GCC, it was compiled under GCC 4.0
You'll want to post on the GCC mailing lists.
Does your code run, or does it segfault with this uninitialized pointer?
Your post about easter eggs in the compiler reminds me of this classic
paper by Ken Thompson:
http://www.acm.org/classics/sep95/
>
> On 7/24/06, Dave Smith <dave at thesmithfam.org> wrote:
> > Steve wrote:
> > > Hello Everyone,
> > > I'm wondering if anyone has seen any easter eggs in GCC dissamblies?
> > > Reason I ask is I was debugging a bit of code recently and saw a lot
> > > of pointers all to the same place in memory, even though they should
> > > have been completely different values.
> > > (this=0x85cafe0)
> > > I got to looking alot closer at the code (Note I am debugging this
> > > code I did not write it)
> > > And figured out that they were ALL uninitialized pointers!
> > > Anyways I don't know if it was fluke or an easter egg, but it looks
> > > like an easter egg to me!
> > >
> > > Anyone ever notice anything else like that, maybe even some tips for
> > > things to look for in the future?
> >
> > Probably a fluke. Are you sure the binary was compiled with gcc? What
> > about this:
> >
> >
> > http://www.destinationteesvalley.co.uk/dine_with_us/dine.2006-02-17.3089028845
> >
> > --Dave
> >
> > /*
> > PLUG: http://plug.org, #utah on irc.freenode.net
> > Unsubscribe: http://plug.org/mailman/options/plug
> > Don't fear the penguin.
> > */
> >
>
> /*
> PLUG: http://plug.org, #utah on irc.freenode.net
> Unsubscribe: http://plug.org/mailman/options/plug
> Don't fear the penguin.
> */
>
More information about the PLUG
mailing list