List Info

Thread: Problem Debugging wxWidgets Applications (more)




Problem Debugging wxWidgets Applications (more)
user name
2007-04-24 19:03:17
-------- Original Message --------
Subject: Problem Debugging wxWidgets Applications (more)
Date: Tue, 24 Apr 2007 15:22:26 -0700
From: Kip Warner <kipthevertigo.com>
To: insightsourceware.org

I am running Ubuntu Feisty, GCC 4.1.2, GNU gdb 6.6-debian,
and Insight
6.5.

Whenever I load a wxWidgets application and click run, I get
a pop up
message box that will not go away no matter how many times I
hit ok:

"Cannot initialize thread debugging library: generic
error"

I have also installed libc6-debug too, but to no avail.

$ insight --nw ./slither
GNU gdb 6.5
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public
License, and you are
welcome to change it and/or distribute copies of it under
certain 
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show
warranty" for details.
This GDB was configured as
"i486-linux-gnu"...Using host libthread_db 
library "/lib/tls/i686/cmov/libthread_db.so.1".

(gdb) r
Starting program: /home/kip/Projects/Slither/trunk/slither
warning: Unable to find dynamic linker breakpoint function.
GDB will be unable to debug shared library initializers
and track explicitly loaded dynamic code.
Error while mapping shared library sections:
/usr/lib/libwx_gtk2u_media-2.8.so.0: No such file or
directory.
Error while mapping shared library sections:
/usr/lib/libwx_gtk2u_aui-2.8.so.0: No such file or
directory.
Error while mapping shared library sections:
/usr/lib/libwx_gtk2u_xrc-2.8.so.0: No such file or
directory.
Error while mapping shared library sections:
/usr/lib/libwx_gtk2u_qa-2.8.so.0: No such file or
directory.
Error while mapping shared library sections:
/usr/lib/libwx_gtk2u_html-2.8.so.0: No such file or
directory.
Error while mapping shared library sections:
/usr/lib/libwx_gtk2u_adv-2.8.so.0: No such file or
directory.
Error while mapping shared library sections:
/usr/lib/libwx_gtk2u_core-2.8.so.0: No such file or
directory.
Error while mapping shared library sections:
/usr/lib/libwx_baseu_xml-2.8.so.0: No such file or
directory.
Error while mapping shared library sections:
/usr/lib/libwx_baseu_net-2.8.so.0: No such file or
directory.
Error while mapping shared library sections:
/usr/lib/libwx_baseu-2.8.so.0: No such file or directory.
Error while mapping shared library sections:
/usr/local/lib/libcxcore.so.1: No such file or directory.
Error while mapping shared library sections:
/usr/local/lib/libcv.so.1: No such file or directory.
Error while mapping shared library sections:
/usr/local/lib/libhighgui.so.1: No such file or directory.
Error while mapping shared library sections:
/usr/local/lib/libcvaux.so.1: No such file or directory.
Error while mapping shared library sections:
/usr/lib/libstdc++.so.6: No such file or directory.
Error while mapping shared library sections:
/lib/tls/i686/cmov/libm.so.6: No such file or directory.
Error while mapping shared library sections:
/lib/libgcc_s.so.1: No such file or directory.
Error while mapping shared library sections:
/lib/tls/i686/cmov/libpthread.so.0: No such file or
directory.
Error while mapping shared library sections:
/lib/tls/i686/cmov/libc.so.6: No such file or directory.
Error while mapping shared library sections:
/usr/lib/libz.so.1: No such file or directory.
Error while mapping shared library sections:
/lib/tls/i686/cmov/libdl.so.2: No such file or directory.
Error while mapping shared library sections:
/usr/lib/libgstreamer-0.10.so.0: No such file or directory.
Error while mapping shared library sections:
/usr/lib/libgmodule-2.0.so.0: No such file or directory.
Error while mapping shared library sections:
/usr/lib/libxml2.so.2: No such file or directory.
Error while mapping shared library sections:
/usr/lib/libgconf-2.so.4: No such file or directory.
Error while mapping shared library sections:
/usr/lib/libORBit-2.so.0: No such file or directory.
Error while mapping shared library sections:
/usr/lib/libgthread-2.0.so.0: No such file or directory.
Error while mapping shared library sections:
/lib/tls/i686/cmov/librt.so.1: No such file or directory.
Error while mapping shared library sections:
/usr/lib/libgobject-2.0.so.0: No such file or directory.
Error while mapping shared library sections:
/usr/lib/libglib-2.0.so.0: No such file or directory.
Error while mapping shared library sections:
/usr/lib/libgstinterfaces-0.10.so.0: No such file or
directory.
Error while mapping shared library sections:
/usr/lib/libgtk-x11-2.0.so.0: No such file or directory.
Error while mapping shared library sections:
/usr/lib/libgdk-x11-2.0.so.0: No such file or directory.
Error while mapping shared library sections:
/usr/lib/libatk-1.0.so.0: No such file or directory.
Error while mapping shared library sections:
/usr/lib/libgdk_pixbuf-2.0.so.0: No such file or directory.
Error while mapping shared library sections:
/usr/lib/libfontconfig.so.1: No such file or directory.
Error while mapping shared library sections:
/usr/lib/libXext.so.6: No such file or directory.
Error while mapping shared library sections:
/usr/lib/libXrender.so.1: No such file or directory.
Error while mapping shared library sections:
/usr/lib/libXinerama.so.1: No such file or directory.
Error while mapping shared library sections:
/usr/lib/libXi.so.6: No such file or directory.
Error while mapping shared library sections:
/usr/lib/libXrandr.so.2: No such file or directory.
Error while mapping shared library sections:
/usr/lib/libXcursor.so.1: No such file or directory.
Error while mapping shared library sections:
/usr/lib/libXfixes.so.3: No such file or directory.
Error while mapping shared library sections:
/usr/lib/libpango-1.0.so.0: No such file or directory.
Error while mapping shared library sections:
/usr/lib/libX11.so.6: No such file or directory.
Error while mapping shared library sections:
/usr/lib/libSM.so.6: No such file or directory.
Error while mapping shared library sections:
/usr/lib/libpng12.so.0: No such file or directory.
Error while mapping shared library sections:
/usr/lib/libjpeg.so.62: No such file or directory.
Error while mapping shared library sections:
/usr/lib/libtiff.so.4: No such file or directory.
Error while mapping shared library sections:
/usr/lib/libSDL-1.2.so.0: No such file or directory.
Error while mapping shared library sections:
/usr/lib/libexpat.so.1: No such file or directory.
Error while mapping shared library sections:
/usr/lib/libpangocairo-1.0.so.0: No such file or directory.
Error while mapping shared library sections:
/usr/lib/libcairo.so.2: No such file or directory.
Error while mapping shared library sections:
/usr/lib/libavcodec.so.0d: No such file or directory.
Error while mapping shared library sections:
/usr/lib/libavformat.so.0d: No such file or directory.
Error while mapping shared library sections:
/usr/lib/libraw1394.so.8: No such file or directory.
Error while mapping shared library sections:
/usr/lib/libdc1394_control.so.13: No such file or
directory.
Error while mapping shared library sections:
/lib/ld-linux.so.2: No such file or directory.
Error while mapping shared library sections:
/usr/lib/libfreetype.so.6: No such file or directory.
Error while mapping shared library sections:
/usr/lib/libXau.so.6: No such file or directory.
Error while mapping shared library sections:
/usr/lib/libXdmcp.so.6: No such file or directory.
Error while mapping shared library sections:
/usr/lib/libICE.so.6: No such file or directory.
Error while mapping shared library sections:
/usr/lib/libasound.so.2: No such file or directory.
Error while mapping shared library sections:
/usr/lib/libartsc.so.0: No such file or directory.
Error while mapping shared library sections:
/usr/lib/libesd.so.0: No such file or directory.
Error while mapping shared library sections:
/usr/lib/libaudiofile.so.0: No such file or directory.
Error while mapping shared library sections:
/usr/lib/libaudio.so.2: No such file or directory.
Error while mapping shared library sections:
/usr/lib/libXt.so.6: No such file or directory.
Error while mapping shared library sections:
/usr/lib/libdirectfb-0.9.so.25: No such file or directory.
Error while mapping shared library sections:
/usr/lib/libfusion-0.9.so.25: No such file or directory.
Error while mapping shared library sections:
/usr/lib/libdirect-0.9.so.25: No such file or directory.
Error while mapping shared library sections:
/usr/lib/libaa.so.1: No such file or directory.
Error while mapping shared library sections:
/usr/lib/libpangoft2-1.0.so.0: No such file or directory.
Error while mapping shared library sections:
/usr/lib/libavutil.so.0d: No such file or directory.
Error while mapping shared library sections:
/usr/lib/liba52-0.7.4.so: No such file or directory.
Error while mapping shared library sections:
/usr/lib/libgsm.so.1: No such file or directory.
Error while mapping shared library sections:
/usr/lib/libvorbis.so.0: No such file or directory.
Error while mapping shared library sections:
/usr/lib/libvorbisenc.so.2: No such file or directory.
Error while mapping shared library sections:
/usr/lib/libogg.so.0: No such file or directory.
Error while mapping shared library sections:
/lib/libncurses.so.5: No such file or directory.
Error while mapping shared library sections:
/lib/libslang.so.2: No such file or directory.
Error while mapping shared library sections:
/usr/lib/libgpm.so.1: No such file or directory.
warning: Cannot initialize thread debugging library: generic
error
warning: Cannot initialize thread debugging library: generic
error
warning: Cannot initialize thread debugging library: generic
error
warning: Cannot initialize thread debugging library: generic
error
warning: Cannot initialize thread debugging library: generic
error
warning: Cannot initialize thread debugging library: generic
error
warning: Cannot initialize thread debugging library: generic
error
warning: Cannot initialize thread debugging library: generic
error
warning: Cannot initialize thread debugging library: generic
error
warning: Cannot initialize thread debugging library: generic
error
warning: Cannot initialize thread debugging library: generic
error
warning: Cannot initialize thread debugging library: generic
error
warning: Cannot initialize thread debugging library: generic
error
warning: Cannot initialize thread debugging library: generic
error
warning: Cannot initialize thread debugging library: generic
error
warning: Cannot initialize thread debugging library: generic
error
warning: Cannot initialize thread debugging library: generic
error
warning: Cannot initialize thread debugging library: generic
error
warning: Cannot initialize thread debugging library: generic
error
warning: Cannot initialize thread debugging library: generic
error
warning: Cannot initialize thread debugging library: generic
error
warning: Cannot initialize thread debugging library: generic
error
warning: Cannot initialize thread debugging library: generic
error
warning: Cannot initialize thread debugging library: generic
error
warning: Cannot initialize thread debugging library: generic
error
warning: Cannot initialize thread debugging library: generic
error
warning: Cannot initialize thread debugging library: generic
error
warning: Cannot initialize thread debugging library: generic
error
warning: Cannot initialize thread debugging library: generic
error
warning: Cannot initialize thread debugging library: generic
error
warning: Cannot initialize thread debugging library: generic
error
warning: Cannot initialize thread debugging library: generic
error
warning: Cannot initialize thread debugging library: generic
error
warning: Cannot initialize thread debugging library: generic
error
warning: Cannot initialize thread debugging library: generic
error
warning: Cannot initialize thread debugging library: generic
error
warning: Cannot initialize thread debugging library: generic
error
warning: Cannot initialize thread debugging library: generic
error
warning: Cannot initialize thread debugging library: generic
error
warning: Cannot initialize thread debugging library: generic
error
warning: Cannot initialize thread debugging library: generic
error
warning: Cannot initialize thread debugging library: generic
error
warning: Cannot initialize thread debugging library: generic
error
warning: Cannot initialize thread debugging library: generic
error
warning: Cannot initialize thread debugging library: generic
error
warning: Cannot initialize thread debugging library: generic
error
warning: Cannot initialize thread debugging library: generic
error
warning: Cannot initialize thread debugging library: generic
error
warning: Cannot initialize thread debugging library: generic
error
warning: Cannot initialize thread debugging library: generic
error
warning: Cannot initialize thread debugging library: generic
error
warning: Cannot initialize thread debugging library: generic
error
warning: Cannot initialize thread debugging library: generic
error
warning: Cannot initialize thread debugging library: generic
error
warning: Cannot initialize thread debugging library: generic
error
warning: Cannot initialize thread debugging library: generic
error
warning: Cannot initialize thread debugging library: generic
error
warning: Cannot initialize thread debugging library: generic
error
warning: Cannot initialize thread debugging library: generic
error
warning: Cannot initialize thread debugging library: generic
error
warning: Cannot initialize thread debugging library: generic
error
warning: Cannot initialize thread debugging library: generic
error
warning: Cannot initialize thread debugging library: generic
error
warning: Cannot initialize thread debugging library: generic
error
warning: Cannot initialize thread debugging library: generic
error
warning: Cannot initialize thread debugging library: generic
error
warning: Cannot initialize thread debugging library: generic
error
warning: Cannot initialize thread debugging library: generic
error
warning: Cannot initialize thread debugging library: generic
error
warning: Cannot initialize thread debugging library: generic
error

