Results 1 to 5 of 5

Thread: Bus Error?

  1. #1

    Default Bus Error?

    Hey--

    Working on a sun workstation with qt 3.3, I've been getting a random bus error from one of my gui's. I've got a list of 32 buttons, basically clicking the button activates a boolean in an array stored off in some legacy C code. If I switch the checkbox buttons around to activate all 32 at one time, there's no problem. However, just doing it one by one causes it to blow up at some point between 2 and 20 clicks. I deleted all the buttons and redid them, doesn't help. Making the array of 32 booleans in the legacy C code integers only makes the issue worse (1 to 5 clicks to blow up instead of 2 to 20). It definitely has something to do with that array, but doesn't really make any sense why that should be causing the QT stuff to blow up. From the debugger, it appears as though one of the widgets may acquire an invalid address (0x1010101) at some point. Any suggestions? I'm going to try and run it under windows to see if that makes a difference too. Thanks!

    Taylor34

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Bus Error?

    Quote Originally Posted by taylor34
    From the debugger, it appears as though one of the widgets may acquire an invalid address (0x1010101) at some point. Any suggestions?
    Doesn't it look like the contents of that array?

    Do you use threads? Could you post the code which is run after the click?

  3. #3
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Bus Error?

    The bus error on Solaris is sometimes caused by a bug in the compiler. Take that into consideration when looking for solutions.

  4. #4

    Default Re: Bus Error?

    Quote Originally Posted by wysota
    The bus error on Solaris is sometimes caused by a bug in the compiler. Take that into consideration when looking for solutions.
    That's what I was wondering, because where it breaks in the debugger is way down in some of the qt base files, way after the C baseline code has executed. It appears to die because it tries to do qlnode::getData() on an invalid widget address (the 0x1010101) that it gets from "it", some variable inside the qt baseline code.

    Taylor34

  5. #5

    Default Re: Bus Error?

    Btw, found out the problem. When I was passing my button number down to lower legacy stuff, it was interpretting it as hex so 24 became 36, blowing out the boundaries of my boolean array. Now why it caused the qt stuff to blow up on the sun, I don't know--it blew up in the correct place on windows. At least this is here for future reference by someone.

    Taylor34

Similar Threads

  1. QPSQL problem
    By LoneWolf in forum Installation and Deployment
    Replies: 60
    Last Post: 4th November 2009, 14:22
  2. Compile 4.4.0
    By LordQt in forum Installation and Deployment
    Replies: 18
    Last Post: 29th May 2008, 13:43
  3. QPSQL driver in windows
    By brevleq in forum Installation and Deployment
    Replies: 31
    Last Post: 14th December 2007, 12:57
  4. Error compiling psql plugin
    By vieraci in forum Installation and Deployment
    Replies: 4
    Last Post: 7th October 2007, 02:49
  5. qt 4.2.2 install on aix
    By try to remember in forum Installation and Deployment
    Replies: 2
    Last Post: 28th March 2007, 12:19

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.