[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

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

Posted on 2004-11-17
4
Medium Priority
?
197 Views
Last Modified: 2013-12-15
Hi,

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

/usr/myprog/myprog.sh: 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++, myprog.sh calls it
0
Comment
Question by:Risky101
  • 2
4 Comments
 
LVL 38

Accepted Solution

by:
wesly_chen earned 375 total points
ID: 12611835
Hi,

What's the line 83 in your myprog.sh?
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 :
http://www.experts-exchange.com/Programming/Programming_Platforms/Linux_Programming/

Regards,

Wesly
0
 

Author Comment

by:Risky101
ID: 12617312
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?
0
 

Expert Comment

by:NYCmitch25
ID: 12631907
BACK TO BASICS!!?

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 ?
0
 

Author Comment

by:Risky101
ID: 12639886
Thanks for this - I'll try some other techniques.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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.:
Suggested Courses
Course of the Month18 days, 19 hours left to enroll

834 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