Program exited normally.
(gdb)

-- 
Kip Warner
Vertigo
http://TheVertigo.com


Re: Problem Debugging wxWidgets Applications (more)
country flaguser name
United States
2007-04-24 20:27:57
On Tue, Apr 24, 2007 at 05:03:17PM -0700, Keith Seitz
wrote:
> -------- Original Message --------
> Subject: Problem Debugging wxWidgets Applications
(more)
> Date: Tue, 24 Apr 2007 15:22:26 -0700
> From: Kip Warner <kipthevertigo.com>
> To: insightsourceware.org
> 
> I am running Ubuntu Feisty, GCC 4.1.2, GNU gdb
6.6-debian, and Insight
> 6.5.
> 
> Whenever I load a wxWidgets application and click run,
I get a pop up
> message box that will not go away no matter how many
times I hit ok:
> 
> "Cannot initialize thread debugging library:
generic error"
> 
> I have also installed libc6-debug too, but to no
avail.
> 
> $ insight --nw ./slither
> GNU gdb 6.5
> Copyright (C) 2006 Free Software Foundation, Inc.
> GDB is free software, covered by the GNU General Public
License, and you are
> welcome to change it and/or distribute copies of it
under certain conditions.
> Type "show copying" to see the conditions.
> There is absolutely no warranty for GDB.  Type
"show warranty" for details.
> This GDB was configured as
"i486-linux-gnu"...Using host libthread_db library

