From: Carlucio L. <car...@gm...> - 2012-01-13 10:56:55
|
Good day, where is the error? ?? root@notebook:/usr/local/tinycobol-0.66/test.code/t02# ls Makefile.in TEST02A.cpy TEST02C.cpy TEST02.cpy test02.lis test02a.cob TEST02B.cpy test02.cob test02.i root@notebook:/usr/local/tinycobol-0.66/test.code/t02# htcobol -x -P test02.cob error: copybook file 'TEST02.cpy' not found root@notebook:/usr/local/tinycobol-0.66/test.code/t02# -- -- 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 |
From: Carlucio L. <car...@gm...> - 2012-01-18 15:30:15
|
Good day, 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 carlucio@notebook:~/sistemas/webloja$ gcc -v Using built-in specs. Target: i486-linux-gnu Configured with: ../src/configure -v --with-pkgversion='Debian 4.3.5-4' --with-bugurl=file:///usr/share/doc/gcc-4.3/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared --enable-multiarch --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --with-gxx-include-dir=/usr/include/c++/4.3 --program-suffix=-4.3 --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --enable-mpfr --enable-targets=all --with-tune=generic --enable-checking=release --build=i486-linux-gnu --host=i486-linux-gnu --target=i486-linux-gnu Thread model: posix gcc version 4.3.5 (Debian 4.3.5-4) carlucio@notebook:~/sistemas/webloja$ uname -a Linux notebook 3.2.1 #2 SMP Tue Jan 17 06:37:31 BRST 2012 i686 GNU/Linux carlucio@notebook:~/sistemas/webloja$ -- -- 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 |
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 > ... |
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 |
From: David E. <de...@us...> - 2012-01-20 02:56:29
|
To use gdb you must compile 'htcobol', with the debugging symbols GCC option, '-g' on. Unpack the source code and configure and compile TC. Then use the local version to debug using gdb. make cleanall configure --enable-debug-compiler - Check that the '-g' option (see CCXFLAGS) and that the strip command is commented in the 'compiler/Makefile' file. make Example: Check 'htcobol' using file command (file ...htcobol ...not stripped). gdb /some-path/tinycobol-0.66/compiler/htcobol gdb> r -x -F -P web0007.cob ... Note that the run-time link step should not be problem if you are using the same version of TC for test and production. Hope this helps. Carlucio Lopes wrote: > ... > I do not know how to solve. help me? > $ gdb htcobol > ... > 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 > ... > Program received signal SIGABRT, Aborted. > ... |
From: David E. <de...@us...> - 2012-01-15 04:36:52
|
The CWD is not included in the copybook search PATH. For a quick fix just add the copybook PATH to command line, '-I.' or '-I $PWD'. For a more permanent solution add the copybook PATH to the COPYBOOK-PATH variable in the htcobolrc file. Carlucio Lopes wrote: > Good day, > > where is the error? > ... > root@notebook:/usr/local/tinycobol-0.66/test.code/t02# ls > Makefile.in TEST02A.cpy TEST02C.cpy TEST02.cpy test02.lis > test02a.cob TEST02B.cpy test02.cob test02.i > root@notebook:/usr/local/tinycobol-0.66/test.code/t02# > htcobol -x -P test02.cob > error: copybook file 'TEST02.cpy' not found > root@notebook:/usr/local/tinycobol-0.66/test.code/t02# |