1

Program A after checking the system configuration executes one of Programs B, C or D. When I run Program A, it launches one of these and newly launched program crashes (takes less than a second). This prevents me from finding the file via /proc mount. Is there a way to know which program was launched?

Running Program A in gdb didn't help because the the system configuration read by Program A changed and it launched a different program. All these binaries (A, B, C and D) are in the same directory.

1

If you cannot put a trace, I'd suggest you temporarily rename B, C, and D. Assuming A will tell you that B, C, or D are missing, you should get the info you need.

If it doesn't tell you but still generate an error saying the next process is missing, you may try to rename just B and C and see what happens. Then try again with just B and D. At that point you should know whether B, C, or D is the culprit.

Also, you may be able to manually try each one and see if only one or even all have problems starting.

  • Thanks for the suggestion. Never thought about renaming the executables. Thanks. – Deepanshu Dec 5 '12 at 1:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.