this should also influence the -fstack-protector behaviour, but that seemsto be OK.__builtin_trap is used as I can see only if a vulnerability is found, thishappens though on a simple hello world.
Aaah. You'll probably need to step through the program in a debugger then and find out where and why it segfaults.
-eric