** Description changed:

  SRU Details
  
  Impact: Renders debugger unstable and unsuitable for use. Which, of
  course, means that finding other bugs is harder. Severe to all package
  users, minimal to normal users.
  
- Development Branch: Not applicable - this is a packaging/build mistake.
+ Development Branch: Fixed in Debian in the same way that is proposed for the 
SRUs, package merged from
+ Debian now.
  
- Patch: Attached. Named "KipInsight.patch"
+ Patches: attached, see comments.
  
  TEST CASE: 
  1. Install insight (...)
  2. Run Insight (I use "insight" in a terminal)
  3. Click on "View" > "Console"
  4. Type "show solib-absolute-prefix"
  5. See error.
  
  Regression Potential:
  Minimal - changes are made in the way the package is built, which may cause 
other problems, but its unlikely.  Only one line is changed in the build 
configuration.
  
  ================
  Original Description:
  
  Binary package hint: insight
  
  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"
  
  After much probing around and help on the insight mailing list, it turns
  out that it was built wrong.
  
  From people on the mailing list...
  
  > > > > 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 =)
  
  Kip

** Description changed:

  SRU Details
  
  Impact: Renders debugger unstable and unsuitable for use. Which, of
  course, means that finding other bugs is harder. Severe to all package
  users, minimal to normal users.
  
  Development Branch: Fixed in Debian in the same way that is proposed for the 
SRUs, package merged from
  Debian now.
  
  Patches: attached, see comments.
  
  TEST CASE: 
  1. Install insight (...)
  2. Run Insight (I use "insight" in a terminal)
  3. Click on "View" > "Console"
  4. Type "show solib-absolute-prefix"
  5. See error.
  
  Regression Potential:
  Minimal - changes are made in the way the package is built, which may cause 
other problems, but its unlikely.  Only one line is changed in the build 
configuration.
+ 
+ More thorough test case:
+ 
+ $ sudo apt-get install wx2.8-examples
+ $ cd ~/Desktop
+ $ /usr/share/doc/wx2.8-examples/examples/unpack_examples.sh samples/minimal 
Temp
+ $ cp /usr/share/doc/wx2.8-examples/examples/samples/sample.xpm Test
+ $ make -C Test/minimal
+ 
+ Failure case:
+ ====================================
+ $ insight --nw --quiet Test/minimal/minimal
+ Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1".
+ (gdb) r
+ Starting program: /home/kip/Desktop/Test/minimal/minimal
+ 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_core-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/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.
+ ...
+ 
+ Success case:
+ ====================================
+ $ insight --nw --quiet Test/minimal/minimal
+ Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1".
+ (gdb) r
+ Starting program: /home/kip/Desktop/Test/minimal/minimal
+ [Thread debugging using libthread_db enabled]
+ [New Thread 0xb6e48720 (LWP 30966)]
+ 
+ (I'm not positive that the needed example is available on all versions)
  
  ================
  Original Description:
  
  Binary package hint: insight
  
  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"
  
  After much probing around and help on the insight mailing list, it turns
  out that it was built wrong.
  
  From people on the mailing list...
  
  > > > > 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 =)
  
  Kip

-- 
Insight shouldn't be built with --with-sysroot=/usr/share
https://bugs.launchpad.net/bugs/110387
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to