Skip to content
Tcl Source Code History Of Ticket 968422ffffffffff
Login

History Of Ticket 968422ffffffffff

Artifacts Associated With Ticket 968422ffffffffff

  1. Ticket change [943b77e94a] (rid 105954) by techentin on 2004-06-07 20:19:25:

    1. assignee initialized to: "mdejong"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      Compiling CVS Head (which I think corresponds to 8.5a1)
      on HP-UX 11.0 using this configuration:
      
        ./configure CC=cc CFLAGS=+Onolimit --enable-64bit
      
      produces a tclsh that doesn't work correctly.  When
      attempting any package require, this error is reported.
      
        % package require tcltest
        can't read "old": no such variable
        % set ::errorInfo
        can't read "old": no such variable
            while executing
        "if {$dir ne $old} {
                            # This entry in $::auto_path has
      changed.
                            break
                        }"
            (procedure "tclPkgUnknown" line 60)
            invoked from within
        "tclPkgUnknown tcltest {}"
            ("package unknown" script)
            invoked from within
        "package require tcltest"
      
      
      The "reduced" code to generate this error is a
      double-foreach loop in a proc, like this:
      
        % proc a {} {foreach a {1 2 3} b {4 5 6} {puts "$a $b"}}
        % a
        can't read "b": no such variable
      
      
      
      This error only occurs with both "+DD64" from the
      --enable-64bit configure option and the "+Onolimit"
      option, which HP documents as "Do not suppress
      optimizations that significantly increase compile-time
      or consume enormous amounts of memory."  
      
      I'm not sure which optimizations are usually suppressed
      - the documentation only mentions +Oinline_budget,
      which does not seem to be the root of this problem.  So
      I haven't narrowed it down to a specific optimization.
      
      So it might be an HP optimizer problem, or it might be
      a Tcl code problem.  I will check our compiler revision
      to find out if there are HP patches.
      
      
      
      
      
    4. foundin initialized to: "obsolete: 8.5a2"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "techentin"
    9. subsystem initialized to: "52. Portability Support"
    10. title initialized to:
      No such variable error on HP-UX 11, native cc with 64-bit
      
    11. type initialized to: "Bug"
  2. Ticket change [1d0d926bfc] (rid 90721) by dgp on 2004-06-08 05:09:27:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      Sounds like an optimization bug
      in the compiler.  Shows up in
      compiled [foreach] commands,
      so I'd check what the compiler
      is doing with TclCompileForeachCmd().
      
      One simple thing to check is
      to build a TCL_COMPILE_DEBUG
      tclsh, and use tcl_traceCompile to
      check whether the correct bytecode
      is being generated.
      
      See Bug 617689 for inspiration on
      how to proceed, or to be convinced
      that, yes, sometimes it can be the
      compiler's fault.  :^)
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  3. Ticket change [52e61d32fa] (rid 126401) by techentin on 2004-07-15 02:32:27:

    1. icomment:
      Logged In: YES 
      user_id=43494
      
      Our sysadmin upgraded the native HP compiler to 11.11.10, 
      and I still get the same failure with Tcl compiled with the 
      optimzer.  I guess the answer is "Don't do that."  
      
      
    2. login: "techentin"
    3. mimetype: "text/plain"
    4. username: "techentin"
  4. Ticket change [901b44849f] (rid 120389) by hobbs on 2004-07-15 02:38:42:

    1. closedate changed to: "2004-07-14T19:38:42"
    2. closer changed to: "hobbs"
    3. icomment:
      Logged In: YES 
      user_id=72656
      
      Upgrading the compiler doesn't necessarily mean that this
      particular bug was addressed.  As this works just fine for
      me on a similar machine (and for the poster) at a different
      O level, I'm closing this out as a compiler issue (rare, but
      not unique).
      
      
    4. login: "hobbs"
    5. mimetype: "text/plain"
    6. resolution changed to: "Rejected"
    7. status changed to: "Pending"
    8. username: "hobbs"
  5. Ticket change [e63c720a8f] (rid 104267) by msofer on 2004-07-15 02:39:44:

    1. icomment:
      Logged In: YES 
      user_id=148712
      
      Comment on don's comment: I would a priori rather suspect a
      problem in compiling the INST_FOREACH instructions in the
      bytecode engine (TEBC) rather than in the bytecode compiler.
      Does the problem appear also in tcl8.4, or is it new to 8.5?
      
      
    2. login: "msofer"
    3. mimetype: "text/plain"
    4. resolution changed to: "None"
    5. status changed to: "Open"
    6. username: "msofer"
  6. Ticket change [2574375d9d] (rid 88175) by techentin on 2004-07-27 00:35:23:

    1. closedate changed to: "2004-07-26T17:35:23"
    2. closer changed to: "techentin"
    3. status changed to: "Closed"