the problem of xlock with fvwm

Is it possible you turned on one of the known modifiers, such as CapsLock when entering your password? Indeed, FAQ #0.1 from http://www.fvwm.org/documentation/faq/#0.1 might be it.

Unless you can see anything relevant in ~/.xsession-errors, this is a unique problem.

– Thomas Adam.