Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - librcheck.so: (7 Items)
   
librcheck.so  
Hi *,
we tried to use the librcheck.so from the patch for IDE but we run into the same problem as before. What I'm doing wrong
?

# use -i /mnt/app/armle/usr/lib/librcheck.so.1
NAME=librcheck.so
DESCRIPTION=memory analysis malloc library DATE=2010/08/09-10:52:02-EDT STATE=Experimental HOST=elaskavaia-linux USER=
elaskavaia

/mnt/app/armle/usr/lib/librcheck.so is a symbolic link to /mnt/app/armle/usr/lib/librcheck.so.1 :

# ls -als /mnt/app/armle/usr/lib/librcheck.*
       1 lrwxrwxrwx  1 root      root             14 Jan 01 01:27 /mnt/app/armle/usr/lib/librcheck.so -> librcheck.so.1
     419 -rwxr-xr-x  1 root      root         214409 Mar 10  2011 /mnt/app/armle/usr/lib/librcheck.so.1
     376 -rwxrwxrwx  1 root      root         192347 Mar 03  2011 /mnt/app/armle/usr/lib/librcheck.so.1.old
     376 -rwxrwxrwx  1 root      root         192347 Mar 03  2011 /mnt/app/armle/usr/lib/librcheck.so.old

An attempt with a binary named slogprint we wrote and LD_DEBUG-Outputs:


# LD_PRELOAD=librcheck.so LD_LIBRARY_PATH=/armle/lib/:/armle/usr/lib:/eso/lib MALLOC_FILE=/tmp/test.rmt LD_DEBUG=all ./
slogprint "bla bla"
libs: load_object: attempt load of librcheck.so
debug: find_file:1151: name=librcheck.so libpath=/armle/lib/:/armle/usr/lib:/eso/lib rpath=NULL
debug: searchpath:1095: name=librcheck.so path= amode=4 bufsize=1025
debug: searchpath:1095: name=librcheck.so path=/armle/lib/:/armle/usr/lib:/eso/lib amode=4 bufsize=1025
debug: searchpath:1119: trying /armle/lib/librcheck.so
debug: searchpath:1130:/armle/lib/librcheck.so: failed (No such file or directory)
debug: searchpath:1119: trying /armle/usr/lib/librcheck.so
debug: searchpath:1124:/armle/usr/lib/librcheck.so: success
libs: /armle/usr/lib/librcheck.so: found; real path:/mnt/app/armle/usr/lib/librcheck.so.1
libs: load_elf32: loaded lib at addr 78000000(text) 78026150(data)
libs: object librcheck.so loaded; real soname: librcheck.so.1 loaded from: /mnt/app/armle/usr/lib/librcheck.so.1
unknown symbol: main
ldd:FATAL: Could not resolve all symbols

cheers,
Peter
Re: librcheck.so  
What runtime is this? 650? There was a bug with this main symbol, but I though it has been fixed in that patch

