gtk-2.4 application developed on centos 6.2 to be ported to ubuntu 12.10

view story

http://askubuntu.com – I have an application developed using Glade, C, postgresql, on Centos 4. It was easily ported upto Centos 6.2 Now, when I recompile it on Ubuntu 12.10 and run it, I get the following error, and such lines go on and on. Can someone help me the direction that I need to take to resolve it ? : *** buffer overflow detected ***: kalculate terminated ======= Backtrace: ========= /lib/i386-linux-gnu/libc.so.6(__fortify_fail+0x45)[0xcac045] /lib/i386-linux-gnu/libc.so.6(+0x102e1a)[0xcaae1a] /lib/i386-linux-gnu/libc.so.6(+0x102478)[0xcaa478] /lib/i386-linux-gnu/libc.so.6(_IO_default_xsputn+0x91)[0xc1b5 (HowTos)