by nickoppen » Thu Jan 21, 2016 12:28 am
A segmentation fault usually indicates a problem with memory management on the host side.
I suggest you sharpen your debugging skills (gdb by itself or via eclipse or code::blocks) and that will take you to where the segmentation fault occurs and that will tell you where to start looking.
No one here on the forum can do that for you. These things are "can opener" jobs. You've got to get in there and figure out what is going on.
(Also be aware that the memcopy at the end of the kernel is not supported in the current realease.)
Sharing is what makes the internet Great!