|
From: <the...@in...> - 2006-04-19 12:19:46
|
=0AAlthough I run valgrind with the --num-callers=3D20 option, it shows=0Ao= nly two records for the following errors:=0A=0A =3D=3D6584=3D=3D 32,760 byt= es in 6 blocks are indirectly lost in loss record=0A2 of 4=0A=3D=3D6584=3D= =3D at 0x401B48A: malloc (vg_replace_malloc.c:149)=0A=3D=3D6584=3D=3D = by 0x41008B7: my_malloc (in=0A/usr/lib/libmysqlclient.so.14.0.0)=0A=3D=3D6= 584=3D=3D=0A=3D=3D6584=3D=3D=0A=3D=3D6584=3D=3D 32,936 (176 direct, 32,760 = indirect) bytes in 2 blocks are=0Adefinitely lost in loss record 3 of 4=0A= =3D=3D6584=3D=3D at 0x401B48A: malloc (vg_replace_malloc.c:149)=0A=3D=3D= 6584=3D=3D by 0x41008B7: my_malloc (in=0A/usr/lib/libmysqlclient.so.14.0= .0)=0A=3D=3D6584=3D=3D=0A=3D=3D6584=3D=3D=0A=3D=3D6584=3D=3D 36,792 bytes i= n 9 blocks are still reachable in loss record=0A4 of 4=0A=3D=3D6584=3D=3D = at 0x401B48A: malloc (vg_replace_malloc.c:149)=0A=3D=3D6584=3D=3D by 0= x4106B7E: my_once_alloc (in=0A/usr/lib/libmysqlclient.so.14.0.0)=0A=3D=3D65= 84=3D=3D=0A=0AI guess it has to do something with compiling the libmysqlcli= ent.so.=0ABut I don't know what should I do. Any ideas how to track down th= e=0Aleaks?=0A |
|
From: Ashley P. <as...@qu...> - 2006-04-19 12:26:31
|
On Wed, 2006-04-19 at 15:19 +0300, the...@in... wrote: > > Although I run valgrind with the --num-callers=20 option, it shows > only two records for the following errors: You should see more context in the stack traces here, with more complete information it's often fairly easy to spot where it's gone. Valgrind should provide you with the information here, which version of valgrind and compiler/version are you using to compile the lib? Ashley, |
|
From: <the...@in...> - 2006-04-20 09:32:29
|
The mysql library was compiled by someone else. So, as I understand from you - the problem might be in compiling the library unappropriate. I'll best reinstall the mysql upgrading to a newer version. And if the problem persists, I'll ask the mysql developers. Didn't even think of that before... Thanks! |
|
From: Julian S. <js...@ac...> - 2006-04-19 12:39:55
|
If you can't figure it out, one possibility is to ask the MySQL people themselves - they are very familiar with using Valgrind, I believe. J |