Results 1 to 5 of 5

Thread: Segmentation fault in Qt5.4 QGuiApplication on Ubuntu

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Default Re: Segmentation fault in Qt5.4 QGuiApplication on Ubuntu

    I run with valgrind with options --tool=memcheck --leak-check=full. Below is the top most content in the valgrind log file.

    ==8938== Process terminating with default action of signal 11 (SIGSEGV)
    ==8938== Bad permissions for mapped region at address 0xD6E6360
    ==8938== at 0x7979227: QMetaObject::className() const (in /home/nkumar/Qt/5.4/gcc_64/lib/libQt5Core.so.5.4.0)
    ==8938== by 0xF43DFB6: ??? (in /home/nkumar/Qt/5.4/gcc_64/lib/libQt5Widgets.so.5.4.0)
    ==8938== by 0x4010139: call_init.part.0 (dl-init.c:78)
    ==8938== by 0x4010222: _dl_init (dl-init.c:36)
    ==8938== by 0x4001309: ??? (in /lib/x86_64-linux-gnu/ld-2.19.so)
    ==8938==

    It seems the segmentation fault is caused by QMetaObject::className() const (in /home/nkumar/Qt/5.4/gcc_64/lib/libQt5Core.so.5.4.0)

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Segmentation fault in Qt5.4 QGuiApplication on Ubuntu

    And what does the debugger say?
    How does the backtrace look like?

    Cheers,
    _

  3. #3
    Join Date
    Mar 2015
    Posts
    1
    Qt products
    Qt5
    Platforms
    Unix/X11

    Default Re: Segmentation fault in Qt5.4 QGuiApplication on Ubuntu

    I guess the problem is from example code
    I use directfb and I faced the same error with analogclock and rasterwindow.
    I patched as the following link http://interest.qt-project.narkive.c...-linuxfb-crash

    --- a/examples/gui/rasterwindow/rasterwindow.cpp 2013-02-01
    12:22:04.414289323 +1300
    +++ b/examples/gui/rasterwindow/rasterwindow.cpp 2013-02-01
    12:22:09.914337845 +1300
    @@ -45,8 +45,8 @@
    : QWindow(parent)
    , m_update_pending(false)
    {
    - m_backingStore = new QBackingStore(this);
    create();
    + m_backingStore = new QBackingStore(this);

    setGeometry(100, 100, 300, 200);
    --
    --- a/src/plugins/platforms/linuxfb/qlinuxfbintegration.cpp
    2013-02-01 12:26:58.390337550 +1300
    +++ a/src/plugins/platforms/linuxfb/qlinuxfbintegration.cpp
    2013-02-01 12:27:10.890315043 +1300
    @@ -84,6 +84,7 @@

    QPlatformBackingStore
    *QLinuxFbIntegration::createPlatformBackingStore(Q Window *window)
    const
    {
    + window->create();
    return new QFbBackingStore(window);
    }
    --

    Now I can run the examples but window posistion isnot right.

Similar Threads

  1. segmentation fault!!
    By Yayati.Ekbote in forum Qt Programming
    Replies: 4
    Last Post: 24th March 2010, 15:10
  2. Segmentation Fault
    By jmc in forum Qt Tools
    Replies: 4
    Last Post: 24th February 2010, 20:08
  3. segmentation fault
    By navid in forum Qt Programming
    Replies: 3
    Last Post: 20th December 2009, 11:40
  4. Segmentation fault
    By MarkoSan in forum Qt Programming
    Replies: 23
    Last Post: 19th October 2008, 22:40
  5. Segmentation Fault
    By merry in forum General Programming
    Replies: 4
    Last Post: 12th March 2007, 04:08

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.