dlopen/dlclose caused memory leak?

2009-03-11 Thread czy



Hi,
 
I used uclibc-0.9.29,
 
/*dltest.c*/
 #include stdio.h
 #include dlfcn.h

 #define MYLIB /flash/lib/libdev.so

 int main (void){
   void *handle;
   while (1){
   handle = dlopen (MYLIB, RTLD_LAZY);
   if (!handle){
   fputs (dlerror(), stderr);
   exit (1);
 }
   dlclose (handle);
 }
 }
/*dltest.c*/
 
Pls comment,
Thanks,
czy

 

_
MSN 表情魔法书,改变你的对话时代!
http://im.live.cn/emoticons/___
uClibc mailing list
uClibc@uclibc.org
http://lists.busybox.net/mailman/listinfo/uclibc

Re: dlopen/dlclose caused memory leak?

2009-03-11 Thread Joakim Tjernlund
 Hi,
 
 I used uclibc-0.9.29,
 
 /*dltest.c*/
  #include stdio.h
  #include dlfcn.h
 
  #define MYLIB /flash/lib/libdev.so
 
  int main (void){
void *handle;
while (1){
handle = dlopen (MYLIB, RTLD_LAZY);
if (!handle){
fputs (dlerror(), stderr);
exit (1);
  }
dlclose (handle);
  }
  }
 /*dltest.c*/
 
 Pls comment,
 Thanks,
 czy

I remember plugging a memory leak in this area, probably
after 0.9.29, try a newer uClibc version.

 Jocke
___
uClibc mailing list
uClibc@uclibc.org
http://lists.busybox.net/mailman/listinfo/uclibc


RE: dlopen/dlclose caused memory leak?

2009-03-11 Thread czy

Do you mean the change of dl_cleanup as below:

http://sources.busybox.net/index.py/trunk/uClibc/ldso/libdl/libdl.c?r1=23552r2=23853diff_format=h

 

Thanks,
 
 To: xjt...@hotmail.com
 CC: uclibc@uclibc.org
 Subject: Re: dlopen/dlclose caused memory leak?
 From: joakim.tjernl...@transmode.se
 Date: Wed, 11 Mar 2009 13:06:47 +0100
 
  Hi,
  
  I used uclibc-0.9.29,
  
  /*dltest.c*/
   #include stdio.h
   #include dlfcn.h
  
   #define MYLIB /flash/lib/libdev.so
  
   int main (void){
   void *handle;
   while (1){
   handle = dlopen (MYLIB, RTLD_LAZY);
   if (!handle){
   fputs (dlerror(), stderr);
   exit (1);
   }
   dlclose (handle);
   }
   }
  /*dltest.c*/
  
  Pls comment,
  Thanks,
  czy
 
 I remember plugging a memory leak in this area, probably
 after 0.9.29, try a newer uClibc version.
 
 Jocke

_
梦幻K图,百变造型,让你的照片与众不同,快来MClub试试吧!
http://club.msn.cn/?form=3___
uClibc mailing list
uClibc@uclibc.org
http://lists.busybox.net/mailman/listinfo/uclibc

RE: dlopen/dlclose caused memory leak?

2009-03-11 Thread Joakim Tjernlund
No, I think it was this one:
http://sources.busybox.net/index.py/trunk/uClibc/ldso/ldso/dl-elf.c?r1=14417r2=14840

czy xjt...@hotmail.com wrote on 11/03/2009 13:37:56:
 
 Do you mean the change of dl_cleanup as below:
 
http://sources.busybox.net/index.py/trunk/uClibc/ldso/libdl/libdl.c?r1=23552r2=23853diff_format=h

 
 Thanks,
 
  To: xjt...@hotmail.com
  CC: uclibc@uclibc.org
  Subject: Re: dlopen/dlclose caused memory leak?
  From: joakim.tjernl...@transmode.se
  Date: Wed, 11 Mar 2009 13:06:47 +0100
  
   Hi,
   
   I used uclibc-0.9.29,
   
   /*dltest.c*/
#include stdio.h
#include dlfcn.h
   
