Skip to content
Tcl Source Code Artifact [711612a107]
Login

Artifact [711612a107]

Artifact 711612a10703ef6b0e23a76901960d5c4a860056:

Ticket change [711612a107] - New ticket [1688163fffffffff|1688163fff] <i>Core dump under AIX 5.3 by &quot;string compare&quot; 2 big buffer</i>. by eax128 on 2007-03-26 07:42:39.
D 2007-03-26T07:42:39
J assignee hobbs
J cmimetype text/plain
J comment I\sfound\sa\sproblem\sof\sTCL\sunder\sIBM\sAIX\s5.3,\sif\sI\suse\ssome\stcl\scode\sto\scompare\s2\sbig\sfiles(size\s>\s18M)\s,\sI\sfound\sthe\stcl\swill\score\sdump\sand\sreport\smessage:\s\n"unable\sto\srealloc\s36882016\sbytes\s\nIOT/Abort\strap\s(core\sdumped)\s"\s\n\nI\sdo\sa\stest\sand\sfound\smaybe\sit\sis\s\sa\sspecial\sproblem\sof\sTCL\son\sAIX.\sOther\sUnix\splatforms(hpux,sunos,linux)\sdo\snot\shave\sthis\sproblem.\s\n\n\nThe\stest\scode\sis\sas\sbelow:\s\n\n---\stest.tcl--\s\n#\stest\s"compare\s2\sbig\sfile(>18M)\swith\sstring\scompare"\s\n#\sstep\s1\screate\s2\sbig\sfiles,\ssize\s>\s18M\s\nset\sstring\s""\s\nfor\s{set\si\s0}\s{$i\s<\s512}\s{incr\si}\s{\s\n\s\s\s\sappend\sstring\stest\s\n}\s\n\nif\s{[file\sexists\s./BigFile1\s]}\s{\s\n\s\s\s\sfile\sdelete\s./BigFile1\s\n}\s\n\nif\s{[file\sexists\s./BigFile2\s]}\s{\s\n\s\s\s\sfile\sdelete\s./BigFile2\s\n}\s\n\nset\sfd\s[open\s./BigFile1\sw]\s\nfor\s{set\si\s0}\s{$i\s<\s9000}\s{incr\si}\s{\s\n\s\s\s\sputs\s$fd\s$string\s\n}\s\nclose\s$fd\s\nfile\scopy\s./BigFile1\s\s./BigFile2\s\n\n#\sstep\s2\suse\sstring\scompare\s\nset\sfd1\s[open\s./BigFile1]\s\nset\sfd2\s[open\s./BigFile2]\s\nset\ss1\s[read\s-nonewline\s$fd1]\s\nset\ss2\s[read\s-nonewline\s$fd2]\s\nstring\scompare\s$s1\s$s2\s;#then\stcl\swill\score\sdump\s\n\nAll\sthe\sversion\sof\s\stcl\s8.4.12,\s\stcl8.4.13\s,\stcl8.4.14\sand\stcl\s\s8.5\swill\soccur\sthis\sproblem\son\sAIX\s5.3\s\n\nI\stest\sthis\sproblem\son\s2\sAIX\sboxs,\sboth\sAIX\s5.3,\swith\sdefault\sinstallation,\sboth\sof\sthem\swill\score\sdump.\s\n\n\nIf\sit\shas\sno\srelation\swith\sAIX\skernel\sconfiguration\ssetting,\sI\sthink\sit's\sa\sbug,\smaybe\sfrom\stcl\score,maybe\sfrom\sC\slib\sof\sAIX.\s\n\nThanks\sa\slot\s\n\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\[email protected]\n\n\n\n\n\n
J foundin obsolete:\s8.4.14
J is_private 0
J priority 5\sMedium
J resolution None
J status Open
J submitter eax128
J subsystem 41.\sMemory\sAllocation
J title Core\sdump\sunder\sAIX\s5.3\sby\s"string\scompare"\s2\sbig\sbuffer
J type Bug
K 1688163fffffffffffffffffffffffffffffffff
U eax128
Z e438e51ae3da9fbee628f52d34cfe322