Sponsored Content
Full Discussion: Finding Cause of Memory Leak
Top Forums Web Development Finding Cause of Memory Leak Post 302758047 by Skrynesaver on Friday 18th of January 2013 11:19:23 AM
Old 01-18-2013
First you need to enable cores so that you can see what causes the crash (and be sure of the process that is crashing), as root
Code:
mkdir /cores
echo "/tmp/cores/core.%e.%p.%h.%t" > /proc/sys/kernel/core_pattern

This will give you core file names that "just make sense(TM)"


Unfortunately the next step is a little complex, you need to run
Code:
gdb -c $core_file_name -e $path_to_named_executable_in_core

This will at least give you the reason for the crash
next run
Code:
gdb> bt -all

this will let you know what was happening at the time of the crash, however gdb is a bit arcane for someone whose knowledge of Linux is limited
 

9 More Discussions You Might Find Interesting

1. Programming

about virtual memory and memory leak

Hi, First of all I appreciate this group very much for its informative discussions and posts. Here is my question. I have one process whose virtual memory size increases linearly from 6MB to 12MB in 20 minutes. Does that mean my process has memory leaks? In what cases does the... (4 Replies)
Discussion started by: shriashishpatil
4 Replies

2. UNIX for Advanced & Expert Users

Memory leak while using pthread_cancel()

I tried to execute a sample pthread program to cancel a newly created one using pthread_cancel(). but using valgrind on my code shows some memory leak. My Code: #include "iostream" #include "unistd.h" #include "pthread.h" #include "signal.h" using namespace std; void handler(int); void*... (4 Replies)
Discussion started by: kcr
4 Replies

3. Programming

Memory LEAK with pthreads

I have this code... #include <stdio.h> #include <iostream> #include <pthread.h> static void* cliente(void *datos); int main() { pthread_attr_t tattr; int ret; size_t size = PTHREAD_STACK_MIN + 0x0100; ret = pthread_attr_init(&tattr); ret =... (8 Replies)
Discussion started by: JEscola
8 Replies

4. UNIX for Advanced & Expert Users

Memory leak in pthread

helo frnds, I am using RHEL5 and C lang for development. I am getting some memory leak problem in pthread. I hav developed a program which creates two threads for listening purpose on two diff ports. both the child threads are doing same job but on diff port no. I am using... (4 Replies)
Discussion started by: mindTeaser
4 Replies

5. IP Networking

memory leak?

Hi All, my client server application can work in two modes: 1) one direction - only client sends msgs to server 2) two directions - server gives 'answers' to client. when program run in the first mode it looks OK, but when server answers to client than client's application exit its... (2 Replies)
Discussion started by: lenna
2 Replies

6. Programming

memory leak problem

hi all Can any one plz explain me about memory leak problem Thankx (5 Replies)
Discussion started by: sonali
5 Replies

7. HP-UX

Problem with memory leak

Hi, This is my 1st post here. I am facing a rather weired problem. I have a C++ binary running on HP-UX. The output of top as well as glance shows periodic increase in memory. But when i use gdb to detect it, i dont get the desired output...gdb says...no leaks found. Just to mention that I have... (2 Replies)
Discussion started by: kshk123
2 Replies

8. Programming

Memory Leak

Hi, I am trying a database server which keeps a B+ plus tree structure and works on it. I am trying to find the memory used/leak while executing this process. I check the memory leak by using ps uax command. When i execute a delete query i am sure that my code frees up the existing... (9 Replies)
Discussion started by: kumaran_5555
9 Replies

9. Red Hat

Memory leak

Hi all I am using RED HAT 5.4, and i am getting memory uses problem. when i use "sync;echo 3 > /proc/sys/vm/drop_cache" command the memory will release after 2,3 hour memory show 95%. pls suggest right way. thanks (37 Replies)
Discussion started by: reply.ravi
37 Replies
Lynkeos(1x)															       Lynkeos(1x)

NAME
Lynkeos - application dedicated to the processing of astronomical (mainly planetary) images taken with a webcam through a telescope. SYNOPSIS
lynkeos.app DESCRIPTION
This manual page describe succintly the aims of the Lynkeos application. How does it work? By stacking the best images, the signal to noise ratio is increased and details lost in the noise of individual images become visible in the resulting image. This software accepts movie sequences or still images, in any image format supported by GNUstep or Ffmpeg library, as input It generates a 16 bits RGB TIFF image as output, to be further processed with some all-purpose image processing application. The steps to process a collection of images are : * collect the movies and/or pictures, * collect calibration (dark and flat fields) movies and/or pictures (optional), * align the images, * select the best images, * stack the selected ones, * process the resulting image. FILES
All configuration are made through the GNUstep ability. SEE ALSO
Official Lynkeos web site. http://lynkeos.sourceforge.net/ You find help and tutorials. Lynkeos-GNU/Linux specific web site. http://christophe.jalady.free.fr/lynkeos/ You find some specific information on the port on GNU/Linux of Lynkeos. AUTHORS
Lynkeos is writting by LAMIAUD Jean-Etienne <j-etienne@users.sourceforge.net>. The GNU/Linux port is made by JALADY Christophe <christophe.jalady@free.fr>. Lynkeos 2005-04-17 Lynkeos(1x)
All times are GMT -4. The time now is 09:14 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy