LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 11-05-2007, 07:54 AM   #1
varun_shrivastava
Member
 
Registered: Jun 2006
Distribution: Ubuntu 7.04 Feisty
Posts: 79

Rep: Reputation: 15
SIGBUS error


hi
i wrote a gtk application for embedded device, and it was giving SIGBUS error. But i figured out the problem.

Actually i tried to set the size of the window larger than the screen present on embedded device.

So when i commented out that line, the application worked fine.

So my question is: Does setting window size more than the actual size of screen should give SIGBUS error?
 
Old 11-06-2007, 05:14 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
SIGBUS is, in many cases an equivalent to SIGSEGV. It means it happens when you write to the memory that is not allocated to your program, for instance. I guess that was just the case (writing to window outside the allocated area for the whole screen).

It should not end with such an error, however. The function you use to draw should notice that the location is out of the available area size and exit with a more 'gentle' error.
 
Old 11-07-2007, 01:04 AM   #3
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Rep: Reputation: 53
I don't know how this device operates, but setting your window larger than the screen shouldn't be a problem if you don't work with the screen directly. You should get magnified effect, that's all.
 
  


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
Suse CUPS error: cups(File)DoRequest error:client-error-bad-request smdonelan Linux - Hardware 6 04-17-2007 07:46 PM
dlopen(), causing SIGBUS signal.... help rajsun Programming 8 12-11-2005 11:08 PM
updating new installation of 9.3 ERROR...ERROR...ERROR Morbid SUSE / openSUSE 3 08-16-2005 12:22 AM
Bus Error (core dumped) due to SIGBUS signal rajendra.badapanda Programming 10 07-19-2005 11:18 AM
Bus Error (core dumped) due to SIGBUS signal rajendra.badapanda Linux - Software 1 07-05-2005 01:10 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 10:40 AM.

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