Skip to content
Tcl Source Code Artifact [114096f6e2]
Login

Artifact [114096f6e2]

Artifact 114096f6e237569240a86cc2afaa3db48d64b791:

Ticket change [114096f6e2] - Ticket [2184717fffffffff|2184717fff] <i>unaligned malloc() -&gt; Tcl panic</i> status still Open with 4 other changes by cc_benny on 2008-10-25 00:10:34.
D 2008-10-25T00:10:34
J icomment >\sHowever,\sEF\sis\sa\suseful\stool,\n\nI'm\ssure\sit\sis.\s\sI\shaven't\sused\sit\sbefore,\sbut\sI\shave\sheard\nabout\sit.\n\n>\sand\sthis\saspect\sof\sits\sbrokenness\sis\sessential\sto\show\sit\n>\sfunctions.\n\nI\sjust\sdownloaded\sElectricFence\sto\sunderstand\swhat\syou\smean.\nFrom\sthe\smanual\spage\sit\sseems\sthat\sthis\sexact\sissue\sis\naddressed\sby\sits\sconfiguration\sparameter\sEF_ALIGNMENT\sand\nthe\ssection\sin\sthe\smanual\s"WORD-ALIGNMENT\sAND\sOVERRUN\nDETECTION".\n\nTo\scounteract\sthe\sproblem\sposed\sin\sthat\ssection,\sTcl_Alloc\ncould\sround\sup\severy\sallocation\sto\sa\smultiple\sof\nsizeof(void*)\sbefore\scalling\smalloc.\s\sOTOH\ssetting\nEF_ALIGNMENT=8\sseems\sto\shave\sthe\sexact\ssame\seffect\s(on\sa\s64\nbit\ssystem)\swithout\srequiring\schanges\sto\sTcl.\s\sThat\sseems\sto\nme\sto\sbe\sthe\sbetter\soption.\n\nOr\sdid\syou\shave\ssome\sother\schange\sin\smind\sthat\sis\snot\sjust\nequivalent\sto\sEF_ALIGNMENT=8?\n\n
J login cc_benny
J mimetype text/plain
J username cc_benny
K 2184717fffffffffffffffffffffffffffffffff
U cc_benny
Z 97ea3dd3470b9c0de2404ded2d10c2e6