Skip to content
Tcl Source Code History Of Ticket 1372348fffffffff
Login

History Of Ticket 1372348fffffffff

Artifacts Associated With Ticket 1372348fffffffff

  1. Ticket change [96a600face] (rid 106356) by dgp on 2005-12-03 15:19:47:

    1. assignee initialized to: "das"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      
      Recently started seeing these
      failures on the ../macosx build.
      
      They don't appear to be reliable,
      failing only some of the time.
      The ../unix build on Mac OS X
      doesn't show these failures.
      
      ==== iocmd.tf-22.9 chan finalize, for close, ignore
      level, close error FAILED
      ==== Contents of test case:
      
          set res {}
          proc foo {args} {track; oninit; return -level 5
      -code 777 BANG}
          note [set c [chan create {r w} foo]]
          notes [inthread $c {
              note [catch {close $c} msg opt]; note $msg;
      note $opt
              notes
          } c]
          rename foo {}
          set res
      
      ---- Result was:
      {initialize rc117 {read write}} rc117 {finalize rc117}
      1 BANG {-code 1 -level 0 -errorcode NONE -errorline 11
      -errorinfo BANG}
      ---- Result should have been (glob matching):
      {initialize rc* {read write}} rc* {finalize rc*} 1 BANG
      {-code 1 -level 0 -errorcode NONE -errorline 1
      -errorinfo BANG}
      ==== iocmd.tf-22.9 FAILED
      
      ==== iocmd.tf-25.10 chan configure, cgetall, level is
      ignored FAILED
      ==== Contents of test case:
      
          set res {}
          proc foo {args} {
              oninit cget cgetall; onfinal; track
              return -level 55 -code 777 BANG
          }
          set c [chan create {r w} foo]
          notes [inthread $c {
              note [catch {fconfigure $c} msg opt]
              note $msg
              note $opt
              close $c
              notes
          } c]
          rename foo {}
          set res
      
      ---- Result was:
      {cgetall rc148} 1 BANG {-code 1 -level 0 -errorcode
      NONE -errorline 11 -errorinfo BANG}
      ---- Result should have been (glob matching):
      {cgetall rc*} 1 BANG {-code 1 -level 0 -errorcode NONE
      -errorline 1 -errorinfo BANG}
      ==== iocmd.tf-25.10 FAILED
      
      
      
      Appears to just be a mismatch in
      the -errorline value, which I really
      don't understand.
      
    4. foundin initialized to: "obsolete: 8.5a4"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "dgp"
    9. subsystem initialized to: "25. Channel System"
    10. title initialized to: "IO test failures on Mac OS X"
    11. type initialized to: "Bug"
  2. Ticket change [a171339927] (rid 109709) by dkf on 2005-12-04 05:50:36:

    1. icomment:
      Logged In: YES 
      user_id=79902
      
      Looks very much like a dup of 1356071, though that's with a
      different test from the same group (iocmd.tf-27.6).
      
      Something deeply screwy is going on.
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. username: "dkf"
  3. Ticket change [5f40ee3056] (rid 115781) by das on 2005-12-04 07:54:58:

    1. icomment:
      Logged In: YES 
      user_id=90580
      
      I have seen this failure, but also on platforms other than Mac OS X, so I don't 
      think it is platform specific.
      
      
    2. login: "das"
    3. mimetype: "text/plain"
    4. username: "das"
  4. Ticket change [53b1dc13e8] (rid 93803) by dgp on 2005-12-04 10:12:56:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      
      Is --enable-threads the common
      denominator then?
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  5. Ticket change [d68548b7b3] (rid 123821) by das on 2005-12-05 18:11:42:

    1. assignee changed to: "dkf"
    2. icomment:
      Logged In: YES 
      user_id=90580
      
      indeed these tests only run when configured with --enable-threads, since 
      they have a testthread constraint...
      
      BTW, just saw these failures again, on the SF compilefarm host x86-linux2
      Also saw equivalent failures of iocmd.tf-24.13 and iocmd.tf-26.7 when 
      running with TESTFLAGS='-file ioCmd.test'
      
      in all cases '-errorline 11' instead of the expected '-errorline 1' causes the 
      failure.
      
      
      
    3. login: "das"
    4. mimetype: "text/plain"
    5. username: "das"
  6. Ticket change [e86f64d0d7] (rid 104644) by dgp on 2005-12-14 00:10:04:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      
      just a guess... is this
      indicating a failure of
      some [thread eval] mechanism
      to pass through the complete
      return options dictionary?
      Something in the [testthread]
      command that hasn't been updated
      to handle the TIP 90 stuff?
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  7. Ticket change [b98e51b794] (rid 129168) by dgp on 2005-12-14 00:42:48:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      
      looking more carefully,
      it doesn't appear that
      the transfer of return
      options through a thread
      interface is involved
      in the test failures.
      
      Instead have to look more
      carefully at how the results
      of the script level channel
      callbacks get treated in the
      channel reflection code.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  8. Ticket change [f89e55a41c] (rid 91572) by dgp on 2005-12-14 00:52:25:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      
      BTW, it's a complete mystery
      to me what the strange custom
      -code values coupled with large
      -level values are meant to accomplish.
      
      These appear to be present in
      all the tests I've seen fail or
      seen reported to fail.  (1356071)
      
      Either simplify or comment with
      explanations.
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  9. Ticket change [4448132018] (rid 116689) by dgp on 2005-12-14 00:57:24:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      
      ok, common to all the
      failing tests are -level
      values that are bigger
      than the stack depth at
      which the code runs.
      
      this means TCL_RETURN
      is the return code from
      Tcl_EvalObjv() at line
      2012 of tclIORChan.c
      indicating this is
      likely an error in
      the MarshallError() routine.
      
      continuing...
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  10. Ticket change [5d1c438cc9] (rid 115402) by dgp on 2005-12-14 01:11:10:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      
      the problem is in
      the shift of the return
      code from TCL_RETURN
      to TCL_ERROR.
      
      Although the script evaluation
      returned TCL_RETURN, the code
      TCL_ERROR is being passed to
      Tcl_GetReturnOptions() in
      MarshallError().
      
      T_GRO expects to receive the
      return code that the script
      evaluation returned, IIRC.
      
      continuing...
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  11. Ticket change [0b5c3abd0f] (rid 113972) by dgp on 2005-12-14 01:22:47:

    1. assignee changed to: "andreas_kupries"
    2. icomment:
      Logged In: YES 
      user_id=80530
      
      
      the proper fix involves
      a choice.
      
      either TCL_RETURN can
      be marshalled and returned
      along with the correct
      values of -level and -code
      
      or, if the proper thing
      really is conversion of
      all non-TCL_OK codes to
      TCL_ERROR, then at the
      time of that conversion,
      values for -errorinfo
      -errorcode and -errorline
      should be provided, as
      they are for the creation
      of any TCL_ERROR.
      
      
    3. login: "dgp"
    4. mimetype: "text/plain"
    5. username: "dgp"
  12. Ticket change [fd51444c34] (rid 108393) by andreas_kupries on 2006-01-11 03:31:01:

    1. assignee changed to: "dgp"
    2. icomment:
      Logged In: YES 
      user_id=75003
      
      [12:22]dgpaku?
      [12:22]aku.
      [12:22]dgpI see you're back in the chat.
      [12:23]dgpdoes that mean vacation is over?
      [12:23]akuyes
      [12:23]dgpwhen you have a chance, let me know what you
      think of 1372348
      
      [12:24]akuOh, the reflection test failures ...
      [12:25]akuWill have to read all the comments before saying
      anything ...
      [12:25]dgpdiagnosis is complete, just need you to make a
      design choice about the proper fix.
      [12:28]akuIMHO we should keep the conversion TCL_RETURN ->
      TCL_ERROR.  From the TIP ...
      
      [12:28]akuAs a safety precaution any -level specification
      submitted by the driver and a non-zero value will be
      rewritten to a value of 0 to prevent the driver from being
      able to force the user application into the execution of
      arbitrary multi-level returns, i.e. from arbitrarily
      changing the control-flow of the application itself.
      Analogously any -code specification with a non-zero value
      which is not error is rewritten to value 1 (i.e. error).
      
      [12:29]akuI.e. I am doing this to prevent a possibly
      security hole, stop people from playing hooky from the start.
      
      [12:29]dgpok, if you want to copy that comment to the
      report and assign back to me, that would be fine.
      [12:29]akuCan do.
      [12:29]akuI am not sure how to get all the errorInfo data
      you are asking for.
      
      
      
    3. login: "andreas_kupries"
    4. mimetype: "text/plain"
    5. username: "andreas_kupries"
  13. Ticket change [1e6888cd6f] (rid 90968) by dgp on 2006-02-17 23:15:50:

    1. closedate changed to: "2006-02-17T16:15:50"
    2. closer changed to: "dgp"
    3. icomment:
      Logged In: YES 
      user_id=80530
      
      
      committing attached patch.
      
      
    4. login: "dgp"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. username: "dgp"
  14. Add attachment "1372348.patch" [75a26221c1] (rid 105422) by dgp on 2006-02-17 23:15:51.

  15. Ticket change [f17809431c] (rid 109369) by dgp on 2006-02-17 23:15:54:

    1. icomment:
      
      
      File Added - 167824: 1372348.patch
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"