> "/lib/tls/i686/cmov/libthread_db.so.1".
> 
> (gdb) r
> Starting program:
/home/kip/Projects/Slither/trunk/slither
> warning: Unable to find dynamic linker breakpoint
function.
> GDB will be unable to debug shared library
initializers
> and track explicitly loaded dynamic code.
> Error while mapping shared library sections:
> /usr/lib/libwx_gtk2u_media-2.8.so.0: No such file or
directory.

Looks to me like something in this build of Insight is
setting the
shared library search prefix.  I've had lots of bugs of
people failing
to set it, but this may be the first time I've seen it set
unnecessarily... does "show solib-absolute-prefix"
show anything
enlightening?


-- 
Daniel Jacobowitz
CodeSourcery

Re: Problem Debugging wxWidgets Applications (more)
country flaguser name
Canada
2007-04-24 20:33:33
On Tue, 2007-24-04 at 21:27 -0400, Daniel Jacobowitz wrote:
> On Tue, Apr 24, 2007 at 05:03:17PM -0700, Keith Seitz
wrote:
> > Error while mapping shared library sections:
> > /usr/lib/libwx_gtk2u_media-2.8.so.0: No such file
or directory.
> 
> Looks to me like something in this build of Insight is
setting the
> shared library search prefix.  I've had lots of bugs of
people failing
> to set it, but this may be the first time I've seen it
set
> unnecessarily... does "show
solib-absolute-prefix" show anything
> enlightening?

