Trufflehunter

At least it wasn't a computer graphics course this time; it was Debugging Software on PA-RISC Architecture. The instructor was a competent guitarist, who accompanied me very nicely when I sang this song at the end of the course.


capo 3 (absolute = Cm)

(intro: Am C Dm E
	Am C Dm E7)

     Am                  C                  E
I've got a corefile, and things are looking bleak;
     Am                    C          E
This investigation's gonna take me a week;
     Dm
With three debuggers handy, I thought I was well-equipped -
     E                             E7
But then the user told me that the binary was stripped!

Oh...
   Am            C              Dm      E7
   What the hell happened to my - stack frame?
      Am       C              Dm                 E7
   My DP is corrupted when it should've been the same;
   Am           C           Dm           D#dim
   SP's looking dodgy, it's driving me insane -
   E7*shush*                           (E) Am
   What the hell happened to my damn stack frame?

(bridge:) Am C Dm E7

I peer into the registers, nought to thirty-one,
Wondering how people do this kind of thing for fun,
I follow up a store-word, the answer's there to find -
The address in the register ain't word-aligned!

Oh...
What the hell happened to my - stack frame?
The RP and the PC aren't supposed to be the same,
The save-state's got a pointer to the argument to blame,
But what the hell happened to my damn stack frame?
I'm stepping through instructions to find out where I'm headed,
But nothing's making sense 'cos this application's threaded;
There's ten threads fighting for space within the stack -
The only way to solve it is a register hack!
Oh...
What the hell happened to my - stack frame?
The threads are overwriting it again and again;
Compared to this the Civil War looks relatively tame -
What the hell happened to my damn stack frame?
So now I am an expert, I even dream in hex,
Rebuilding corefiles is much more fun than sex;
When real life gets heavy, and drives me out my mind
I sit down at the keyboard and take time to unwind!
Oh...
What the hell happened to my - stack frame?
That's all I care about, ain't it a shame?
Digging out the trace is my favourite game -
What the hell happened to my poor old brain?
What the hell happened to my poor old brain?
What the hell happened to my poor old brain?

Music & lyrics © Dan Bennett 1997