Public bug reported:

[EMAIL PROTECTED]:~$ cntraining 
Clustering ...

FreeTrainingSamples...
Segmentation fault
[EMAIL PROTECTED]:~$ valgrind --leak-check=full --show-reachable=yes cntraining 
==28107== Memcheck, a memory error detector.
==28107== Copyright (C) 2002-2007, and GNU GPL'd, by Julian Seward et al.
==28107== Using LibVEX rev 1854, a library for dynamic binary translation.
==28107== Copyright (C) 2004-2007, and GNU GPL'd, by OpenWorks LLP.
==28107== Using valgrind-3.3.1-Debian, a dynamic binary instrumentation 
framework.
==28107== Copyright (C) 2000-2007, and GNU GPL'd, by Julian Seward et al.
==28107== For more details, rerun with: -v
==28107== 
Clustering ...

FreeTrainingSamples...
==28107== Invalid read of size 2
==28107==    at 0x804A311: WriteNormProtos(char*, list_rec*, CLUSTERER*) 
(stdio2.h:99)
==28107==    by 0x804AF08: main (cnTraining.cpp:255)
==28107==  Address 0x0 is not stack'd, malloc'd or (recently) free'd
==28107== 
==28107== Process terminating with default action of signal 11 (SIGSEGV)
==28107==  Access not within mapped region at address 0x0
==28107==    at 0x804A311: WriteNormProtos(char*, list_rec*, CLUSTERER*) 
(stdio2.h:99)
==28107==    by 0x804AF08: main (cnTraining.cpp:255)
Writing normproto ...==28107== 
==28107== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 19 from 1)
==28107== malloc/free: in use at exit: 1,065 bytes in 26 blocks.
==28107== malloc/free: 26 allocs, 0 frees, 1,065 bytes allocated.
==28107== For counts of detected errors, rerun with: -v
==28107== searching for pointers to 26 not-freed blocks.
==28107== checked 138,028 bytes.
==28107== 
==28107== 
==28107== 8 bytes in 1 blocks are still reachable in loss record 1 of 7
==28107==    at 0x4025D2E: malloc (vg_replace_malloc.c:207)
==28107==    by 0x8058AAF: BOOL_VARIABLE::BOOL_VARIABLE(unsigned char, char 
const*, char const*) (clst.h:63)
==28107==    by 0x8055DB1: _GLOBAL(i_xx_t, float, int, long,...) 
(tprintf.cpp:36)
==28107==    by 0x805D5FC: (within /usr/bin/cntraining)
==28107==    by 0x804978F: (within /usr/bin/cntraining)
==28107==    by 0x805D598: __libc_csu_init (in /usr/bin/cntraining)
==28107==    by 0x41A561B: (below main) (in /lib/tls/i686/cmov/libc-2.8.90.so)
==28107== 
==28107== 
==28107== 8 bytes in 1 blocks are still reachable in loss record 2 of 7
==28107==    at 0x4025D2E: malloc (vg_replace_malloc.c:207)
==28107==    by 0x805889B: STRING_VARIABLE::STRING_VARIABLE(char const*, char 
const*, char const*) (clst.h:63)
==28107==    by 0x8055D71: _GLOBAL(i_xx_t, float, int, long,...) 
(tprintf.cpp:34)
==28107==    by 0x805D5FC: (within /usr/bin/cntraining)
==28107==    by 0x804978F: (within /usr/bin/cntraining)
==28107==    by 0x805D598: __libc_csu_init (in /usr/bin/cntraining)
==28107==    by 0x41A561B: (below main) (in /lib/tls/i686/cmov/libc-2.8.90.so)
==28107== 
==28107== 
==28107== 9 bytes in 1 blocks are still reachable in loss record 3 of 7
==28107==    at 0x4025D2E: malloc (vg_replace_malloc.c:207)
==28107==    by 0x805CE11: STRING::AllocData(int, int) (strngs.cpp:119)
==28107==    by 0x805CF20: STRING::STRING(char const*) (strngs.cpp:192)
==28107==    by 0x8058864: STRING_VARIABLE::STRING_VARIABLE(char const*, char 
const*, char const*) (varable.cpp:337)
==28107==    by 0x8055D71: _GLOBAL(i_xx_t, float, int, long,...) 
(tprintf.cpp:34)
==28107==    by 0x805D5FC: (within /usr/bin/cntraining)
==28107==    by 0x804978F: (within /usr/bin/cntraining)
==28107==    by 0x805D598: __libc_csu_init (in /usr/bin/cntraining)
==28107==    by 0x41A561B: (below main) (in /lib/tls/i686/cmov/libc-2.8.90.so)
==28107== 
==28107== 
==28107== 32 bytes in 4 blocks are still reachable in loss record 4 of 7
==28107==    at 0x4025D2E: malloc (vg_replace_malloc.c:207)
==28107==    by 0x8058751: double_VARIABLE::double_VARIABLE(double, char 
const*, char const*) (clst.h:63)
==28107==    by 0x805194F: _GLOBAL__I_tess_cp_mapping0 (callcpp.cpp:49)
==28107==    by 0x805D5FC: (within /usr/bin/cntraining)
==28107==    by 0x804978F: (within /usr/bin/cntraining)
==28107==    by 0x805D598: __libc_csu_init (in /usr/bin/cntraining)
==28107==    by 0x41A561B: (below main) (in /lib/tls/i686/cmov/libc-2.8.90.so)
==28107== 
==28107== 
==28107== 136 bytes in 17 blocks are still reachable in loss record 5 of 7
==28107==    at 0x4025D2E: malloc (vg_replace_malloc.c:207)
==28107==    by 0x8056EFE: INT_VARIABLE::INT_VARIABLE(int, char const*, char 
const*) (clst.h:63)
==28107==    by 0x805AED9: _GLOBAL__I_free_block (memblk.cpp:69)
==28107==    by 0x805D5FC: (within /usr/bin/cntraining)
==28107==    by 0x804978F: (within /usr/bin/cntraining)
==28107==    by 0x805D598: __libc_csu_init (in /usr/bin/cntraining)
==28107==    by 0x41A561B: (below main) (in /lib/tls/i686/cmov/libc-2.8.90.so)
==28107== 
==28107== 
==28107== 352 bytes in 1 blocks are still reachable in loss record 6 of 7
==28107==    at 0x4025D2E: malloc (vg_replace_malloc.c:207)
==28107==    by 0x41EE9EE: (within /lib/tls/i686/cmov/libc-2.8.90.so)
==28107==    by 0x41EEABB: fopen (in /lib/tls/i686/cmov/libc-2.8.90.so)
==28107==    by 0x805071B: Efopen(char const*, char const*) (efio.cpp:54)
==28107==    by 0x804A30A: WriteNormProtos(char*, list_rec*, CLUSTERER*) 
(cnTraining.cpp:635)
==28107==    by 0x804AF08: main (cnTraining.cpp:255)
==28107== 
==28107== 
==28107== 520 bytes in 1 blocks are still reachable in loss record 7 of 7
==28107==    at 0x4023DE2: calloc (vg_replace_malloc.c:397)
==28107==    by 0x41BDF00: (within /lib/tls/i686/cmov/libc-2.8.90.so)
==28107==    by 0x41BDFDF: __cxa_atexit (in /lib/tls/i686/cmov/libc-2.8.90.so)
==28107==    by 0x805182D: _GLOBAL__I_tess_cp_mapping0 (callcpp.cpp:44)
==28107==    by 0x805D5FC: (within /usr/bin/cntraining)
==28107==    by 0x804978F: (within /usr/bin/cntraining)
==28107==    by 0x805D598: __libc_csu_init (in /usr/bin/cntraining)
==28107==    by 0x41A561B: (below main) (in /lib/tls/i686/cmov/libc-2.8.90.so)
==28107== 
==28107== LEAK SUMMARY:
==28107==    definitely lost: 0 bytes in 0 blocks.
==28107==      possibly lost: 0 bytes in 0 blocks.
==28107==    still reachable: 1,065 bytes in 26 blocks.
==28107==         suppressed: 0 bytes in 0 blocks.
Segmentation fault

** Affects: tesseract (Ubuntu)
     Importance: Undecided
         Status: New

-- 
Segfault on cntraining
https://bugs.launchpad.net/bugs/301860
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to