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

History Of Ticket 3048726fffffffff

Artifacts Associated With Ticket 3048726fffffffff

  1. Ticket change [c56008b9d6] (rid 111995) by beric on 2010-08-19 15:12:43:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      I encounter a strange problem with glob under windows XP, with a networked mounted drive.
      Here is a copy of a tclsh console:
      
      (pai_builder) 8 % glob -directory z:/pai/sorties/861/config_whitebox -tails *
      interface.csv memorisation.csv appel.csv variable.csv version.csv
      (pai_builder) 9 % glob -directory z:/pai/sorties/861/config_whitebox -tails *.csv
      interface.csv memorisation.csv
      
      The first glob with the pattern "*" returns 5 files.
      While they all have the .csv extension, only 2 of them are returned by glob with the pattern "*.csv".
      
      
    4. foundin initialized to: "obsolete: 8.5.8"
    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: "beric"
    10. subsystem initialized to: "None"
    11. title initialized to: "Strange glob bad result"
    12. type initialized to: "Bug"
  2. Ticket change [df878e0d89] (rid 115026) by dkf on 2010-08-19 22:40:58:

    1. icomment:
      Check whether you have any non-printing characters in those filenames?
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. username: "dkf"
  3. Ticket change [00dd5cde2a] (rid 119383) by ferrieux on 2010-08-19 22:45:22:

    1. icomment:
      Reminds me of  http://groups.google.fr/group/comp.lang.tcl/tree/browse_frm/thread/dee9f450a03729f4/ed9e29369fcd9cdb?rnum=1&q=petasis&_done=%2Fgroup%2Fcomp.lang.tcl%2Fbrowse_frm%2Fthread%2Fdee9f450a03729f4%2F551ba8571083d884%3Flnk%3Dgst%26q%3Dpetasis%26safe%3Dimages%26#doc_ed9e29369fcd9cdb
      
      
    2. login: "ferrieux"
    3. mimetype: "text/plain"
    4. username: "ferrieux"
  4. Ticket change [14fbfe1cfe] (rid 124487) by beric on 2010-08-20 15:02:23:

    1. icomment:
      Donal, 
      using [string match *.csv] on each file returned by [glob *] returns 1.
      
      Alex, 
      thanks to your "strace"answer on c.l.t  (frequent but good advice!) , I used "procmon".
      Result attached in traces.txt.
      
      As you can see, even QueryDirectory doesn't give the same result.
      
      
      
    2. login: "beric"
    3. mimetype: "text/plain"
    4. username: "beric"
  5. Ticket change [7017ee2077] (rid 100422) by beric on 2010-08-20 15:03:28:

    1. icomment:
      
      
      File Added - 384025: traces.txt
      
      
      
    2. login: "beric"
    3. mimetype: "text/plain"
    4. username: "beric"
  6. Add attachment "traces.txt" [83987e9c14] (rid 117411) by beric on 2010-08-20 15:03:28.

  7. Ticket change [3be902592a] (rid 112835) by ferrieux on 2010-08-20 16:52:20:

    1. icomment:
      Thanks for the traces :)
      Wow ! Indeed QueryDirectory seems to randomly miss files. But since the trace report doesn't give much details on  the parameters (handle values), we're in the dark...
      Maybe the next step would be to capture the CMB/CIFS packets exchanged with Wireshark.
      Can you attach the pcap ?
      
      
    2. login: "ferrieux"
    3. mimetype: "text/plain"
    4. username: "ferrieux"
  8. Ticket change [3f0f2f5101] (rid 121382) by beric on 2010-08-20 21:39:41:

    1. icomment:
      Alex, thank you very much again!
      While I use wireshark to debug my own protocols implemention (when "puts" can't do more!), I wish I had think to it to track down this problem.
      So, the capture shows clearly that the samba server is the guilty, by not returning all the files.
      It's only my problem now, happy that it's not a Tcl bug.
      
      
      
    2. login: "beric"
    3. mimetype: "text/plain"
    4. username: "beric"
  9. Ticket change [ac45135d3b] (rid 101261) by beric on 2010-08-20 21:40:41:

    1. closedate changed to: "2010-08-20T14:40:41"
    2. closer changed to: "beric"
    3. icomment:
      
      
      
      
    4. login: "beric"
    5. mimetype: "text/plain"
    6. resolution changed to: "Invalid"
    7. status changed to: "Closed"
    8. username: "beric"
  10. Ticket change [1fd46720d0] (rid 91213) by ferrieux on 2010-08-20 21:52:10:

    1. icomment:
      Well, the server could be legally shortening the list because of something in the request parameters. While it might not be Tcl's fault, it seems there are repeated issues with [glob] on Windows with network shares. Just in case your case happens to be a facet of this general problem, the analysis could help identify the mechanism, and possibly produce a workaround. Please attach the pcap ;-)
      
      
      
    2. login: "ferrieux"
    3. mimetype: "text/plain"
    4. resolution changed to: "None"
    5. status changed to: "Open"
    6. username: "ferrieux"
  11. Add attachment "glob_csv.pcap" [079d437f8a] (rid 89432) by beric on 2010-08-20 22:17:25.

  12. Ticket change [4ef98875cb] (rid 125743) by beric on 2010-08-20 22:17:25:

    1. icomment:
      
      
      File Added - 384065: glob_csv.pcap
      
      
      
    2. login: "beric"
    3. mimetype: "text/plain"
    4. username: "beric"
  13. Ticket change [cac040b9b2] (rid 95415) by beric on 2010-08-20 22:17:57:

    1. icomment:
      
      
      File Added - 384066: glob_with_star.pcap
      
      
      
    2. login: "beric"
    3. mimetype: "text/plain"
    4. username: "beric"
  14. Add attachment "glob_with_star.pcap" [ac06d360f0] (rid 101223) by beric on 2010-08-20 22:17:57.

  15. Ticket change [08cdb9096a] (rid 89623) by beric on 2010-08-20 22:31:37:

    1. icomment:
      You're right, here are the captures.
      
      
    2. login: "beric"
    3. mimetype: "text/plain"
    4. username: "beric"
  16. Ticket change [24e648773b] (rid 131190) by ferrieux on 2010-08-20 22:58:54:

    1. icomment:
      Thanks. 
      There's something strange: in the truncated SMB request FIND_FAST2, the  '*'characted (in *.CSV) is replaced by a '<':
      
         Search Pattern: \pai\sorties\860\config_whitebox\<.CSV
      
      while in the successful one the star is a star:
      
         Search Pattern: \pai\sorties\860\config_whitebox\*
      
      I'll have to dig a bit further to understand the semantics of this change. Perhaps '<' is another kind of wildcard in SMB...
      
      One thing you could do is try [glob z:/pai/sorties/861/config_whitebox/*.csv] directly. If it works, I'm interested in the pcap too ;-)
      
      Also, the pcap of a similar query from the DOS prompt (dir /s *.csv) could be helpful, especially if it works (which I suspect).
      
      
      
    2. login: "ferrieux"
    3. mimetype: "text/plain"
    4. username: "ferrieux"
  17. Ticket change [9e2a3c7a07] (rid 96431) by beric on 2010-08-23 14:56:08:

    1. icomment:
      "dir *.csv" gives the same result as glob.
      Using procmon, it also calls QueryDirectory with *.csv filter.
      
      
      
    2. login: "beric"
    3. mimetype: "text/plain"
    4. username: "beric"
  18. Ticket change [60f22afaa0] (rid 92156) by ferrieux on 2010-08-23 15:27:49:

    1. icomment:
      Ha !!! But how can this bug survive for so long if the Windows crowd is also concerned ???
      Maybe it is confined to one specific buggy version of Samba...
      
      (Verification: do you also see the '<' in dir *.csv pcap ? You can just attach it if you prefer)
      
      
    2. login: "ferrieux"
    3. mimetype: "text/plain"
    4. username: "ferrieux"
  19. Ticket change [167b9149a2] (rid 124725) by beric on 2010-08-23 16:24:43:

    1. icomment:
      Yes, there is also the < instead of *.
      I reported the problem to our IT support service to check the samba configuration.
      I'll let you know of the progress...
      
      
    2. login: "beric"
    3. mimetype: "text/plain"
    4. username: "beric"
  20. Ticket change [fea016b9ba] (rid 148403) by dkf on 2016-08-20 17:07:32:

    1. closer changed to: "nobody"
    2. comment changed to:
      I encounter a strange problem with glob under windows XP, with a networked mounted drive.
      Here is a copy of a tclsh console:
      
      (pai_builder) 8 % glob -directory z:/pai/sorties/861/config_whitebox -tails *
      interface.csv memorisation.csv appel.csv variable.csv version.csv
      (pai_builder) 9 % glob -directory z:/pai/sorties/861/config_whitebox -tails *.csv
      interface.csv memorisation.csv
      
      The first glob with the pattern "*" returns 5 files.
      While they all have the .csv extension, only 2 of them are returned by glob with the pattern "*.csv".
      
    3. login: "dkf"
    4. mimetype: "text/plain"
    5. resolution changed to: "Out of Date"
    6. severity changed to: "Minor"
    7. status changed to: "Pending"
    8. subsystem changed to: "37. File System"
  21. Ticket change [f603a318b1] (rid 258129) by serhiy.storchaka on 2026-10-15 11:29:06:

    1. icomment: "Closing: no reply since 2016."
    2. login: "serhiy.storchaka"
    3. mimetype: "text/x-fossil-wiki"
    4. status changed to: "Closed"