Programming :: Process Abruptly Ends Without Any Error Or Dump?

Apr 21, 2010

I have a process which runs for a while and then due to some unknown reason ends abruptly without giving a core. I tried looking in the logs and after watching for a pattern am still not 100% sure of the reason. So I was wondering if there is a way to catch the signal which ends the process and print some values in the handler function. I have called the handler for SIGTERM and SIGABRT functions but none of these are getting triggered. I looked online and did not find any other option. Can you please suggest if tehre is any other signal that can be caught for this unknown abrupt termination.

View 2 Replies


ADVERTISEMENT

Programming :: Incremental Backup Using DUMP Command - Error "DUMP: Only Level 0 Dumps Are Allowed On A Subdirectory"

Sep 6, 2010

I have used Dump Command to dump the application files. For Full backup the level 0 is working fine. For incremental backup I used the level 1 or 2 it is getting the error as

DUMP: Only level 0 dumps are allowed on a subdirectory
DUMP: The ENTIRE dump is aborted.

The code I used
===============================
#!/bin/bash
#Full Day Backup Script
#application folders backup
#test is the username
now=$(date +"%d-%m-%Y")
[Code]...

View 2 Replies View Related

Programming :: Creates A Child Process With Fork And, When The Child Ends, Receives The SIGCHLD Signal And Wait For Its Termination?

May 23, 2011

I have a doubt about signals in C programming. I have done this little program to explain it. It creates a child process with fork and, when the child ends, receives the SIGCHLD signal and wait for its termination.Ok, quite easy, BUT when I execute this code the SIGCHLD signal is received twice, first as an error (returns -1) and the second one to finish the child process.I don't understand the meaning of the first received signal. Why is it generated? Is the code wrong? (if you add the SIGINT and press Ctrl+C during the execution it also receives two signals instead of one)

Code: #include <stdio.h>
#include <unistd.h>
#include <string.h>

[code]....

View 4 Replies View Related

Ubuntu :: VLC Ends Log Shows Kill Process?

Feb 9, 2011

My swag is that my VLC has a memory leak and that is why itkeeps dying on my system while playing audio .m3u Playlists of flac filesVLC 1.1.4 Jan 25 2011, ubuntu 10.10, Dell Lattitude laptop D600This is what I see in the syslog

Feb 9 09:24:12 ubugj-DellD600 kernel: [ 4995.881387] Out of memory: kill process 2353 (vlc) score 239282 or a child
Feb 9 09:24:12 ubugj-DellD600 kernel: [ 4995.881401] Killed process 2353 (vlc)

[code]...

View 3 Replies View Related

Programming :: Core Dump Issues. Program Crashes But Does Not Generate Core Dump File?

Oct 7, 2009

I want to generate core dump files from my program when it crashes. Its a pretty big process and has about 10-11 threads in it.I have followed the documentation to enable core dump by setting ulimit to unlimited etc. I quickly tried "A demo program creating a core dump" from the following webpage, which succeeds in Segfault and dumping a core file in the directory that I configured.However, I tried running my original program and caused it to crash. I did this by making calls to kill(), raise() or the same null pointer access as shown in the webpage above. In each case, my program crashed but did not generate a core dump file. Am I missing something?My program is in C++ and my environment is Redhat 9.0 (kernel 2.4.20)

