Menu

#1 linking of libfc.so with LD_PRELOAD

open
nobody
None
5
2002-02-27
2002-02-27
Anonymous
No

In V 1.4 it was possible to link the profiler lib on
demand via LD_PRELOAD. In V3 this seams to cause an
infinite recursion of fc_manager.

Discussion

  • Yannick Perret

    Yannick Perret - 2002-03-07

    Logged In: YES
    user_id=146450

    Please could you be more precise ?

    Send me a concret example of the command
    you type in order to allow me to
    reproduce the problem.

    Thank in advance.

     
  • Nobody/Anonymous

    Logged In: NO

    If I build a instrumentet programm e.g.

    foo.c:
    void main() {}

    gcc -finstrument-functions -o foo foo.c

    then it was posible to link the profiler on demand like this

    LD_PRELOAD=libfnccheck.so foo

    however with v3

    LD_PRELOAD=libfc.so foo

    leads in starting fc_manager over and over again

     
  • Yannick Perret

    Yannick Perret - 2002-03-12

    Logged In: YES
    user_id=146450

    Oh! Yes!
    I see the problem!

    libfc gives a '_init' function, which is called at the very
    start of your program. In my opinion, the linker detects
    several _init (one with the -lfc and one in the preload).
    It is certainly the cause of the problem.

    I will investigate and try to solve this problem.

    I will keep you informed.

    By the way, could you tell me what is the goal of using
    LD_PRELOAD ?

     

Log in to post a comment.