From A greasepaint glossary: Corpsing is a theatrical slang term used to describe an actor breaking character during a scene - usually by laughing or forgetting the lines, or by causing another cast member to do so.
The Art of Corpsing, from the Extras season 2 DVD. Part 1 and part 2.