Skip to content
Tcl Source Code Artifact [5b6e81f430]
Login

Artifact [5b6e81f430]

Artifact 5b6e81f430d8ce2e7ca388e38385d9ec263f43f5:

Ticket change [5b6e81f430] - Ticket [3001438fffffffff|3001438fff] <i>[info frame -1] sigsegv under strange circumstances</i> status still Open with 4 other changes by dkf on 2010-06-03 03:35:29.
D 2010-06-03T03:35:29
J icomment That\swas\swith\sa\sbreakpoint\son\sTclInfoFrame\sand\sa\s(conditional\son\s'move')\sbreakpoint\son\sGrowEvaluationStack.\sThere\swere\sa\snumber\sof\sthings\sset\sto\sdisplay\stoo.\sI've\selided\ssome\sstretches\s(marked\swith\s[...])\swhere\snot\smuch\sis\sgoing\son.\n\nThe\sissue\sseems\sto\sbe\sthat\sthere\sis\sconfusion\sabout\swhat\sthe\sevaluation\sstack\shas\sas\stop\sand\sbottom\sso\sit\scalculates\sthe\sspace\srequired\sas\snegative.\sIt\sthen\sallocates\sspace\sthat\shappens\sto\soverlap\swith\ssomething\selse\s(i.e.,\sthere\sis\sa\s4\sbyte\soverlap\sbetween\sthe\sreturned\sblock\sand\sthe\stemporary\sCommand\sallocated\sfor\sthe\sexecution\sof\sthe\smethod).\sThat\sthen\sgets\soverwritten\sa\slittle\sbit\sdown,\scorrupting\sthe\shPtr\sfield\s(the\sfirst\sin\sthe\sstructure)\sand\scausing\sthe\scrash\slater.\sWhich\sexplains\swhy\smy\soriginal\sattitude\swas\sone\sof\s"but\sthis\scan't\shappen".\n\nI\sdon't\sknow\sthat\sI've\sdone\sgood\sprobes\sfor\sfinding\sout\swhat's\sgoing\swrong\sin\sthe\smemory\shandling;\sdon't\sknow\sthat\scode\sat\sall.\n
J login dkf
J mimetype text/plain
J username dkf
K 3001438fffffffffffffffffffffffffffffffff
U dkf
Z 1b531437c44c4c23efb0676be5e25535