Going through the "Why do I NOT get a core dump?" section on the same webpage as above, I can see two potential problems. One - there are issues with the suid/sgid (bullet # 6). I am not able to change any settings with suid because my system does not contain either /proc/sys/fs/suid_dumpable or /proc/sys/kernel/suid_dumpableTwo, my program has threads in it and the bullet # 8 is the problem.

View 1 Replies View Related

General :: Child Process Does Not Core Dump

Jul 27, 2011

In my program, I fork() to get a child process. Because of some problem, child process terminates by a segmentation fault. Parent process is still running. I have compiled my code with -g option. I have done: ulimit -c unlimited. I am not getting core dump of the child process. How can I get the core dump of child process?

View 1 Replies View Related

OpenSUSE :: Zypper Won't Die / Dump Process Out Of Memory Without Requiring It To Respond To Signal?

Feb 4, 2010

This is opensuse 11.2.

Somehow zypper is running at 100% cpu and won't die with command line kill, the system monitor kill, terminate or anything. I set it's priority to the lowest it will go, tried to stop it then kill it, nothing works as it simply is not responding to anything and it has been running now for 47 hours.

Is there a way to simply dump a process out of memory without requiring it to respond to a signal? because signals are doing nothing.

View 6 Replies View Related

Debian :: Building Firefox-3.6 - Ends With Error ?

Mar 19, 2010

I,m trying to build firefox-3.6 from source but it ends with the following error :

Using Debian lenny.

View 5 Replies View Related

Ubuntu :: Cannot Boot - Ends With Grub Rescue Error

Sep 10, 2010

I just installed Ubuntu on a computer but it can't boot, it ends with a greb-rescue error.
What shall I do? Here's my fstab and my sudo blkid. I did an ubuntu side installation with xp.

Le FSTAB
# /etc/fstab: static file system information.
# Use 'blkid -o value -s UUID' to print the universally unique identifier for a device; this may be used with UUID= as a more robust way to name devices that works even if disks are added and removed. See fstab(5).
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc nodev,noexec,nosuid 0 0
# / was on /dev/sda5 during installation
UUID=3a307ad3-99a9-4301-8ad0-f601ef9d157c / ext4 errors=remount-ro 0 1
# swap was on /dev/sda6 during installation
UUID=5b3ff501-f07c-4c2e-ac2d-a238b599cbe2 none swap sw 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0

SUDO BLKID:
/dev/sda1: LABEL="System" UUID="26AC3F75AC3F3E9D" TYPE="ntfs"
/dev/sda6: UUID="5b3ff501-f07c-4c2e-ac2d-a238b599cbe2" TYPE="swap"
/dev/loop0: TYPE="squashfs"
/dev/sda5: UUID="3a307ad3-99a9-4301-8ad0-f601ef9d157c" TYPE="ext4"

View 1 Replies View Related

Programming :: Get Error Code From Child Process?

Mar 28, 2011

I'm writing a sort of toy shell using fork() and execv(). It runs smoothly enough untill the user enters an invalid command at which point the program hangs, so I need a way to check if the program loaded using execv returned correclty or not in the parent process and kill it if it didntI tried writing stderr to a text file to see if something whent wrong but doesnt really work out. Try running ./digenv GDM -i -Q for instance. (-Q is an invalid option for grep which the program runs at a certain point).Heres the code:

Code:
//digenv
//Carl Reg�rdh 2011-03-24

[code]....

View 13 Replies View Related

Software :: Using Debian Lenny - Building Firefox-3.6 - Ends With Error ?

Mar 19, 2010

I,m trying to build firefox-3.6 from source but it ends with the following error :

Using Debian lenny.

View 9 Replies View Related

Programming :: How To Get Full Kernel Dump

Apr 28, 2009

How do I get a full kernel dump?

View 4 Replies View Related

Programming :: Check If A Process Is Running - Syntax Error Near Unexpected Token `else'

Feb 10, 2011

I have an ubuntu 10.10 server and want to run a script on it to check if a process is running. If it is not running, it will start the process and also write into a log file.

When running the script i get the following error message:

syntax error near unexpected token `else'

Here is my script.

View 7 Replies View Related

Programming :: GDB - Core Dump Analysis And Debug Info?

Oct 21, 2010

I am developing an application whose executable is generated inside a certain folder hierarchy (say: /DevPath/MyProject/bin). My source code is located in a different branch of this hierarchy (say: /DevPath/MyProject/src). When my app crashes, its core files are stored in /DevPath/MyProject. I'm developing the app on a pc, but running it on a separate platform in which i can only execute it. Folder hierarchy is the same as above on both computers. Usually, when a new executable version is ready, we update both the executable and the source code on the target platform, transferring all the new /DevPath/MyProject folder on it. But sometimes it can really be a bother, so we update only the executable.

1)In the case we only update the executable, keeping an old source code version, and the app generates a core file, can i trust the backtrace produced by gdb in this case? I.e., does gdb need the latest source code files or it just needs the debugging information?

2) (More radical question ) Do i really need to keep the source code on the target platform for core dump analysis or i just need the executable?

View 1 Replies View Related

Programming :: Core Dump - Right Memory Block To Be Freed

Nov 8, 2010

In one of our core dump we have the followings in the core back trace:

