Some of the character classes are not builtin to the perl binary but stored in external files (that are created when perl is installed). Maybe there's a problem loading these files??? Running the test under
strace might help debug the problem.
strace perl -e'" " =~ /\p{Unassigned}/'