Tcl Source Code

Artifact [532ca439bb]
Login

Artifact 532ca439bb9842506b18ead8c12d6c3a152bbfb5969ec04c13b06359398acf44:

Ticket change [532ca439bb] - New ticket [fc1409fc91] TclOO method with non-literal value for body argument causes segmentation fault. by pooryorick 2017-10-19 21:26:13.
D 2017-10-19T21:26:13.380
J assignee nobody
J closer nobody
J cmimetype text/x-fossil-wiki
J comment The\sfollowing\sscript\scauses\sa\ssegmentation\sfault:\r\n\r\n<code><verbatim>\r\n::oo::objdefine\soo::object\s{\r\n\tmethod\sm1\s{}\s[string\smap\s{a\sb}\shello]\s\r\n}\r\n\r\noo::copy\soo::object\sobj1\r\nobj1\sm1\s\r\n</verbatim></code>\r\n\r\nThis\sis\sa\sregression\scause\sby\sthe\sfix\sto\sbug\s3609693.\sIn\r\nTclOOMethod.c/CloneProcedureMethod,\s<code>TclFreeIntRep(bodyObj)</code>\soccurs\r\non\sa\sTcl_Obj\sthat\shas\sno\sstring\srepresentation.\s\sThe\ssolutions\sis\sto\scall\r\n<code>Tcl_GetString(bodyObj)</code>\sfirst.
J is_private 0
J login pooryorick
J priority 5\sMedium
J private_contact e476148cded301ffff84bcdc432536dc0c949e88
J resolution None
J severity Important
J status Open
J submitter pooryorick
J subsystem 35.\sTclOO\sPackage
J title TclOO\smethod\swith\snon-literal\svalue\sfor\s\sbody\sargument\scauses\ssegmentation\sfault
J type Bug
K fc1409fc9193f33f39f7e6ea353364a9a4b8048c
U pooryorick
Z 48f861ed39473af5f4837309d0e6c9e5