android market force close on Typhoon CM7 firmware v3.4.2

After a clean install of Typhoon CM7 v3.4.2 on HD2, I found that android market always force closes. A brief search on the Internet indicates that market works well with v3.4.1, but force closes on v3.4.2. Then I found the following solution on xda-developers:

With a rooted rom:
1) open a terminal emulator
2) su
3) chmod 777 /cache

Then everything works well.