From: SourceForge.net <no...@so...> - 2009-04-23 15:13:55
|
Bugs item #2778601, was opened at 2009-04-22 15:23 Message generated for change (Comment added) made by walterpachl You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=684730&aid=2778601&group_id=119701 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 7 Private: No Submitted By: Walter Pachl (walterpachl) Assigned to: Nobody/Anonymous (nobody) Summary: Problem with linein Initial Comment: bug4.rex shows wrong data in the second loop ---------------------------------------------------------------------- >Comment By: Walter Pachl (walterpachl) Date: 2009-04-23 17:13 Message: EVERY TIME with bug4, bug4a, bug4b The correct output as produced by the old Rexx you see in my previous update. (I had to change a: to b: here because that's the way this computer sees my diskette) Have you tried to run BUG4 and can you send me the output you get? All you need is a little directory and specify it for the second 'dir' No I did not run the program 10000 times but never saw a correct output from this! As I said: First observation was with a complex program and I tried to find MY bug first. I asked Mark Miesfeld to reproduce but never heard from him :-( ---------------------------------------------------------------------- Comment By: Rick McGuire (bigrixx) Date: 2009-04-23 17:05 Message: And you're still not answer the questions I'm asking. Ok, let's try this again. 1) Does this fail EVERY time you run it, or is it intermitent? 2) Please show the result of running this using both 4.0 and the older version, including the type command that displays the file contents before loop2. Once you have provided me with that, I might have a better idea of what sort of problem I'm looking at. ---------------------------------------------------------------------- Comment By: Walter Pachl (walterpachl) Date: 2009-04-23 16:59 Message: I have no better picture Here is the correct output (as seen by my good old OoRexx: (and now the paste DID work :-) Version REXX-ooRexx_3.1(MT) 6.01 20 Apr 2007 loop1 Volume in Laufwerk B: hat keine Bezeichnung. loop1 Volumeseriennummer: 0000-0000 loop1 loop1 Verzeichnis von B:\ loop1 loop1 21.04.2009 12:23 <DIR> aa loop1 21.04.2009 12:24 7 file1.txt loop1 22.04.2009 12:06 404 bug4.rex loop1 22.04.2009 12:03 824 bug4.txt loop1 23.04.2009 16:42 405 bug4a.rex loop2 Volume in Laufwerk B: hat keine Bezeichnung. loop2 Volumeseriennummer: 0000-0000 loop2 loop2 Verzeichnis von b:\bb loop2 loop2 23.04.2009 16:44 <DIR> . loop2 23.04.2009 16:44 <DIR> .. loop2 21.04.2009 12:24 7 file2.txt loop2 1 Datei(en) 7 Bytes loop2 2 Verzeichnis(se), 1.449.984 Bytes frei ---------------------------------------------------------------------- Comment By: Rick McGuire (bigrixx) Date: 2009-04-23 16:51 Message: And the information about the correct result from that second dir command is not something you've provided to me. I cannot see what is happening on your system, so I dependent on you providing me with a good picture of what's going on to diagnose the problem. ---------------------------------------------------------------------- Comment By: Walter Pachl (walterpachl) Date: 2009-04-23 16:48 Message: The second loop should show what the 'type' dir shows correctly: The correct output, i.e., the directory listing created by the 'dir' command for the subdirectory aa (or bb in BUG4B) ---------------------------------------------------------------------- Comment By: Rick McGuire (bigrixx) Date: 2009-04-23 16:41 Message: Still trying to nail down the what the actual failure symptoms are here. The information from the second loop looks like it is the same as the first loop, with some characters munged. What SHOULD the result be? Is the problem the bad characters, or is all of the data bad? ---------------------------------------------------------------------- Comment By: Walter Pachl (walterpachl) Date: 2009-04-23 16:37 Message: I changed everything and the problem persists. Yes, the dir command fills dir.txt correctly (as the type dir.txt shows. Sending bug4b.rex & .txt offline ---------------------------------------------------------------------- Comment By: Rick McGuire (bigrixx) Date: 2009-04-23 16:22 Message: A couple of additional question. The output looks like the file from the first pass with some characters at the beginning messed up. What is the content of the file it is reading from in the second loop? Is the information in that file correct? ---------------------------------------------------------------------- Comment By: Rick McGuire (bigrixx) Date: 2009-04-23 16:19 Message: I saw the output you attached to the report initially, and I believe you're seeing this, but so far, I've not been able to recreate this, which is making it difficult to debug. I'm just looking for more specific to help me narrow the search. Is this reproducible every time your run this program? Is the output always the same? Does it change if you use a different directories? Any additional information you can provide will help at this point. ---------------------------------------------------------------------- Comment By: Walter Pachl (walterpachl) Date: 2009-04-23 15:56 Message: I installed the latest Beta on my alternate PC (Windows XP Professional running there) and the problem is reproducable. Actually it all started with a rather complicated program that ran havoc and as a good citizen I reproduced the problem with a small program written for that purpose. Did you create that second directory I want to show in the second loop? The Output I see is --- hmm cut and paste don't work here -- I send you the bug4.txt separately Walter ---------------------------------------------------------------------- Comment By: Rick McGuire (bigrixx) Date: 2009-04-22 17:14 Message: Is this consistenly reproducable for you? I'm not seeing the problem here. Are you running with the latest beta refresh? You're obviously using windows, but which version are you running on. ---------------------------------------------------------------------- Comment By: Walter Pachl (walterpachl) Date: 2009-04-22 15:24 Message: Here's bug4.rex: /* REXX */ oid='c:\bug4.txt'; 'erase' oid Parse Version v Call o 'Version' v dir='c:\dir.txt' 'dir *.* >' dir Do i=1 By 1 While lines(dir)>0 l=linein(dir) If i<=10 Then Call o 'loop1' l End Call lineout dir 'dir c:\aa\*.* >' dir 'type' dir Do i=1 By 1 While lines(dir)>0 l=linein(dir) If i<=10 Then Call o 'loop2' l End Call lineout dir Exit o: Return lineout(oid,arg(1)) ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=684730&aid=2778601&group_id=119701 |