lib***.h: out of memory
When you say "it froze", how long did you actually wait? There are over 20,000 files to be checksummed during portsnap extract. This takes a fair amount of time even on a well-equipped piece of hardware. Most of it is in RAM, so you won't see much activity. It may take hours on very modest hardware. But it should finish somewhere in your lifetime.