It seems a typo was made in client/citicore/se/Security.cpp where instead of recursively adding the parent principal, the same principal gets recursed on again.

This will be resolved shortly.