General :: Memory Corruption Tool In A Program?
Oct 14, 2010Kindly let me know the Linux tool to find out the memory corruption in a program. The tool could be built for PPC as well.
View 6 RepliesKindly let me know the Linux tool to find out the memory corruption in a program. The tool could be built for PPC as well.
View 6 Replieslanguage: C
OS: linux
I wrote a multithread program(approx 1000 thread have to run) and each thread has to parse a file(for each thread there is one file, ex:thread1 has to parse file1 and thread2 has to parse file2 like this....). I wrote "parse" program as follows. It is working well, if i create 50 threads. but if i run more than 200 thraeds Im getting doublefree corruption as follows:
Code:
*** glibc detected *** ./simulator: double free or corruption (fasttop): 0xb70007b0 ***
And some time I am getting parsing problem and error af follows:
Code:
powersetting.6607:1: parser error : Start tag expected, '<' not found (where powersetting.6607 is file name, when i check this file it is started with '<').
parse program as follows:
Code:
void parse_first(char* filename, int portnum, struct Poweroff *Powerptr1)
{
struct Poweroff *Powerptr;
Powerptr = Powerptr1;
[code]....
This is my first post in these forums. I'm still quite new to Linux (using Mint 9) so please bear with my not-very-articulate question(s)When I boot up and open up a tty terminal I get a message saying "Memory corruption detected in low memory." I've done an extensive google search about the issue and it seems not uncommon. I ran a memtest with no errors returned, so I'm sure that there's nothing really wrong with the memory; apparently it's a bug in the kernel that's causing this.
View 2 Replies View RelatedI am new to C and linux. My code below does arbitary writes but I cant figure out where or how it does it.
I am calling the insertNode() function with seq = 'MISSISSPPI$' and alphabets = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ$'
Code:
Weird behaviour I should mention is that when I check for NULL pointer in node->child[index], the unassigned values are not null anymore, they point to arbitary memory.
I have a desktop PC which initially had the Intel D946gzis mobo, its chipset as video controller, some RAM and so. There I installed Debian without a problem alongside WindowsXP.
I've bought an ASUS HD 4670 video card, installed it on the PC and now the installed Debian does not work, while the Ubuntu live CD refuses to run no matter if I set acpi, apic on or off... it throws me some low memory corruption at position just like shown here. With normal configuration, Debian throws kernel panic (keyboard lights blinking). Anyone have faced this before? Ideas? Thanks!! (meanwhile, debian hides in a virtualbox :'( )
Edited: Tried Ubuntu 9.10 x64 (due to the fact i've a core2duo at 2GHz) and it throws a kernel-panic to me (flashing caps and num LEDs). On screen, can be read different lines with things like:
[ 1.957161] [] rb_erase+0xd6/0x160
[ 1.957266] [] page_fault+0x25/0x30
Could it be something about this new video card having ddr3?
When I am trying to run my application on RHEL 6 (Kernel 2.6*), I am getting the following error.*** glib detected *** ./corenms:malloc(); memory corruption : 0x086691d0 ***
View 4 Replies View Relatedhow to collect the memory Dump In Linux?
View 1 Replies View RelatedI'm running a java program and to debug the program instead of using a debugger I would like to look to the heap and to the bytes in the memory of the process. I was hoping that the pointers would give me a snapshot of a moment of the application. It exists a program that allow us to look to the details of a process and to the memory ram?
View 2 Replies View RelatedIs there a system admin tool for RHEL on montioring and logging system memory used and released that can dump to a log file?I'm having an issue with memory not being released when an application is closed. I need to have a tool monitor and log so I can troubleshoot to verify that it's an application not the OS.
View 2 Replies View RelatedI wrote a program that multiplies 2 matrices using multi-threads and another one using multiple processes and shared memory. Both in C.I need to find the total memory usage of these programs. I know of the top command, but when my matrices are relatively small they don't even show up on top because they complete so fast, how can I find the memory usage for these instances?Also, how can I find the total turnaround time of my programs?
View 3 Replies View RelatedI have prob with running Metaspolit tool in BackTrack When i used expolit aurora (windows/shell/bind_tcp) it started a server for me running in my ip addrerss on port 8080
when the target pc trying to access that web an error appear saying : "Sending internet explorer "Aurora" Memory Corruption to client 10.64.35.52" you can check out the attached file hint to solve this prob so the session can start?
I wrote a program that multiplies 2 matrices using multi-threads and another one using multiple processes and shared memory. Both in C.I need to find the total memory usage of these programs. I know of the top command, but when my matrices are relatively small they don't even show up on top because they complete so fast, how can I find the memory usage for these instances?Also, how can I find the total turnaround time of my programs
View 1 Replies View RelatedCreated application is working too slow, looks like there are a lot of memory leaks, there are a lot of pointers. Any effective tool for run-time errors and memory leaks detection in Visual Studio C++?
View 2 Replies View RelatedToday I updated using yum there was a update to something called control- center (2 updates for this) It said it was for changing fonts backgrounds, themes etc... is this just a update for systems settings or tweak tool or a new program? I know I cant change themes in System Settings so what is this...Anyone download this today? I cant find a new application.
View 1 Replies View RelatedI am running BWA (burrow-wheeler alignment) and, keep getting an error that there isn't enough memory allocated. How do I change the memory allocation? I'm working on a good quality desktop only a little over a year old, so having the memory shouldn't be the problem.
View 9 Replies View RelatedIs there a way I can start a program and then record a log of how much memory it's using at a specific interval until the program ends?
I've tried writing a shell script but get the error: ./apps/mem-test.sh: line 4: [: too many arguments
Here's the non-working script:
Code:
$HOME/apps/ImageMagick/bin/convert -limit memory 64 -limit map 128 $HOME/SSI/davidkennardphotography/Img-Orig/95-Pole-Bank.jpg -set option:filter:filter Lanczos -set option:filter:blur 0.8 -resize 1024x720 $HOME/resizedImage.jpg &
GOODY="ps -p $! -o pid,%cpu,rss,cmd | grep convert >>test.txt"
[Code]....
I went to an interview last week and there was this guy who asked a simple question that i have been trying to solve for a couple of days. I tried google but i just cant get the search keywords right. The result were just useless. Well, the question is : "How can we allocate a limited memory to a process before we start its execution" well, the question is related to an X11 system so may be some flags must be set to limit its memory.
View 9 Replies View RelatedI wrote a program in lcc in windows and I have to write it in gcc in unix. In lcc there was an option to use more memory than the default for the stack. The following code is working in lcc but in gcc it gives segmentation fault:
#include <stdio.h>
#include <math.h>
#include <stdlib.h>
#include <time.h>
int main()
{
I would like to know if there is a linux command to verify the amount of memory used by a program. The programs I am using were compiled with gfortran.
View 2 Replies View RelatedI am using ubuntu 10.10 with gnome desktop on a desktop computer (pentium 4 cpu with 1 Gb memory), and when I use OpenOffice Impress, convert opens up and uses most of my cpu power. Even worse, after closing OpenOffice and all instances of nautilus, convert stays in memory and keeps using most of my cpu power (between 30 and 75 %, acccording to system monitor.Is it normal ? How could I set up my computer to limit convert cpu usage, and to unload from memory after being used.
View 3 Replies View RelatedA few years back when I was running Linux most of the time I used a program that gave me information on my machine.
It had different themes and such, and it would usually rest vertically along the side of the desktop. It would tell one information on drives, space, memory, I think you could even have it tell you the weather if you entered geographical information.
I know I'm being a bit vague but that's all I can remember, does anyone recall this program? It was pretty popular back then...so I wonder if it's still under development.
A friend of mine asked me to try and recover some photos she deleted by accident on her SD memory card. Normally, I would flip over to my Windows box and do this, but I'm wondering if there is a Linux equivalent to a Windows data recovery program. I'm running Fedora 10.
View 2 Replies View RelatedI am trying to run C++ program on linux.
My program consume a lot of memory so that the memory is used up fast and memory swap is very high.
I can find this by "ps" .
My program is long.
I need to find out which part of my program consume so much memory ?
I am using malloc and frees a lot in my program. It shows its allocated but when i remove it doesnt show as the memory is removed(I am using the top command to view VIRT memory usage). If this continously grows what would happen to my program (Will it go out of memory?)
View 4 Replies View RelatedI have a computer with 16GB of ram. At the moment, top shows all the RAM is taken, (NOT by cache), but the RAM used by the various processes is very far from 16GB.I have seen this problem several times, but I don't understand what is happening.My only remedy so far has been to reboot the machine.
View 1 Replies View RelatedAnyone ever see anything like this on bootup?
[url]
The display freezes/hangs, but the kernel is still kind of responsive because I can hit Ctrl-Alt-Del and after many seconds it reboots.
I can get it (Slackware 13.0) to boot this same kernel just fine from CD; it's only the normal bootup, after the install finishes, that this happens.
I enabled netconsole so I could see the messages, shown below, but there are no errors reported. The display corrupts and hangs at the "TCP cubic registered" message which appears to be unrelated to anything video-wise.
Code:
I have a box that has been running fine for a few years primarily as apache/tomcat/mysql server.Just recently, it has started spitting out a bunch of messages and shutting down.The computer is running FC11, x86x64.If anyone can glean anything from the messagesIf you need any more info, let me know. I can get someone to start it up, and get as much as I can before it crashes.From looking at the messages, it seems like it could be something going on with the swap, but I'm not sure.The messages are below.(The box is on the other side of the country from me, so I don't have a ton of info, and it's hard for me to get someone to physically restart it for me...so it's kind of a pain.)(You'll see a lot of errors related to SSHD. I don't know if that's because SSHD is the culprit, or if it's because I was connected using SSH. For some reason I'm leaning towards it being something other than SSHD.)
Code:
setroubleshootd[2852]: segfault at 33cb1fe909 ip 00000033caf06e8d sp 00007fffe4bf4ec0 error 4 in libpython2.6.so.1.0[33cae00000+165000]
[code]....
I have a java program that runs on Debian as a background processor. Yesterday the Java program stopped running. I looked at the memory usage, the system only had 5MB memory left, so my guess is that the java program ran out of memory to use.
However, after we restarted the java program, we could see that the free memory count started to go up. It kept going up from 5MB to over 400MB. The increase of memory happened slowly, when I measured it, I could see that with each minute passing by, there were a bit more memory added into the free memory pool, and meanwhile, the java background process was running.
I wonder why this would ever happen. It's as if our java program first brought the machine done because it consumed all the memories, then after restart, it starts to give back memories.
I have a system with 1 GB RAM. I'm running KDE 4. I created a tab to look that the Physical Memory in the System Monitor program, which I assume appears to look at the same stats that "top" looks at. In that Physical Memory tab I have 3 tables: Used Memory, Free Memory, and Application Memory.The Used Memory table shows that the system is using .94 of .98 GiBytes. The Free Memory table shows that the system has .5 GiBytes of RAM free.
However the Application Memory shows that only 339 M-Bytes of RAM is being used.Note that "top" shows the same info.So where is the other .6 GiBytes of RAM that the Used Memory table shows as being used?If I look at the process table which is supposed to encompass all of the processes running, including the ones for the OS, then it appears to add up to the 339 M-Bytes being used in the Application Memory table. Is the rest of the memory being held in reserve by the OS to be used as needed? If so, then why when another application is opened the Free Memory goes down instead of staying constant?I also noticed this memory "black hole" when I was running 11.0 on a system with 4 GB of RAM. The OS appeared to "take up" a large chunk of memory that was NOT being used by any applications and making it "disappear" - meaning that the applications were using about 1.3 GiBytes of RAM and Free Memory was showing only .7 GiBytes instead of the over 2 GB of RAM that should be free.
I am trying to run a simple perl program that requires getting stock price data from yahoo for just 1 ticker symbol, and it was running fine till this morning, wherein it froze and displayed the message: Out of memory!
I cleared my cache by running the following:
Code:
$sync
$sudo echo 1 |sudo tee /proc/sys/vm/drop_caches
$sudo echo 2 |sudo tee /proc/sys/vm/drop_caches
$sudo echo 3 |sudo tee /proc/sys/vm/drop_caches
but it hasn't helped.
Even Firefox has been freezing, so I basically cannot do anything on my computer.