handle permission denied errors (PR #2622)

reading from /proc//smaps is not available inside of Docker container

GitHub

You’ve signed the CLA, gschlager. Thank you! This pull request is ready for review.

thanks !