On 03/10/2011 07:53 AM, Peter Weber wrote:
> Hi *,
> we tried to use the librcheck.so from the patch for IDE but we run into the same problem as before. What I'm doing 
wrong?
> 
> # use -i /mnt/app/armle/usr/lib/librcheck.so.1
> NAME=librcheck.so
> DESCRIPTION=memory analysis malloc library DATE=2010/08/09-10:52:02-EDT STATE=Experimental HOST=elaskavaia-linux USER=
elaskavaia
> 
> /mnt/app/armle/usr/lib/librcheck.so is a symbolic link to /mnt/app/armle/usr/lib/librcheck.so.1 :
> 
> # ls -als /mnt/app/armle/usr/lib/librcheck.*
>        1 lrwxrwxrwx  1 root      root             14 Jan 01 01:27 /mnt/app/armle/usr/lib/librcheck.so -> librcheck.so.
1
>      419 -rwxr-xr-x  1 root      root         214409 Mar 10  2011 /mnt/app/armle/usr/lib/librcheck.so.1
>      376 -rwxrwxrwx  1 root      root         192347 Mar 03  2011 /mnt/app/armle/usr/lib/librcheck.so.1.old
>      376 -rwxrwxrwx  1 root      root         192347 Mar 03  2011 /mnt/app/armle/usr/lib/librcheck.so.old
> 
> An attempt with a binary named slogprint we wrote and LD_DEBUG-Outputs:
> 
> 
> # LD_PRELOAD=librcheck.so LD_LIBRARY_PATH=/armle/lib/:/armle/usr/lib:/eso/lib MALLOC_FILE=/tmp/test.rmt LD_DEBUG=all .
/slogprint "bla bla"
> libs: load_object: attempt load of librcheck.so
> debug: find_file:1151: name=librcheck.so libpath=/armle/lib/:/armle/usr/lib:/eso/lib rpath=NULL
> debug: searchpath:1095: name=librcheck.so path= amode=4 bufsize=1025
> debug: searchpath:1095: name=librcheck.so path=/armle/lib/:/armle/usr/lib:/eso/lib amode=4 bufsize=1025
> debug: searchpath:1119: trying /armle/lib/librcheck.so
> debug: searchpath:1130:/armle/lib/librcheck.so: failed (No such file or directory)
> debug: searchpath:1119: trying /armle/usr/lib/librcheck.so
> debug: searchpath:1124:/armle/usr/lib/librcheck.so: success
> libs: /armle/usr/lib/librcheck.so: found; real path:/mnt/app/armle/usr/lib/librcheck.so.1
> libs: load_elf32: loaded lib at addr 78000000(text) 78026150(data)
> libs: object librcheck.so loaded; real soname: librcheck.so.1 loaded from: /mnt/app/armle/usr/lib/librcheck.so.1
> unknown symbol: main
> ldd:FATAL: Could not resolve all symbols
> 
> cheers,
> Peter
> 
> 
> 
> 
> _______________________________________________
> 
> General
> http://community.qnx.com/sf/go/post83890
> 
Re: librcheck.so  
> What runtime is this? 650? There was a bug with this main symbol, but I though
>  it has been fixed in that patch

