<i>`Expect' memory faults upon issuing `c'</i> status still Open with 4 other changes
by
.
D 2015-07-12T18:37:38.300
J comment as\sadvised\son\scomp.lang.tcl\sI\sissue\sthis\sbug\sreport,\s\shappens\swith\sExpect\s5.45.3\s\sunder\smacosx\s10.10.3:\s\r\n\r\nI\swant\sto\suse\s`expect'\sas\san\sinteractive\sdebugger\sfor\sa\svery\smodest\stcl\sscript.\srunning\sthe\sscript\seither\svia\s`/usr/bin/env\sexpect\s-D\s1'\sor\sby\sadding\ssomewhere\sa\s`debug\s1'\sto\sthe\sscript\sand\sloading\sthe\sExpect\spackage\sfrom\swithin\s`tclsh'\sand\ssourcing\sthe\sscript\s\sfrom\swithin\stclsh\sinitially\sdoes\sthe\sexpected\s(...),\si.e.\sI\sget\sthe\s`dbg'\sprompt\sof\s`Expect'.\s\ssimple\sthings\s(looking\sat\svariables,\ssingle-stepping,\setc.\swork).\sbut\sas\ssoon\sas\sI\sissue\s`c'\sthere\sis\sa\sshort,\snotable\sdelay\s(somewhat\slarger\sthan\susual\sruntime\sof\sthe\sscript\sI'd\ssay)\sfollowed\sby\sa\smemory\sfault.\s\r\n\r\nthe\sproblem\sis\smost\seasily\sreproduced\sby\srunning\sthe\sscript\s(called\s"breakdown"\sfor\stotally\sunrelated\sreasons\s;-)\slike\r\n\s\r\n\s\s\s\sexpect\s-D\s1\sbreakdown\r\n\s\s\s\sc\s\s#(issued\sat\sthe\sdbg\sprompt)\r\n\r\nthis\striggers\sthe\smemfault\seach\sand\severy\stime\son\smy\smachine.\r\n\r\nthe\sscript\sdoes\snothing\sfancy.\sit\suses\s\r\n\r\n\snamespace\spath\s{::tcl::mathop}\s\r\n\spackage\srequire\scmdline\s\r\n\r\notherwise\sit's\s"vanilla\stcl"\s(making\ssome\suse\sof\s`clock')\r\n\r\nI\shave\sattached\sthe\saffected\sscript\splus\ssome\ssmall\srequired\sdata\sfiles\sread\sby\sthe\sscript\sas\sa\starfile.
J icomment I\shave\stried\sto\sfind\sout\swhere\sapproximately\sthe\sproblem\soccurs.\sso\sfar\sI\scan\sonly\sstate:\r\n\r\nit\shappens\sin\sprocedure\s`getLimits'.\sif\sthis\sproc\sis\sbypassed\s(by\sproviding\sa\svalid\svalue\sfor\sits\sreturn\sargument\sso\sthat\sthe\sscript\scan\sproceed)\sthe\smemfault\sdoes\snot\soccur.\sit\salso\sdoes\snot\soccur\sif\sonly\sa\s_single_\sdata\sfile\s(not\snecessarily\sthe\sfirst\sone)\sis\sprocessed.\sso\sediting\sthe\s`set\sdatabases\s{d1\sd2\sd3\sd4}'\r\nline\sat\sthe\send\sof\sthe\sscript\saccordingly\s(e.g.\s`set\sdatabases\sd2')\sthe\smemfault\safter\sissuing\s`c'\sfrom\swithin\sthe\sexpect\sdebugger\sdoes\salso\snot\soccur.\r\n\r\nso\sonly\sif\s\sa\ssecond\scall\sto\s`getLimits'\soccurs\sthe\smemfault\sis\striggered\s(it\salso\sseems\sthat\sin\sthis\scase\sthe\smemfault\soccurs\simmediately\sat\stime\sof\sthe\ssecond\scall\sand\snothing\smore\sis\sexecuted).\r\n\r\nI\swould\ssuspect\sthat\sit\shas\sto\sdo\swith\sthe\suse\sof\sthe\s`clock'\scommand\sbut\sthis\sis\sonly\sa\swild\sguess.\snot\ssure\swhether\sthis\sis\shelpful\s...
J login anonymous
J mimetype text/plain
K 4f51fb37428603a028f505129f6978c2445fbc08
U anonymous
Z 43847b0bdc638ceef178530adbfc3715