I recall reading somewhere that panic : POPSTACK errors are caused by a bug using die's in eval (often during interaction with an Apache session).
Does any of this sound familiar? IIRC the bug is fixed in the 5.6.0 distro. Do a perl -v and tell me which version you're using?