App I wrote - exits with error "/usr/myprog/ line 83: 438 Killed ./myprog"

Posted on 2004-11-17
Last Modified: 2013-12-15

I've got a linux application, which has suddenly started to exit with th

/usr/myprog/ line 83: 438 Killed ./myapp

Its just started happening laterly, probably due to a program code change in C++. Any ideas on how I could diagnose which line of code is causing this ? Or what is causing this ?

myapp is a 20,000 line program I wrote in C++, calls it
Question by:Risky101
    LVL 38

    Accepted Solution


    What's the line 83 in your
    If that's a bourne ot bash shell, then put
    #!/bin/bash -x    <=== -x for debugging shell script

    For C code, you need to compile it with -g (debug) flag and run it with gdb (Gnu debugger).

    I think for C++ program issue, you might want to post to :



    Author Comment

    line 83 simply calls "myapp"

    I'll attempt to try gdb.

    What does the 438 in "438 Killed" mean? Am I correct in assuming that 438 is the process number?

    Expert Comment


    It's obvious that the script is obscuring the source of the problem .   can you complile this c++ code on it's own and run it as a binary to see what happens ?  Then from there , put clues in your code to see where it's acting up ?  Does it cause these problems on other systems ?

    Author Comment

    Thanks for this - I'll try some other techniques.

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Join & Write a Comment

    In this tutorial I will explain how to make squid prevent malwares in five easy steps: Squid is a caching proxy for the Web supporting HTTP, HTTPS, FTP, and more. It reduces bandwidth and improves response times by caching and reusing frequently-…
    Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
    Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
    Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

    732 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now