[Rock-dev] LD_LIBRARY_PATH and Qt::UiLoader Segfault
Alexander Duda
Alexander.Duda at dfki.de
Wed Aug 31 14:14:10 CEST 2011
On Wed, 2011-08-31 at 11:59 +0200, Sylvain Joyeux wrote:
> On 08/31/2011 11:18 AM, Alexander Duda wrote:
> > Someone extended the environment variable LD_LIBRARY_PATH (env.sh) with
> > "/lib". The Qt::UiLoader cannot handle this and crashes.
> >
> > Question:
> > -Why was /lib added?
> It is a byproduct of the workaround in autobuild for debian rolling out
> multiarch.
>
> In a nutshell, on Debian, pkg-config and libraries can now get installed
> in /lib/<ARCH> and /usr/lib/<ARCH>
>
> To avoid issues with that, I started adding these to the
> PKG_CONFIG_PATH. I also added them to LD_LIBRARY_PATH as at the time I
> saw no drawbacks.
> > -Has someone else the same problem?
> How can I reproduce ? I tried loading the UILoader and starting the Qt
> designer, and had no problems
in my case it occurs by typing the following into the shell.
. env.sh
irb
require 'Qt4'
require 'qtuiloader'
Qt::UiLoader.new
By removing /lib from LD_LIBRARY_PATH all works fine. I have no idea
what in lib is causing the problem.
Alex
--
Dipl.-Ing. Alexander Duda
Unterwasserrobotik
DFKI Bremen
Robotics Innovation Center
Robert-Hooke-Straße 5
28359 Bremen, Germany
Phone: +49 (0)421 178-456620
Fax: +49 (0)421 178-454150
E-Mail: alexander.duda at dfki.de
Weitere Informationen: http://www.dfki.de/robotik
-----------------------------------------------------------------------
Deutsches Forschungszentrum fuer Kuenstliche Intelligenz GmbH
Firmensitz: Trippstadter Straße 122, D-67663 Kaiserslautern
Geschaeftsfuehrung: Prof. Dr. Dr. h.c. mult. Wolfgang Wahlster
(Vorsitzender) Dr. Walter Olthoff
Vorsitzender des Aufsichtsrats: Prof. Dr. h.c. Hans A. Aukes
Amtsgericht Kaiserslautern, HRB 2313
Sitz der Gesellschaft: Kaiserslautern (HRB 2313)
USt-Id.Nr.: DE 148646973
Steuernummer: 19/673/0060/3
More information about the Rock-dev
mailing list