#0 0xb77bf947 in raise () from /lib/tls/libc.so.6
#1 0xb77c10c9 in abort () from /lib/tls/libc.so.6
#2 0xb77f56ba in __fsetlocking () from /lib/tls/libc.so.6
#3 0xb77fcf7f in mallopt () from /lib/tls/libc.so.6
#4 0xb77fd022 in free () from /lib/tls/libc.so.6

It occurred in a memory block free operation. From our analysis, there seems no issue relate the the memory block it self. The memory pointer pointed to the right memory block to be freed and the contents of the memory seems right (not corrupted), in one world, there is nothing obviously wrong. Does any one have any ideas what could be wrong when seeing about?

View 1 Replies View Related

Programming :: Subsequent Calls To Realloc Cause Memory Dump?

Feb 17, 2010

I'm trying to write a C program that extends an array to any user inputed size.

Code:
if (arraysize == 0) {
arraysize = (int) pos + 1;
a = (int *) calloc (arraysize,sizeof(int));
for (i = 0 ; i < arraysize ; i++ )
a[i] = -1;
code....

The program dumps with that sequence of inputs everytime, but might dump an input before or after if different positions are requested. Interestingly, when I tested pos = 2000..2008, I got no dumps. So is realloc somehow trying to extend the array into bad space?

View 2 Replies View Related

Programming :: Core Dump Analysis Require A Program Name / Why Is So?

Jul 21, 2010

To analyse a coredump, I need to specify program name/path in GDB/KDevelop. Since the program name along with arguments is also within a core dump, I wonder if it doesn't keep the proper path of program that crashed and so asks for it?

View 3 Replies View Related

Programming :: Get A Core Dump In One Of The C Library Calls (like Strcpy Or Printf)

Sep 20, 2010

I am trying to port some "C" code from Solaris to Linux. I have a Dell PowerEdge R610 with an Intel Xeon E5504 quad core processor running Red Hat Linux Enterprise 5.3. I am compiling in 64 bit mode. I have managed to get the code compiled and linked, but when I attempt to execute it, I get a core dump in one of the C library calls (like strcpy or printf.)

I have a static library that contains our own code that makes the call to the C library. If I move the library method into the source file with the main method and rename it to be certain that I am executing my method instead of the method in our library, the call succeeds. Eventually another static library call is made that results in a core dump in the shared object. I compile my library code into a static library with gcc as:

[Code]....

View 3 Replies View Related

Programming :: Pipe Filename Ends On &quot;|&quot; With ARM-processor?

Apr 11, 2011

When issueing a "mkfifo /tmp/1"on my laptop(x86), I get this file:

Code: prw-r--r-- 1 root root 0 2011-04-11 15:09 1

If I issue the same command on a AT91SAM9260(arm), I get this file:

Code: prw-r--r-- 1 root root 0 Dec 31 17:00 1|

What could I be doing wrong, since I am getting a pipe "|" in the end of the filename?

View 2 Replies View Related

Slackware :: Error: Bad Primary Partition 2: Partition Ends In The Final Partial Cylinde

Dec 29, 2010

I'm slack 13.1, I am trying to install it, but always gives an error. I type cfdisk and appears this error:

Fatal error: bad primary partition 2: Partition ends in the final partial cylinde Press any key to exit cfdisk

View 14 Replies View Related

General :: Fix Cfdisk Error: "Partition Ends In Final Partial Cylinder"?

Jan 8, 2011

I want to install Arch Linux on my desktop, it is going to be a dual boot with Windows. I booted into the installation CD, but when I started cfdisk to partition my hard drive it gave me the following error: FATAL ERROR: Primairy parititon 1, partition ends in the final partial cylinder.The QuestionHow can I troubleshoot and fix this?Additional details
These will be added if asked for.

View 1 Replies View Related

Programming :: Displaying Process Id In Shell Script But There Is No Such Process?

Nov 9, 2010

I have a shell script to identify whether the process is running or not. If the process is not running, then I execute another script file to run my application. Below is my script and saved this script as monitorprocess.sh Code: #!/bin/bash

result=$(ps -ef | grep -v grep | grep "applicationname.sh" | awk '{print $2}')
echo $result
if [ "$result" == "" ];

[code]...

View 4 Replies View Related

Programming :: Difference Between Init.rc Process And Normal Process?

Mar 31, 2011

Is there any difference in cpu usage for process in init.rc(runs automatic when boot is happened) and manually running process. Will these both have same priority by default...?

View 1 Replies View Related

Programming ::get The PID Of The Process Giving Kill Signal To A Process?

Nov 26, 2008

I tried googling but didn't get any answer for this.I have a process called "abc" and it is running with PID "123".I have a putty session opened with PID "999".I am giving kill -TERM 123 from putty session.My process "abc" before dying it should catch the PID of the terminal which provided TERM signal to it.Is there any way to find this out

View 2 Replies View Related

Programming :: Showing Process Id But There Is No Such Process?

Nov 9, 2010

I have a shell script to identify whether the process is running or not. If the process is not running, then I execute another script file to run my application. Below is my script and saved this script as monitorprocess.sh

Code:
#!/bin/bash
result=$(ps -ef | grep -v grep | grep "applicationname.sh" | awk '{print $2}')

[code]...

View 14 Replies View Related

OpenSUSE Network :: Knetworkmanager Would Not Autostart Abruptly

Jul 3, 2011

For one of the users on my system, knetworkmanager abruptly ceases to autostart once on a while. This happens once in roughly 10-15 days. When that happens, i have to go into .kde4/share/config/networkmanagementrc and manually toggle Autostart=true (from false). This trick works for another 2 weeks or so, before the value of "Autostart" automagically changes to 'false' and i have change it again.I dont mind doing it manually, but the user in question is my mom, and she does not have the know-how to do it herself when i'm not around.

View 7 Replies View Related

Ubuntu Installation :: 9.04 Abruptly Turns Off Computer?

Jan 18, 2010

I have an 9.04 installation of Ubuntu.After a classical system update via the GNome-GUI my computer (laptop ASUS PRO55series) got the sick habit to turn off abruptly during work.It's like if there were no electricity in my house.It is not the hardware since I also have windows vista and it works fine.I suppose this is from ubuntu; it could be from the heat regulation, that ubuntu thinks it is too hot inthere and just turns off the laptop.

View 1 Replies View Related

Fedora :: Showing Snapshot Of Last Session If It Shuts Down Abruptly?

Jul 24, 2010

after I upgraded to Goddard I am experiencing a strange thing. Whenever my computer shuts down abruptly due to power failure or some other reason, it shows the snapshot of the last session for a second or so just after the splash screen when I start it again.

View 2 Replies View Related

General :: Internet Broadband Connection Terminates Abruptly

Sep 4, 2010

I use ubuntu 9.10 karmic koala as my desktop OS. My internet connection is creating problems these days, ever since I started downloading torrents for iso files. Whenever the downloads in transmission client is running, the internet gets disconnected abruptly, and even my other downloads in d4x stops. On using the plog command in the terminal, it shows the following:

Sep 5 03:32:57 gunjan pppd[3241]: LCP terminated by peer
Sep 5 03:32:57 gunjan pppd[3241]: Connect time 4.5 minutes.
Sep 5 03:32:57 gunjan pppd[3241]: Sent 2102494 bytes, received 31842568 bytes.
Sep 5 03:33:00 gunjan pppd[3241]: Connection terminated.
Sep 5 03:33:00 gunjan pppd[3241]: Modem hangup
Sep 5 03:34:05 gunjan pppd[3241]: Timeout waiting for PADO packets
Sep 5 03:34:05 gunjan pppd[3241]: Unable to complete PPPoE Discovery
Sep 5 03:35:10 gunjan pppd[3241]: Timeout waiting for PADO packets
Sep 5 03:35:10 gunjan pppd[3241]: Unable to complete PPPoE Discovery

I dont understand much of it, as am a new user using linux systems from only a few months ago, can't find out. Also on closing the transmission client the other downloads in d4x run perfectly well and so does my internet connection.

View 1 Replies View Related

General :: PostgreSql Error "database Disk Image Is Malformed" After Db Dump

Dec 9, 2010

i created a db_dump from PostgreSql-8.2 and trying to dump it into PostgreSql-8.4 new install. 2 of the 3 databases are fine, except for minor issues, but the 3rd database is giving me the following error message when i start a service calling on it, assist: "database disk image is malformed"

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved