1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
|
[[!meta copyright="Copyright © 2013, 2014, 2015 Free Software Foundation,
Inc."]]
[[!meta license="""[[!toggle id="license" text="GFDL 1.2+"]][[!toggleable
id="license" text="Permission is granted to copy, distribute and/or modify this
document under the terms of the GNU Free Documentation License, Version 1.2 or
any later version published by the Free Software Foundation; with no Invariant
Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license
is included in the section entitled [[GNU Free Documentation
License|/fdl]]."]]"""]]
[[!tag open_issue_hurd]]
/!\ [[I|tschwinge]] think this has been resolved?
[[!toc levels=3]]
# IRC, freenode, #hurd, 2013-12-05
<teythoon> Creating device nodes: fd fdX std vcs hdX hdXsY hdXs1Y sdX sdXsY
sdXs1Y cdX netdde ethX loopX ttyX ptyp ptyq/sbin/MAKEDEV: 75:
/sbin/MAKEDEV: cannot create /dev/null: Interrupted system call
<teythoon> that's new
<braunr> teythoon: ouch
<teythoon> braunr: everything works fine though
<braunr> teythoon: that part isn't too surprising
<teythoon> y?
<braunr> teythoon: /dev/null already existed, didn't it ?
<teythoon> braunr: sure, yes
## IRC, freenode, #hurd, 2013-12-19
<braunr> hm
<braunr> i'm seeing those /sbin/MAKEDEV: cannot create /dev/null:
Interrupted system call messages too
## IRC, freenode, #hurd, 2013-12-20
<teythoon> braunr: interesting, I've seen some of those as well
## IRC, freenode, #hurd, 2014-01-26
<gg0> cannot create /dev/null: Interrupted system call
<gg0>
http://gnashdev.org:8010/builders/z-sid-hurd-i386/builds/26/steps/system_upgrade/logs/stdio
## IRC, freenode, #hurd, 2014-01-27
<anatoly> gg0: I had same /dev/null error after upgrading my old image
(more than 6 months old) a week ago. But I got such message only on boot
and it didn't autostart hurd console.
<anatoly> Tried to upgrade current qemu image (from topic) to reproduce it
but it works OK after upgrade
<gg0> i can reproduce it with # apt-get install --reinstall python2.7 dbus
# for instance
<gg0> http://paste.debian.net/plain/78566/
<teythoon> gg0: i've seen those as well, but i cannot reliably reproduce it
to track it down
<teythoon> i believe it's benign though
<gg0> in shell scripts if -e is set, it aborts on failures like those
<teythoon> uh, it does? :/
<gg0> so if this happens in prerm/postinst scripts, package is not properly
installed/removed/configured and it fails
<gg0> redirecting stdout and strerr to /dev/null shouldn't be so
problematic, anything wrong in my setup?
<gg0> can you reproduce it?
<teythoon> not reliably
<teythoon> gg0: but i do not believe that anything is wrong with your
machine
<gg0> any way to debug it?
<teythoon> having a minimal test case that triggers this reliably would be
great
<teythoon> but i fear it might be a race
## IRC, freenode, #hurd, 2014-01-28
<teythoon> have you seen the /dev/null issue ?
<braunr> yes
<teythoon> what do you make of it ?
<braunr> no idea
<teythoon> i believe it is related to the inlining work i've done
<braunr> just like the bogus deallocation at boot, it needs debugging :)
<braunr> hm i don't think so
<teythoon> no ?
<braunr> i think we saw it even before your started working on the hurd ;p
<teythoon> i've never seen it before my recent patches
<teythoon> maybe i made it worse
<braunr> not worse, just exposed more
<teythoon> right
## IRC, freenode, #hurd, 2014-01-29
<gg0> cannot reproduce "cannot create /dev/null: Interrupted system call"
on a faster VM
<gg0> might depend on that?
## IRC, OFTC, #debian-hurd, 2014-02-02
<pere> but now saw a strange message at the end of the boot:
/etc/init.dhurd-console: 55: /etc/init.d/hurd-console: cannot create
/dev/null: Interrupted system call
<gg0> oh well known on a slow VM (even old qemu/kvm btw), i can't reproduce
it on a faster/more recent one
<gg0> slow VM = gnash buildbot slave
http://gnashdev.org:8010/builders/z-sid-hurd-i386/builds/26/steps/system_upgrade/logs/stdio
<gg0> especially bad on system upgrade because it doesn't finish to run
prerm/postinst scripts :/
## IRC, freenode, #hurd, 2014-02-05
<gg0> Creating device nodes: fd fdX std vcs hdX hdXsY/sbin/MAKEDEV: 75:
/sbin/MAKEDEV: cannot create /dev/null: Interrupted system call hdXs1Y
sdX sdXsY sdXs1Y cdX netdde ethX loopX ttyX ptyp ptyq lprX comX random
urandom kbd mouse shm.
## IRC, freenode, #hurd, 2014-02-11
<gg0> typical dist-upgrade http://paste.debian.net/plain/81346/
<gg0> many fewer cannot create /dev/null: Interrupted system call
<gg0> on a faster machine
<teythoon> gg0: wow, so many interrupted system call messages
<teythoon> i don't get as many, but makedev produces a few every time i run
it as well
## IRC, OFTC, #debian-hurd, 2014-02-16
<pere> anyone here got any idea why upgrading initscripts fail on the hurd
gnash autobuilder, as reported on <URL:
http://gnashdev.org:8010/builders/z-sid-hurd-i386/builds/28/steps/system_upgrade/logs/stdio
>?
<gg0> pere: cannot create /dev/null: Interrupted system call
<pere> gg0: I noticed the message, but fail to understand how this could
happen.
<gg0> 13:16 < gg0> oh well known on a slow VM (even old qemu/kvm btw), i
can't reproduce it on a faster/more recent one
<gg0> 13:17 < gg0> slow VM = gnash buildbot slave
http://gnashdev.org:8010/builders/z-sid-hurd-i386/builds/26/steps/system_upgrade/logs/stdio
<gg0> 13:18 < gg0> especially bad on system upgrade because it doesn't
finish to run prerm/postinst scripts :/
<gg0> i remember teythoon talking about something racy
<teythoon> gg0: the /dev/null issue is known for a long time
<teythoon> gg0: some of the recent work (i believe mine) has made the
problem more apparent
<teythoon> gg0: that's what braunr told me
<gg0> i see. it would be really nice fixing it. really annoying. i
workaround it by moving null away and moving it back under /dev before
halting/rebooting
## IRC, freenode, #hurd, 2014-02-17
<tschwinge> Earlier today, I upgraded my Debian GNU/Hurd installation from
several months ago, and I'm now seeing bogus things as follows; is that a
known issue?
<tschwinge> checking for i686-unknown-gnu0.5-ar... ar
<tschwinge> configure: updating cache ./config.cache
<tschwinge> configure: creating ./config.status
<tschwinge> +./config.status: 299: ./config.status: cannot create
/dev/null: Interrupted system call
<tschwinge> config.status: creating Makefile
<tschwinge> (The plus is from a build log diff.)
<azeem> 13:36 < gg0> pere: cannot create /dev/null: Interrupted system call
<azeem> 20:10 < teythoon> gg0: the /dev/null issue is known for a long time
<tschwinge> Anyone working on resolving this? I't causing build issues:
<tschwinge> checking for i686-unknown-gnu0.5-ranlib... (cached) ranlib
<tschwinge> checking command to parse nm output from gcc-4.8
object... [...]/opcodes/configure: 6760: ./configure.lineno: cannot
create /dev/null: Interrupted system call
<tschwinge> failed
<tschwinge> checking for dlfcn.h... yes
<tschwinge> Anyway, will go researching IRC logs.
<azeem> tschwinge: (that one was from #debian-hurd)
<azeem> I assume teythoon and/or braunr can comment once he's back
<azeem> they're*
<braunr> tschwinge: we've been seing this more often lately but noone has
attempted to fix it yet
<braunr> tschwinge: if you have a reliable way to reproduce that /dev/null:
Interrupted system call error, please let us know
## IRC, freenode, #hurd, 2014-02-23
<gg0> braunr: cool. i'd vote /dev/null one as next one in your todo
<gg0> still frequent on this slow vm
http://gnashdev.org:8010/builders/z-sid-hurd-i386/builds/30/steps/system_upgrade/logs/stdio
<gg0> especially during setup-translators -k
<braunr> yes
## [[tschwinge]]'s notes, 2014-02-24
$ i=0; while ! grep Inter < l; do rm -vrf ./* && echo $((++i)) && dash -x ../W._C._Handy/configure --prefix="$PWD".install --enable-gold --with-sysroot=/ SHELL=/bin/dash CC=gcc-4.8 CXX=g++-4.8 --disable-werror > l 2>&1; done
Does happen, but log not useful.
$ i=0; while ! grep Inter < l; do rm -vrf ./* && echo $((++i)) && dash -x ../W._C._Handy/configure --prefix="$PWD".install --enable-gold --with-sysroot=/ CC=gcc-4.8 CXX=g++-4.8 --disable-werror > l 2>&1; done
Running fine 2066 times, then I terminated.
$ i=0; while ! grep Inter < l; do rm -vrf ./* && echo $((++i)) && dash -x ../W._C._Handy/configure --prefix="$PWD".install --enable-gold --with-sysroot=/ SHELL=/bin/dash\ -x CC=gcc-4.8 CXX=g++-4.8 --disable-werror > l 2>&1; done
[...]
9
./config.status: 299: ./config.status: cannot create /dev/null: Interrupted system call
+ ln -s conf29005.file conf29005.dir
+ test ! -f conf29005.exe
+ rm -f conf29005 conf29005.exe conf29005.dir/conf29005.file conf29005.file
./config.status: 299: ./config.status: cannot create /dev/null: Interrupted system call
+ rmdir conf29005.dir
+ mkdir -p .
$ cat -n < config.status | sed -n '294,+10 p'
294 fi
295 else
296 as_ln_s='cp -p'
297 fi
298 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
299 rmdir conf$$.dir 2>/dev/null
300
301
302 # as_fn_mkdir_p
303 # -------------
304 # Create "$as_dir" as a directory, including parents if necessary.
But conf29005.dir now still exists, empty.
$ rmdir conf29005.dir 2> /dev/null
$ echo $?
What this configure invocation is doing differently from the previous one is
that it re-execs the configure script (due to, and with SHELL=[...]).
/bin/sh currently is a symlink to bash.
$ i=0; while ! grep Inter < l; do rm -vrf ./* && echo $((++i)) && bash -x ../W._C._Handy/configure --prefix="$PWD".install --enable-gold --with-sysroot=/ SHELL=/bin/bash\ -x CC=gcc-4.8 CXX=g++-4.8 --disable-werror > l 2>&1; done
Running fine 60 times, then I terminated.
$ sudo ln -sf dash /bin/sh
$ i=0; while ! grep Inter < l; do rm -vrf ./* && echo $((++i)) && dash -x ../W._C._Handy/configure --prefix="$PWD".install --enable-gold --with-sysroot=/ CC=gcc-4.8 CXX=g++-4.8 --disable-werror > l 2>&1; done
Running fine 50 times, then I terminated.
+ CONFIG_SHELL=/bin/bash as_have_required=yes
[...]
+ exec /bin/bash ../W._C._Handy/configure --prefix=/home/thomas/tmp/binutils-gdb/tschwinge/W._C._Handy.build.install --enable-gold --with-sysroot=/ CC=gcc-4.8 CXX=g++-4.8 --disable-werror
$ i=0; while ! grep Inter < l; do rm -vrf ./* && echo $((++i)) && bash -x ../W._C._Handy/configure --prefix="$PWD".install --enable-gold --with-sysroot=/ SHELL=/bin/bash\ -x CC=gcc-4.8 CXX=g++-4.8 --disable-werror > l 2>&1; done
Running fine 85 times, then I terminated.
No exec.
$ i=0; while ! grep Inter < l; do rm -vrf ./* && echo $((++i)) && bash -x ../W._C._Handy/configure --prefix="$PWD".install --enable-gold --with-sysroot=/ SHELL=/bin/sh\ -x CC=gcc-4.8 CXX=g++-4.8 --disable-werror > l 2>&1; done
[...]
18
./config.status: 299: ./config.status: cannot create /dev/null: Interrupted system call
No exec. -> Assuming exec of /bin/*sh is not relevant.
Back to normal:
$ sudo ln -sf bash /bin/sh
Maybe it's a dash issue (or, an issue triggered by dash)?
/usr/share/doc/dash/changelog.Debian.gz
dash (0.5.7-4) unstable; urgency=low
* Thx Michael Gilbert for NMU.
* 0006-JOBS-address-format-security-build-error.diff: new: address
format-security build error (patch from Simon Ruderich).
* debian/rules: make DEB_BUILD_OPTIONS=diet build working again.
* debian/diff/0007-EVAL-Report-I-O-error-on-stdout.diff: new: eval: report
I/O error on stdout (closes: #690473).
-- Gerrit Pape <pape@smarden.org> Wed, 08 Jan 2014 11:54:11 +0000
dash (0.5.7-3+nmu1) unstable; urgency=medium
* Non-maintainer upload.
* Enable build-hardening flags (closes: #662721).
-- Michael Gilbert <mgilbert@debian.org> Wed, 25 Dec 2013 13:46:03 -0500
dash (0.5.7-3) unstable; urgency=low
[...]
-- Gerrit Pape <pape@smarden.org> Thu, 01 Mar 2012 00:09:45 +0000
From its name alone, »0007-EVAL-Report-I-O-error-on-stdout.diff: new: eval:
report I/O error on stdout (closes: #690473)« sounds suspicious.
diff --git a/src/eval.c b/src/eval.c
index 7252463..863aa77 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -899,6 +899,8 @@ evalbltin(const struct builtincmd *cmd, int argc, char **argv, int flags)
else
status = (*cmd->builtin)(argc, argv);
flushall();
+ if (outerr(out1))
+ warnx("%s: I/O error", commandname);
status |= outerr(out1);
exitstatus = status;
cmddone:
./output.h:extern struct output *out1;
./output.h:#define outerr(f) (f)->flags
That doesn't really look too suspicious, but let's try without this patch:
$ apt-get source dash
$ cd dash-0.5.7/
$ mv debian/diff/0007-Report-I-O-error-on-stdout.diff{,_}
$ dpkg-buildpackage -uc -b
$ sudo dpkg -i ../dash_0.5.7-4_hurd-i386.deb
$ i=0; while ! grep Inter < l; do rm -vrf ./* && echo $((++i)) && bash -x ../W._C._Handy/configure --prefix="$PWD".install --enable-gold --with-sysroot=/ SHELL=/bin/dash\ -x CC=gcc-4.8 CXX=g++-4.8 --disable-werror > l 2>&1; done
[...]
2
./config.status: 299: ./config.status: cannot create /dev/null: Interrupted system call
So that dash change is not relevant.
$ i=0; while ! grep Inter < l; do rm -vrf ./* && echo $((++i)) && dash -x ../W._C._Handy/configure --prefix="$PWD".install --enable-gold --with-sysroot=/ SHELL=/bin/dash\ -x CC=gcc-4.8 CXX=g++-4.8 --disable-werror > l 2>&1; done
[...]
185
./config.status: 299: ./config.status: cannot create /dev/null: Interrupted system call
Wow, so it can take a little while...
Before noticing this problem, I had been running dash 0.5.7-3+nmu1; re-get that
from <http://snapshot.debian.org/binary/dash/>.
$ i=0; while ! grep Inter < l; do rm -vrf ./* && echo $((++i)) && dash -x ../W._C._Handy/configure --prefix="$PWD".install --enable-gold --with-sysroot=/ SHELL=/bin/dash\ -x CC=gcc-4.8 CXX=g++-4.8 --disable-werror > l 2>&1; done
[...]
178
./config.status: 299: ./config.status: cannot create /dev/null: Interrupted system call
$ i=0; while ! grep Inter < l; do rm -vrf ./* && echo $((++i)) && bash -x ../W._C._Handy/configure --prefix="$PWD".install --enable-gold --with-sysroot=/ SHELL=/bin/dash\ -x CC=gcc-4.8 CXX=g++-4.8 --disable-werror > l 2>&1; done
[...]
27
./config.status: 299: ./config.status: cannot create /dev/null: Interrupted system call
[...]
5
./config.status: 299: ./config.status: cannot create /dev/null: Interrupted system call
[...]
3
./config.status: 299: ./config.status: cannot create /dev/null: Interrupted system call
[...]
16
./config.status: 299: ./config.status: cannot create /dev/null: Interrupted system call
[...]
70
./config.status: 299: ./config.status: cannot create /dev/null: Interrupted system call
[...]
2
./config.status: 299: ./config.status: cannot create /dev/null: Interrupted system call
[...]
3
./config.status: 299: ./config.status: cannot create /dev/null: Interrupted system call
It appears that generally the issue appearch faster when running »bash
configure SHELL=/bin/dash« as opposed to »dash configure SHELL=/bin/dash«.
To re-confirm that dash needs to be involved:
$ i=0; while ! grep Inter < l; do rm -vrf ./* && echo $((++i)) && bash -x ../W._C._Handy/configure --prefix="$PWD".install --enable-gold --with-sysroot=/ SHELL=/bin/bash\ -x CC=gcc-4.8 CXX=g++-4.8 --disable-werror > l 2>&1; done
The next morning:
bash: l: Computer bought the farm
rm: cannot remove `./*': Computer bought the farm
bash: l: Computer bought the farm
rm: cannot remove `./*': Computer bought the farm
[...]
$ fsysopts .
fsysopts: .: Computer bought the farm
$ cd
$ fsysopts .
/hurd/ext2fs --readonly --no-atime --no-inherit-dir-group /dev/hd2s2
Console: [[ext2fs_libports_reference_counting_assertion.mdwn]]. Reboot.
Again:
$ i=0; while ! grep Inter < l; do rm -vrf ./* && echo $((++i)) && bash -x ../W._C._Handy/configure --prefix="$PWD".install --enable-gold --with-sysroot=/ SHELL=/bin/bash\ -x CC=gcc-4.8 CXX=g++-4.8 --disable-werror > l 2>&1; done
Running fine 18054 times, then I terminated.
Then, [[message-id "87wqghouoc.fsf@schwinge.name" desc="coulomb died"]]...
## [[tschwinge]]'s notes, 2014-04-09
Now running in a QEMU/KVM virtual machine. The issue is much harder to
reproduce.
Reinstalling Debian's hurd package, it is observed fairly regularely, always
when setting up the translators, but in different positions:
$ sudo apt-get --reinstall install hurd
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 1 not upgraded.
Need to get 0 B/1377 kB of archives.
After this operation, 0 B of additional disk space will be used.
(Reading database ... 70001 files and directories currently installed.)
Preparing to unpack .../hurd_1%3a0.5.git20140326-1_hurd-i386.deb ...
Unpacking hurd (1:0.5.git20140326-1) over (1:0.5.git20140326-1) ...
Setting up hurd (1:0.5.git20140326-1) ...
Setting up translators: /hurd/exec /hurd/proxy-defpager /hurd/pflocal (+link) /hurd/pfinet (+link) (+link) /hurd/procfs -c /hurd/password crash-kill crash-suspend crash-dump-core crash.
Creating device nodes: fd fdX std vcs hdX hdXsY hdXs1Y sdX sdXsY/sbin/MAKEDEV: 75: /sbin/MAKEDEV: cannot create /dev/null: Interrupted system call
sdXs1Y cdX netdde ethX loopX ttyX ptyp ptyq lprX comX random urandom kbd mouse shm.
[...]
$ sudo apt-get --reinstall install hurd
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 1 not upgraded.
Need to get 0 B/1377 kB of archives.
After this operation, 0 B of additional disk space will be used.
(Reading database ... 70001 files and directories currently installed.)
Preparing to unpack .../hurd_1%3a0.5.git20140326-1_hurd-i386.deb ...
Unpacking hurd (1:0.5.git20140326-1) over (1:0.5.git20140326-1) ...
Setting up hurd (1:0.5.git20140326-1) ...
Setting up translators: /hurd/exec /hurd/proxy-defpager /hurd/pflocal (+link) /hurd/pfinet (+link) (+link) /hurd/procfs -c /hurd/password crash-kill crash-suspend crash-dump-core crash.
Creating device nodes: fd fdX std vcs hdX hdXsY hdXs1Y sdX sdXsY sdXs1Y cdX netdde ethX loopX ttyX ptyp/sbin/MAKEDEV: 75: /sbin/MAKEDEV: cannot create /dev/null: Interrupted system call
ptyq lprX comX random urandom kbd mouse shm.
[...]
$ sudo apt-get --reinstall install hurd
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 1 not upgraded.
Need to get 0 B/1377 kB of archives.
After this operation, 0 B of additional disk space will be used.
(Reading database ... 70001 files and directories currently installed.)
Preparing to unpack .../hurd_1%3a0.5.git20140326-1_hurd-i386.deb ...
Unpacking hurd (1:0.5.git20140326-1) over (1:0.5.git20140326-1) ...
Setting up hurd (1:0.5.git20140326-1) ...
Setting up translators: /hurd/exec /hurd/proxy-defpager /hurd/pflocal (+link) /hurd/pfinet (+link) (+link) /hurd/procfs -c /hurd/password crash-kill crash-suspend crash-dump-core crash.
Creating device nodes: fd fdX std vcs hdX hdXsY/sbin/MAKEDEV: 75: /sbin/MAKEDEV: cannot create /dev/null: Interrupted system call
hdXs1Y/sbin/MAKEDEV: 75: /sbin/MAKEDEV: cannot create /dev/null: Interrupted system call
sdX sdXsY sdXs1Y cdX netdde ethX loopX ttyX ptyp ptyq lprX comX random urandom kbd mouse shm.
It can also reproduced when manually running `setup-translators` -- but not as
easily:
$ i=0 && rm -f l && while ! grep Inter < l; do echo $((++i)) && sudo /usr/lib/hurd/setup-translators -K > l 2>&1; done
[...]
112
Creating device nodes: fd fdX std vcs hdX hdXsY hdXs1Y/sbin/MAKEDEV: 75: /sbin/MAKEDEV: cannot create /dev/null: Interrupted system call
That's with:
$ readlink /bin/sh
dash
Switch to bash:
$ sudo dpkg-reconfigure dash
[No.]
$ readlink /bin/sh
bash
$ i=0 && rm -f l && while ! grep Inter < l; do echo $((++i)) && sudo /usr/lib/hurd/setup-translators -K > l 2>&1; done
[...]
Still not happened after 16800 iterations, half a day later.
So it really is related to dash, in some way. Not necessarily a bug in dash,
but something that dash is doing differently (and triggers a bug somewhere
else).
The next question is what was changed in (presumably) early 2013-12 that
this behavior is now exhibited.
### `ps -AF hurd-long`
By the way, after having run `setup-translators` for half a day, we got:
$ ps -AF hurd-long
PID UID PPID PGrp Sess TH Vmem RSS %CPU User System Args
1 0 1 1 1 3 146M 908K 0.0 0:00.22 0:00.23 init [2]
2 - 1 1 1 1 146M 216K 0.0 0:00.01 0:00.01 /hurd/init root=device:hd0s1
3 - 1 1 1 8 1.64G 48.3M 0.6 0:00.00 6:42.01 root=device:hd0s1
4 - 2 1 1 14 135M 1.12M 12.3 15:43.29 73min /hurd/proc
5 - 2 1 1 11 432M 31.9M 27.5 31:22.42 2hrs ext2fs --readonly --multiboot-command-line=root=device:hd0s1 --host-priv-port=1 --device-master-port=2 --exec-server-task=3 -T typed device:hd0s1
6 - 5 1 1 4 136M 1000K 5.8 5:04.45 36:49.29 /hurd/exec
7 - 2 1 1 4 136M 648K 1.8 0:46.65 7:22.07 /hurd/auth
8 0 5 1 1 5 136M 772K 0.0 0:00.04 0:00.36 /hurd/term /dev/console device console
10 0 5 1 1 17 139M 1.2M 0.3 1:13.67 6:00.96 /hurd/pflocal
12 0 1 12 12 6 140M 12.9M 0.0 0:00.00 0:00.09 /hurd/mach-defpager
21 0 5 1 1 3 136M 1.01M 0.0 0:00.61 0:01.39 /hurd/procfs -c
39 0 5 1 1 2 135M 604K 0.0 0:00.00 0:00.03 /hurd/proxy-defpager
94 0 1 15 15 6 139M 1.22M 0.4 0:03.25 0:11.16 /hurd/tmpfs --nosuid --noexec --size=10% --mode=755 tmpfs
115 0 1 15 15 3 139M 948K 0.0 0:00.00 0:00.00 /hurd/tmpfs --noexec --nosuid --size=5242880 --mode=1777 tmpfs
202 0 1 15 15 3 139M 944K 0.0 0:00.27 0:00.81 /hurd/tmpfs --nosuid --noexec --size=314560k --mode=1777 tmpfs
226 0 5 1 1 2 135M 780K 0.0 0:00.00 0:00.00 /hurd/storeio hd1
234 0 5 1 1 2 135M 768K 0.0 0:00.01 0:00.02 /hurd/storeio hd0s1
235 0 5 1 1 2 136M 832K 0.0 0:00.00 0:00.01 /hurd/storeio hd2
237 - 21 1 1 2 134M 788K 0.0 0:00.00 0:00.01 /hurd/mtab /
480 0 1 15 15 9 401M 2.86M 0.0 0:27.17 1:41.08 /hurd/ext2fs /dev/hd2
[...]
1005 1000 1000 1005 1005 2 147M 2.15M 0.0 0:00.00 0:00.02 /bin/bash
1016 0 5 1 1 5 414M 407M 1.3 3:43.68 12:20.81 /hurd/term /dev/ptyp2 pty-master /dev/ttyp2
1019 1000 1000 1019 1019 2 147M 2.49M 0.3 0:04.30 0:19.64 /bin/bash
1165 0 5 1 1 2 134M 928K 0.0 0:02.42 0:16.48 /hurd/magic --directory fd
1183 0 5 1 1 2 134M 872K 0.0 0:02.03 0:06.30 /hurd/magic tty
1188 - 5 1 1 4 136M 1M 2.6 2:33.19 16:58.50 /hurd/null
1208 0 5 1 1 4 136M 3.07M 0.0 0:00.67 0:03.07 /hurd/term /dev/ptyp3 pty-master /dev/ttyp3
[...]
|