LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices



Reply
 
Search this Thread
Old 07-05-2005, 01:05 PM   #1
rajendra.badapanda
LQ Newbie
 
Registered: Jul 2005
Posts: 6

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


Hi,

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;

scanf("%d",&a);
printf("\n a= ",a);
}

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


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

a=
chattan:~/junk]$
 
Old 07-05-2005, 01:10 PM   #2
MS3FGX
Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

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


Reply


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 02:05 AM
Segementation Fault Error (Core Dumped) ??? Mistro116@yahoo.com Programming 8 10-17-2005 12:10 PM
Bus Error (core dumped) due to SIGBUS signal rajendra.badapanda Programming 10 07-19-2005 11:18 AM
signal Bus error (7) - apache/ httpd da_kidd_er Linux - Networking 1 07-08-2005 11:51 PM
Guarddog won't run due to "Bus error" jonr Mandriva 0 08-06-2004 01:15 PM


All times are GMT -5. The time now is 03:14 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration