LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 11-05-2013, 05:58 AM   #1
vamsi9042
LQ Newbie
 
Registered: Sep 2011
Location: Bangalore
Distribution: Ubuntu
Posts: 22

Rep: Reputation: Disabled
Valgrind is throwing error "failed in UME with error 22 (Invalid argument)."


Hi Friends,

We suspect some memory leaks in our program and thought to debug them with valgrind. But when running with valgrind it threw the following error.

Code:
Code:
[root@SCE10000 pkgout]# valgrind ./bin/fp_fd
valgrind: mmap(0x6c2000, 1440247808) failed in UME with error 22 (Invalid argument).
valgrind: this can be caused by executables with very large text, data or bss segments.
If we see the size command output on ./bin/fp_fd

Code:
[root@SCE10000 pkgout]# size bin/fp_fd
   text    data     bss     dec     hex filename
781670    9832 1440248260      1441039762      55e48592        bin/fp_fd
I surfed over internet for this, but couldn't find any solution.

Can anybody please suggest how to make my program to run with valgrind.

Or please suggest any other memory leak profiling tools.
Thanks in Advance,
Vamsi Krishna.
 
Old 11-06-2013, 04:57 AM   #2
NevemTeve
Senior Member
 
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 4,860
Blog Entries: 1

Rep: Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869
It is in 64-bit mode, I suppose?

BTW: your bss being 1.5 GiB is intentional? (I would use dynamic allocation instead of static data.)

Last edited by NevemTeve; 11-06-2013 at 05:06 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
C++ and Valgrind: Can't understand "Invalid read" error Accinson Programming 16 10-04-2012 07:58 AM
[SOLVED] "WARNING: Re-reading the partition table failed with error 22: Invalid argument." ytd Linux - Newbie 6 01-26-2010 10:06 AM
Error while trying to mount NFS share: "Invalid argument" TheEvilHammer Linux - Software 2 11-12-2009 01:35 AM
"Invalid argument" error while mounting NFS partition montylee Programming 12 07-23-2009 12:36 PM
error: Error for wireless request "Set Mode" (8B06) : invalid argument "roaming" penguin chick Linux - Wireless Networking 5 08-22-2008 01:16 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 01:58 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration