Gentoo Archives: gentoo-user

From: Bobby Kent <rkent@××××××××××××××××.net>
To: gentoo-user@l.g.o
Subject: RE: [gentoo-user] Inconsistent behavior in my Gentoo OS instance
Date: Fri, 05 May 2017 01:16:06
Message-Id: 021b01d2c53d$17e27640$47a762c0$@wholeworldwindow.net
In Reply to: Re: [gentoo-user] Inconsistent behavior in my Gentoo OS instance by Miroslav Rovis
1 Hi Miroslav,
2
3 Attempting to reproduce third issue:
4
5 # mkdir wibble1_1
6 # mkdir wibble2_1
7 # mkdir wibble3_1
8 # mkdir wibble4_1
9 # mkdir wibble5_1
10 # for d in wibble*_1 ; do mkdir $d/wobble ; done
11 # ls -1d wibble*_1
12 wibble1_1
13 wibble2_1
14 wibble3_1
15 wibble4_1
16 wibble5_1
17
18 Then hit tab after positioning cursor after the / below:
19 # for i in $(ls -1d wibble*_1/) ; do echo $i ; done
20
21 And the results are an attempt to autocomplete:
22 wibble1_1// wibble2_1// wibble3_1// wibble4_1// wibble5_1//
23
24 Perhaps the test oversimplified the issue, though maybe you could provide
25 the simplest way to reproduce what you see.
26
27 Thanks.
28
29
30 -----Original Message-----
31 From: Miroslav Rovis [mailto:miro.rovis@××××××××××××××.hr]
32 Sent: Tuesday, May 02, 2017 10:13
33 To: gentoo-user@l.g.o
34 Subject: Re: [gentoo-user] Inconsistent behavior in my Gentoo OS instance
35
36 I've received one reply, and thanks again, but I had better remove the
37 gzip-"inconsistency" related bloat from my own previous email... I need the
38 previous text to make the remaining three important
39 parts/issues/inconsistencies clearer and easier to check, and reply to, any
40 of the three.
41
42 I will also reorder my quotes to get them easier to skip or skip to, since
43 they are separate issues/inconsistencies.
44
45 On 170501-18:17+0200, Miroslav Rovis wrote:
46 ...
47 First issue
48 ===========
49 (All first issue-related text have been removed here from all quotes from my
50 previous message) ...
51
52 Second issue
53 ============
54 > Another part is actually on Wireshark mailing list. Pls. see:
55 >
56 > Filtering on (negated) frame.time_relative filters out wrong
57 > frame.number
58 > https://www.wireshark.org/lists/wireshark-users/201704/msg00037.html
59 > as well as my study at:
60 > https://www.croatiafidelis.hr/foss/cap/cap-170313-git-devuan-mail/git-
61 > devuan-mail-4.php
62 That page has just been updated with clearer instructions.
63
64 > (and the previous ones there, but I gave the last as it is
65 > simplest/fastest to check)
66 >
67 > There is information that any advanced reader can easily provide by
68 > retracing some of my steps there, and which would clear some uncertainties
69 here.
70 ...
71 > ... That's a serious bug or a
72 > serious malfunction in my Gentoo, the latter being most likely...
73 >
74 > And if it is the latter, it can only be one or the other way. One: the
75 > cause is in some Gentoo packge. Two: it is an attack by some unknown
76 means.
77 >
78 > (
79 > If Air-Gapped is some info, I did try and editcap (and the whole
80 > Wireshark) behave in the same wrong way in my Air-Gapped too.
81 > ...
82 > )
83 >
84
85
86 Third issue
87 ==========
88
89 The text it too much because the command line in which bash throw strange
90 error is a long for loop. The main point is marked with short new text
91 below.
92 > This is one of a series of commands that I used to check one of the
93 > backups, in three different instances of tar-gzip'd archive I checked
94 > (such as the /root directory tar-gzip'd today), and which showed
95 > faultless upon decompression in all the three instances, despite the
96 > three instances of tar-gzip'd archives not being identical (as their
97 SHA256 sums show):
98 >
99 > # for i in $(ls -1d root_170430_g0n*.d/); do sum=$(echo $i|sed
100 > 's/\.d\//\.sum/'); echo $sum ; read FAKE ; j=$(echo $i | sed
101 > 's/\.d\//\.tar.gz/'); ls -l $j $i ; cd $i; pwd ; read FAKE ; for file
102 > in $(find ./ -name '*'); do if [ -f "$file" ]; then sha256sum $file >>
103 > ../$sum ; fi; done ; cd - ; done ;
104 >
105 > Now if I just place the cursor, by moving with Alt-F (skipping "words")
106 and Ctrl-F (skipping 1 char) to just after:
107 >
108 > "for i in $(ls -1d root_170430_g0n*.d/" in that command,
109 >
110 > and if I then hit Tab for completion on the experssion there, I get
111 > (and I'm sorry for the mess, but that's what I get):
112 >
113 > g0n ~ # for i in $(ls -1d root_170430_g0n*.dbash: unexpected EOF while
114 > looking for matching `)'bash: syntax error: unexpected end of
115 > file//\.tar.gz/'); ls -l $j $i ; cd $i; pwd ; read FAKE ; for file in
116 > $(find ./ -name '*'); do if [ -f "$file" ]; then sha256sum $file >>
117 > ../$sum ; fi; done ; cd - ; done ;
118 >
119 > NOTE (at proofreading time): rechecked, I do get that same behavior
120 > the day after (wrote most of this yesterday, still to send this morning).
121 >
122 > [[
123 > NOTE (before delayed sending): In fact, it is only this clone that
124 > exibits the above Bash malfunctioning. I just checked the same for
125 > loop command (some six paragraphs above) in my Air-Gapped master [1]
126 > (never any internet it sees,
127 The [1] is important for understanding, especially this Bash issue in my
128 Gentoo instance.
129 Because in my Air-Gapped Gentoo instance that issue does not show at all.
130 > longer workaround/detailed checking before updating it with stuff from
131 > internet, sneakernet or optical media), and it is just fine. That
132 > line, simply gave what it should:
133 >
134 > # for i in $(ls -1d root_170430_g0n*.d/); do sum=$(echo $i|sed
135 's/\.d\//\.sum/'); echo $sum ; read FAKE ; j=$(echo $i | sed
136 's/\.d\//\.tar.gz/'); ls -l $j $i ; cd $i; pwd ; read FAKE ; for file in
137 $(find ./ -name '*'); do if [ -f "$file" ]; then sha256sum $file >> ../$sum
138 ; fi; done ; cd - ; done
139 > root_170430_g0n_1.d// root_170430_g0n_2.d// root_170430_g0n.d//
140 > # [[and the same command line was back here]]
141 >
142 > under exact same conditions/circumstances as the clone of my
143 > Air-Gapped. And it's similar with some other completion issues: they
144 > seem non-existent in my Air-Gapped.
145 > ]]
146
147 This is the main point (in my clone that I use for online):
148 > IOW, first, Bash sullied the entire line, which is not very
149 > considerate of Her, and second that's not some usual error. Just for
150 clarity, it wrote this:
151 >
152 The error:
153 > bash: unexpected EOF while looking for matching `)'bash: syntax error:
154 > unexpected end of file
155 >
156 > (and it wrote it by overwriting, which I never used to see in Bash)
157 ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^
158 | | | | | | | | | | | |
159 Anyone else such behavior as well?
160
161 >
162 > What's going on there?... Ah... Importantly:
163 >
164 > do any of you other users get some erratic unusual behavior like this with
165 Bash?
166 >
167 > Of course, I can move to the start of the line with Ctrl-A and then issue
168 > Ctrl-K to clear and capture to the entire line and then issue Ctrl-Y to
169 paste
170 > it back, and no disorderly message remains, but Bash isn't behaving...
171 >
172 ...
173 > ... if the reader has this bash version installed:
174 > $ bash --version
175 > GNU bash, version 4.4.12(1)-release (x86_64-pc-linux-gnu)
176 > Copyright (C) 2016 Free Software Foundation, Inc.
177 > License GPLv3+: GNU GPL version 3 or later
178 <http://gnu.org/licenses/gpl.html>
179 >
180 > This is free software; you are free to change and redistribute it.
181 > There is NO WARRANTY, to the extent permitted by law.
182 > $
183 > they might be able to reproduce such kind of misbehavior.
184 Else it's only in my Gentoo instance (and only the for-online clone, not
185 in my Air-Gapped Gentoo instance).
186
187 Fourth issue
188 ============
189 > And finally, and this is what eix throws on any package that I would
190 check:
191 >
192 > g0n ~ # eix memtest86+
193 > * sys-apps/memtest86
194 > Available versions: 4.3.7 (~)4.3.7-r1 {serial}
195 > Homepage: http://www.memtest86.com/
196 > Description: A stand alone memory test for x86 computers
197 ...
198 >
199 > Found 2 matches
200 > Received SIGSEGV - you probably found a bug in eix.
201 > Please proceed with the following few instructions and help us find the
202 bug:
203 > * install gdb (sys-devel/gdb)
204 > * reemerge eix with FEATURES="nostrip" CXXFLAGS="-g -ggdb3" LDFLAGS=""
205 > * enter gdb with "gdb --args eix your_arguments_for_eix"
206 > * type "run" and wait for the segfault to happen
207 > * type "bt" to get a backtrace (this helps us a lot)
208 > * post a bugreport and be sure to include the output from gdb.
209 ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^
210 | | | | | | | | | | | |
211 Anyone else gets this too?
212
213 ...
214 > ---
215 > [1] My methods are still these:
216 > Air-Gapped Gentoo Install, Tentative
217 > https://forums.gentoo.org/viewtopic-t-987268.html
218 >
219 > and
220 >
221 > Postfix smtp/TLS, Bkp/Cloning Mthd, Censorship/Intrusion
222 > https://forums.gentoo.org/viewtopic-t-999436.html#7613044
223 >
224
225 --
226 Miroslav Rovis
227 Zagreb, Croatia
228 https://www.CroatiaFidelis.hr

Replies

Subject Author
Re: [gentoo-user] Inconsistent behavior in my Gentoo OS instance Miroslav Rovis <miro.rovis@××××××××××××××.hr>