Thanks @All... especially xpi0t0s

the issue got resolved, I used other method, different thinking to overcome this issue. Now its alright.
Thanks to this, now I can understand SIGSEGV error properly...

thanks guys..