Thanks for all the help I got!
I tried all the suggestions and rearranged the source. Nothing seems to help, but I was able to reduce the problem to one line
undef (%addresses);
When this line is called, I meet Dr. Watson. :-(
Is this a known error (which a haven't found) or are there any other possibilities to get rid off the variable?