Results 1 to 3 of 3

Thread: Qt4.7 application dumps with Root user in Fedora 14

  1. #1
    Join Date
    Jul 2008
    Location
    Mumbai, India
    Posts
    10
    Qt products
    Qt4
    Platforms
    Unix/X11

    Unhappy Qt4.7 application dumps with Root user in Fedora 14

    Hi,
    I have an application that was developed using Qt-4.2.2. Now, I am looking to upgrade the version of Qt in my system to 4.7. Also, I am using qwt-5.0.2.

    I re-compiled Qwt with Qt-4.7. I am using Fedora 14 on Intel i3 processor.

    The problem : My application works fine when I execute it as a normal user, but the application crashes when I try to execute it as a root user.

    As per a suggestion in one of the other thread :
    A lot of Linux systems disable the X server when running as root; any applications that require it will fail. You can check: see if you can run xclock while you're logged in as root. If so, then the problem lies elsewhere.
    I tried the above mention suggestion and I was able to open xclock from my terminal.

    Please let me know if I missed out on some detail.

  2. #2
    Join Date
    Apr 2010
    Posts
    769
    Thanks
    1
    Thanked 94 Times in 86 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: Qt4.7 application dumps with Root user in Fedora 14

    What messages does the application produce when it crashes? How does the crash manifest itself?

    Root typically has much stricter controls in place on a variety of commands to reduce the possibility that an administrator will hose over the system. For example, deleting files often requires confirmation, graphical logins are disabled, and whole groups of commands may be removed from the execution path depending on how console login is performed.

    It's impossible to pin down what's going on, though, without some actual information on what you mean by "the application crashes". One likely explanation, especially since you're rebuilding Qt yourself, is that the root account can't find Qt's dynamic libraries. But that's just speculation. Send some error messages.

  3. #3
    Join Date
    Jul 2008
    Location
    Mumbai, India
    Posts
    10
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Qt4.7 application dumps with Root user in Fedora 14

    I getting the following error:

    **
    GLib-GIO:ERROR:gdbusconnection.c:2270:initable_init: assertion failed: (connection->initialization_error == NULL)
    Aborted (core dumped)

Similar Threads

  1. how to run QT application with root permission
    By noa l in forum Qt Programming
    Replies: 4
    Last Post: 15th December 2010, 13:32
  2. Problem to run a Qt Gui application as root
    By holmfred in forum Newbie
    Replies: 3
    Last Post: 23rd October 2010, 14:07
  3. Running an application with root privileges at Linux
    By prykHetQuo in forum Qt Programming
    Replies: 5
    Last Post: 25th January 2009, 12:35
  4. root-priviliges in application
    By bkv in forum KDE Forum
    Replies: 2
    Last Post: 29th October 2006, 18:58
  5. app core dumps!!
    By Seema Rao in forum Qt Programming
    Replies: 6
    Last Post: 3rd May 2006, 12:36

Tags for this Thread

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.