[haiku-bugs] Re: [Haiku] #10490: Can't screenshoot Web+ under libroot_debug.so

  • From: "pulkomandy" <trac@xxxxxxxxxxxx>
  • Date: Wed, 05 Feb 2014 14:13:54 -0000

#10490: Can't screenshoot Web+ under libroot_debug.so
----------------------------------+----------------------------
   Reporter:  humdinger           |      Owner:  axeld
       Type:  bug                 |     Status:  new
   Priority:  normal              |  Milestone:  R1
  Component:  Kits/Interface Kit  |    Version:  R1/Development
 Resolution:                      |   Keywords:
 Blocked By:                      |   Blocking:
Has a Patch:  0                   |   Platform:  All
----------------------------------+----------------------------
Changes (by pulkomandy):

 * owner:  pulkomandy => axeld
 * component:  Applications/WebPositive => Kits/Interface Kit


Comment:

 When trying to do this from terminal:
 {{{
 runtime_loader: /boot/system/lib/libstdc++.r4.so: Could not resolve symbol
 '__ti9exception'
 resolve symbol "__ti9exception" returned: -2147478780
 runtime_loader: /boot/system/lib/libstdc++.r4.so: Troubles relocating:
 Symbol not found
 }}}

 What happens is the LD_PRELOAD is inherited to child processes. In this
 case, it seems the "Screenshot" app ends up being run with the gcc4
 libroot_debug loaded, so it fails to run. We may want to at least catch
 the error and display the error message in an alert.

 This happens in kits/interface/Window.cpp , and Screenshot is run using
 be_roster->Launch() by MIME signature. There is no error checking on the
 return value.

 One level deeper, I don't know if be_roster->Launch() should inherit the
 LD_PRELOAD value from the environment.

--
Ticket URL: <https://dev.haiku-os.org/ticket/10490#comment:1>
Haiku <https://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: