[uClibc 0004074]: LD_PRELOAD doesnt seem to work correctly

bugs at busybox.net bugs at busybox.net
Sat Jul 12 02:28:36 UTC 2008


The following issue has been SUBMITTED. 
====================================================================== 
http://busybox.net/bugs/view.php?id=4074 
====================================================================== 
Reported By:                wolle
Assigned To:                uClibc
====================================================================== 
Project:                    uClibc
Issue ID:                   4074
Category:                   Architecture Specific
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     assigned
====================================================================== 
Date Submitted:             07-11-2008 19:28 PDT
Last Modified:              07-11-2008 19:28 PDT
====================================================================== 
Summary:                    LD_PRELOAD doesnt seem to work correctly
Description: 
hi

i tried to use tsocks ... a tcp socks wrapper ... but the app always
crashed ...

all it does .. it preloads ... the tosckslib

LD_PRELOAD="/usr/lib/libtsocks.so" irssi doesnt work .... 

LD_PRELOAD="/usr/lib/libtsocks.so" irssi
Bus error


after some time i realiced this ....
ldd irssi
        libgmodule-1.2.so.0 => /usr/lib/libgmodule-1.2.so.0 (0x2aaee000)
        libglib-1.2.so.0 => /usr/lib/libglib-1.2.so.0 (0x2ab30000)
        libdl.so.0 => /lib/libdl.so.0 (0x2ab98000)
        libncurses.so.5 => /usr/lib/libncurses.so.5 (0x2abdb000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x2ac5c000)
        libc.so.0 => /lib/libc.so.0 (0x2acab000)
        ld-uClibc.so.0 => /lib/ld-uClibc.so.0 (0x2aaa8000)

when i do this LD_PRELOAD="/usr/lib/libtsocks.so /lib/libuClibc-0.9.29.so"
irssi

irssi comes up nice ....

the same for ctorrent ....
but it also needs uClibc++

ldd ctorrent
        libcrypto.so.0.9.8 => /usr/lib/libcrypto.so.0.9.8 (0x2aaee000)
        libuClibc++.so.0 => /usr/lib/libuClibc++.so.0 (0x2ac30000)
        libc.so.0 => /lib/libc.so.0 (0x2aca2000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x2ad46000)
        libdl.so.0 => /lib/libdl.so.0 (0x2ad95000)
        ld-uClibc.so.0 => /lib/ld-uClibc.so.0 (0x2aaa8000)

LD_PRELOAD="/usr/lib/libtsocks.so /lib/libuClibc-0.9.29.so
/usr/lib/libuClib
c++.so.0" ctorrent


====================================================================== 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
07-11-08 19:28  wolle          New Issue                                    
07-11-08 19:28  wolle          Status                   new => assigned     
07-11-08 19:28  wolle          Assigned To               => uClibc          
======================================================================




More information about the uClibc-cvs mailing list