AVG was active? If yes, that's the problem.
You must not have two AV programs (not only avast and AVG) running in parallel (to be more specific, their resident shields). This is almost always a recipe for disaster...
Try searching this forum for more info (collisions with Norton/Symantec AV are especially frequent).
Sorry for any trouble,
Vlk