Artifacts Associated With Ticket 1901113
Ticket change [f4d9e888fb] (rid 129996) by tallniel on 2008-02-25 02:26:43:
- assignee initialized to: "nijtmans"
- cmimetype initialized to: "text/plain"
- comment initialized to:
The current ::tcl::Bgerror command crashes (Bus error/coredump) on Mac OS X 10.4.11 when called with empty arguments: % info pa 8.5.2b1 % parray tcl_platform tcl_platform(byteOrder) = littleEndian tcl_platform(machine) = i386 tcl_platform(os) = Darwin tcl_platform(osVersion) = 8.11.1 tcl_platform(platform) = unix tcl_platform(pointerSize) = 4 tcl_platform(threaded) = 1 tcl_platform(user) = nem tcl_platform(wordSize) = 4 % interp bgerror {} ::tcl::Bgerror % tcl::Bgerror {} {} Bus error - foundin initialized to: "obsolete: 8.5.2"
- is_private initialized to: "0"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "tallniel"
- subsystem initialized to: "02. Event Loops"
- title initialized to: "Crash in tcl::Bgerror"
- type initialized to: "Bug"
Add attachment "bgerror.patch" [e8c8018c48] (rid 104705) by tallniel on 2008-02-25 09:51:24.
Ticket change [335a32f027] (rid 106581) by tallniel on 2008-02-25 09:51:24:
- assignee changed to: "dgp"
- icomment:
File Added - 267826: bgerror.patch Logged In: YES user_id=102050 Originator: YES Looks like TclDefaultBgErrorHandlerObjCmd (in generic/tclEvent.c) doesn't check for error conditions when retrieving options from the dictionary. Notably, if the dictionary passed in doesn't contain either of the expected keys {-level, -code} then the code will crash as it attempts to access the NULL pointer returned from Tcl_DictObjGet. (The code is safe for -errorcode and -errorinfo). I attach a patch to fix this bug, by assuming -level 0 and -code TCL_ERROR (which seem like reasonable defaults). Obviously, this command is unlikely to be called directly like this anyway, but it's a simple fix to avoid a crash condition. Also assigning to dgp as ChangeLog has your name against last entry for this command. Cheers, Neil File Added: bgerror.patch - login: "tallniel"
- mimetype: "text/plain"
- username: "tallniel"
Ticket change [9e85a87d44] (rid 96484) by dgp on 2008-02-26 04:55:57:
- icomment:
Logged In: YES user_id=80530 Originator: NO thanks for catching this. crashing is bad; this needs fixing. I think the right fix, though, is to raise an error back to the caller if required entries of the return options dict are not set.
- login: "dgp"
- mimetype: "text/plain"
- priority changed to: "9 Immediate"
- username: "dgp"
- icomment:
Add attachment "1901113.patch" [164e9e03a4] (rid 124696) by dgp on 2008-03-11 00:49:54.
Ticket change [b430f29f3c] (rid 124984) by dgp on 2008-03-11 00:49:54:
- icomment:
File Added - 269843: 1901113.patch Logged In: YES user_id=80530 Originator: NO Attached path implementing that alternative fix; includes tests. File Added: 1901113.patch
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [d6cf6c5ca8] (rid 123870) by dgp on 2008-03-11 00:53:05:
- closedate changed to: "2008-03-10T17:53:05"
- closer changed to: "dgp"
- icomment:
Logged In: YES user_id=80530 Originator: NO fixed for 8.5.2
- login: "dgp"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"
- username: "dgp"