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

  • From: "bonefish" <trac@xxxxxxxxxxxx>
  • Date: Wed, 05 Feb 2014 15:09:11 -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
----------------------------------+----------------------------

Comment (by bonefish):

 Replying to [comment:3 pulkomandy]:
 > Yes, that's fine. The problem is we end up running the gcc2-compiled
 Screenshot with the gcc4 version of libroot_debug preloaded.

 OK, I see. I guess the runtime loader could just unload any preloaded
 images that don't match the application ABI.

 > I had this problem in other cases when trying to debug an executable
 that was run by a shell script (for example, libtool sometimes generates
 such things to make it possible to run an application without installing
 the libs it depends on and that are built in the same project). In this
 case, it's hard to set LD_PRELOAD for the executable, without also setting
 it for the shell interpreter that's run first.

 You could create a lib directory alongside the executable to run and
 symlink libroot_debug as libroot there.

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

Other related posts: