Segmintation error whe adding GPS to TestEm11

I am having issues trying to activate GPS commands without a segmentation fault.
More precisely, I am able to add the GPS commands to the TestEm11 example.
However every time I run the commands /gps/position or /gps/centre I get a segmentation fault. All other command I am using seem to work witout a problem.
I can not figure it out for the life of me.

Hello,

the promary generator code in Geant4 is a user code. You substitute G4ParticleGun in TestEm11 by GPS, if there are problems your need debug it for example with gdb debugger or valgrind or in another way.

VI