<i>Segfault under wish at first tls::import, not under tclsh</i> status still Open with 6 other changes
by
.
0000: 44 20 32 30 32 30 2d 30 39 2d 30 31 54 30 39 3a D 2020-09-01T09:
0010: 34 34 3a 32 30 2e 38 34 39 0a 4a 20 69 63 6f 6d 44:20.849.J icom
0020: 6d 65 6e 74 20 4f 6b 61 79 2c 5c 73 49 5c 73 74 ment Okay,\sI\st
0030: 68 69 6e 6b 5c 73 49 27 76 65 5c 73 64 69 61 67 hink\sI've\sdiag
0040: 6e 6f 73 65 64 5c 73 74 68 69 73 5c 73 6e 6f 77 nosed\sthis\snow
0050: 2c 5c 73 74 68 6f 75 67 68 5c 73 49 5c 73 64 6f ,\sthough\sI\sdo
0060: 6e 27 74 5c 73 6b 6e 6f 77 5c 73 68 6f 77 5c 73 n't\sknow\show\s
0070: 74 6f 5c 73 66 69 78 5c 73 69 74 2e 5c 72 5c 6e to\sfix\sit.\r\n
0080: 54 68 65 72 65 5c 73 64 6f 65 73 6e 27 74 5c 73 There\sdoesn't\s
0090: 73 65 65 6d 5c 73 74 6f 5c 73 62 65 5c 73 61 6e seem\sto\sbe\san
00a0: 5c 73 65 72 72 6f 72 5c 73 69 6e 5c 73 74 68 65 \serror\sin\sthe
00b0: 5c 73 54 63 6c 54 4c 53 5c 73 73 6f 75 72 63 65 \sTclTLS\ssource
00c0: 5c 73 63 6f 64 65 5c 73 61 73 5c 73 73 75 63 68 \scode\sas\ssuch
00d0: 2c 5c 73 73 6f 5c 72 5c 6e 74 68 65 5c 73 66 69 ,\sso\r\nthe\sfi
00e0: 78 5c 73 69 73 5c 73 70 72 6f 62 61 62 6c 79 5c x\sis\sprobably\
00f0: 73 72 61 74 68 65 72 5c 73 74 6f 5c 73 61 64 6a srather\sto\sadj
0100: 75 73 74 5c 73 74 68 65 5c 73 62 75 69 6c 64 5c ust\sthe\sbuild\
0110: 73 70 72 6f 63 65 73 73 5c 73 2d 2d 5c 73 66 69 sprocess\s--\sfi
0120: 67 75 72 65 5c 73 6f 75 74 5c 73 74 68 65 5c 72 gure\sout\sthe\r
0130: 5c 6e 72 69 67 68 74 5c 73 6f 70 74 69 6f 6e 73 \nright\soptions
0140: 5c 73 74 6f 5c 73 70 61 73 73 2c 5c 73 61 6e 64 \sto\spass,\sand
0150: 5c 73 69 74 5c 73 73 68 6f 75 6c 64 5c 73 77 6f \sit\sshould\swo
0160: 72 6b 2e 5c 73 48 6f 77 65 76 65 72 5c 73 49 5c rk.\sHowever\sI\
0170: 73 73 75 73 70 65 63 74 5c 73 54 63 6c 54 4c 53 ssuspect\sTclTLS
0180: 5c 73 73 74 69 6c 6c 5c 73 5c 72 5c 6e 6e 65 65 \sstill\s\r\nnee
0190: 64 73 5c 73 69 6d 70 72 6f 76 69 6e 67 5c 73 62 ds\simproving\sb
01a0: 65 63 61 75 73 65 5c 73 6f 66 5c 73 74 68 69 73 ecause\sof\sthis
01b0: 5c 73 69 73 73 75 65 2c 5c 73 73 69 6e 63 65 5c \sissue,\ssince\
01c0: 73 69 74 5c 73 64 6f 65 73 5c 73 73 65 65 6d 5c sit\sdoes\sseem\
01d0: 73 74 6f 5c 73 62 65 5c 73 61 5c 73 6d 6f 72 65 sto\sbe\sa\smore
01e0: 5c 73 5c 72 5c 6e 67 65 6e 65 72 61 6c 5c 73 76 \s\r\ngeneral\sv
01f0: 75 6c 6e 65 72 61 62 69 6c 69 74 79 3b 5c 73 69 ulnerability;\si
0200: 74 5c 73 73 68 6f 75 6c 64 5c 73 62 65 5c 73 65 t\sshould\sbe\se
0210: 61 73 79 5c 73 74 6f 5c 73 6d 61 6b 65 5c 73 61 asy\sto\smake\sa
0220: 5c 73 68 61 72 64 65 6e 65 64 5c 73 62 75 69 6c \shardened\sbuil
0230: 64 2c 5c 73 65 76 65 6e 5c 73 5c 72 5c 6e 69 66 d,\seven\s\r\nif
0240: 5c 73 6f 6e 65 5c 73 64 6f 65 73 5c 73 6e 6f 74 \sone\sdoes\snot
0250: 5c 73 6d 61 6b 65 5c 73 69 74 5c 73 74 68 65 5c \smake\sit\sthe\
0260: 73 64 65 66 61 75 6c 74 2e 5c 72 5c 6e 5c 72 5c sdefault.\r\n\r\
0270: 6e 49 6e 5c 73 73 68 6f 72 74 2c 5c 73 74 68 65 nIn\sshort,\sthe
0280: 5c 73 70 72 6f 62 6c 65 6d 5c 73 69 73 5c 73 74 \sproblem\sis\st
0290: 68 61 74 5c 73 75 6e 64 65 72 5c 73 57 69 73 68 hat\sunder\sWish
02a0: 5c 73 49 27 6d 5c 73 67 65 74 74 69 6e 67 5c 73 \sI'm\sgetting\s
02b0: 74 77 6f 5c 73 64 69 66 66 65 72 65 6e 74 5c 73 two\sdifferent\s
02c0: 5c 72 5c 6e 76 65 72 73 69 6f 6e 73 5c 73 6f 66 \r\nversions\sof
02d0: 5c 73 6c 69 62 63 72 79 70 74 6f 5c 73 6c 6f 61 \slibcrypto\sloa
02e0: 64 65 64 2c 5c 73 61 6e 64 5c 73 74 68 65 5c 73 ded,\sand\sthe\s
02f0: 64 79 6e 61 6d 69 63 5c 73 6c 69 6e 6b 65 72 5c dynamic\slinker\
0300: 73 69 73 5c 73 6d 61 6b 69 6e 67 5c 73 54 63 6c sis\smaking\sTcl
0310: 54 4c 53 5c 73 5c 72 5c 6e 63 61 6c 6c 5c 73 73 TLS\s\r\ncall\ss
0320: 6f 6d 65 5c 73 66 75 6e 63 74 69 6f 6e 73 5c 73 ome\sfunctions\s
0330: 66 72 6f 6d 5c 73 6f 6e 65 5c 73 76 65 72 73 69 from\sone\sversi
0340: 6f 6e 5c 73 61 6e 64 5c 73 6f 74 68 65 72 5c 73 on\sand\sother\s
0350: 66 75 6e 63 74 69 6f 6e 73 5c 73 66 72 6f 6d 5c functions\sfrom\
0360: 73 74 68 65 5c 73 6f 74 68 65 72 3b 5c 73 5c 72 sthe\sother;\s\r
0370: 5c 6e 73 69 6e 63 65 5c 73 74 68 65 79 5c 73 61 \nsince\sthey\sa
0380: 72 65 5c 73 72 61 74 68 65 72 5c 73 66 61 72 5c re\srather\sfar\
0390: 73 66 72 6f 6d 5c 73 62 65 69 6e 67 5c 73 62 69 sfrom\sbeing\sbi
03a0: 6e 61 72 79 5c 73 63 6f 6d 70 61 74 69 62 6c 65 nary\scompatible
03b0: 2c 5c 73 61 5c 73 63 72 61 73 68 5c 73 69 73 5c ,\sa\scrash\sis\
03c0: 73 6f 6e 6c 79 5c 73 5c 72 5c 6e 74 6f 5c 73 62 sonly\s\r\nto\sb
03d0: 65 5c 73 65 78 70 65 63 74 65 64 2e 5c 73 74 63 e\sexpected.\stc
03e0: 6c 73 68 5c 73 61 76 6f 69 64 73 5c 73 74 68 65 lsh\savoids\sthe
03f0: 5c 73 70 72 6f 62 6c 65 6d 5c 73 62 79 5c 73 6e \sproblem\sby\sn
0400: 6f 74 5c 73 6c 6f 61 64 69 6e 67 5c 73 74 68 65 ot\sloading\sthe
0410: 5c 73 66 69 72 73 74 5c 73 76 65 72 73 69 6f 6e \sfirst\sversion
0420: 5c 73 5c 72 5c 6e 6f 66 5c 73 6c 69 62 63 72 79 \s\r\nof\slibcry
0430: 70 74 6f 2c 5c 73 73 6f 5c 73 74 68 61 74 5c 73 pto,\sso\sthat\s
0440: 61 6c 6c 5c 73 63 61 6c 6c 73 5c 73 67 6f 5c 73 all\scalls\sgo\s
0450: 74 6f 5c 73 74 68 65 5c 73 73 65 63 6f 6e 64 5c to\sthe\ssecond\
0460: 73 76 65 72 73 69 6f 6e 5c 73 61 67 61 69 6e 73 sversion\sagains
0470: 74 5c 73 77 68 69 63 68 5c 73 5c 72 5c 6e 54 63 t\swhich\s\r\nTc
0480: 6c 54 4c 53 5c 73 77 61 73 5c 73 61 63 74 75 61 lTLS\swas\sactua
0490: 6c 6c 79 5c 73 62 75 69 6c 74 2c 5c 73 2a 62 75 lly\sbuilt,\s*bu
04a0: 74 2a 3a 5c 73 73 68 6f 75 6c 64 5c 73 74 63 6c t*:\sshould\stcl
04b0: 73 68 5c 73 6c 6f 61 64 5c 73 61 6e 79 5c 73 6f sh\sload\sany\so
04c0: 74 68 65 72 5c 73 6c 69 62 72 61 72 79 5c 73 5c ther\slibrary\s\
04d0: 72 5c 6e 77 69 74 68 5c 73 61 5c 73 64 65 70 65 r\nwith\sa\sdepe
04e0: 6e 64 65 6e 63 65 5c 73 75 70 6f 6e 5c 73 74 68 ndence\supon\sth
04f0: 65 5c 73 66 69 72 73 74 5c 73 6c 69 62 63 72 79 e\sfirst\slibcry
0500: 70 74 6f 5c 73 76 65 72 73 69 6f 6e 5c 73 62 65 pto\sversion\sbe
0510: 66 6f 72 65 5c 73 69 74 5c 73 6c 6f 61 64 73 5c fore\sit\sloads\
0520: 73 54 63 6c 54 4c 53 5c 73 5c 72 5c 6e 74 68 65 sTclTLS\s\r\nthe
0530: 6e 5c 73 74 68 65 5c 73 70 72 6f 62 6c 65 6d 5c n\sthe\sproblem\
0540: 73 77 69 6c 6c 5c 73 73 75 72 66 61 63 65 5c 73 swill\ssurface\s
0550: 61 6c 73 6f 5c 73 74 68 65 72 65 2e 5c 73 52 69 also\sthere.\sRi
0560: 67 68 74 5c 73 6e 6f 77 5c 73 54 63 6c 54 4c 53 ght\snow\sTclTLS
0570: 5c 73 69 73 5c 73 76 75 6c 6e 65 72 61 62 6c 65 \sis\svulnerable
0580: 5c 73 5c 72 5c 6e 69 6e 5c 73 74 68 61 74 5c 73 \s\r\nin\sthat\s
0590: 69 74 5c 73 64 65 70 65 6e 64 73 5c 73 6f 6e 5c it\sdepends\son\
05a0: 73 6f 74 68 65 72 5c 73 70 61 72 74 69 65 73 5c sother\sparties\
05b0: 73 6e 6f 74 5c 73 64 6f 69 6e 67 5c 73 74 68 69 snot\sdoing\sthi
05c0: 6e 67 73 5c 73 69 74 5c 73 68 61 64 6e 27 74 5c ngs\sit\shadn't\
05d0: 73 65 78 70 65 63 74 65 64 2c 5c 73 5c 72 5c 6e sexpected,\s\r\n
05e0: 69 6e 73 74 65 61 64 5c 73 6f 66 5c 73 6d 61 6b instead\sof\smak
05f0: 69 6e 67 5c 73 73 75 72 65 5c 73 74 68 61 74 5c ing\ssure\sthat\
0600: 73 69 74 5c 73 67 65 74 73 5c 73 77 68 61 74 5c sit\sgets\swhat\
0610: 73 69 74 5c 73 72 65 71 75 69 72 65 73 2e 5c 72 sit\srequires.\r
0620: 5c 6e 5c 72 5c 6e 49 74 5c 73 6d 69 67 68 74 5c \n\r\nIt\smight\
0630: 73 62 65 5c 73 61 72 67 75 65 64 5c 73 74 68 61 sbe\sargued\stha
0640: 74 5c 73 68 61 76 69 6e 67 5c 73 64 69 66 66 65 t\shaving\sdiffe
0650: 72 65 6e 74 5c 73 76 65 72 73 69 6f 6e 73 5c 73 rent\sversions\s
0660: 6f 66 5c 73 61 5c 73 6c 69 62 72 61 72 79 5c 73 of\sa\slibrary\s
0670: 69 6e 5c 73 74 68 65 5c 73 5c 72 5c 6e 73 61 6d in\sthe\s\r\nsam
0680: 65 5c 73 70 72 6f 63 65 73 73 5c 73 69 73 5c 73 e\sprocess\sis\s
0690: 61 5c 73 62 69 67 5c 73 6e 6f 2d 6e 6f 2c 5c 73 a\sbig\sno-no,\s
06a0: 61 6e 64 5c 73 74 68 61 74 5c 73 74 68 65 5c 73 and\sthat\sthe\s
06b0: 66 69 78 5c 73 69 73 5c 73 74 6f 5c 73 75 70 64 fix\sis\sto\supd
06c0: 61 74 65 5c 73 65 76 65 72 79 74 68 69 6e 67 5c ate\severything\
06d0: 73 74 6f 5c 73 5c 72 5c 6e 75 73 65 5c 73 74 68 sto\s\r\nuse\sth
06e0: 65 5c 73 73 61 6d 65 5c 73 6d 6f 73 74 5c 73 72 e\ssame\smost\sr
06f0: 65 63 65 6e 74 5c 73 76 65 72 73 69 6f 6e 2c 5c ecent\sversion,\
0700: 73 62 75 74 5c 73 74 68 61 74 5c 73 69 73 5c 73 sbut\sthat\sis\s
0710: 66 72 61 6e 6b 6c 79 5c 73 69 6d 70 6f 73 73 69 frankly\simpossi
0720: 62 6c 65 3b 5c 73 74 68 65 5c 73 5c 72 5c 6e 6f ble;\sthe\s\r\no
0730: 6c 64 5c 73 6c 69 62 63 72 79 70 74 6f 5c 73 69 ld\slibcrypto\si
0740: 73 5c 73 62 65 69 6e 67 5c 73 62 72 6f 75 67 68 s\sbeing\sbrough
0750: 74 5c 73 69 6e 5c 73 62 79 5c 73 73 6f 6d 65 5c t\sin\sby\ssome\
0760: 73 73 79 73 74 65 6d 5c 73 6c 69 62 72 61 72 79 ssystem\slibrary
0770: 5c 73 28 64 6f 6e 27 74 5c 73 6b 6e 6f 77 5c 73 \s(don't\sknow\s
0780: 5c 72 5c 6e 77 68 69 63 68 5c 73 6f 6e 65 2c 5c \r\nwhich\sone,\
0790: 73 62 75 74 5c 73 74 68 65 5c 73 6f 6e 65 5c 73 sbut\sthe\sone\s
07a0: 6e 65 78 74 5c 73 74 6f 5c 73 69 74 5c 73 69 6e next\sto\sit\sin
07b0: 5c 73 74 68 65 5c 73 6c 69 73 74 5c 73 69 73 5c \sthe\slist\sis\
07c0: 73 63 61 6c 6c 65 64 5c 73 54 72 75 73 74 45 76 scalled\sTrustEv
07d0: 61 6c 75 61 74 69 6f 6e 41 67 65 6e 74 2c 5c 72 aluationAgent,\r
07e0: 5c 6e 77 68 69 63 68 5c 73 73 65 65 6d 73 5c 73 \nwhich\sseems\s
07f0: 61 5c 73 70 6c 61 75 73 69 62 6c 65 5c 73 75 73 a\splausible\sus
0800: 65 72 29 5c 73 61 6e 64 5c 73 74 68 69 73 5c 73 er)\sand\sthis\s
0810: 61 69 6e 27 74 5c 73 6c 69 6e 75 78 5c 73 2d 2d ain't\slinux\s--
0820: 5c 73 77 65 5c 73 63 61 6e 27 74 5c 73 68 6f 70 \swe\scan't\shop
0830: 65 5c 73 74 6f 5c 73 5c 72 5c 6e 67 6f 5c 73 72 e\sto\s\r\ngo\sr
0840: 65 63 6f 6d 70 69 6c 69 6e 67 5c 73 74 68 6f 73 ecompiling\sthos
0850: 65 2e 5c 73 4d 6f 72 65 6f 76 65 72 5c 73 69 74 e.\sMoreover\sit
0860: 5c 73 6d 69 67 68 74 5c 73 62 65 5c 73 72 65 6d \smight\sbe\srem
0870: 61 72 6b 65 64 5c 73 74 68 61 74 5c 73 74 68 65 arked\sthat\sthe
0880: 5c 73 28 6c 6f 6e 67 29 5c 73 6c 69 73 74 5c 73 \s(long)\slist\s
0890: 5c 72 5c 6e 6f 66 5c 73 73 68 61 72 65 64 5c 73 \r\nof\sshared\s
08a0: 6c 69 62 72 61 72 69 65 73 5c 73 57 69 73 68 5c libraries\sWish\
08b0: 73 6c 6f 61 64 73 5c 73 69 6e 63 6c 75 64 65 73 sloads\sincludes
08c0: 5c 73 61 5c 73 64 65 63 61 64 65 2d 6f 6c 64 5c \sa\sdecade-old\
08d0: 73 6c 69 62 73 71 6c 69 74 65 33 2e 64 79 6c 69 slibsqlite3.dyli
08e0: 62 2c 5c 73 5c 72 5c 6e 62 75 74 5c 73 74 68 61 b,\s\r\nbut\stha
08f0: 74 5c 73 68 61 73 5c 73 6e 65 76 65 72 5c 73 62 t\shas\snever\sb
0900: 65 65 6e 5c 73 61 5c 73 70 72 6f 62 6c 65 6d 5c een\sa\sproblem\
0910: 73 66 6f 72 5c 73 74 63 6c 73 71 6c 69 74 65 33 sfor\stclsqlite3
0920: 2c 5c 73 70 72 65 73 75 6d 61 62 6c 79 5c 73 62 ,\spresumably\sb
0930: 65 63 61 75 73 65 5c 73 74 68 61 74 5c 73 5c 72 ecause\sthat\s\r
0940: 5c 6e 6c 69 6e 6b 73 5c 73 73 74 61 74 69 63 61 \nlinks\sstatica
0950: 6c 6c 79 5c 73 77 69 74 68 5c 73 74 68 65 5c 73 lly\swith\sthe\s
0960: 73 71 6c 69 74 65 33 5c 73 6c 69 62 72 61 72 79 sqlite3\slibrary
0970: 2e 5c 73 49 5c 73 73 65 65 5c 73 6e 6f 5c 73 72 .\sI\ssee\sno\sr
0980: 65 61 73 6f 6e 5c 73 77 68 79 5c 73 54 63 6c 54 eason\swhy\sTclT
0990: 4c 53 5c 73 5c 72 5c 6e 63 6f 75 6c 64 6e 27 74 LS\s\r\ncouldn't
09a0: 5c 73 68 61 76 65 5c 73 61 6e 5c 73 6f 70 74 69 \shave\san\sopti
09b0: 6f 6e 5c 73 74 6f 5c 73 64 6f 5c 73 74 68 65 5c on\sto\sdo\sthe\
09c0: 73 73 61 6d 65 2c 5c 73 62 75 74 5c 73 49 5c 73 ssame,\sbut\sI\s
09d0: 63 61 6e 6e 6f 74 5c 73 66 69 6e 64 5c 73 61 6e cannot\sfind\san
09e0: 79 74 68 69 6e 67 5c 73 69 6e 5c 73 5c 72 5c 6e ything\sin\s\r\n
09f0: 74 68 65 5c 73 64 6f 63 75 6d 65 6e 74 61 74 69 the\sdocumentati
0a00: 6f 6e 5c 73 74 6f 5c 73 74 68 61 74 5c 73 65 66 on\sto\sthat\sef
0a10: 66 65 63 74 2e 5c 72 5c 6e 5c 72 5c 6e 49 6e 64 fect.\r\n\r\nInd
0a20: 65 65 64 2c 5c 73 74 68 65 5c 73 64 6f 63 75 6d eed,\sthe\sdocum
0a30: 65 6e 74 61 74 69 6f 6e 5c 73 66 6f 72 5c 73 4f entation\sfor\sO
0a40: 70 65 6e 53 53 4c 5c 73 31 2e 30 2e 78 5c 73 73 penSSL\s1.0.x\ss
0a50: 74 72 6f 6e 67 6c 79 5c 73 72 65 63 6f 6d 6d 65 trongly\srecomme
0a60: 6e 64 73 5c 73 6c 69 6e 6b 69 6e 67 5c 73 5c 72 nds\slinking\s\r
0a70: 5c 6e 73 74 61 74 69 63 61 6c 6c 79 5c 73 61 67 \nstatically\sag
0a80: 61 69 6e 73 74 5c 73 74 68 65 5c 73 6c 69 62 72 ainst\sthe\slibr
0a90: 61 72 79 5c 73 28 66 6f 72 5c 73 73 65 63 75 72 ary\s(for\ssecur
0aa0: 69 74 79 5c 73 72 65 61 73 6f 6e 73 29 2c 5c 73 ity\sreasons),\s
0ab0: 74 68 6f 75 67 68 5c 73 74 68 65 5c 73 5c 72 5c though\sthe\s\r\
0ac0: 6e 4f 70 65 6e 53 53 4c 5c 73 31 2e 31 2e 78 5c nOpenSSL\s1.1.x\
0ad0: 73 64 6f 63 75 6d 65 6e 74 61 74 69 6f 6e 5c 73 sdocumentation\s
0ae0: 64 6f 65 73 5c 73 6e 6f 74 5c 73 6d 61 6b 65 5c does\snot\smake\
0af0: 73 74 68 69 73 5c 73 70 6f 69 6e 74 5c 73 28 74 sthis\spoint\s(t
0b00: 68 61 74 5c 73 49 5c 73 63 61 6e 5c 73 73 65 65 hat\sI\scan\ssee
0b10: 29 2e 5c 73 5c 72 5c 6e 49 5c 73 68 61 76 65 5c ).\s\r\nI\shave\
0b20: 73 68 6f 77 65 76 65 72 5c 73 6f 6e 6c 79 5c 73 showever\sonly\s
0b30: 62 65 65 6e 5c 73 61 62 6c 65 5c 73 74 6f 5c 73 been\sable\sto\s
0b40: 62 75 69 6c 64 5c 73 54 63 6c 54 4c 53 5c 73 74 build\sTclTLS\st
0b50: 6f 5c 73 6c 69 6e 6b 5c 73 61 67 61 69 6e 73 74 o\slink\sagainst
0b60: 5c 73 74 68 65 5c 73 64 79 6c 69 62 73 2e 5c 72 \sthe\sdylibs.\r
0b70: 5c 6e 5c 72 5c 6e 4d 75 63 68 5c 73 6c 6f 6e 67 \n\r\nMuch\slong
0b80: 65 72 2c 5c 73 6d 79 5c 73 69 6e 76 65 73 74 69 er,\smy\sinvesti
0b90: 67 61 74 69 6f 6e 5c 73 77 61 73 5c 73 61 73 5c gation\swas\sas\
0ba0: 73 66 6f 6c 6c 6f 77 73 3a 5c 72 5c 6e 5c 72 5c sfollows:\r\n\r\
0bb0: 6e 49 5c 73 73 61 77 5c 73 74 68 65 5c 73 70 72 nI\ssaw\sthe\spr
0bc0: 6f 67 72 61 6d 5c 73 63 72 61 73 68 5c 73 69 6e ogram\scrash\sin
0bd0: 5c 73 70 74 68 72 65 61 64 5f 72 77 6c 6f 63 6b \spthread_rwlock
0be0: 5f 77 72 6c 6f 63 6b 2c 5c 73 63 61 6c 6c 65 64 _wrlock,\scalled
0bf0: 5c 73 66 72 6f 6d 5c 73 74 68 65 5c 73 5c 72 5c \sfrom\sthe\s\r\
0c00: 6e 5c 74 53 53 4c 5f 43 54 58 5f 73 65 74 5f 74 n\tSSL_CTX_set_t
0c10: 6d 70 5f 64 68 28 63 74 78 2c 5c 73 64 68 29 3b mp_dh(ctx,\sdh);
0c20: 5c 72 5c 6e 6c 69 6e 65 5c 73 69 6e 5c 73 43 54 \r\nline\sin\sCT
0c30: 58 5f 49 6e 69 74 5c 73 28 74 6c 73 2e 63 5c 73 X_Init\s(tls.c\s
0c40: 61 72 6f 75 6e 64 5c 73 6c 69 6e 65 5c 73 31 32 around\sline\s12
0c50: 36 30 2c 5c 73 62 75 74 5c 73 49 27 76 65 5c 73 60,\sbut\sI've\s
0c60: 64 6f 6e 65 5c 73 73 6f 6d 65 5c 73 68 61 63 6b done\ssome\shack
0c70: 69 6e 67 5c 73 5c 72 5c 6e 74 6f 5c 73 64 65 62 ing\s\r\nto\sdeb
0c80: 75 67 5c 73 73 6f 5c 73 6d 79 5c 73 6c 69 6e 65 ug\sso\smy\sline
0c90: 5c 73 6e 75 6d 62 65 72 73 5c 73 61 72 65 5c 73 \snumbers\sare\s
0ca0: 6f 66 66 29 2c 5c 73 77 69 74 68 5c 73 61 5c 73 off),\swith\sa\s
0cb0: 5c 72 5c 6e 5c 73 5c 73 4b 45 52 4e 5f 49 4e 56 \r\n\s\sKERN_INV
0cc0: 41 4c 49 44 5f 41 44 44 52 45 53 53 5c 73 61 74 ALID_ADDRESS\sat
0cd0: 5c 73 30 78 30 30 30 30 30 30 30 30 30 30 30 30 \s0x000000000000
0ce0: 30 30 30 30 5c 72 5c 6e 53 6f 2e 2e 2e 5c 73 61 0000\r\nSo...\sa
0cf0: 5c 73 4e 55 4c 4c 5c 73 70 6f 69 6e 74 65 72 5c \sNULL\spointer\
0d00: 73 64 65 72 65 66 65 72 65 6e 63 69 6e 67 2e 5c sdereferencing.\
0d10: 73 49 74 5c 73 74 75 72 6e 73 5c 73 6f 75 74 5c sIt\sturns\sout\
0d20: 73 74 68 65 5c 73 70 6f 69 6e 74 65 72 5c 73 69 sthe\spointer\si
0d30: 6e 5c 73 5c 72 5c 6e 71 75 65 73 74 69 6f 6e 5c n\s\r\nquestion\
0d40: 73 69 73 5c 73 64 68 2d 3e 6c 6f 63 6b 5c 73 75 sis\sdh->lock\su
0d50: 70 5c 73 69 6e 5c 73 74 6c 73 2e 63 5c 73 28 6f p\sin\stls.c\s(o
0d60: 72 5c 73 69 74 5c 73 77 6f 75 6c 64 5c 73 62 65 r\sit\swould\sbe
0d70: 2c 5c 73 68 61 64 5c 73 74 68 65 5c 73 44 48 5c ,\shad\sthe\sDH\
0d80: 73 74 79 70 65 5c 73 6e 6f 74 5c 73 5c 72 5c 6e stype\snot\s\r\n
0d90: 62 65 65 6e 5c 73 6f 70 61 71 75 65 5c 73 69 6e been\sopaque\sin
0da0: 5c 73 74 6c 73 2e 63 2c 5c 73 62 75 74 5c 73 69 \stls.c,\sbut\si
0db0: 74 5c 73 69 73 5c 73 61 5c 73 66 69 65 6c 64 5c t\sis\sa\sfield\
0dc0: 73 69 6e 5c 73 74 68 65 5c 73 73 74 72 75 63 74 sin\sthe\sstruct
0dd0: 5c 73 74 68 61 74 5c 73 64 68 5c 73 70 6f 69 6e \sthat\sdh\spoin
0de0: 74 73 5c 73 74 6f 29 2e 5c 73 5c 72 5c 6e 57 68 ts\sto).\s\r\nWh
0df0: 61 74 5c 73 53 53 4c 5f 43 54 58 5f 73 65 74 5f at\sSSL_CTX_set_
0e00: 74 6d 70 5f 64 68 5c 73 69 73 5c 73 64 6f 69 6e tmp_dh\sis\sdoin
0e10: 67 5c 73 61 74 5c 73 74 68 65 5c 73 74 69 6d 65 g\sat\sthe\stime
0e20: 5c 73 6f 66 5c 73 74 68 65 5c 73 63 72 61 73 68 \sof\sthe\scrash
0e30: 5c 73 69 73 5c 73 74 68 61 74 5c 73 69 74 5c 73 \sis\sthat\sit\s
0e40: 5c 72 5c 6e 69 73 5c 73 61 64 6a 75 73 74 69 6e \r\nis\sadjustin
0e50: 67 5c 73 74 68 65 5c 73 72 65 66 63 6f 75 6e 74 g\sthe\srefcount
0e60: 5c 73 6f 66 5c 73 74 68 6f 73 65 5c 73 44 48 5c \sof\sthose\sDH\
0e70: 73 70 61 72 61 6d 65 74 65 72 73 2c 5c 73 61 6e sparameters,\san
0e80: 64 5c 73 74 68 65 5c 73 6c 6f 63 6b 5c 73 69 6e d\sthe\slock\sin
0e90: 5c 73 5c 72 5c 6e 71 75 65 73 74 69 6f 6e 5c 73 \s\r\nquestion\s
0ea0: 69 73 5c 73 70 72 6f 74 65 63 74 69 6e 67 5c 73 is\sprotecting\s
0eb0: 74 68 61 74 5c 73 72 65 66 63 6f 75 6e 74 2e 5c that\srefcount.\
0ec0: 72 5c 6e 5c 72 5c 6e 54 68 65 5c 73 43 52 59 50 r\n\r\nThe\sCRYP
0ed0: 54 4f 5f 55 50 5f 52 45 46 5c 73 6f 70 65 72 61 TO_UP_REF\sopera
0ee0: 74 69 6f 6e 5c 73 62 65 69 6e 67 5c 73 75 73 65 tion\sbeing\suse
0ef0: 64 5c 73 64 6f 65 73 5c 73 68 61 76 65 5c 73 73 d\sdoes\shave\ss
0f00: 6f 6d 65 74 68 69 6e 67 5c 73 6c 69 6b 65 5c 73 omething\slike\s
0f10: 66 6f 75 72 5c 73 5c 72 5c 6e 64 69 66 66 65 72 four\s\r\ndiffer
0f20: 65 6e 74 5c 73 69 6d 70 6c 65 6d 65 6e 74 61 74 ent\simplementat
0f30: 69 6f 6e 73 2c 5c 73 6d 61 6e 79 5c 73 6f 66 5c ions,\smany\sof\
0f40: 73 77 68 69 63 68 5c 73 64 6f 6e 27 74 5c 73 6e swhich\sdon't\sn
0f50: 65 65 64 5c 73 74 68 69 73 5c 73 6c 6f 63 6b 5c eed\sthis\slock\
0f60: 73 61 74 5c 73 61 6c 6c 5c 73 5c 72 5c 6e 28 62 sat\sall\s\r\n(b
0f70: 75 74 5c 73 6e 6f 74 5c 73 74 68 65 5c 73 6c 61 ut\snot\sthe\sla
0f80: 73 74 5c 73 72 65 73 6f 72 74 5c 73 69 6d 70 6c st\sresort\simpl
0f90: 65 6d 65 6e 74 61 74 69 6f 6e 5c 73 76 69 61 5c ementation\svia\
0fa0: 73 70 74 68 72 65 61 64 73 5c 73 49 5c 73 65 6e spthreads\sI\sen
0fb0: 64 5c 73 75 70 5c 73 77 69 74 68 29 2c 5c 73 5c d\sup\swith),\s\
0fc0: 72 5c 6e 73 6f 5c 73 69 74 5c 73 77 6f 75 6c 64 r\nso\sit\swould
0fd0: 5c 73 6e 6f 74 5c 73 62 65 5c 73 6f 75 74 72 61 \snot\sbe\soutra
0fe0: 67 65 6f 75 73 5c 73 74 6f 5c 73 73 75 73 70 65 geous\sto\ssuspe
0ff0: 63 74 5c 73 61 5c 73 62 75 67 5c 73 69 6e 5c 73 ct\sa\sbug\sin\s
1000: 6c 69 62 63 72 79 70 74 6f 5c 73 77 68 65 72 65 libcrypto\swhere
1010: 5c 73 74 68 69 73 5c 73 5c 72 5c 6e 66 69 65 6c \sthis\s\r\nfiel
1020: 64 5c 73 6e 65 76 65 72 5c 73 67 65 74 73 5c 73 d\snever\sgets\s
1030: 69 6e 69 74 69 61 6c 69 73 65 64 2c 5c 73 62 75 initialised,\sbu
1040: 74 5c 73 74 68 61 74 5c 73 69 73 5c 73 6e 6f 74 t\sthat\sis\snot
1050: 5c 73 77 68 61 74 5c 73 69 73 5c 73 67 6f 69 6e \swhat\sis\sgoin
1060: 67 5c 73 6f 6e 2e 5c 72 5c 6e 5c 72 5c 6e 53 6f g\son.\r\n\r\nSo
1070: 6d 65 5c 73 68 61 63 6b 69 6e 67 5c 73 74 6f 5c me\shacking\sto\
1080: 73 69 6e 73 65 72 74 5c 73 73 74 61 74 65 6d 65 sinsert\sstateme
1090: 6e 74 73 5c 73 70 72 69 6e 74 69 6e 67 5c 73 74 nts\sprinting\st
10a0: 68 65 5c 73 76 61 6c 75 65 5c 73 6f 66 5c 73 64 he\svalue\sof\sd
10b0: 68 2d 3e 6c 6f 63 6b 5c 73 5c 72 5c 6e 72 65 76 h->lock\s\r\nrev
10c0: 65 61 6c 73 5c 73 74 68 61 74 5c 73 69 74 5c 73 eals\sthat\sit\s
10d0: 69 73 5c 73 69 6e 64 65 65 64 5c 73 4e 55 4c 4c is\sindeed\sNULL
10e0: 5c 73 77 68 65 6e 5c 73 72 75 6e 5c 73 75 6e 64 \swhen\srun\sund
10f0: 65 72 5c 73 57 69 73 68 2c 5c 73 62 75 74 5c 73 er\sWish,\sbut\s
1100: 6e 6f 6e 2d 4e 55 4c 4c 5c 73 5c 72 5c 6e 77 68 non-NULL\s\r\nwh
1110: 65 6e 5c 73 72 75 6e 5c 73 75 6e 64 65 72 5c 73 en\srun\sunder\s
1120: 74 63 6c 73 68 2e 5c 73 53 6f 6d 65 5c 73 6d 6f tclsh.\sSome\smo
1130: 72 65 5c 73 68 61 63 6b 69 6e 67 5c 73 69 6e 5c re\shacking\sin\
1140: 73 64 68 5f 70 61 72 61 6d 73 2e 68 5c 73 72 65 sdh_params.h\sre
1150: 76 65 61 6c 73 5c 73 74 68 61 74 5c 73 5c 72 5c veals\sthat\s\r\
1160: 6e 74 68 69 73 5c 73 69 73 5c 73 77 68 61 74 5c nthis\sis\swhat\
1170: 73 74 68 61 74 5c 73 73 74 72 75 63 74 5c 73 69 sthat\sstruct\si
1180: 73 5c 73 6c 69 6b 65 5c 73 61 6c 72 65 61 64 79 s\slike\salready
1190: 5c 73 77 68 65 6e 5c 73 44 48 5f 6e 65 77 5c 73 \swhen\sDH_new\s
11a0: 72 65 74 75 72 6e 73 5c 73 69 74 2e 5c 73 5c 72 returns\sit.\s\r
11b0: 5c 6e 54 68 69 73 5c 73 63 6f 75 6c 64 5c 73 73 \nThis\scould\ss
11c0: 74 69 6c 6c 5c 73 62 65 5c 73 61 5c 73 6d 61 74 till\sbe\sa\smat
11d0: 74 65 72 5c 73 6f 66 5c 73 75 6e 69 6e 69 74 69 ter\sof\suniniti
11e0: 61 6c 69 73 65 64 5c 73 6d 65 6d 6f 72 79 5c 73 alised\smemory\s
11f0: 6a 75 73 74 5c 73 68 61 70 70 65 6e 69 6e 67 5c just\shappening\
1200: 73 5c 72 5c 6e 74 6f 5c 73 68 61 76 65 5c 73 61 s\r\nto\shave\sa
1210: 5c 73 66 6f 72 74 75 69 74 6f 75 73 5c 73 76 61 \sfortuitous\sva
1220: 6c 75 65 5c 73 69 6e 5c 73 74 63 6c 73 68 5c 73 lue\sin\stclsh\s
1230: 62 75 74 5c 73 6e 6f 74 5c 73 57 69 73 68 2c 5c but\snot\sWish,\
1240: 73 74 68 6f 75 67 68 5c 73 74 6f 5c 73 62 65 5c sthough\sto\sbe\
1250: 73 73 75 72 65 5c 73 5c 72 5c 6e 6f 6e 65 5c 73 ssure\s\r\none\s
1260: 6e 65 65 64 73 5c 73 74 6f 5c 73 73 65 65 5c 73 needs\sto\ssee\s
1270: 77 68 61 74 5c 73 44 48 5f 6e 65 77 5c 73 28 6f what\sDH_new\s(o
1280: 72 5c 73 72 61 74 68 65 72 5c 73 74 68 65 5c 73 r\srather\sthe\s
1290: 75 6e 64 65 72 6c 79 69 6e 67 5c 73 44 48 5f 6e underlying\sDH_n
12a0: 65 77 5f 6d 65 74 68 6f 64 2c 5c 73 5c 72 5c 6e ew_method,\s\r\n
12b0: 62 6f 74 68 5c 73 6c 69 76 69 6e 67 5c 73 69 6e both\sliving\sin
12c0: 5c 73 6f 70 65 6e 73 73 6c 2d 31 2e 31 2e 31 67 \sopenssl-1.1.1g
12d0: 2f 63 72 79 70 74 6f 2f 64 68 2f 64 68 5f 6c 69 /crypto/dh/dh_li
12e0: 62 2e 63 29 5c 73 69 73 5c 73 64 6f 69 6e 67 2e b.c)\sis\sdoing.
12f0: 5c 72 5c 6e 5c 72 5c 6e 54 68 69 73 5c 73 69 73 \r\n\r\nThis\sis
1300: 5c 73 77 68 65 72 65 5c 73 74 68 69 6e 67 73 5c \swhere\sthings\
1310: 73 67 65 74 5c 73 77 65 69 72 64 2c 5c 73 62 65 sget\sweird,\sbe
1320: 63 61 75 73 65 5c 73 66 72 6f 6d 5c 73 52 54 46 cause\sfrom\sRTF
1330: 53 5c 73 74 68 61 74 5c 73 66 75 6e 63 74 69 6f S\sthat\sfunctio
1340: 6e 5c 73 68 61 73 5c 73 5c 72 5c 6e 61 6e 5c 73 n\shas\s\r\nan\s
1350: 65 78 70 6c 69 63 69 74 5c 73 63 68 65 63 6b 5c explicit\scheck\
1360: 73 77 68 65 74 68 65 72 5c 73 6c 6f 63 6b 5c 73 swhether\slock\s
1370: 69 73 5c 73 4e 55 4c 4c 2c 5c 73 61 6e 64 5c 73 is\sNULL,\sand\s
1380: 77 69 6c 6c 5c 73 72 65 74 75 72 6e 5c 73 4e 55 will\sreturn\sNU
1390: 4c 4c 5c 73 66 6f 72 5c 73 74 68 65 5c 73 5c 72 LL\sfor\sthe\s\r
13a0: 5c 6e 64 68 5c 73 70 6f 69 6e 74 65 72 5c 73 69 \ndh\spointer\si
13b0: 66 5c 73 69 74 5c 73 69 73 2e 5c 73 59 65 74 5c f\sit\sis.\sYet\
13c0: 73 77 68 65 6e 5c 73 72 75 6e 2c 5c 73 44 48 5f swhen\srun,\sDH_
13d0: 6e 65 77 5c 73 69 73 5c 73 72 65 74 75 72 6e 69 new\sis\sreturni
13e0: 6e 67 5c 73 61 5c 73 6e 6f 6e 2d 4e 55 4c 4c 5c ng\sa\snon-NULL\
13f0: 73 5c 72 5c 6e 70 6f 69 6e 74 65 72 5c 73 66 6f s\r\npointer\sfo
1400: 72 5c 73 64 68 5c 73 73 75 63 68 5c 73 74 68 61 r\sdh\ssuch\stha
1410: 74 5c 73 64 68 2d 3e 6c 6f 63 6b 5c 73 69 73 5c t\sdh->lock\sis\
1420: 73 4e 55 4c 4c 2e 5c 73 54 68 69 73 5c 73 73 68 sNULL.\sThis\ssh
1430: 6f 75 6c 64 5c 73 6e 6f 74 5c 73 68 61 70 70 65 ould\snot\shappe
1440: 6e 2e 5c 73 5c 72 5c 6e 4d 69 67 68 74 5c 73 73 n.\s\r\nMight\ss
1450: 6f 6d 65 5c 73 6c 61 74 65 72 5c 73 69 6e 73 74 ome\slater\sinst
1460: 72 75 63 74 69 6f 6e 5c 73 69 6e 5c 73 44 48 5f ruction\sin\sDH_
1470: 6e 65 77 5f 6d 65 74 68 6f 64 5c 73 62 65 5c 73 new_method\sbe\s
1480: 6f 76 65 72 77 72 69 74 69 6e 67 5c 73 74 68 65 overwriting\sthe
1490: 5c 73 6c 6f 63 6b 5c 73 5c 72 5c 6e 77 69 74 68 \slock\s\r\nwith
14a0: 5c 73 67 61 72 62 61 67 65 3f 5c 73 4f 6e 6c 79 \sgarbage?\sOnly
14b0: 5c 73 77 61 79 5c 73 74 6f 5c 73 74 65 6c 6c 5c \sway\sto\stell\
14c0: 73 69 73 5c 73 74 6f 5c 73 62 72 69 6e 67 5c 73 sis\sto\sbring\s
14d0: 6f 75 74 5c 73 61 5c 73 64 65 62 75 67 67 65 72 out\sa\sdebugger
14e0: 2e 5c 73 54 68 61 74 27 73 5c 73 5c 72 5c 6e 77 .\sThat's\s\r\nw
14f0: 68 65 72 65 5c 73 74 68 69 6e 67 73 5c 73 67 65 here\sthings\sge
1500: 74 5c 73 2a 72 65 61 6c 6c 79 2a 5c 73 77 65 69 t\s*really*\swei
1510: 72 64 2e 5c 72 5c 6e 5c 72 5c 6e 28 49 6e 5c 73 rd.\r\n\r\n(In\s
1520: 72 65 74 72 6f 73 70 65 63 74 2c 5c 73 77 6f 72 retrospect,\swor
1530: 6b 69 6e 67 5c 73 77 69 74 68 5c 73 74 68 69 73 king\swith\sthis
1540: 5c 73 69 73 73 75 65 5c 73 74 68 65 5c 73 66 69 \sissue\sthe\sfi
1550: 72 73 74 5c 73 74 69 6d 65 5c 73 6f 6e 65 5c 73 rst\stime\sone\s
1560: 75 73 65 73 5c 73 67 64 62 5c 73 5c 72 5c 6e 69 uses\sgdb\s\r\ni
1570: 73 5c 73 70 72 6f 62 61 62 6c 79 5c 73 6e 6f 74 s\sprobably\snot
1580: 5c 73 69 64 65 61 6c 2c 5c 73 62 75 74 5c 73 68 \sideal,\sbut\sh
1590: 65 79 2c 5c 73 49 27 76 65 5c 73 6c 65 61 72 6e ey,\sI've\slearn
15a0: 74 5c 73 73 6f 6d 65 5c 73 67 64 62 5c 73 6e 6f t\ssome\sgdb\sno
15b0: 77 21 5c 73 47 6f 6f 64 5c 73 66 6f 72 5c 73 6d w!\sGood\sfor\sm
15c0: 65 2e 29 5c 72 5c 6e 5c 72 5c 6e 46 6f 72 5c 73 e.)\r\n\r\nFor\s
15d0: 73 6f 6d 65 5c 73 72 65 61 73 6f 6e 2c 5c 73 67 some\sreason,\sg
15e0: 64 62 5c 73 72 65 66 75 73 65 73 5c 73 74 6f 5c db\srefuses\sto\
15f0: 73 73 74 65 70 5c 73 69 6e 74 6f 5c 73 74 68 65 sstep\sinto\sthe
1600: 5c 73 44 48 5f 6e 65 77 5c 73 66 75 6e 63 74 69 \sDH_new\sfuncti
1610: 6f 6e 2c 5c 73 5c 72 5c 6e 63 6f 6d 70 6c 61 69 on,\s\r\ncomplai
1620: 6e 69 6e 67 5c 73 61 62 6f 75 74 5c 73 74 68 65 ning\sabout\sthe
1630: 72 65 5c 73 6e 6f 74 5c 73 62 65 69 6e 67 5c 73 re\snot\sbeing\s
1640: 6c 69 6e 65 5c 73 6e 75 6d 62 65 72 5c 73 69 6e line\snumber\sin
1650: 66 6f 72 6d 61 74 69 6f 6e 5c 73 61 76 61 69 6c formation\savail
1660: 61 62 6c 65 2e 5c 73 5c 72 5c 6e 49 6e 5c 73 72 able.\s\r\nIn\sr
1670: 65 74 72 6f 73 70 65 63 74 5c 73 74 68 69 73 5c etrospect\sthis\
1680: 73 63 6f 75 6c 64 5c 73 68 61 76 65 5c 73 62 65 scould\shave\sbe
1690: 65 6e 5c 73 61 5c 73 63 6c 75 65 2c 5c 73 62 75 en\sa\sclue,\sbu
16a0: 74 5c 73 49 5c 73 73 70 65 6e 64 5c 73 61 5c 73 t\sI\sspend\sa\s
16b0: 6c 6f 74 5c 73 6f 66 5c 73 74 69 6d 65 5c 73 5c lot\sof\stime\s\
16c0: 72 5c 6e 66 69 64 64 6c 69 6e 67 5c 73 77 69 74 r\nfiddling\swit
16d0: 68 5c 73 63 6f 6d 70 69 6c 65 72 5c 73 6f 70 74 h\scompiler\sopt
16e0: 69 6f 6e 73 5c 73 66 6f 72 5c 73 64 65 62 75 67 ions\sfor\sdebug
16f0: 5c 73 69 6e 66 6f 72 6d 61 74 69 6f 6e 2c 5c 73 \sinformation,\s
1700: 68 6f 70 69 6e 67 5c 73 74 68 61 74 5c 73 74 68 hoping\sthat\sth
1710: 69 73 5c 73 5c 72 5c 6e 77 69 6c 6c 5c 73 64 6f is\s\r\nwill\sdo
1720: 5c 73 74 68 65 5c 73 74 72 69 63 6b 2e 5c 73 49 \sthe\strick.\sI
1730: 74 5c 73 6d 69 67 68 74 5c 73 65 76 65 6e 5c 73 t\smight\seven\s
1740: 68 61 76 65 5c 73 68 65 6c 70 65 64 5c 73 61 5c have\shelped\sa\
1750: 73 62 69 74 2c 5c 73 62 75 74 5c 73 65 76 65 6e sbit,\sbut\seven
1760: 74 75 61 6c 6c 79 5c 73 49 27 6d 5c 73 5c 72 5c tually\sI'm\s\r\
1770: 6e 64 6f 77 6e 5c 73 74 6f 5c 73 73 74 65 70 70 ndown\sto\sstepp
1780: 69 6e 67 5c 73 61 74 5c 73 74 68 65 5c 73 6d 61 ing\sat\sthe\sma
1790: 63 68 69 6e 65 5c 73 63 6f 64 65 5c 73 6c 65 76 chine\scode\slev
17a0: 65 6c 2e 5c 73 54 68 65 5c 73 67 64 62 5c 73 6c el.\sThe\sgdb\sl
17b0: 69 73 74 5c 73 63 6f 6d 6d 61 6e 64 5c 73 69 73 ist\scommand\sis
17c0: 5c 73 6e 6f 74 5c 73 5c 72 5c 6e 73 68 6f 77 69 \snot\s\r\nshowi
17d0: 6e 67 5c 73 61 6e 79 74 68 69 6e 67 5c 73 74 68 ng\sanything\sth
17e0: 61 74 5c 73 6d 61 6b 65 73 5c 73 73 65 6e 73 65 at\smakes\ssense
17f0: 2c 5c 73 62 75 74 5c 73 74 68 65 5c 73 64 69 73 ,\sbut\sthe\sdis
1800: 61 73 73 65 6d 62 6c 65 5c 73 63 6f 6d 6d 61 6e assemble\scomman
1810: 64 5c 73 69 73 5c 73 6d 79 5c 73 5c 72 5c 6e 66 d\sis\smy\s\r\nf
1820: 72 69 65 6e 64 2c 5c 73 6f 6e 63 65 5c 73 49 5c riend,\sonce\sI\
1830: 73 72 65 66 72 65 73 68 5c 73 6d 79 73 65 6c 66 srefresh\smyself
1840: 5c 73 6f 6e 5c 73 74 68 65 5c 73 6d 65 6d 6e 6f \son\sthe\smemno
1850: 6e 69 63 73 2e 5c 73 57 68 61 74 5c 73 49 5c 73 nics.\sWhat\sI\s
1860: 73 65 65 5c 73 69 73 5c 73 e2 80 a6 5c 73 5c 72 see\sis\s…\s\r
1870: 5c 6e 70 6c 61 75 73 69 62 6c 79 5c 73 74 68 65 \nplausibly\sthe
1880: 5c 73 44 48 5f 6e 65 77 5f 6d 65 74 68 6f 64 5c \sDH_new_method\
1890: 73 66 75 6e 63 74 69 6f 6e 2c 5c 73 62 75 74 5c sfunction,\sbut\
18a0: 73 69 74 5c 73 6c 6f 6f 6b 73 5c 73 6c 69 6b 65 sit\slooks\slike
18b0: 5c 73 69 74 5c 73 68 61 73 5c 73 62 65 65 6e 5c \sit\shas\sbeen\
18c0: 73 5c 72 5c 6e 6f 70 74 69 6d 69 73 65 64 5c 73 s\r\noptimised\s
18d0: 74 6f 5c 73 68 65 6c 6c 5c 73 61 6e 64 5c 73 62 to\shell\sand\sb
18e0: 61 63 6b 2c 5c 73 61 6e 64 5c 73 69 6e 64 65 65 ack,\sand\sindee
18f0: 64 5c 73 74 68 65 5c 73 63 72 75 63 69 61 6c 5c d\sthe\scrucial\
1900: 73 43 52 59 50 54 4f 5f 54 48 52 45 41 44 5f 6c sCRYPTO_THREAD_l
1910: 6f 63 6b 5f 6e 65 77 5c 73 5c 72 5c 6e 63 61 6c ock_new\s\r\ncal
1920: 6c 5c 73 69 73 5c 73 6d 69 73 73 69 6e 67 2e 5c l\sis\smissing.\
1930: 73 42 75 74 5c 73 74 68 69 73 5c 73 6c 69 62 63 sBut\sthis\slibc
1940: 72 79 70 74 6f 5c 73 77 61 73 5c 73 63 6f 6d 70 rypto\swas\scomp
1950: 69 6c 65 64 5c 73 77 69 74 68 5c 73 2d 4f 30 2c iled\swith\s-O0,
1960: 5c 73 73 6f 5c 73 77 68 79 5c 73 77 6f 75 6c 64 \sso\swhy\swould
1970: 5c 73 5c 72 5c 6e 69 74 5c 73 62 65 5c 73 6f 70 \s\r\nit\sbe\sop
1980: 74 69 6d 69 73 65 64 3f 3f 5c 72 5c 6e 5c 72 5c timised??\r\n\r\
1990: 6e 49 6e 64 65 65 64 2c 5c 73 77 68 65 6e 5c 73 nIndeed,\swhen\s
19a0: 72 75 6e 6e 69 6e 67 5c 73 67 64 62 5c 73 6f 6e running\sgdb\son
19b0: 5c 73 6a 75 73 74 5c 73 6c 69 62 63 72 79 70 74 \sjust\slibcrypt
19c0: 6f 2e 31 2e 31 2e 64 79 6c 69 62 5c 73 49 5c 73 o.1.1.dylib\sI\s
19d0: 67 65 74 5c 73 61 5c 73 64 69 73 61 73 73 65 6d get\sa\sdisassem
19e0: 62 6c 79 5c 73 5c 72 5c 6e 6c 6f 6f 6b 69 6e 67 bly\s\r\nlooking
19f0: 5c 73 74 68 65 5c 73 77 61 79 5c 73 49 5c 73 6d \sthe\sway\sI\sm
1a00: 69 67 68 74 5c 73 65 78 70 65 63 74 5c 73 28 65 ight\sexpect\s(e
1a10: 76 65 6e 5c 73 6f 76 65 72 6c 79 5c 73 72 6f 75 ven\soverly\srou
1a20: 6e 64 61 62 6f 75 74 29 2e 5c 73 45 76 65 6e 5c ndabout).\sEven\
1a30: 73 6d 6f 72 65 5c 73 5c 72 5c 6e 73 74 72 61 6e smore\s\r\nstran
1a40: 67 65 2c 5c 73 49 5c 73 67 65 74 5c 73 74 68 65 ge,\sI\sget\sthe
1a50: 5c 73 73 61 6d 65 5c 73 6c 69 73 74 69 6e 67 5c \ssame\slisting\
1a60: 73 77 68 65 6e 5c 73 49 5c 73 61 73 6b 5c 73 74 swhen\sI\sask\st
1a70: 68 65 5c 73 67 64 62 5c 73 64 65 62 75 67 67 69 he\sgdb\sdebuggi
1a80: 6e 67 5c 73 57 69 73 68 5c 73 74 6f 5c 73 5c 72 ng\sWish\sto\s\r
1a90: 5c 6e 5c 73 5c 73 64 69 73 61 73 73 65 6d 62 6c \n\s\sdisassembl
1aa0: 65 5c 73 44 48 5f 6e 65 77 5f 6d 65 74 68 6f 64 e\sDH_new_method
1ab0: 5c 72 5c 6e 53 6f 5c 73 77 68 79 5c 73 69 73 6e \r\nSo\swhy\sisn
1ac0: 27 74 5c 73 2a 74 68 61 74 2a 5c 73 74 68 65 5c 't\s*that*\sthe\
1ad0: 73 63 6f 64 65 5c 73 74 68 61 74 5c 73 74 68 69 scode\sthat\sthi
1ae0: 73 5c 73 70 72 6f 63 65 73 73 5c 73 69 73 5c 73 s\sprocess\sis\s
1af0: 72 75 6e 6e 69 6e 67 3f 3f 5c 73 54 68 65 6e 5c running??\sThen\
1b00: 73 69 74 5c 73 68 69 74 73 5c 73 5c 72 5c 6e 6d sit\shits\s\r\nm
1b10: 65 3a 5c 73 74 68 65 5c 73 61 64 64 72 65 73 73 e:\sthe\saddress
1b20: 65 73 5c 73 64 6f 6e 27 74 5c 73 6d 61 74 63 68 es\sdon't\smatch
1b30: 2e 5c 73 54 68 65 5c 73 67 6f 6f 64 5c 73 44 48 .\sThe\sgood\sDH
1b40: 5f 6e 65 77 5f 6d 65 74 68 6f 64 5c 73 69 73 5c _new_method\sis\
1b50: 73 61 74 5c 73 5c 72 5c 6e 30 78 30 30 30 30 30 sat\s\r\n0x00000
1b60: 30 30 31 31 34 65 37 62 66 65 30 2c 5c 73 62 75 00114e7bfe0,\sbu
1b70: 74 5c 73 74 68 65 5c 73 6f 6e 65 5c 73 74 68 61 t\sthe\sone\stha
1b80: 74 5c 73 67 65 74 73 5c 73 63 61 6c 6c 65 64 5c t\sgets\scalled\
1b90: 73 69 73 5c 73 61 74 5c 73 30 78 30 30 30 30 37 sis\sat\s0x00007
1ba0: 66 66 66 38 61 34 65 36 65 39 30 2e 5c 73 5c 72 fff8a4e6e90.\s\r
1bb0: 5c 6e 67 64 62 5c 73 73 61 79 73 5c 73 62 6f 74 \ngdb\ssays\sbot
1bc0: 68 5c 73 61 72 65 5c 73 63 61 6c 6c 65 64 5c 73 h\sare\scalled\s
1bd0: 44 48 5f 6e 65 77 5f 6d 65 74 68 6f 64 2c 5c 73 DH_new_method,\s
1be0: 62 75 74 5c 73 30 78 30 30 30 30 37 66 66 66 38 but\s0x00007fff8
1bf0: 61 34 65 36 65 39 30 5c 73 69 73 5c 73 69 6e 5c a4e6e90\sis\sin\
1c00: 73 5c 72 5c 6e 6c 69 62 63 72 79 70 74 6f 2e 30 s\r\nlibcrypto.0
1c10: 2e 39 2e 38 2e 64 79 6c 69 62 2c 5c 73 77 68 65 .9.8.dylib,\swhe
1c20: 72 65 61 73 5c 73 30 78 30 30 30 30 30 30 30 31 reas\s0x00000001
1c30: 31 34 65 37 62 66 65 30 5c 73 69 73 5c 73 69 6e 14e7bfe0\sis\sin
1c40: 5c 73 5c 72 5c 6e 6c 69 62 63 72 79 70 74 6f 2e \s\r\nlibcrypto.
1c50: 31 2e 31 2e 64 79 6c 69 62 2c 5c 73 6a 75 73 74 1.1.dylib,\sjust
1c60: 5c 73 6c 69 6b 65 5c 73 63 61 6c 6c 5c 73 74 68 \slike\scall\sth
1c70: 61 74 5c 73 69 6e 76 6f 6b 65 73 5c 73 74 68 65 at\sinvokes\sthe
1c80: 5c 73 43 52 59 50 54 4f 5f 55 50 5f 52 45 46 5c \sCRYPTO_UP_REF\
1c90: 73 5c 72 5c 6e 6f 70 65 72 61 74 69 6f 6e 2e 5c s\r\noperation.\
1ca0: 73 4d 79 73 74 65 72 79 5c 73 73 6f 6c 76 65 64 sMystery\ssolved
1cb0: 2c 5c 73 74 6f 5c 73 73 6f 6d 65 5c 73 65 78 74 ,\sto\ssome\sext
1cc0: 65 6e 74 2e 5c 72 5c 6e 5c 72 5c 6e 4e 6f 77 5c ent.\r\n\r\nNow\
1cd0: 73 49 5c 73 6f 6e 6c 79 5c 73 6e 65 65 64 5c 73 sI\sonly\sneed\s
1ce0: 74 6f 5c 73 66 69 67 75 72 65 5c 73 6f 75 74 5c to\sfigure\sout\
1cf0: 73 68 6f 77 5c 73 74 6f 5c 73 6d 61 6b 65 5c 73 show\sto\smake\s
1d00: 54 63 6c 54 4c 53 5c 73 62 69 6e 64 5c 73 74 6f TclTLS\sbind\sto
1d10: 5c 73 74 68 65 5c 73 72 69 67 68 74 5c 73 5c 72 \sthe\sright\s\r
1d20: 5c 6e 69 6e 73 74 61 6e 63 65 73 5c 73 6f 66 5c \ninstances\sof\
1d30: 73 74 68 65 73 65 5c 73 73 79 6d 62 6f 6c 73 2e sthese\ssymbols.
1d40: 5c 73 49 74 5c 73 77 6f 75 6c 64 5c 73 68 65 6c \sIt\swould\shel
1d50: 70 5c 73 67 65 74 74 69 6e 67 5c 73 73 6f 6d 65 p\sgetting\ssome
1d60: 5c 73 69 6e 70 75 74 5c 73 66 72 6f 6d 5c 73 5c \sinput\sfrom\s\
1d70: 72 5c 6e 70 65 6f 70 6c 65 5c 73 77 68 6f 5c 73 r\npeople\swho\s
1d80: 61 63 74 75 61 6c 6c 79 5c 73 6b 6e 6f 77 5c 73 actually\sknow\s
1d90: 68 6f 77 5c 73 61 6c 6c 5c 73 74 68 65 73 65 5c how\sall\sthese\
1da0: 73 74 68 69 6e 67 73 5c 73 61 72 65 5c 73 73 75 sthings\sare\ssu
1db0: 70 70 6f 73 65 64 5c 73 74 6f 5c 73 66 69 74 5c pposed\sto\sfit\
1dc0: 73 5c 72 5c 6e 74 6f 67 65 74 68 65 72 2c 5c 73 s\r\ntogether,\s
1dd0: 69 6e 73 74 65 61 64 5c 73 6f 66 5c 73 68 61 76 instead\sof\shav
1de0: 69 6e 67 5c 73 74 6f 5c 73 67 75 65 73 73 5c 73 ing\sto\sguess\s
1df0: 77 68 69 6c 65 5c 73 72 61 6e 64 6f 6d 6c 79 5c while\srandomly\
1e00: 73 70 6f 6b 69 6e 67 2e 0a 4a 20 6c 6f 67 69 6e spoking..J login
1e10: 20 61 6e 6f 6e 79 6d 6f 75 73 0a 4a 20 6d 69 6d anonymous.J mim
1e20: 65 74 79 70 65 20 74 65 78 74 2f 78 2d 66 6f 73 etype text/x-fos
1e30: 73 69 6c 2d 70 6c 61 69 6e 0a 4a 20 70 72 69 6f sil-plain.J prio
1e40: 72 69 74 79 20 49 6d 6d 65 64 69 61 74 65 0a 4a rity Immediate.J
1e50: 20 72 65 73 6f 6c 75 74 69 6f 6e 20 4f 70 65 6e resolution Open
1e60: 0a 4a 20 75 73 65 72 6e 61 6d 65 20 6c 61 72 73 .J username lars
1e70: 5f 68 0a 4b 20 65 30 31 66 30 32 61 31 32 31 38 _h.K e01f02a1218
1e80: 30 61 63 33 37 63 64 62 39 36 65 63 31 36 64 30 0ac37cdb96ec16d0
1e90: 65 30 33 66 38 39 30 33 33 63 64 37 37 0a 55 20 e03f89033cd77.U
1ea0: 61 6e 6f 6e 79 6d 6f 75 73 0a 5a 20 62 64 31 65 anonymous.Z bd1e
1eb0: 32 63 34 39 37 33 34 62 32 63 63 32 34 65 65 64 2c49734b2cc24eed
1ec0: 30 39 36 34 61 32 34 35 30 62 63 33 0a 0964a2450bc3.