ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Please provide more info such as what distribution/version are you using, what tools you're using, and most importantly what you're trying to accomplish with this code.
To me it looks like a cross between c and python? please explain.
Please place your code snippets inside [CODE]...[/CODE] tags for better readability. You may type those yourself or click the "#" button in the edit controls.
As pointed out by others, you have not asked a complete question, or any question at all. Posting code snippets and an error message does not help others to understand what you are trying to accomplish or why it may not be working.
Please review the Site FAQ for guidance in asking complete and well formed questions.
Remember that the more oyu help others here to understand your problem, the better responses you will receive.
If this is your code and it appears to be in C, you can compile it using debug flags and use GDB to analyze the core file, as well as use GDB to run it, set breakpoints, and examine the variables just before, or just after it crashes.
You've done a typical thing here which is to post "here's my code, I got an error", we're not here to review your code, we are volunteers, but happy to help. Meanwhile it would be helpful to know things like whether or not you're compiling using GCC, and how you're running this program, because that error report makes no sense. It should not talk about /bin/bash if you are running a C program, instead it should talk about the resultant binary program from compiling that C program. Right now it appears that this error you've posted has nothing to do with C code and instead something to do with a script. For analyzing core files, you can refer to a blog entry I've made, however the core would have to be resulting from your compiled C code.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.