(gdb) show solib-absolute-prefix
Prefix for loading absolute shared library symbol files is
"/usr/share".

Any help?

-- 
Kip Warner
Vertigo
http://TheVertigo.com


Re: Problem Debugging wxWidgets Applications (more)
country flaguser name
United States
2007-04-24 21:30:53
On Tue, Apr 24, 2007 at 06:33:33PM -0700, Kip Warner wrote:
> On Tue, 2007-24-04 at 21:27 -0400, Daniel Jacobowitz
wrote:
> > On Tue, Apr 24, 2007 at 05:03:17PM -0700, Keith
Seitz wrote:
> > > Error while mapping shared library sections:
> > > /usr/lib/libwx_gtk2u_media-2.8.so.0: No such
file or directory.
> > 
> > Looks to me like something in this build of
Insight is setting the
> > shared library search prefix.  I've had lots of
bugs of people failing
> > to set it, but this may be the first time I've
seen it set
> > unnecessarily... does "show
solib-absolute-prefix" show anything
> > enlightening?
> 
> (gdb) show solib-absolute-prefix
> Prefix for loading absolute shared library symbol files
is "/usr/share".
> 
> Any help?

When you (or whoever else) built that Insight, they must
have passed
--with-sysroot=/usr/share.  I can't guess why, but it's
wrong.  Try
again without that, or manually "set
solib-absolute-prefix /."
(there's no way to set it to an empty string but that's
close enough).

