egmentation fault error

Hi all,
I am naive to clang and llvm. I wrote one plugin for clang by just copying PrintFunctionName.cpp given in the /clang/example.
I successfully build that plugin but when try to load that plugin it gives some segmentation error .
can anyone please tell me what is segmentation error & how can i fix it?

thanks.