Sounds like you've hit a bug inside the PHP interpreter or some binary extension that was loaded. I wouldn't be surprised. Are you up to date with all the PHP patches?
A search on "canary efree" turned up this explanation of this internal error detection feature in PHP:
Suspekt… » Blog Archive » Suhosin: canary mismatch on efree() - heap overflow detected