Results 1 to 2 of 2

Thread: Segmentation fault on Linux, but not on my Macbook

  1. #1
    Join Date
    May 2010
    Posts
    1
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11

    Default Segmentation fault on Linux, but not on my Macbook

    Hi to all.
    first of all, I'm sorry for my bad english. =)

    I have to develop a game, a kind of Monopoly.

    I have used to implement the app on my macbook Qt Creator for Qt 4.6 and the game compile and don't have any runtime error..

    When I try to compile by command line of shell my app on linux, that have intalled Qt 4.3 (my app have to run correctly on linux for pass my exam), it ends for a segmentation fault. I have found where my app crash, but I can't understand why..

    It stopped on two cases:
    1. When I call qapp->quit();
    2. When I call setCentralWidget(MyObject*);

    The error can be the distructor, but they are actually empty..
    And in the second case, I'm sure that my object exist and it's a qwidget..

    Someone can help me??

    Thanks a lot
    Andrea

  2. #2
    Join Date
    Sep 2009
    Location
    UK
    Posts
    2,447
    Thanks
    6
    Thanked 348 Times in 333 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Segmentation fault on Linux, but not on my Macbook

    Possible memory corruption? Try something like Valgrind

Similar Threads

  1. QWT - Segmentation Fault
    By Wojtek.wk in forum Newbie
    Replies: 0
    Last Post: 17th April 2010, 14:29
  2. linux "Segmentation fault"
    By harrison in forum Newbie
    Replies: 5
    Last Post: 3rd March 2010, 09:33
  3. Segmentation fault regarding QString in Qt/linux
    By payal in forum Qt Programming
    Replies: 14
    Last Post: 25th February 2010, 07:42
  4. Segmentation fault
    By Schimanski in forum Qt Programming
    Replies: 20
    Last Post: 31st August 2009, 16:26
  5. Segmentation fault
    By impeteperry in forum Qt Programming
    Replies: 5
    Last Post: 29th December 2008, 18:59

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.