Qt Bus Error 10
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site bus error 10 c About Us Learn more about Stack Overflow the company Business Learn more about bus error linux hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join bus error 10 mac the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Bus error: 10 error up
Linux Bus Error Core Dumped
vote 23 down vote favorite 10 Here is my code #import here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack how to solve bus error in linux Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up How to get a “bus error”? up vote 12 down vote favorite 1 I am trying very hard to get a bus error. One way is misaligned access and I have tried the examples given here and here, but no error for me - the http://stackoverflow.com/questions/8716714/bus-error-10-error programs execute just fine. Is there some situation which is sure to produce a bus error? c++ bus-error share|improve this question edited Jan 15 '10 at 9:50 asked Jan 15 '10 at 4:06 Lazer 25.2k66212310 2 What platform and hardware architecture are you using? –R Samuel Klatchko Jan 15 '10 at 5:32 it should be noted that by default x86 will not have a bus error, instead it will work but the memory access will be not as performant as an aligned read. http://stackoverflow.com/questions/2069450/how-to-get-a-bus-error on the other hand SPARC arches do have a bus error. –Evan Teran Jan 15 '10 at 6:50 1 No, see Michael Burr's comments and my answer. Even on x86, you can get a bus error by attempting to access memory which does not exist (as opposed to a segmentation fault, which comes from a violation of access policy). –ephemient Jan 16 '10 at 16:29 add a comment| 11 Answers 11 active oldest votes up vote 11 down vote accepted Bus errors can only be invoked on hardware platforms that: Require aligned access, and Don't compensate for an unaligned access by performing two aligned accesses and combining the results. You probably do not have access to such a system. share|improve this answer answered Jan 15 '10 at 4:09 Ignacio Vazquez-Abrams 447k64800956 is there some way to be sure of that? –Lazer Jan 15 '10 at 4:11 @eSKay: If you're using an Intel CPU, which means basically any personal computer nowadays, you will never get a bus error from misaligned access. If you're using PowerPC, SPARC, etc., then you can cause a bus error that way. –Chris Jester-Young Jan 15 '10 at 4:13 2 Do you have any SPARC or MIPS equipment? –Ignacio Vazquez-Abrams Jan 15 '10 at 4:13 yes, I am using Intel P4. Any idea why no error on Intels? –Lazer Jan 15 '10 at 4:14 3 There are typically other ways a bus error can occur than just unaligned memory access. It's very emitting None through an object slot between two https://bugreports.qt.io/browse/PYSIDE-139 threadsAgile Board ExportXMLWordPrintable Details Type: Bug Status: Reported Priority: Not Evaluated Resolution: Unresolved Affects Version/s: 1.1.0 Fix Version/s: None Component/s: http://www.qtforum.org/article/12663/bus-error-help.html PySide Labels: None Environment: Mac OS X 10.7.5 Enthought Python Distribution Version: 7.3-1 (32-bit) Python 2.7.3 Pyside 1.1.0 Description I bus error ran into this in an application I'm writing, and was able to isolate the problem in a very simple test case. It seems that passing a 'None' through an object slot across threads is the source of the issue. Just bus error 10 run the test case, and you'll see what I mean (assuming it's not platform specific). OptionsSort By NameSort By DateAscendingDescendingAttachments test_case.py 07/Feb/13 8:21 AM 0.9 kB Scott Maddox OptionsIssue OnlyShow All ReviewsShow Open ReviewsGerrit Reviews No reviews matched the request. Check your Options in the drop-down menu of this sections header. Activity All Comments Work Log History Activity Transitions There are no comments yet on this issue. People Assignee: Unassigned Reporter: Scott Maddox Votes: 0 Vote for this issue Watchers: 1 Start watching this issue Dates Created: 07/Feb/13 8:21 AM Updated: 27/Jun/13 11:56 PM Agile View on Board Gerrit Reviews There are no open Gerrit changes Atlassian JIRA Project Management Software (v6.3.9#6339-sha1:46fa261) About JIRA Report a problem Atlassian QtForum.org » Qt » Qt Programming » bus error - HELP!! Dear visitor, welcome to QtForum.org. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here. Skip user information kevireid Trainee Posts: 122 1 Friday, July 8th 2005, 10:02am bus error - HELP!! I am trying to draw lines on a QCanvas between two QCanvasRectangles. I have two slots, here is the code: Source code 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 void DiagramView::startLine() { //DiagramBox *pTempBox = (DiagramBox *) activeItem; pTempStartBox = (DiagramBox *) activeItem; //pTempLine->setPoints(startx, starty, -1, -1); startx = (pTempStartBox->x() + ((pTempStartBox->width())/2)); starty = (pTempStartBox->y() + ((pTempStartBox->height()/2))); addLine(); } void DiagramView::endLine() { //DiagramBox *pTempBox = (DiagramBox *) activeItem; pTempEndBox = (DiagramBox *) activeItem; endx = (pTempEndBox->x() + ((pTempEndBox->width())/2)); endy = (pTempEndBox->y() + ((pTempEndBox->height())/2)); //DiagramLine* pTempLine = (DiagramLine*) pendingItem; pTempLine->setPoints(startx, starty, endx, endy); // The bus error occurs here pTempStartBox->endingLines.push_back(pTempLine); pTempEndBox->endingLines.push_back(pTempLine); DiagramView::showNewItem(pendingItem); pendingItem = 0; DiagramBox, DiagramView and DiagramLine are subclasses of QCanvasRectangle, QCanvasView and QCanvasLine respectively. Does anyone know what is wrong? thanks in advance.. kr Go to the top of the page Skip user information jacek Master Posts: 2,729 Location: Warsaw, Poland 2 Friday, July 8th 2005, 10:21am RE: bus error - HELP!! Quoted Originally posted by kevireid //DiagramLine* pTempLine = (Bus Error Vs Segmentation Fault
Sigbus Error Linux