Dear developers,
my friend Przemek develops DB aplication with harbour compiler (
'Harbour Project' (http://www.harbour-project.org/) ). In last 3 years
aplication were compiled as static binary under RH 7 and used in many
diiferent Linux distros without any problems.
Few days ago Przemek has changed RH 7 to OpenSuSE 10.3. And suddenly
binaries compiled under OpenSuse has many memory problems .....
Here is part of log ....
==23006== Memcheck, a memory error detector.
==23006== Copyright (C) 2002-2007, and GNU GPL'd, by Julian Seward et
al.
==23006== Using LibVEX rev 1732, a library for dynamic binary
translation.
==23006== Copyright (C) 2004-2007, and GNU GPL'd, by OpenWorks LLP.
==23006== Using valgrind-3.2.3, a dynamic binary instrumentation
framework.
==23006== Copyright (C) 2000-2007, and GNU GPL'd, by Julian Seward et
al.
==23006==
--23006-- Command line
--23006-- ./hurt.bin
--23006-- -d
--23006-- bazy-ht
--23006-- -o
--23006-- opis
--23006-- Startup, with flags:
--23006-- --tool=memcheck
--23006-- --leak-check=yes
--23006-- --num-callers=16
--23006-- -v
--23006-- Contents of /proc/version:
--23006-- Linux version 2.6.22.17-0.1-default (geeko@buildhost) (gcc
version 4.2.1 (SUSE Linux)) #1 SMP 2008/02/10 20:01:04 UTC
--23006-- Arch and hwcaps: X86, x86-sse1-sse2
--23006-- Page sizes: currently 4096, max supported 4096
--23006-- Valgrind library directory: /usr/lib/valgrind
--23006-- Reading syms from /home/druzus/nwe/ide/prg/build/bin/hurt.bin
(0x8048000)
--23006-- object doesn't have a dynamic symbol table
--23006-- Reading syms from /usr/lib/valgrind/x86-linux/memcheck
(0x38000000)
--23006-- object doesn't have a symbol table
--23006-- object doesn't have a dynamic symbol table
--23006-- Reading suppressions file: /usr/lib/valgrind/default.supp
==23006== Conditional jump or move depends on uninitialised value(s)
==23006== at 0x81B23C5: __register_atfork (in
/home/druzus/nwe/ide/prg/build/bin/hurt.bin)
==23006== by 0x81A0790: ptmalloc_init (in
/home/druzus/nwe/ide/prg/build/bin/hurt.bin)
==23006== by 0x81A3DE5: malloc_hook_ini (in
/home/druzus/nwe/ide/prg/build/bin/hurt.bin)
==23006== by 0x81A3617: malloc (in
/home/druzus/nwe/ide/prg/build/bin/hurt.bin)
==23006== by 0x81D542B: _dl_init_paths (in
/home/druzus/nwe/ide/prg/build/bin/hurt.bin)
==23006== by 0x81B4EF8: _dl_non_dynamic_init (in
/home/druzus/nwe/ide/prg/build/bin/hurt.bin)
==23006== by 0x81B5785: __libc_init_first (in
/home/druzus/nwe/ide/prg/build/bin/hurt.bin)
==23006== by 0x8185577: (below main) (in
/home/druzus/nwe/ide/prg/build/bin/hurt.bin)
==23006==
[...]
==23006==
==23006== 5341 errors in context 374 of 374:
==23006== Conditional jump or move depends on uninitialised value(s)
==23006== at 0x81A1C5E: free (in
/home/druzus/nwe/ide/prg/build/bin/hurt.bin)
==23006== by 0x8077B29: hb_dynsymRelease (in
/home/druzus/nwe/ide/prg/build/bin/hurt.bin)
==23006== by 0x8091C80: hb_vmQuit (in
/home/druzus/nwe/ide/prg/build/bin/hurt.bin)
==23006== by 0x8099BE2: main (in
/home/druzus/nwe/ide/prg/build/bin/hurt.bin)
==23006== IN SUMMARY: 47955 errors from 374 contexts (suppressed: 0
from 0)
==23006==
==23006== malloc/free: in use at exit: 0 bytes in 0 blocks.
==23006== malloc/free: 0 allocs, 0 frees, 0 bytes allocated.
==23006==
==23006== All heap blocks were freed -- no leaks are possible.
--23006-- memcheck: sanity checks: 59 cheap, 3 expensive
--23006-- memcheck: auxmaps: 0 auxmap entries (0k, 0M) in use
--23006-- memcheck: auxmaps: 0 searches, 0 comparisons
--23006-- memcheck: SMs: n_issued = 14 (224k, 0M)
--23006-- memcheck: SMs: n_deissued = 0 (0k, 0M)
--23006-- memcheck: SMs: max_noaccess = 65535 (1048560k, 1023M)
--23006-- memcheck: SMs: max_undefined = 2 (32k, 0M)
--23006-- memcheck: SMs: max_defined = 65 (1040k, 1M)
--23006-- memcheck: SMs: max_non_DSM = 14 (224k, 0M)
--23006-- memcheck: max sec V bit nodes: 0 (0k, 0M)
--23006-- memcheck: set_sec_vbits8 calls: 0 (new: 0, updates: 0)
--23006-- memcheck: max shadow mem size: 528k, 0M
--23006-- translate: fast SP updates identified: 11,021 (
83.0%)
--23006-- translate: generic_known SP updates identified: 1,549 (
11.6%)
--23006-- translate: generic_unknown SP updates identified: 700 (
5.2%)
--23006-- tt/tc: 20,131 tt lookups requiring 20,950 probes
--23006-- tt/tc: 20,131 fast-cache updates, 2 flushes
--23006-- transtab: new 7,109 (166,640 -> 2,636,481; ratio
158:10) [0 scs]
--23006-- transtab: dumped 0 (0 -> ??)
--23006-- transtab: discarded 0 (0 -> ??)
--23006-- scheduler: 5,932,749 jumps (bb entries).
--23006-- scheduler: 59/13,277 major/minor sched events.
--23006-- sanity: 60 cheap, 3 expensive checks.
--23006-- exectx: 30,011 lists, 3,453 contexts (avg 0 per list)
--23006-- exectx: 47,955 searches, 44,702 full compares (932 per
1000)
--23006-- exectx: 168,833 cmp2, 95,630 cmp4, 0 cmpAll
==================================
The same application compiled in chroot'ed RH 7 in OpenSuse is OK, here
is log...
==16941== Memcheck, a memory error detector.
==16941== Copyright (C) 2002-2007, and GNU GPL'd, by Julian Seward et
al.
==16941== Using LibVEX rev 1804, a library for dynamic binary
translation.
==16941== Copyright (C) 2004-2007, and GNU GPL'd, by OpenWorks LLP.
==16941== Using valgrind-3.3.0, a dynamic binary instrumentation
framework.
==16941== Copyright (C) 2000-2007, and GNU GPL'd, by Julian Seward et
al.
==16941==
--16941-- Command line
--16941-- ./hurt-sevil.bin
--16941-- -d
--16941-- db.sevil
--16941-- -o
--16941-- opis
--16941-- Startup, with flags:
--16941-- -v
--16941-- --tool=memcheck
--16941-- Contents of /proc/version:
--16941-- Linux version 2.6.22.5-31-default (geeko@buildhost) (gcc
version 4.2.1 (SUSE Linux)) #1 SMP 2007/09/21 22:29:00 UTC
--16941-- Arch and hwcaps: X86, x86-sse1-sse2
--16941-- Page sizes: currently 4096, max supported 4096
--16941-- Valgrind library directory: /usr/local/lib/valgrind
--16941-- Reading syms from /home/rc_hurt/prg/hurt-sevil.bin
(0x8048000)
--16941-- object doesn't have a symbol table
--16941-- object doesn't have a dynamic symbol table
--16941-- Reading syms from /usr/local/lib/valgrind/x86-linux/memcheck
(0x38000000)
--16941-- object doesn't have a dynamic symbol table
--16941-- Reading suppressions file:
/usr/local/lib/valgrind/default.supp
==16941==
==16941== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from
0)
==16941== malloc/free: in use at exit: 0 bytes in 0 blocks.
==16941== malloc/free: 0 allocs, 0 frees, 0 bytes allocated.
==16941==
+++++++++++++++++++++++++++++
Question to developers : is there anyone here, who can handla this
situation and help us ?
I want to solve this problem, because now the only solution is to come
back to RH.
My friend thinks that the problem may be in glibc, because is linked
staticly to application.
Thanks in advance,
Adam
+-------------------------------------------------------------------+
|Filename: error.zip |
|Download: http://forums.novell.com/attachment.php?attachmentid=653 |
+-------------------------------------------------------------------+
--
abix_adamj
------------------------------------------------------------------------
abix_adamj's Profile: http://forums.novell.com/member.php?userid=8184
View this thread: http://forums.novell.com/showthread.php?t=314220
|