Segmentation violation at last step in ROOT appl

Since I had to change ROOT from version 3.03.09 to 3.10.02 and gcc version from 2.95 to 3.3 my non-interactive ROOT application gives an error:
*** Break *** segmentation violation
Then the program hangs up and does nothing. In fact it appears just after/during “return 0” operator in main program. I tryed to use “theApp.Run(kTRUE)” and quit with MENU items, I got the same error.
I use my program in loop and now my work is waiting for a solution to find out if any.
Many thanks in advance for any help,