Fixed PKCS#11 engine patch for 0.9.8h

We already found a bug in recent changes to the PKCS#11 engine. It was quickly fixed and the patch was updated. If your PKCS#11 backend offers just one slot you are not affected. You can download pkcs11_engine-0.9.8h.patch.2008-08-01, and take a look at README shipped as part of the patch. BTW, a check whether the patch is used on Solaris to trigger Solaris specific code was made automatic.

Comments:

Dear Jan,
if I compile the patched openssl-0.9.8h, I get the message "627 bytes leaked in 39 chunks" on executing "./openssl engine pkcs11".
How bad is this? Can I ignore this, because its in the debug build?

Thank you and kind regards!
René

Building details: I started Configure like this:./Configure --pk11-libname=/usr/lib/libpkcs11.so debug-solaris-sparcv9-cc

Output details:
/tmp/openssl-0.9.8h/apps$ ./openssl engine pkcs11
(pkcs11) PKCS #11 engine support
[09:24:56] 2073 file=dso_lib.c, line=103, thread=21942, number=40, address=002B5308
[09:24:56] 2122 file=obj_dat.c, line=245, thread=21942, number=8, address=002B4218
[09:24:56] 2108 file=obj_dat.c, line=247, thread=21942, number=8, address=002B41E8
[09:24:56] 2105 file=obj_dat.c, line=241, thread=21942, number=8, address=002B41B8
[09:24:56] 2126 file=lhash.c, line=193, thread=21942, number=12, address=002DAA60
[09:24:56] 2083 file=lhash.c, line=119, thread=21942, number=96, address=002ABBA8
[09:24:56] 2091 file=obj_dat.c, line=245, thread=21942, number=8, address=002B4188
[09:24:56] 2125 file=lhash.c, line=193, thread=21942, number=12, address=002DAA30
[09:24:56] 2086 file=obj_lib.c, line=82, thread=21942, number=1, address=002B4158
[09:24:56] 2119 file=obj_lib.c, line=103, thread=21942, number=12, address=002DA988
[09:24:56] 2116 file=a_object.c, line=334, thread=21942, number=24, address=002A89C0
[09:24:56] 2096 file=lhash.c, line=193, thread=21942, number=12, address=002DA788
[09:24:56] 2118 file=obj_lib.c, line=93, thread=21942, number=12, address=002DA958
[09:24:56] 2095 file=lhash.c, line=193, thread=21942, number=12, address=002DA758
[09:24:56] 2094 file=lhash.c, line=193, thread=21942, number=12, address=002DA728
[09:24:56] 2111 file=lhash.c, line=193, thread=21942, number=12, address=002DA8F8
[09:24:56] 2093 file=lhash.c, line=193, thread=21942, number=12, address=002DA6F8
[09:24:56] 2110 file=lhash.c, line=193, thread=21942, number=12, address=002DA8C8
[09:24:56] 2074 file=stack.c, line=125, thread=21942, number=20, address=002A8900
[09:24:56] 2124 file=lhash.c, line=193, thread=21942, number=12, address=002DA868
[09:24:56] 2088 file=obj_lib.c, line=103, thread=21942, number=12, address=002DA668
[09:24:56] 2109 file=lhash.c, line=193, thread=21942, number=12, address=002DA6B0
[09:24:56] 2087 file=obj_lib.c, line=93, thread=21942, number=12, address=002DA638
[09:24:56] 2121 file=obj_dat.c, line=243, thread=21942, number=8, address=002B4208
[09:24:56] 2107 file=obj_dat.c, line=245, thread=21942, number=8, address=002B41D8
[09:24:56] 2084 file=lhash.c, line=121, thread=21942, number=64, address=002ABC10
[09:24:56] 2102 file=obj_lib.c, line=82, thread=21942, number=1, address=002B41A8
[09:24:56] 2104 file=obj_lib.c, line=103, thread=21942, number=12, address=002DA820
[09:24:56] 2117 file=obj_lib.c, line=82, thread=21942, number=1, address=002B4178
[09:24:56] 2103 file=obj_lib.c, line=93, thread=21942, number=12, address=002DA7F0
[09:24:56] 2085 file=a_object.c, line=334, thread=21942, number=24, address=002A8980
[09:24:56] 2076 file=dso_lib.c, line=380, thread=21942, number=22, address=002A8920
[09:24:56] 2123 file=obj_dat.c, line=247, thread=21942, number=8, address=002B4228
[09:24:56] 2075 file=stack.c, line=127, thread=21942, number=16, address=002DA4D0
[09:24:56] 2120 file=obj_dat.c, line=241, thread=21942, number=8, address=002B41F8
[09:24:56] 2092 file=obj_dat.c, line=247, thread=21942, number=8, address=002B4198
[09:24:56] 2089 file=obj_dat.c, line=241, thread=21942, number=8, address=002B4168
[09:24:56] 2101 file=a_object.c, line=334, thread=21942, number=24, address=002A89A0
[09:24:56] 2077 file=dso_dlfcn.c, line=350, thread=21942, number=22, address=002A8940
627 bytes leaked in 39 chunks

Posted by René on August 14, 2008 at 02:42 AM CEST #

to René: I saw those leaks. When I run some memory leaks tests using libumem, I didn't see any problems but I saw the leaks above after the code was already in OpenSolaris.

I have to take a closer look but unless you see that your application is growing w.r.t the memory usage, you don't have to worry much about it.

Posted by Jan on August 27, 2008 at 08:43 PM CEST #

Hi Jan,

Will you be creating a patch for 0.9.8i soon by any chance?

Thanks,
Lawrence

Posted by Lawrence on November 23, 2008 at 09:35 PM CET #

Post a Comment:
  • HTML Syntax: NOT allowed
About

Jan Pechanec

Search

Categories
Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today