Switch from proton to e-

Please fill out the following information to help in answering your question, and also see tips for posting code snippets. If you don’t provide this information it will take more time to help with your problem!

_Geant4 Version:_4-11.2.2
_Operating System:_MacOS
_Compiler/Version:_arm64-apple-darwin24.3.0
_CMake Version:_3.31.5

I have a simple simulation in which protons are shot at a thin wire. It works very well. I’ve tried to simply change:
/gun/particle proton
to:
/gun/particle e-

I get a flat crash with no debugging info:

Run 0 starts.

zsh: segmentation fault ./Wire electron.in

The physics list I use is G4EmStandardPhysics_option4

What to do with it?

Best regards,

Mariusz