-- 
Daniel Jacobowitz
CodeSourcery

Re: Problem Debugging wxWidgets Applications (more)
country flaguser name
Canada
2007-04-24 21:41:21
On Tue, 2007-24-04 at 22:30 -0400, Daniel Jacobowitz wrote:
> On Tue, Apr 24, 2007 at 06:33:33PM -0700, Kip Warner
wrote:
> > On Tue, 2007-24-04 at 21:27 -0400, Daniel
Jacobowitz wrote:
> > > On Tue, Apr 24, 2007 at 05:03:17PM -0700,
Keith Seitz wrote:
> > > > Error while mapping shared library
sections:
> > > > /usr/lib/libwx_gtk2u_media-2.8.so.0: No
such file or directory.
> > > 
> > > Looks to me like something in this build of
Insight is setting the
> > > shared library search prefix.  I've had lots
of bugs of people failing
> > > to set it, but this may be the first time
I've seen it set
> > > unnecessarily... does "show
solib-absolute-prefix" show anything
> > > enlightening?
> > 
> > (gdb) show solib-absolute-prefix
> > Prefix for loading absolute shared library symbol
files is "/usr/share".
> > 
> > Any help?
> 
> When you (or whoever else) built that Insight, they
must have passed
> --with-sysroot=/usr/share.  I can't guess why, but it's
wrong.  Try
> again without that, or manually "set
solib-absolute-prefix /."
> (there's no way to set it to an empty string but that's
close enough).

It works now =)

Should I post this on the Ubuntu tracker for whoever the
package
maintainer for the Feisty insight package is?

-- 
Kip Warner
Vertigo
http://TheVertigo.com


Re: Problem Debugging wxWidgets Applications (more)
country flaguser name
United States
2007-04-25 06:20:08
On Tue, Apr 24, 2007 at 07:41:21PM -0700, Kip Warner wrote:
> Should I post this on the Ubuntu tracker for whoever
the package
> maintainer for the Feisty insight package is?

Yes, probably.

-- 
Daniel Jacobowitz
CodeSourcery

[1-6]

about | contact  Other archives ( Real Estate discussion Medical topics )