list mechs bug in cyrus-sasl 2.1.22 and memory leak

Quanah Gibson-Mount quanah at zimbra.com
Tue Jan 29 16:54:50 EST 2008


--On Tuesday, January 29, 2008 1:52 PM -0800 Howard Chu 
<hyc at highlandsun.com> wrote:

> The SASL code never checks to see if a file is a symlink or not. (Nor
> should it, since you might legitimately symlink a plugin from some other
> location into the default plugin directory.) All it does is look for a
> ".so" or ".la" suffix, and it ignores anything else. This works on most
> platforms because for versioned files, they stick the version *after* the
> .so suffix. E.g. you would have libplain.so and libplain.so.2,
> libplain.so.2.0.22.
>
> Why they've messed with the order of name components on MacOS is beyond
> me. Is that the way all other shared libraries are named as well, or is
> this just a broken libtool installing things with the wrong names?

Macintosh doesn't natively create "*.so" files.  It creates "*.dylib" 
files.  The fact that SASL is creating "*.so" files indicates that 
something is been done by SASL to change the default Macintosh behavior.

However, "*.dylib" creation is done in the rather broken manner you 
describe, so I would guess that is the default behavior for libtool on the 
mac. ;)

build-mac-x86:/tmp/qi/openldap-2.3.40.7z/lib build$ ls -l
total 7936
-rw-r--r--   1 build  wheel   126816 Jan 22 14:41 liblber-2.3.0.2.28.dylib
lrwxr-xr-x   1 build  wheel       24 Jan 29 13:54 liblber-2.3.0.dylib -> 
liblber-2.3.0.2.28.dylib
-rw-r--r--   1 build  wheel   146300 Jan 22 14:41 liblber.a
lrwxr-xr-x   1 build  wheel       24 Jan 29 13:54 liblber.dylib -> 
liblber-2.3.0.2.28.dylib
-rw-r--r--   1 build  wheel     1151 Jan 22 14:41 liblber.la
-rw-r--r--   1 build  wheel   836724 Jan 22 14:41 libldap-2.3.0.2.28.dylib
lrwxr-xr-x   1 build  wheel       24 Jan 29 13:54 libldap-2.3.0.dylib -> 
libldap-2.3.0.2.28.dylib
-rw-r--r--   1 build  wheel   954604 Jan 22 14:41 libldap.a
lrwxr-xr-x   1 build  wheel       24 Jan 29 13:54 libldap.dylib -> 
libldap-2.3.0.2.28.dylib
-rw-r--r--   1 build  wheel     1313 Jan 22 14:41 libldap.la
-rw-r--r--   1 build  wheel   909264 Jan 22 14:41 libldap_r-2.3.0.2.28.dylib
lrwxr-xr-x   1 build  wheel       26 Jan 29 13:54 libldap_r-2.3.0.dylib -> 
libldap_r-2.3.0.2.28.dylib
-rw-r--r--   1 build  wheel  1041556 Jan 22 14:41 libldap_r.a
lrwxr-xr-x   1 build  wheel       26 Jan 29 13:54 libldap_r.dylib -> 
libldap_r-2.3.0.2.28.dylib
-rw-r--r--   1 build  wheel     1327 Jan 22 14:41 libldap_r.la


--Quanah

--

Quanah Gibson-Mount
Principal Software Engineer
Zimbra, Inc
--------------------
Zimbra ::  the leader in open source messaging and collaboration


More information about the Cyrus-sasl mailing list