From: Carlucio L. <car...@gm...> - 2012-01-19 08:56:48
|
Good morning David, I do not know how to solve. help me? carlucio@notebook:~/sistemas/webloja$ gdb htcobol GNU gdb (GDB) 7.0.1-debian Copyright (C) 2009 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "i486-linux-gnu". For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>... Reading symbols from /usr/local/bin/htcobol...(no debugging symbols found)...done. (gdb) r -x -F -P web0007.cob Starting program: /usr/local/bin/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. Program received signal SIGABRT, Aborted. 0xb7fe2424 in __kernel_vsyscall () (gdb) ba #0 0xb7fe2424 in __kernel_vsyscall () #1 0xb7eac751 in *__GI_raise (sig=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64 #2 0xb7eafb82 in *__GI_abort () at abort.c:92 #3 0xb7eed484 in __malloc_assert (assertion=<value optimized out>, file=<value optimized out>, line=3097, function=0xb7fa449c "sYSMALLOc") at malloc.c:352 #4 0xb7ef0136 in sYSMALLOc (av=<value optimized out>, bytes=<value optimized out>) at malloc.c:3094 #5 _int_malloc (av=<value optimized out>, bytes=<value optimized out>) at malloc.c:4747 #6 0xb7ef1c8c in *__GI___libc_malloc (bytes=3) at malloc.c:3661 #7 0x0805e0b9 in ?? () #8 0x0805fca0 in ?? () #9 0x0804a6dd in ?? () #10 0x0806e848 in ?? () #11 0x08058e95 in ?? () #12 0xb7e98c76 in __libc_start_main (main=0x8058d7c, argc=5, ubp_av=0xbffff634, init=0x806fd00, fini=0x806fcf0, rtld_fini=0xb7ff1040 <_dl_fini>, stack_end=0xbffff62c) at libc-start.c:228 #13 0x08048f61 in ?? () (gdb) Em Wed, 18 Jan 2012 21:16:57 -0500 David Essex <de...@us...> escreveu: > 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 ... > > > > ------------------------------------------------------------------------------ > Keep Your Developer Skills Current with LearnDevNow! > The most comprehensive online learning library for Microsoft > developers is just $99.99! Visual Studio, SharePoint, SQL - plus > HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when > you subscribe now! http://p.sf.net/sfu/learndevnow-d2d > _______________________________________________ > Tin...@li... > https://lists.sourceforge.net/lists/listinfo/tiny-cobol-users -- -- Carlucio Lopes - 62-8592-8800 msn: car...@ho... linux user 285056 http://www.scobol.com.br http://www.debian.org http://www.postgresql.org http://www.linkedin.com/pub/carlucio-lopes/2a/89/b00 |