Thread: How to unset LD_PRELOAD in runtime for a particular process

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Nov 2012
    Posts
    17
    hi it worked perfectly for the first time... but it crashed when i ran it again.......
    this time it was calling my own implimented libc. evenif i had kept RTLD_NEXT in memcpy. both of my codes are in same file. i m also calling strcpy and many other libc functions after this. for strcpy *(char **)(&true_strcpy) will do??????

  2. #2
    Registered User
    Join Date
    Nov 2012
    Posts
    17
    (gdb) where
    #0 0x0000005555561d74 in do_lookup_x () from /lib64/ld.so.1
    #1 0x00000055555622a8 in _dl_lookup_symbol_x () from /lib64/ld.so.1
    #2 0x000000555556ca84 in __dl_runtime_resolve () from /lib64/ld.so.1
    #3 0x000000555556c82c in _dl_runtime_resolve () from /lib64/ld.so.1
    Backtrace stopped: frame did not save the PC

    this is the backtrace information. libc.so it is not able to find that is the problem. any help???
    Last edited by josymadamana; 11-13-2012 at 03:46 AM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. LD_PRELOAD getting ignored .. can anyone tell me why ?
    By NetworkLearning in forum C Programming
    Replies: 2
    Last Post: 09-19-2012, 10:13 PM
  2. how to get process info ( to extract process thread id )
    By umen242 in forum C++ Programming
    Replies: 4
    Last Post: 02-12-2009, 01:08 PM
  3. Runtime formation and execution at runtime
    By Soham in forum C Programming
    Replies: 17
    Last Post: 08-27-2008, 08:45 AM
  4. strange behavior when intercepting read() with LD_PRELOAD
    By *DEAD* in forum Linux Programming
    Replies: 2
    Last Post: 05-25-2008, 03:58 AM
  5. Child Process & Parent Process Data :: Win32
    By kuphryn in forum Windows Programming
    Replies: 5
    Last Post: 09-11-2002, 12:19 PM