I'm in the same boat. Kernel panics malloc errors everywhere PAH!
Download Lion. The install eats the file you need so don't install it right away. Only took me 2x +XCODE to figure that out.
Now, if you installed it you can do the brutal cmd-R on boot to get to the recovery partition. That's nice, you can now install Lion via your hopefully working network, as well as wiping the badness from your drive.
This sucks, since you probably did not save the download.
Really, you want to get a copy of Lion on a USB key.
Applications > Install Lion > show package contents > find and mount the InstallESD file.
Break out one of your many 16 gig USB keys and erase it. You're going to restore the InstallESD image onto the USB Key.
Check with diskutil, the gui in Lion is sexy, but underneath is a sea of
malloc(3)-y kernel panics. It needs to be bootable.
It' won't boot. Thats OK, use the Recovery Partition ( cmd R on boot ) and set the USB key as your startup disk.
Reboot. Try not to think about how you swore this time you'd wait until .1.
You should be back in what looks like the same place, except it should be from your USB key, which can install lion onto the wiped hard drive.
I shall attempt this last part right now, all I want is the oblivion of the zeroes ... perhaps my tinkering with snow leopard was the problem. BAH.
Very useful debugging stuff. Why is it "secret?" Why indeed?
Super cool tool. I'll use it instead of watching the 14 gigs... ok enough. It is a cool tool though.
man -k diag
shows you the equally nifty
mddiagnose for spotlight and tmdiagnose for time machine,
Yet not sysdiagnose.
EDIT: This actually did work quite well for me, the usb key even booted my lappy, and I only forgot to save Xcode, which is going on the key right now.
I'm seeing far less kernel panics, which is promising. Hope it works out for you.