#define MYLIB /flash/lib/libdev.so
   
int main (void){
void *handle;
while (1){
handle = dlopen (MYLIB, RTLD_LAZY);
if (!handle){
fputs (dlerror(), stderr);
exit (1);
}
dlclose (handle);
}
}
   /*dltest.c*/
   
   Pls comment,
   Thanks,
   czy
  
  I remember plugging a memory leak in this area, probably
  after 0.9.29, try a newer uClibc version.
  
  Jocke
 
 把MSN装进手机,更多聊天乐趣等你挖掘! 立刻下载!
___
uClibc mailing list
uClibc@uclibc.org
http://lists.busybox.net/mailman/listinfo/uclibc

RE: dlopen/dlclose caused memory leak?

2009-03-11 Thread czy

Thanks for your quick reply,

This one has been applied to version 0.9.29
 
 To: xjt...@hotmail.com
 CC: uclibc@uclibc.org
 Subject: RE: dlopen/dlclose caused memory leak?
 From: joakim.tjernl...@transmode.se
 Date: Wed, 11 Mar 2009 13:47:50 +0100
 
 No, I think it was this one:
 http://sources.busybox.net/index.py/trunk/uClibc/ldso/ldso/dl-elf.c?r1=14417r2=14840
 
 czy xjt...@hotmail.com wrote on 11/03/2009 13:37:56:
  
  Do you mean the change of dl_cleanup as below:
  
 http://sources.busybox.net/index.py/trunk/uClibc/ldso/libdl/libdl.c?r1=23552r2=23853diff_format=h
 
  
  Thanks,
  
   To: xjt...@hotmail.com
   CC: uclibc@uclibc.org
   Subject: Re: dlopen/dlclose caused memory leak?
   From: joakim.tjernl...@transmode.se
   Date: Wed, 11 Mar 2009 13:06:47 +0100
   
Hi,

I used uclibc-0.9.29,

/*dltest.c*/
 #include stdio.h
 #include dlfcn.h

 #define MYLIB /flash/lib/libdev.so

 int main (void){
 void *handle;
 while (1){
 handle = dlopen (MYLIB, RTLD_LAZY);
 if (!handle){
 fputs (dlerror(), stderr);
 exit (1);
 }
 dlclose (handle);
 }
 }
/*dltest.c*/

Pls comment,
Thanks,
czy
   
   I remember plugging a memory leak in this area, probably
   after 0.9.29, try a newer uClibc version.
   
   Jocke
  
  把MSN装进手机,更多聊天乐趣等你挖掘! 立刻下载!

_
MSN 表情魔法书,改变你的对话时代!
http://im.live.cn/emoticons/___
uClibc mailing list
uClibc@uclibc.org
http://lists.busybox.net/mailman/listinfo/uclibc

Anyone experienced with TCC using uClibc?

2009-03-11 Thread Stefan de Konink

Hi,


I wonder if anyone using uclibc succesfully linked an application using 
TCC. My binaries end up as:


ldd ./tcc
checking sub-depends for '/lib/libm.so.0'
libc.so.0 = /lib/libc.so.0 (0xb7f92000)
ld-uClibc.so.0 = /lib/ld-uClibc.so.0 (0xb7fe3000)
checking sub-depends for '/lib/libc.so.0'
ld-uClibc.so.0 = /lib/ld-uClibc.so.0 (0xb7f8a000)
checking sub-depends for '/lib/libdl.so.0'
libc.so.0 = /lib/libc.so.0 (0xb7f46000)
ld-uClibc.so.0 = /lib/ld-uClibc.so.0 (0xb7f97000)
libm.so.0 = /lib/libm.so.0 (0x)
libc.so.0 = /lib/libc.so.0 (0x)
libdl.so.0 = /lib/libdl.so.0 (0x)
/lib/ld-uClibc.so.0 = /lib/ld-uClibc.so.0 (0x)


Tips are welcome ;)


Stefan
___
uClibc mailing list
uClibc@uclibc.org
http://lists.busybox.net/mailman/listinfo/uclibc