yes 6.5.0 incl. libc patch.
armv7le (even if the target directory doesn't look like armv7 but it is v7)

Any workaround?



> 
> On 03/10/2011 07:53 AM, Peter Weber wrote:
> > Hi *,
> > we tried to use the librcheck.so from the patch for IDE but we run into the 
> same problem as before. What I'm doing wrong?
> > 
> > # use -i /mnt/app/armle/usr/lib/librcheck.so.1
> > NAME=librcheck.so
> > DESCRIPTION=memory analysis malloc library DATE=2010/08/09-10:52:02-EDT 
> STATE=Experimental HOST=elaskavaia-linux USER=elaskavaia
> > 
> > /mnt/app/armle/usr/lib/librcheck.so is a symbolic link to /mnt/app/armle/usr
> /lib/librcheck.so.1 :
> > 
> > # ls -als /mnt/app/armle/usr/lib/librcheck.*
> >        1 lrwxrwxrwx  1 root      root             14 Jan 01 01:27 /mnt/app/
> armle/usr/lib/librcheck.so -> librcheck.so.1
> >      419 -rwxr-xr-x  1 root      root         214409 Mar 10  2011 /mnt/app/
> armle/usr/lib/librcheck.so.1
> >      376 -rwxrwxrwx  1 root      root         192347 Mar 03  2011 /mnt/app/
> armle/usr/lib/librcheck.so.1.old
> >      376 -rwxrwxrwx  1 root      root         192347 Mar 03  2011 /mnt/app/
> armle/usr/lib/librcheck.so.old
> > 
> > An attempt with a binary named slogprint we wrote and LD_DEBUG-Outputs:
> > 
> > 
> > # LD_PRELOAD=librcheck.so LD_LIBRARY_PATH=/armle/lib/:/armle/usr/lib:/eso/
> lib MALLOC_FILE=/tmp/test.rmt LD_DEBUG=all ./slogprint "bla bla"
> > libs: load_object: attempt load of librcheck.so
> > debug: find_file:1151: name=librcheck.so libpath=/armle/lib/:/armle/usr/lib:
> /eso/lib rpath=NULL
> > debug: searchpath:1095: name=librcheck.so path= amode=4 bufsize=1025
> > debug: searchpath:1095: name=librcheck.so path=/armle/lib/:/armle/usr/lib:/
> eso/lib amode=4 bufsize=1025
> > debug: searchpath:1119: trying /armle/lib/librcheck.so
> > debug: searchpath:1130:/armle/lib/librcheck.so: failed (No such file or 
> directory)
> > debug: searchpath:1119: trying /armle/usr/lib/librcheck.so
> > debug: searchpath:1124:/armle/usr/lib/librcheck.so: success
> > libs: /armle/usr/lib/librcheck.so: found; real path:/mnt/app/armle/usr/lib/
> librcheck.so.1
> > libs: load_elf32: loaded lib at addr 78000000(text) 78026150(data)
> > libs: object librcheck.so loaded; real soname: librcheck.so.1 loaded from: /
> mnt/app/armle/usr/lib/librcheck.so.1
> > unknown symbol: main
> > ldd:FATAL: Could not resolve all symbols
> > 
> > cheers,
> > Peter
> > 
> > 
> > 
> > 
> > _______________________________________________
> > 
> > General
> > http://community.qnx.com/sf/go/post83890
> > 


Re: librcheck.so  
Can you link to it statically?

On 03/10/2011 08:33 AM, Peter Weber wrote:
>> What runtime is this? 650? There was a bug with this main symbol, but I though
>>  it has been fixed in that patch
> 
> yes 6.5.0 incl. libc patch.
> armv7le (even if the target directory doesn't look like armv7 but it is v7)
> 
> Any workaround?
> 
> 
> 
>>
>> On 03/10/2011 07:53 AM, Peter Weber wrote:
>>> Hi *,
>>> we tried to use the librcheck.so from the patch for IDE but we run into the 
>> same problem as before. What I'm doing wrong?
>>>
>>> # use -i /mnt/app/armle/usr/lib/librcheck.so.1
>>> NAME=librcheck.so
>>> DESCRIPTION=memory analysis malloc library DATE=2010/08/09-10:52:02-EDT 
>> STATE=Experimental HOST=elaskavaia-linux USER=elaskavaia
>>>
>>> /mnt/app/armle/usr/lib/librcheck.so is a symbolic link to /mnt/app/armle/usr
>> /lib/librcheck.so.1 :
>>>
>>> # ls -als /mnt/app/armle/usr/lib/librcheck.*
>>>        1 lrwxrwxrwx  1 root      root             14 Jan 01 01:27 /mnt/app/
>> armle/usr/lib/librcheck.so -> librcheck.so.1
>>>      419 -rwxr-xr-x  1 root      root         214409 Mar 10  2011 /mnt/app/
>> armle/usr/lib/librcheck.so.1
>>>      376 -rwxrwxrwx  1 root      root         192347 Mar 03  2011 /mnt/app/
>> armle/usr/lib/librcheck.so.1.old
>>>      376 -rwxrwxrwx  1 root      root         192347 Mar 03  2011 /mnt/app/
>> armle/usr/lib/librcheck.so.old
>>>
>>> An attempt with a binary named slogprint we wrote and LD_DEBUG-Outputs:
>>>
>>>
>>> # LD_PRELOAD=librcheck.so LD_LIBRARY_PATH=/armle/lib/:/armle/usr/lib:/eso/
>> lib MALLOC_FILE=/tmp/test.rmt LD_DEBUG=all ./slogprint "bla bla"
>>> libs: load_object: attempt load of librcheck.so
>>> debug: find_file:1151: name=librcheck.so libpath=/armle/lib/:/armle/usr/lib:
>> /eso/lib rpath=NULL
>>> debug: searchpath:1095: name=librcheck.so path= amode=4 bufsize=1025
>>> debug: searchpath:1095: name=librcheck.so path=/armle/lib/:/armle/usr/lib:/
>> eso/lib amode=4 bufsize=1025
>>> debug: searchpath:1119: trying /armle/lib/librcheck.so
>>> debug: searchpath:1130:/armle/lib/librcheck.so: failed (No such file or 
>> directory)
>>> debug: searchpath:1119: trying /armle/usr/lib/librcheck.so
>>> debug: searchpath:1124:/armle/usr/lib/librcheck.so: success
>>> libs: /armle/usr/lib/librcheck.so: found; real path:/mnt/app/armle/usr/lib/
>> librcheck.so.1
>>> libs: load_elf32: loaded lib at addr 78000000(text) 78026150(data)
>>> libs: object librcheck.so loaded; real soname: librcheck.so.1 loaded from: /
>> mnt/app/armle/usr/lib/librcheck.so.1
>>> unknown symbol: main
>>> ldd:FATAL: Could not resolve all symbols
>>>
>>> cheers,
>>> Peter
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>>
>>> General
>>> http://community.qnx.com/sf/go/post83890
>>>
> 
> 
> 
> 
> 
> 
> _______________________________________________
> 
> General
> http://community.qnx.com/sf/go/post83893
> 
Re: librcheck.so  
found it:
ntoarmv7-nm slogprint | grep main
 0010159c t main

main was hidden due to visibility=hidden compilation.

Problem solved.
Thanks Elena

cheers,
Peter

> Can you link to it statically?
> 
> On 03/10/2011 08:33 AM, Peter Weber wrote:
> >> What runtime is this? 650? There was a bug with this main symbol, but I 
> though
> >>  it has been fixed in that patch
> > 
> > yes 6.5.0 incl. libc patch.
> > armv7le (even if the target directory doesn't look like armv7 but it is v7)
> > 
> > Any workaround?
> > 
> > 
> > 
> >>
> >> On 03/10/2011 07:53 AM, Peter Weber wrote:
> >>> Hi *,
> >>> we tried to use the librcheck.so from the patch for IDE but we run into 
> the 
> >> same problem as before. What I'm doing wrong?
> >>>
> >>> # use -i /mnt/app/armle/usr/lib/librcheck.so.1
> >>> NAME=librcheck.so
> >>> DESCRIPTION=memory analysis malloc library DATE=2010/08/09-10:52:02-EDT 
> >> STATE=Experimental HOST=elaskavaia-linux USER=elaskavaia
> >>>
> >>> /mnt/app/armle/usr/lib/librcheck.so is a symbolic link to /mnt/app/armle/
> usr
> >> /lib/librcheck.so.1 :
> >>>
> >>> # ls -als /mnt/app/armle/usr/lib/librcheck.*
> >>>        1 lrwxrwxrwx  1 root      root             14 Jan 01 01:27 /mnt/app
> /
> >> armle/usr/lib/librcheck.so -> librcheck.so.1
> >>>      419 -rwxr-xr-x  1 root      root         214409 Mar 10  2011 /mnt/app
> /
> >> armle/usr/lib/librcheck.so.1
> >>>      376 -rwxrwxrwx  1 root      root         192347 Mar 03  2011 /mnt/app
> /
> >> armle/usr/lib/librcheck.so.1.old
> >>>      376 -rwxrwxrwx  1 root      root         192347 Mar 03  2011 /mnt/app
> /
> >> armle/usr/lib/librcheck.so.old
> >>>
> >>> An attempt with a binary named slogprint we wrote and LD_DEBUG-Outputs:
> >>>
> >>>
> >>> # LD_PRELOAD=librcheck.so LD_LIBRARY_PATH=/armle/lib/:/armle/usr/lib:/eso/
> 
> >> lib MALLOC_FILE=/tmp/test.rmt LD_DEBUG=all ./slogprint "bla bla"
> >>> libs: load_object: attempt load of librcheck.so
> >>> debug: find_file:1151: name=librcheck.so libpath=/armle/lib/:/armle/usr/
> lib:
> >> /eso/lib rpath=NULL
> >>> debug: searchpath:1095: name=librcheck.so path= amode=4 bufsize=1025
> >>> debug: searchpath:1095: name=librcheck.so path=/armle/lib/:/armle/usr/lib:
> /
> >> eso/lib amode=4 bufsize=1025
> >>> debug: searchpath:1119: trying /armle/lib/librcheck.so
> >>> debug: searchpath:1130:/armle/lib/librcheck.so: failed (No such file or 
> >> directory)
> >>> debug: searchpath:1119: trying /armle/usr/lib/librcheck.so
> >>> debug: searchpath:1124:/armle/usr/lib/librcheck.so: success
> >>> libs: /armle/usr/lib/librcheck.so: found; real path:/mnt/app/armle/usr/lib
> /
> >> librcheck.so.1
> >>> libs: load_elf32: loaded lib at addr 78000000(text) 78026150(data)
> >>> libs: object librcheck.so loaded; real soname: librcheck.so.1 loaded from:
>  /
> >> mnt/app/armle/usr/lib/librcheck.so.1
> >>> unknown symbol: main
> >>> ldd:FATAL: Could not resolve all symbols
> >>>
> >>> cheers,
> >>> Peter
> >>>
> >>>
> >>>
> >>>
> >>> _______________________________________________
> >>>
> >>> General
> >>> http://community.qnx.com/sf/go/post83890
> >>>
> > 
> > 
> > 
>...
Re: librcheck.so  
You recompiled it?

On 03/10/2011 09:42 AM, Peter Weber wrote:
> found it:
> ntoarmv7-nm slogprint | grep main
>  0010159c t main
> 
> main was hidden due to visibility=hidden compilation.
> 
> Problem solved.
> Thanks Elena
> 
> cheers,
> Peter
> 
>> Can you link to it statically?
>>
>> On 03/10/2011 08:33 AM, Peter Weber wrote:
>>>> What runtime is this? 650? There was a bug with this main symbol, but I 
>> though
>>>>  it has been fixed in that patch
>>>
>>> yes 6.5.0 incl. libc patch.
>>> armv7le (even if the target directory doesn't look like armv7 but it is v7)
>>>
>>> Any workaround?
>>>
>>>
>>>
>>>>
>>>> On 03/10/2011 07:53 AM, Peter Weber wrote:
>>>>> Hi *,
>>>>> we tried to use the librcheck.so from the patch for IDE but we run into 
>> the 
>>>> same problem as before. What I'm doing wrong?
>>>>>
>>>>> # use -i /mnt/app/armle/usr/lib/librcheck.so.1
>>>>> NAME=librcheck.so
>>>>> DESCRIPTION=memory analysis malloc library DATE=2010/08/09-10:52:02-EDT 
>>>> STATE=Experimental HOST=elaskavaia-linux USER=elaskavaia
>>>>>
>>>>> /mnt/app/armle/usr/lib/librcheck.so is a symbolic link to /mnt/app/armle/
>> usr
>>>> /lib/librcheck.so.1 :
>>>>>
>>>>> # ls -als /mnt/app/armle/usr/lib/librcheck.*
>>>>>        1 lrwxrwxrwx  1 root      root             14 Jan 01 01:27 /mnt/app
>> /
>>>> armle/usr/lib/librcheck.so -> librcheck.so.1
>>>>>      419 -rwxr-xr-x  1 root      root         214409 Mar 10  2011 /mnt/app
>> /
>>>> armle/usr/lib/librcheck.so.1
>>>>>      376 -rwxrwxrwx  1 root      root         192347 Mar 03  2011 /mnt/app
>> /
>>>> armle/usr/lib/librcheck.so.1.old
>>>>>      376 -rwxrwxrwx  1 root      root         192347 Mar 03  2011 /mnt/app
>> /
>>>> armle/usr/lib/librcheck.so.old
>>>>>
>>>>> An attempt with a binary named slogprint we wrote and LD_DEBUG-Outputs:
>>>>>
>>>>>
>>>>> # LD_PRELOAD=librcheck.so LD_LIBRARY_PATH=/armle/lib/:/armle/usr/lib:/eso/
>>
>>>> lib MALLOC_FILE=/tmp/test.rmt LD_DEBUG=all ./slogprint "bla bla"
>>>>> libs: load_object: attempt load of librcheck.so
>>>>> debug: find_file:1151: name=librcheck.so libpath=/armle/lib/:/armle/usr/
>> lib:
>>>> /eso/lib rpath=NULL
>>>>> debug: searchpath:1095: name=librcheck.so path= amode=4 bufsize=1025
>>>>> debug: searchpath:1095: name=librcheck.so path=/armle/lib/:/armle/usr/lib:
>> /
>>>> eso/lib amode=4 bufsize=1025
>>>>> debug: searchpath:1119: trying /armle/lib/librcheck.so
>>>>> debug: searchpath:1130:/armle/lib/librcheck.so: failed (No such file or 
>>>> directory)
>>>>> debug: searchpath:1119: trying /armle/usr/lib/librcheck.so
>>>>> debug: searchpath:1124:/armle/usr/lib/librcheck.so: success
>>>>> libs: /armle/usr/lib/librcheck.so: found; real path:/mnt/app/armle/usr/lib
>> /
>>>> librcheck.so.1
>>>>> libs: load_elf32: loaded lib at addr 78000000(text) 78026150(data)
>>>>> libs: object librcheck.so loaded; real soname: librcheck.so.1 loaded from:
>>  /
>>>> mnt/app/armle/usr/lib/librcheck.so.1
>>>>> unknown symbol: main
>>>>> ldd:FATAL: Could not resolve all...
Re: librcheck.so  
yep.