Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 07-05-2005, 12:05 PM   #1
LQ Newbie
Registered: Jul 2005
Posts: 6

Rep: Reputation: 0
Bus Error (core dumped) due to SIGBUS signal


Please note the behaviour of this program. I know that SIGBUS comes because of address mis-alignments in read/write acesses.

could anybody please explain the behaviour of the following program:

void main()
short a;

printf("\n a= ",a);

case one:
chattan:~/junk]$ a.out
2 //input given
Bus Error (core dumped)

case two:
chattan:~/junk]$ a.out
a //input given

Old 07-05-2005, 12:10 PM   #2
LQ Guru
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 360Reputation: 360Reputation: 360Reputation: 360
You would probably have better luck with this on the Programming board.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
squid stops due to signal 6 and signal 25 simplyrahul Linux - Software 3 05-28-2011 01:05 AM
Segementation Fault Error (Core Dumped) ??? 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
signal Bus error (7) - apache/ httpd da_kidd_er Linux - Networking 1 07-08-2005 10:51 PM
Guarddog won't run due to "Bus error" jonr Mandriva 0 08-06-2004 12:15 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:21 AM.

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