Another serious memory leak in python-ldap
I have submitted another patch for python-ldap. This time it’s error path.
共370篇文章。
I have submitted another patch for python-ldap. This time it’s error path.
So Python will release the bugfix release, 2.4.3. Now they have released the RC1 as a release candidate, with more than 50 bugfixes!
I used to think that ldap_unbind() is the opposite of ldap_bind(),however I was wrong. Pierangelo Masarati (ando at openldap) pointed out
that it was actually opposite of ldap_init(). So, do NOT expect init() -> bind() -> search() -> unbind() -> bind() would success, it’s
simply wrong thing. You do not need to unbind() before you do another bind().
Just make a note.
今天给某个维护OpenLDAP相关port的老大提了几个patch,等他消息了。
另外就是Python自己也会有泄漏,而且居然是gc部分自己出了许多tuple,这年头:(
Ruslan Ermilov大长辈commit了一组Makefile变动。这包含了许多来自NetBSD和FreeBSD ports的特性。
MK_*选项。这些选项是开发人员设置的,如果用户配置的话将发生错误。WITH_*和WITHOUT_*来控制是否build选项。MK_*_SUPPORT子选项。/etc/src.conf来配置。感觉比之前要清晰许多。
今天发现了OpenLDAP client库的一个内存泄漏(每次连接会漏掉大约80字节),并提交了ITS patch(4441),不过我觉得这里面上锁上的还是有点问题的,至少逻辑不是很清楚。
今天renzhen同学问起为什么很多宏都定义do { something... } while(0),我也顺便温习了一下。
简而言之:如果希望宏表现的和函数接近,就需要这样做。
前几天忙得晕头转向的……
打算抽时间把libc里面的东西仔细看一看。前一阵发现一个诡异的PHP问题,不知道到底是php的bug还是libc的。。。
对GBK的locale做了一些改动,使得其能够提供正确的字符宽度信息了。这样一来,csh就能够正确处理GBK的中文了。昨天还增加了正体(我们叫做繁体)中文对应的locale变化。