Starting program: /home/user/Pulpit/a.out [Thread debugging using libthread_db enabled] [New Thread 0xb7fd8b70 (LWP 6067)] [New Thread 0xb76abb70 (LWP 6068)] a.out: malloc.c:3096: sYSMALLOc: Assertion `(old_top == (((mbinptr) (((char *) &((av)->bins[((1) - 1) * 2])) - __builtin_offsetof (struct malloc_chunk, fd)))) && old_size == 0) || ((unsigned long) (old_size) >= (unsigned long)((((__builtin_offsetof (struct malloc_chunk, fd_nextsize))+((2 * (sizeof(size_t))) - 1)) & ~((2 * (sizeof(size_t))) - 1))) && ((old_top)->size & 0x1) && ((unsigned long)old_end & pagemask) == 0)' failed. Program received signal SIGABRT, Aborted. 0x0012e416 in __kernel_vsyscall () (gdb) bt #0 0x0012e416 in __kernel_vsyscall () #1 0x00394e71 in raise (sig=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64 #2 0x0039834e in abort () at abort.c:92 #3 0x003d5b74 in __malloc_assert (assertion=, file=, line=3096, function=0x4a15ab "sYSMALLOc") at malloc.c:351 #4 0x003d826b in sYSMALLOc (av=0x4c83c0, bytes=20737) at malloc.c:3093 #5 _int_malloc (av=0x4c83c0, bytes=20737) at malloc.c:4747 #6 0x003d8f61 in _int_realloc (av=, oldp=0x8068518, oldsize=13832, nb=20744) at malloc.c:5290 #7 0x003da579 in __libc_realloc (oldmem=0x8068520, bytes=20736) at malloc.c:3821 #8 0x0055fdd9 in _XimParseStringFile () from /usr/lib/i386-linux-gnu/libX11.so.6 #9 0x0055dc90 in _XimLocalOpenIM () from /usr/lib/i386-linux-gnu/libX11.so.6 #10 0x0055c0f5 in _XimOpenIM () from /usr/lib/i386-linux-gnu/libX11.so.6 #11 0x005408ca in XOpenIM () from /usr/lib/i386-linux-gnu/libX11.so.6 #12 0x001e0920 in ?? () from /usr/lib/liballeg.so.4.2