Strange memory problem (static vs heap allocated)

Yes I used GDB. It goes to the Infinite_Loop in startupstm32xxx.S, the comment written near this loop states:
/* This is the code that gets called when the processor receives an

  •     unexpected interrupt.  This simply enters an infinite loop, preserving
    
  •     the system state for examination by a debugger.
    

*/