From: David E. <de...@us...> - 2012-01-19 02:17:52
|
I'm no longer active in either the development or maintenance of TC. But I will give you some hints on how to isolate the error. Looks like a memory allocation error. Since 4x, GCC is very particular an how memory is allocated. Build TC with the debug option enabled. (make cleanall, configure --enable-debug-compiler, make ...). Run htcobol using GDB, then use the backtrack (ba) command. gdb htcobol gdb> r -x -F -P web0007.cob ... gdb> segfault ... gdb>ba ... This should isolate the problem 'malloc' code. Hope this helps. Carlucio Lopes wrote: > ... > where is the error? > > carlucio@notebook:~/sistemas/webloja$ htcobol -x -F -P web0007.cob > htcobol: malloc.c:3097: 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. > Abortado > ... |