QDevelop won't startup anymore

Asked by Henk M

A few days ago I discovered QDevelop and really like it. BUT right now it just won't start anymore by clicking the icon.
And when I try it on a command line level it says:
"qdevelop: pthread_mutex_lock.c:87: __pthread_mutex_lock: Assertion `mutex->__data.__owner == 0' failed. Aborted"
Does anybody have an idea? I tried to install Phonon 4.3.0, maybe thats a problem?.
Thnx, Henk

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu qdevelop Edit question
Assignee:
No assignee Edit question
Solved by:
Dmitry Tantsur
Solved:
Last query:
Last reply:
Revision history for this message
Dmitry Tantsur (divius) said :
#1

1) Please try to run latest version of QDevelop (http://code.google.com/p/qdevelop/downloads/list)
2) Run QDevelop and gdb and get backtrace:
$ gdb qdevelop
> run
...
qdevelop: pthread_mutex_lock.c:87: __pthread_mutex_lock: Assertion `mutex->__data.__owner == 0' failed
> back
...
...

After "back" command you will see backtrace. Please provide it.

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#2

Please try to remove uim-qt from terminal:

sudo apt-get remove uim-qt

Hope this helps

Revision history for this message
Henk M (h-g-minderman-kpnplanet) said :
#3

Marcobra:
I Tried your sudo trick: sudo apt-get remove uim-qt - it resulted in the following
  Reading package lists...
  Building dependency tree...
  Reading state information...
  Package uim-qt is not installed, so not removed
  0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Pity, That didn't do the trick

Divius:
I only found unstable releases - qdevelop-0.27 svn381? is that what you meant?
Running gdb qdevelop resulted in the following -
  GNU gdb 6.8-debian
  Copyright (C) 2008 Free Software Foundation, Inc.
  License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
  This is free software: you are free to change and redistribute it.
  There is NO WARRANTY, to the extent permitted by law. Type "show copying"
  and "show warranty" for details.
  This GDB was configured as "x86_64-linux-gnu"...
  (no debugging symbols found)
(gdb) run
  Starting program: /usr/bin/qdevelop
  (no debugging symbols found)
  (no d.....
  ....................s found)
  [Thread debugging using libthread_db enabled]
  (no debugging symbols found)
  (no d.....
  ....................s found)
  (no debugging symbols found)
  (no debugging symbols found)

  [New Thread 0x7f5c54e06710 (LWP 8637)]

  Program received signal SIGABRT, Aborted.
  [Switching to Thread 0x7f5c54e06710 (LWP 8637)]
  0x00007f5c529d7095 in raise () from /lib/libc.so.6
(gdb) back
  #0 0x00007f5c529d7095 in raise () from /lib/libc.so.6
  #1 0x00007f5c529d8af0 in abort () from /lib/libc.so.6
  #2 0x00007f5c529d02df in __assert_fail () from /lib/libc.so.6
  #3 0x00007f5c534a9ac7 in pthread_mutex_lock () from /lib/libpthread.so.0
  #4 0x00007f5c513d73b7 in g_source_attach () from /usr/lib/libglib-2.0.so.0
  #5 0x00007f5c53fb7eee in ?? () from /usr/lib/libQtGui.so.4
  #6 0x00007f5c53f8b39e in QApplicationPrivate::createEventDispatcher ()
     from /usr/lib/libQtGui.so.4
  #7 0x00007f5c53815782 in QCoreApplication::init ()
     from /usr/lib/libQtCore.so.4
  #8 0x00007f5c5381586f in QCoreApplication::QCoreApplication ()
     from /usr/lib/libQtCore.so.4
  #9 0x00007f5c53f48494 in QApplication::QApplication ()
     from /usr/lib/libQtGui.so.4
  #10 0x0000000000499e72 in ?? ()
  #11 0x00007f5c529c31c4 in __libc_start_main () from /lib/libc.so.6
  #12 0x0000000000425b19 in ?? ()
  #13 0x00007fff5ce40348 in ?? ()
  #14 0x0000000000000000 in ?? ()
(gdb) q
  The program is running. Exit anyway? (y or n) y

Thnx for looking into this problem, but no solution yet
Henk

Revision history for this message
Dmitry Tantsur (divius) said :
#4

What changes have you done recently?
Please provide versions of all Qt's components and your OS.
And please try latest unstable release of QDevelop.

Revision history for this message
Henk M (h-g-minderman-kpnplanet) said :
#5

Maybe the error occured after I tried to install Phonon. Not sure though.
Ubuntu 8.04 - QT 4.3.3
Latest unstable release of QDevelop stopped with:
   henk-desktop ~: qdevelop
   qdevelop: error while loading shared libraries: libQtSql.so.4: cannot open shared object file: No such file or directory

Where can I find libQtSql?

Revision history for this message
Henk M (h-g-minderman-kpnplanet) said :
#6

Maybe the error occured after I tried to install Phonon. Not sure though.
Ubuntu 8.04 - QT 4.4.3
Latest unstable release of QDevelop stopped with:
   henk-desktop ~: qdevelop
   qdevelop: error while loading shared libraries: libQtSql.so.4: cannot open shared object file: No such file or directory

Where can I find libQtSql?

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#7

Please try from a terminal:

sudo aptitude install libqt4-sql libqt4-dev

Hope this helps

Revision history for this message
Henk M (h-g-minderman-kpnplanet) said :
#8

Same problem:

They were allready installed, but still .....

sudo aptitude install libqt4-sql libqt4-dev
   Reading package lists...
   Building dependency tree...
   Reading state information...
   Reading extended state information...
   Initializing package states...
   Building tag database...
   No packages will be installed, upgraded, or removed.
   0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
   Need to get 0B of archives. After unpacking 0B will be used.
   Writing extended state information...
   Reading package lists...
   Building dependency tree...
   Reading state information...
   Reading extended state information...
   Initializing package states...
   Building tag database...
henk-desktop ~: qdevelop
   qdevelop: error while loading shared libraries: libQtSql.so.4: cannot open shared object file: No such file or directory

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#9

Please report the results of this terminal commands:

ls -l /usr/lib/libQtSql.so.4

and this command:

locate libQtSql.so

Thank you

Revision history for this message
Henk M (h-g-minderman-kpnplanet) said :
#10

Hi,

Here are the results of these terminal commands:

ls -l /usr/lib/libQtSql.so.4
    lrwxrwxrwx 1 root root 17 2009-01-25 23:06 /usr/lib/libQtSql.so.4 -> libQtSql.so.4.3.4

locate libQtSql.so
    /home/henk/google-earth/libQtSql.so.4
    /home/reserve/henk-local/google-earth/libQtSql.so.4
    /opt/google-earth.oud/libQtSql.so.4
    /usr/lib/libQtSql.so
    /usr/lib/libQtSql.so.4
    /usr/lib/libQtSql.so.4.3
    /usr/lib/libQtSql.so.4.3.4
    /usr/lib/libQtSql.so.4.3.4.debug
    /usr/local/Trolltech/Qt-4.4.3/lib/libQtSql.so
    /usr/local/Trolltech/Qt-4.4.3/lib/libQtSql.so.4
    /usr/local/Trolltech/Qt-4.4.3/lib/libQtSql.so.4.4
    /usr/local/Trolltech/Qt-4.4.3/lib/libQtSql.so.4.4.3
    /usr/local/Trolltech/Qt-4.4.3/lib/libQtSql.so.4.4.3.debug

Revision history for this message
Dmitry Tantsur (divius) said :
#11

Please do following things:
a) Provide result of
$ ldd /path/to/qdevelop/binary
b) Try to build qdevelop yourself from latest source code (see http://code.google.com/p/qdevelop/downloads/list) and test it. Provide result of ldd for new binary as well.

Revision history for this message
Henk M (h-g-minderman-kpnplanet) said :
#12

Hi,

ldd /usr/bin/qdevelop
 linux-gate.so.1 => (0xffffe000)
 libQtDesigner.so.4 => /lib32/libQtDesigner.so.4 (0xf7dfe000)
 libQtSql.so.4 => not found
 libQtGui.so.4 => /lib32/libQtGui.so.4 (0xf7662000)
 libXext.so.6 => /usr/lib32/libXext.so.6 (0xf7654000)
 libX11.so.6 => /usr/lib32/libX11.so.6 (0xf756d000)
 libQtCore.so.4 => /lib32/libQtCore.so.4 (0xf73ed000)
 libpthread.so.0 => /lib32/libpthread.so.0 (0xf73d5000)
 libdl.so.2 => /lib32/libdl.so.2 (0xf73d1000)
 libQtXml.so.4 => /lib32/libQtXml.so.4 (0xf7377000)
 libQtNetwork.so.4 => /lib32/libQtNetwork.so.4 (0xf72e7000)
 libstdc++.so.6 => /usr/lib32/libstdc++.so.6 (0xf71f4000)
 libm.so.6 => /lib32/libm.so.6 (0xf71cf000)
 libgcc_s.so.1 => /usr/lib32/libgcc_s.so.1 (0xf71c4000)
 libc.so.6 => /lib32/libc.so.6 (0xf7075000)
 libQtScript.so.4 => /lib32/libQtScript.so.4 (0xf6fc9000)
 libaudio.so.2 => /usr/lib32/libaudio.so.2 (0xf6fb3000)
 libXt.so.6 => /usr/lib32/libXt.so.6 (0xf6f62000)
 libpng12.so.0 => /usr/lib32/libpng12.so.0 (0xf6f3f000)
 libSM.so.6 => /usr/lib32/libSM.so.6 (0xf6f37000)
 libICE.so.6 => /usr/lib32/libICE.so.6 (0xf6f1f000)
 libXi.so.6 => /usr/lib32/libXi.so.6 (0xf6f16000)
 libXrender.so.1 => /usr/lib32/libXrender.so.1 (0xf6f0e000)
 libXrandr.so.2 => /usr/lib32/libXrandr.so.2 (0xf6f08000)
 libXfixes.so.3 => /usr/lib32/libXfixes.so.3 (0xf6f03000)
 libXcursor.so.1 => /usr/lib32/libXcursor.so.1 (0xf6efa000)
 libXinerama.so.1 => /usr/lib32/libXinerama.so.1 (0xf6ef7000)
 libfreetype.so.6 => /usr/lib32/libfreetype.so.6 (0xf6e86000)
 libfontconfig.so.1 => /usr/lib32/libfontconfig.so.1 (0xf6e5c000)
 libz.so.1 => /usr/lib32/libz.so.1 (0xf6e47000)
 libgthread-2.0.so.0 => /usr/lib32/libgthread-2.0.so.0 (0xf6e42000)
 librt.so.1 => /lib32/librt.so.1 (0xf6e39000)
 libglib-2.0.so.0 => /usr/lib32/libglib-2.0.so.0 (0xf6d88000)
 libXau.so.6 => /usr/lib32/libXau.so.6 (0xf6d84000)
 libxcb-xlib.so.0 => /usr/lib32/libxcb-xlib.so.0 (0xf6d82000)
 libxcb.so.1 => /usr/lib32/libxcb.so.1 (0xf6d6a000)
 /lib/ld-linux.so.2 (0xf7fb9000)
 libexpat.so.1 => /usr/lib32/libexpat.so.1 (0xf6d48000)
 libselinux.so.1 => /lib32/libselinux.so.1 (0xf6d2f000)
 libpcre.so.3 => /usr/lib32/libpcre.so.3 (0xf6d08000)
 libXdmcp.so.6 => /usr/lib32/libXdmcp.so.6 (0xf6d03000)

No time to build qdevelop now..... I'll try that coming weekend

Revision history for this message
Henk M (h-g-minderman-kpnplanet) said :
#13

Couldn't wait till the weekend....
rebuilding - works fine again, but I don't understand why
You asked for ldd /usr/l..../bin/qdevelop and maybe you can give me an idea about how and why

ldd /usr/local/Qdevelop/qdevelop-0.27~svn387/bin/qdevelop
 linux-vdso.so.1 => (0x00007ffff95fe000)
 libQtSql.so.4 => /usr/local/Trolltech/Qt-4.4.3/lib/libQtSql.so.4 (0x00007fc4f1098000)
 libQtNetwork.so.4 => /usr/local/Trolltech/Qt-4.4.3/lib/libQtNetwork.so.4 (0x00007fc4f0d8f000)
 libQtXml.so.4 => /usr/local/Trolltech/Qt-4.4.3/lib/libQtXml.so.4 (0x00007fc4f0b46000)
 libQtGui.so.4 => /usr/local/Trolltech/Qt-4.4.3/lib/libQtGui.so.4 (0x00007fc4effe5000)
 libpng12.so.0 => /usr/lib/libpng12.so.0 (0x00007fc4efdc0000)
 libSM.so.6 => /usr/lib/libSM.so.6 (0x00007fc4efbb8000)
 libICE.so.6 => /usr/lib/libICE.so.6 (0x00007fc4ef99d000)
 libXi.so.6 => /usr/lib/libXi.so.6 (0x00007fc4ef794000)
 libXrender.so.1 => /usr/lib/libXrender.so.1 (0x00007fc4ef58b000)
 libXrandr.so.2 => /usr/lib/libXrandr.so.2 (0x00007fc4ef384000)
 libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x00007fc4ef107000)
 libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0x00007fc4eeed6000)
 libXext.so.6 => /usr/lib/libXext.so.6 (0x00007fc4eecc5000)
 libX11.so.6 => /usr/lib/libX11.so.6 (0x00007fc4ee9c2000)
 libQtCore.so.4 => /usr/local/Trolltech/Qt-4.4.3/lib/libQtCore.so.4 (0x00007fc4ee580000)
 libz.so.1 => /usr/lib/libz.so.1 (0x00007fc4ee369000)
 libgthread-2.0.so.0 => /usr/lib/libgthread-2.0.so.0 (0x00007fc4ee165000)
 librt.so.1 => /lib/librt.so.1 (0x00007fc4edf5c000)
 libglib-2.0.so.0 => /usr/lib/libglib-2.0.so.0 (0x00007fc4edc9c000)
 libdl.so.2 => /lib/libdl.so.2 (0x00007fc4eda98000)
 libpthread.so.0 => /lib/libpthread.so.0 (0x00007fc4ed87c000)
 libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00007fc4ed571000)
 libm.so.6 => /lib/libm.so.6 (0x00007fc4ed2f0000)
 libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00007fc4ed0e2000)
 libc.so.6 => /lib/libc.so.6 (0x00007fc4ecd80000)
 libexpat.so.1 => /usr/lib/libexpat.so.1 (0x00007fc4ecb5c000)
 libXau.so.6 => /usr/lib/libXau.so.6 (0x00007fc4ec95a000)
 libxcb-xlib.so.0 => /usr/lib/libxcb-xlib.so.0 (0x00007fc4ec759000)
 libxcb.so.1 => /usr/lib/libxcb.so.1 (0x00007fc4ec53e000)
 /lib64/ld-linux-x86-64.so.2 (0x00007fc4f12d8000)
 libpcre.so.3 => /usr/lib/libpcre.so.3 (0x00007fc4ec318000)
 libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0x00007fc4ec113000)

Anyway thanks for the help Divius,

Henk

Revision history for this message
Best Dmitry Tantsur (divius) said :
#14

It's probably version incompatibility or broken /usr/lib/libQtSql.so.4 library. As far as I understand you're using x86_64 version, problem may occur because of it (official builds are for i686 platform).
After all you can use new version, by the way it's much less buggy than 0.26;)

Revision history for this message
Henk M (h-g-minderman-kpnplanet) said :
#15

Thanks Divius, that solved my question.