Skip to content
Tcl Source Code History Of Ticket 1901113
Login

History Of Ticket 1901113

Artifacts Associated With Ticket 1901113

  1. Ticket change [f4d9e888fb] (rid 129996) by tallniel on 2008-02-25 02:26:43:

    1. assignee initialized to: "nijtmans"
    2. cmimetype initialized to: "text/plain"
    3. 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
      
      
    4. foundin initialized to: "obsolete: 8.5.2"
    5. is_private initialized to: "0"
    6. priority initialized to: "5 Medium"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "tallniel"
    10. subsystem initialized to: "02. Event Loops"
    11. title initialized to: "Crash in tcl::Bgerror"
    12. type initialized to: "Bug"
  2. Add attachment "bgerror.patch" [e8c8018c48] (rid 104705) by tallniel on 2008-02-25 09:51:24.

  3. Ticket change [335a32f027] (rid 106581) by tallniel on 2008-02-25 09:51:24:

    1. assignee changed to: "dgp"
    2. 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
      
      
    3. login: "tallniel"
    4. mimetype: "text/plain"
    5. username: "tallniel"
  4. Ticket change [9e85a87d44] (rid 96484) by dgp on 2008-02-26 04:55:57:

    1. 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.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. priority changed to: "9 Immediate"
    5. username: "dgp"
  5. Add attachment "1901113.patch" [164e9e03a4] (rid 124696) by dgp on 2008-03-11 00:49:54.

  6. Ticket change [b430f29f3c] (rid 124984) by dgp on 2008-03-11 00:49:54:

    1. 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
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  7. Ticket change [d6cf6c5ca8] (rid 123870) by dgp on 2008-03-11 00:53:05:

    1. closedate changed to: "2008-03-10T17:53:05"
    2. closer changed to: "dgp"
    3. icomment:
      Logged In: YES 
      user_id=80530
      Originator: NO
      
      fixed for 8.5.2
      
      
    4. login: "dgp"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. username: "dgp"