Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Qt5.6 application segv at gnome libs



  • My program links Qt 5.6.0 statically to be deployed on cross-platfroms.

    Initially, the program was compiled on rhel6.8 (and it works fine). I want to run it on another rhel6.5 server. If I ssh to rhel6.5 system from rhel6.8, the program works fine. If I run the program directly from rhel6.5, it segvs at libgnome.so with stack trace:
    [bt]: (1) /lib64/libpthread.so.0[0x3bdf20f7e0]
    [bt]: (2) /lib64/libc.so.6[0x3bde729540]
    [bt]: (3) /usr/lib64/libxml2.so.2 (__xmlParserInputBufferCreateFilename) +0x135 [0x3be865e465]
    [bt]: (4) /usr/lib64/libxml2.so.2 (xmlNewTextReaderFilename) +0x25 [0x3be86e2585]
    [bt]: (5) /usr/lib64/libgnomevfs-2.so.0[0x3064629755]
    [bt]: (6) /usr/lib64/libgnomevfs-2.so.0 (gnome_vfs_mime_get_value) +0xcd [0x3064629d0d]
    [bt]: (7) /usr/lib64/libgnomeui-2.so.0 (gnome_icon_lookup) +0x2c3 [0x3d61e61c53]
    [bt]: (8) /usr/lib64/libgnomeui-2.so.0 (gnome_icon_lookup_sync) +0x7d [0x3d61e621ed]

    Finally, I get rid of this problem by re-installing Qt library with no-gtkstyle. My program works fine on both systems. The problem is that the GUI form looks downgraded. I still want to use gtkstyle GUI and it works on both platforms.

    Have any idea on why segv happens? suggestions are appreciated. Thanks!


Log in to reply