473,406 Members | 2,312 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Valgrind problem in C code. Please help me.

1
Hello all, I have serious problem with valgrind errors.
Code is 1400lines long :( .so, it is imposible to post it in here. Is it someone able to check my code and help me with that errors. I think there are no leaks.
Errors are bellow :(

excuse my poor english.


==27636== 1 errors in context 1 of 7:
==27636== Conditional jump or move depends on uninitialised value(s)
==27636== at 0x8049AE6: add_line (in /c/omg/cdoc.exe)
==27636== by 0x804A8CD: printComm (in home/c/omg/cdoc.exe)
==27636== by 0x8048D77: open_file (in home/c/omg/cdoc.exe)
==27636== by 0x804961D: args_check (in home/c/omg/cdoc.exe)
==27636== by 0x804A9BE: main (in home/c/omg/cdoc.exe)
==27636==
==27636== 1 errors in context 2 of 7:
==27636== Conditional jump or move depends on uninitialised value(s)
==27636== at 0x8049A79: add_line (in home/c/omg/cdoc.exe)
==27636== by 0x804A8A2: printComm (in home/c/omg/cdoc.exe)
==27636== by 0x8048D77: open_file (in home/c/omg/cdoc.exe)
==27636== by 0x804961D: args_check (in home/c/omg/cdoc.exe)
==27636== by 0x804A9BE: main (in home/c/omg/cdoc.exe)
==27636==
==27636== 14 errors in context 3 of 7:
==27636== Conditional jump or move depends on uninitialised value(s)
==27636== at 0x804A849: printComm (in home/c/omg/cdoc.exe)
==27636== by 0x8048D77: open_file (in home/c/omg/cdoc.exe)
==27636== by 0x804961D: args_check (in home/c/omg/cdoc.exe)
==27636== by 0x804A9BE: main (in home/c/omg/cdoc.exe)
==27636==
==27636== 23 errors in context 4 of 7:
==27636== Conditional jump or move depends on uninitialised value(s)
==27636== at 0x402447B: strlen (mc_replace_strmem.c:242)
==27636== by 0x8049E5A: add_part (in home/c/omg/cdoc.exe)
==27636== by 0x804A2FD: doCom (in home/c/omg/cdoc.exe)
==27636== by 0x804A767: checkComm (in home/c/omg/cdoc.exe)
==27636== by 0x8048E4C: find_files (in home/c/omg/cdoc.exe)
==27636== by 0x8048D72: open_file (in home/c/omg/cdoc.exe)
==27636== by 0x804961D: args_check (in home/c/omg/cdoc.exe)
==27636== by 0x804A9BE: main (in home/c/omg/cdoc.exe)
==27636==
==27636== 23 errors in context 5 of 7:
==27636== Conditional jump or move depends on uninitialised value(s)
==27636== at 0x8049E33: add_part (in home/c/omg/cdoc.exe)
==27636== by 0x804A2FD: doCom (in home/c/omg/cdoc.exe)
==27636== by 0x804A767: checkComm (in home/c/omg/cdoc.exe)
==27636== by 0x8048E4C: find_files (in home/c/omg/cdoc.exe)
==27636== by 0x8048D72: open_file (in home/c/omg/cdoc.exe)
==27636== by 0x804961D: args_check (in home/c/omg/cdoc.exe)
==27636== by 0x804A9BE: main (in home/c/omg/cdoc.exe)
==27636==
==27636== 37 errors in context 6 of 7:
==27636== Conditional jump or move depends on uninitialised value(s)
==27636== at 0x804A941: printComm (in home/c/omg/cdoc.exe)
==27636== by 0x8048D77: open_file (in home/c/omg/cdoc.exe)
==27636== by 0x804961D: args_check (in home/c/omg/cdoc.exe)
==27636== by 0x804A9BE: main (in home/c/omg/cdoc.exe)
==27636==
==27636== 46 errors in context 7 of 7:
==27636== Conditional jump or move depends on uninitialised value(s)
==27636== at 0x8049F4C: add_part (in home/c/omg/cdoc.exe)
==27636== by 0x804A50E: doCom (in home/c/omg/cdoc.exe)
==27636== by 0x804A767: checkComm (in home/c/omg/cdoc.exe)
==27636== by 0x8048E4C: find_files (in home/c/omg/cdoc.exe)
==27636== by 0x8048D72: open_file (in home/c/omg/cdoc.exe)
==27636== by 0x804961D: args_check (in home/c/omg/cdoc.exe)
==27636== by 0x804A9BE: main (in home/c/omg/cdoc.exe)
--27636--
--27636-- supp: 13 dl-hack3-cond-1
==27636==
==27636== IN SUMMARY: 145 errors from 7 contexts (suppressed: 13 from 1)
==27636==
==27636== malloc/free: in use at exit: 0 bytes in 0 blocks.
==27636== malloc/free: 72 allocs, 72 frees, 3,197,431 bytes allocated.
==27636==
==27636== All heap blocks were freed -- no leaks are possible.
--27636-- memcheck: sanity checks: 9 cheap, 2 expensive
--27636-- memcheck: auxmaps: 0 auxmap entries (0k, 0M) in use
--27636-- memcheck: auxmaps_L1: 0 searches, 0 cmps, ratio 0:10
--27636-- memcheck: auxmaps_L2: 0 searches, 0 nodes
--27636-- memcheck: SMs: n_issued = 56 (896k, 0M)

37 comment(s) was/were found.

The process was successful!
--27636-- memcheck: SMs: n_deissued = 11 (176k, 0M)
--27636-- memcheck: SMs: max_noaccess = 65535 (1048560k, 1023M)
--27636-- memcheck: SMs: max_undefined = 1 (16k, 0M)
--27636-- memcheck: SMs: max_defined = 19 (304k, 0M)
--27636-- memcheck: SMs: max_non_DSM = 48 (768k, 0M)
--27636-- memcheck: max sec V bit nodes: 0 (0k, 0M)
--27636-- memcheck: set_sec_vbits8 calls: 0 (new: 0, updates: 0)
--27636-- memcheck: max shadow mem size: 1072k, 1M
--27636-- translate: fast SP updates identified: 2,578 ( 88.5%)
--27636-- translate: generic_known SP updates identified: 192 ( 6.5%)
--27636-- translate: generic_unknown SP updates identified: 141 ( 4.8%)
--27636-- tt/tc: 5,593 tt lookups requiring 5,656 probes
--27636-- tt/tc: 5,593 fast-cache updates, 2 flushes
--27636-- transtab: new 2,587 (55,074 -> 784,627; ratio 142:10) [0 scs]
--27636-- transtab: dumped 0 (0 -> ??)
--27636-- transtab: discarded 0 (0 -> ??)
--27636-- scheduler: 948,361 jumps (bb entries).
--27636-- scheduler: 9/3,310 major/minor sched events.
--27636-- sanity: 10 cheap, 2 expensive checks.
--27636-- exectx: 769 lists, 31 contexts (avg 0 per list)
--27636-- exectx: 302 searches, 271 full compares (897 per 1000)
--27636-- exectx: 0 cmp2, 455 cmp4, 0 cmpAll
--27636-- errormgr: 15 supplist searches, 695 comparisons during search
--27636-- errormgr: 158 errlist searches, 455 comparisons during search
Mar 18 '12 #1
0 1373

Sign in to post your reply or Sign up for a free account.

Similar topics

8
by: kittykat | last post by:
Hi, could someone please check my code? its asking the user to enter 3 letters, and check to see if these letters exist in the text file. i know ive done something wrong. can someone fix my code...
5
by: TrvlOrm | last post by:
HI There, I have been struggling with JavaScript code for days now, and this is my last resort! Please help... I am trying to create a JavaScript slide show with links for Next Slide,...
4
by: Trint Smith | last post by:
How can I improve this code please? It sometimes produces this error: "Object reference not set to an instance of an object" When I do this: strSQL = "UPDATE TBL_Items SET" & _ " item_itemnumber...
1
SKJoy2001
by: SKJoy2001 | last post by:
PLEASE HELP ME!!! P E R L!!! I have a CGI (PERL) file namely 'test.cgi' and it has the correct permission (755) on the FTP server and it is within the CGI path. I have the following code in it:...
9
by: H. Dederichs | last post by:
Hello NG, I would like to read and write Outlook PST-Files with my VB.NET application natively. Is there anyone who can help me with this issue? Since PST-Files are "also" Databases, aren't...
14
by: rashmidutt | last post by:
hello sir i am making project on vb.net language..and project is on hospital management..its major project..and too many fields are present in its data base..i was connecting data base in forms but...
8
by: rocketboy2000 | last post by:
could anyone provide me with some simple example code of asp classic calling adodb? specifically, i'd like the code to: - call a couple of stored procedures that have optional parameters - share a...
13
by: ishakarthika | last post by:
how can i compare the a private variable of a class and a value in the column of a text file. there is a syntax error in my code while comparing. senario is i am getting bus details like busno,...
2
by: Ecot | last post by:
Hi all, I have not got any php knowledge and I have found a php code on the net and using it to send e-mail from a web html form.So far the form and the code works fine. I have the following php...
4
by: skarr98 | last post by:
Heres the code: :) #include<iostream> int main{void}
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.