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

History Of Ticket 1020538fffffffff

Artifacts Associated With Ticket 1020538fffffffff

  1. Ticket change [252168e23a] (rid 131233) by effevi on 2004-09-01 16:39:28:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      On tcl version 8.5.a1, under Linux, I got the following problem 
       
      In this situation (this is the ls -l command on the two files) 
       
      -r--r--r--  1 prjadmin metodo 0 set  1 18:23 /tmp/one 
      -rw-rw-r--  1 piera    metodo 0 set  1 18:23 /tmp/two 
      This script 
       
      file copy -force /tmp/one /tmp/two 
       
      gets into "Segmentation fault (core dumped)" 
      if the command is issued with my user 
       
      uid=2000(effevi) gid=500(metodo) gruppi=500
      (metodo),30000(programmatori),2000(effevi) 
       
      This is the version of my compiler 
       
      gcc (GCC) 3.3.2 (Mandrake Linux 10.0 3.3.2-6mdk) 
      Copyright (C) 2003 Free Software Foundation, Inc. 
      This is free software; see the source for copying conditions.  
      There is NO 
      warranty; not even for MERCHANTABILITY or FITNESS 
      FOR A PARTICULAR PURPOSE. 
       
      It seems that, while trying to setting owner and group (for 
      user effevi it is not possibile) the call gets in fault. 
      
    4. foundin initialized to: "None"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "effevi"
    9. subsystem initialized to: "None"
    10. title initialized to: "Problem in file copy"
    11. type initialized to: "Bug"
  2. Ticket change [f97fc391d7] (rid 91720) by effevi on 2004-09-02 12:22:53:

    1. icomment:
      Logged In: YES 
      user_id=102771
      
      Sorry, not "while trying to setting owner and group" but "while 
      trying to change permissions". 
       
      
      
    2. login: "effevi"
    3. mimetype: "text/plain"
    4. username: "effevi"
  3. Ticket change [68a5f3cc1c] (rid 103105) by dkf on 2004-09-02 15:05:29:

    1. assignee changed to: "vincentdarley"
    2. foundin changed to: "obsolete: 8.5a1"
    3. priority changed to: "9 Immediate"
    4. subsystem changed to: "37. File System"
  4. Ticket change [013edbf0e5] (rid 119441) by vincentdarley on 2004-09-02 15:14:56:

    1. icomment:
      Logged In: YES 
      user_id=32170
      
      I can't do much about this with a real stack trace from your
      debugger.  Can you compile with debug symbols and try again,
      please?
      
      thanks!
      
      
      
    2. login: "vincentdarley"
    3. mimetype: "text/plain"
    4. username: "vincentdarley"
  5. Ticket change [1eac6c57b2] (rid 91014) by effevi on 2004-09-03 13:59:36:

    1. icomment:
      Logged In: YES 
      user_id=102771
      
      Ok. I will do it as soon as possible, this evening Italian time. 
      Thanks. 
      
      
    2. login: "effevi"
    3. mimetype: "text/plain"
    4. username: "effevi"
  6. Ticket change [8849997e63] (rid 131845) by effevi on 2004-09-03 14:06:28:

    1. icomment:
      Logged In: YES 
      user_id=102771
      
      It was already compiled with symbols. This is the stack. 
       
      Program received signal SIGSEGV, Segmentation fault. 
      0x400a4e42 in TclLookupSimpleVar () 
      from /opt/Tng/lib/libtcl8.5.so 
       
       
      #0  0x400a4e42 in TclLookupSimpleVar () 
      from /opt/Tng/lib/libtcl8.5.so 
      #1  0x400a48d3 in TclLookupVar () 
      from /opt/Tng/lib/libtcl8.5.so 
      #2  0x400a5799 in Tcl_SetVar2Ex () 
      from /opt/Tng/lib/libtcl8.5.so 
      #3  0x400a571e in Tcl_SetVar2 () 
      from /opt/Tng/lib/libtcl8.5.so 
      #4  0x40099d85 in Tcl_SetErrorCodeVA () 
      from /opt/Tng/lib/libtcl8.5.so 
      #5  0x40099dd0 in Tcl_SetErrorCode () 
      from /opt/Tng/lib/libtcl8.5.so 
      #6  0x4007ef72 in Tcl_PosixError () 
      from /opt/Tng/lib/libtcl8.5.so 
      #7  0x400ac81d in SetPermissionsAttribute () 
      from /opt/Tng/lib/libtcl8.5.so 
      #8  0x4007f53b in NativeFileAttrsSet () 
      from /opt/Tng/lib/libtcl8.5.so 
      #9  0x4007f62a in Tcl_FSFileAttrsSet () 
      from /opt/Tng/lib/libtcl8.5.so 
      #10 0x4006c8ce in CopyRenameOneFile () 
      from /opt/Tng/lib/libtcl8.5.so 
      #11 0x4006bbda in FileCopyRename () 
      from /opt/Tng/lib/libtcl8.5.so 
      #12 0x4006ba88 in TclFileCopyCmd () 
      from /opt/Tng/lib/libtcl8.5.so 
      #13 0x40040417 in Tcl_FileObjCmd () 
      from /opt/Tng/lib/libtcl8.5.so 
      #14 0x4003a9ae in TclEvalObjvInternal () 
      from /opt/Tng/lib/libtcl8.5.so 
      #15 0x4003b255 in Tcl_EvalEx () 
      from /opt/Tng/lib/libtcl8.5.so 
      #16 0x4007ed44 in Tcl_FSEvalFileEx () 
      from /opt/Tng/lib/libtcl8.5.so 
      #17 0x40084b23 in Tcl_Main () from /opt/Tng/lib/libtcl8.5.so 
      #18 0x080486e9 in main () 
       
      
      
    2. login: "effevi"
    3. mimetype: "text/plain"
    4. username: "effevi"
  7. Ticket change [92f859904a] (rid 105738) by vincentdarley on 2004-09-03 15:15:58:

    1. assignee changed to: "msofer"
    2. icomment:
      Logged In: YES 
      user_id=32170
      
      Well, the crash seems to be in some "Var" handling code, so
      I'm reassigning to a different area.
      
      
      
    3. login: "vincentdarley"
    4. mimetype: "text/plain"
    5. subsystem changed to: "07. Variables"
    6. username: "vincentdarley"
  8. Ticket change [05570445f1] (rid 89045) by dkf on 2004-09-03 15:47:44:

    1. assignee changed to: "vincentdarley"
    2. icomment:
      Logged In: YES 
      user_id=79902
      
      Yuck. The problem is that the call to Tcl_FSFileAttrsSet()
      in CopyRenameOneFile() (in tclFCmd.c) passes in a NULL
      interp, but an error happened and we're trying to store the
      error message in a variable looked up from that NULL...
      
      Suggested fix: make SetPermissionsAttribute() in
      tclUnixFCmd.c only report an error when interp is non-NULL.
      For safety, we need to protect all three points that can
      generate error messages, probably with:
        if (interp != NULL) {
           Tcl_AppendResult(...);
        }
      
      Do you concur with my analysis, Vince?  I'm assigning back
      to you because 'cvs annotate' says you've poked around in
      relevant areas in both files...
      
      
    3. login: "dkf"
    4. mimetype: "text/plain"
    5. subsystem changed to: "24. Channel Commands"
    6. username: "dkf"
  9. Ticket change [37af958f69] (rid 112074) by dkf on 2004-09-03 15:50:31:

    1. icomment:
      Logged In: YES 
      user_id=79902
      
      Further analysis indicates that the problem is not present
      on the 8.4 branch because there is no attempt to adjust
      permissions, so at least there isn't a backport problem... :^)
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. username: "dkf"
  10. Ticket change [7a7eef8ad3] (rid 90330) by vincentdarley on 2004-09-03 16:07:02:

    1. assignee changed to: "dkf"
  11. Add attachment "fcmd.diff" [ac3ef64811] (rid 101260) by vincentdarley on 2004-09-03 16:07:03.

  12. Ticket change [fe3eb7c686] (rid 108547) by vincentdarley on 2004-09-03 16:07:03:

    1. icomment:
      
      
      File Added - 100211: fcmd.diff
      
      Logged In: YES 
      user_id=32170
      
      That sounds right to me.  Here's a suggested patch.  Please
      do test and commit if successful.
      
      We ought to add tests for this, but that will require
      someone with Unix expertise (i.e. not me).
      
      
      
    2. login: "vincentdarley"
    3. mimetype: "text/plain"
    4. username: "vincentdarley"
  13. Ticket change [8f21b02b79] (rid 120231) by dkf on 2004-09-03 18:00:14:

    1. closedate changed to: "2004-09-03T11:00:14"
    2. closer changed to: "dkf"
    3. icomment:
      Logged In: YES 
      user_id=79902
      
      Fixed. No test because any test I could write would be
      utterly non-portable.
      
      
    4. login: "dkf"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. username: "dkf"