In fact the program raised a signal SIGRTMEM: Out of heap memory. I checked the heap size in both Example1 and Example2...
Heap_Size EQU 0x00000000
As only example1 got problems that means some function in that code used the heap, so i changed Heap_Size...
Now I got SIGABRT: Abnormal termination I would have thought example as to work easier...