LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.

Notices


Reply
  Search this Thread
Old 05-18-2021, 01:06 AM   #1
Biebs
LQ Newbie
 
Registered: May 2021
Posts: 3

Rep: Reputation: Disabled
Bus error(core dumped)


I am running my application on arm-poky-linux target and before even the execution of main function the program is crashing and displaying this error.
 
Old 05-18-2021, 01:13 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,842

Rep: Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309
Hi, and welcome here, at LQ.
Unfortunately dropping in an error message is not enough to help you.
Bus error most probably means there is an incompatibility somewhere amongst your libraries and executable (or just a coding issue). But without details hard to say more.
https://en.wikipedia.org/wiki/Bus_error

http://www.catb.org/~esr/faqs/smart-...html#beprecise
 
Old 05-19-2021, 12:57 AM   #3
Biebs
LQ Newbie
 
Registered: May 2021
Posts: 3

Original Poster
Rep: Reputation: Disabled
Hi,
thank you for the response I got the issue

I was getting bus error while including -lstdc++. How to resolve this
 
Old 05-19-2021, 01:05 AM   #4
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
You included -lstdc++ in what?

If this happens even before the main function is called, I would suggest something is wrong with the format of the executable file. Or it calls an incorrect shared library, perhaps. strace may help you understand what happens.
 
Old 05-19-2021, 01:11 AM   #5
Biebs
LQ Newbie
 
Registered: May 2021
Posts: 3

Original Poster
Rep: Reputation: Disabled
Hi

Cross compiling using respective gcc and to include cpp object files including this flag but displaying a core dump when I do
 
Old 05-19-2021, 01:22 AM   #6
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,842

Rep: Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309
what kind of app is it? how did you build it? Do you have a coredump? What os/compiler is it?
Without real answers [at least] to these questions nobody can give you any help.
Quote:
Describe the symptoms of your problem or bug carefully and clearly.
Describe the environment in which it occurs (machine, OS, application, whatever). Provide your vendor's distribution and release level (e.g.: “Fedora Core 7”, “Slackware 9.1”, etc.).
Describe the research you did to try and understand the problem before you asked the question.
Describe the diagnostic steps you took to try and pin down the problem yourself before you asked the question.
Describe any possibly relevant recent changes in your computer or software configuration.
If at all possible, provide a way to reproduce the problem in a controlled environment
 
Old 05-19-2021, 01:31 AM   #7
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Quote:
Originally Posted by Biebs View Post
Hi

Cross compiling using respective gcc and to include cpp object files including this flag but displaying a core dump when I do
It's really hard to get information out of you. Your descriptions are very vague and non-specific. The quality of the answers you get will be proportional to the quality of your question.

My vague and non-specific guess is that the respective gcc is not appropriate for that platform/architecture.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] NCTUns Bus error (core dumped) hiba.yousef.1991 Linux - Newbie 2 05-29-2014 12:14 AM
Dbus System bus and Session bus mainloops deimus Linux - Distributions 0 08-20-2010 06:49 AM
Segementation Fault Error (Core Dumped) ??? Mistro116@yahoo.com Programming 8 10-17-2005 11:10 AM
Bus Error (core dumped) due to SIGBUS signal rajendra.badapanda Programming 10 07-19-2005 10:18 AM
Bus Error (core dumped) due to SIGBUS signal rajendra.badapanda Linux - Software 1 07-05-2005 12:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 11:54 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration