[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#920235: Reading from /dev/urandom hangs from an Apache2 cgi-bin, but not from the shell



Control: fixed 920235 apache2/2.4.23-4
Control: found 920235 apache2/2.4.23-5
Control: found 920235 apache2/2.4.37-1


Dear Maintainer,
I tried to find out when this started inside an amd64 qemu VM
and got to these versions:

Stretch/testing of date 2016-10-10 with apache2/2.4.23-4 was ok.
Stretch/testing of date 2016-10-11 with apache2/2.4.23-5 started to fail.

The changelog between those versions mentions
some movement towards systemd.

This is also reproducible in buster/testing of today.

When attaching a debugger to the fold process it repeatedly
receives a signal SIGPIPE, Broken pipe.

Kind regards,
Bernhard



htop:
  PID USER      PRI  NI  VIRT   RES   SHR S CPU% MEM%   TIME+  Command
    1 root       20   0  176M  9044  6840 S  0.0  0.3  0:01.56 /sbin/init
 1765 root       20   0  8500  4416  3188 S  0.0  0.1  0:00.00 ├─ /usr/sbin/apache2 -k start
 1768 www-data   20   0 1952M 12096  2372 S  0.0  0.4  0:00.00 │  ├─ /usr/sbin/apache2 -k start
 1767 www-data   20   0 1952M 12096  2372 S  0.0  0.4  0:00.00 │  ├─ /usr/sbin/apache2 -k start
 1766 www-data   20   0  8160  2704  1488 S  0.0  0.1  0:00.00 │  └─ /usr/sbin/apache2 -k start
 1836 www-data   20   0  3736  2764  2536 S  0.0  0.1  0:00.00 │     └─ /bin/bash /usr/lib/cgi-bin/test
 1838 www-data   20   0  2296   688   624 S 13.9  0.0  0:45.68 │        ├─ fold -w 8
 1837 www-data   20   0  2320   744   680 R 85.5  0.0  4:04.58 │        └─ tr -dc a-z0-9


root@debian:~# gdb -q --pid $(pidof fold)
Attaching to process 1838
...
(gdb) cont
...
Program received signal SIGPIPE, Broken pipe.
0x00007fa3213c37d4 in __GI___libc_write (fd=1, buf=0x564061192350, nbytes=4096) at ../sysdeps/unix/sysv/linux/write.c:26
26      ../sysdeps/unix/sysv/linux/write.c: Datei oder Verzeichnis nicht gefunden.
(gdb) bt
#0  0x00007fa3213c37d4 in __GI___libc_write (fd=1, buf=0x564061192350, nbytes=4096) at ../sysdeps/unix/sysv/linux/write.c:26
#1  0x00007fa32135461d in _IO_new_file_write (f=0x7fa321495760 <_IO_2_1_stdout_>, data=0x564061192350, n=4096) at fileops.c:1183
#2  0x00007fa3213539bf in new_do_write (fp=0x7fa321495760 <_IO_2_1_stdout_>, data=0x564061192350 "n1yicbga\nbxya0ywh\ng20pc1ex\nfwbcji3y\nedbj1oxe\nrxjygw5p\nkq7ko8zl\npik7zbo2\nyxn4gzl9\niribr6wa\nfj91a3uu\nmiivy57y\n0zyffwwi\nyjh5rajm\ntytfc4mq\nkjoowq7i\n9cxibhud\n92u1qz8s\nlhhx5f9k\n7yctusal\nqvtata20\n7n51isnp\neg"..., to_do=to_do@entry=4096) at libioP.h:839
#3  0x00007fa321355769 in _IO_new_do_write (to_do=4096, data=<optimized out>, fp=<optimized out>) at fileops.c:430
#4  _IO_new_do_write (fp=<optimized out>, data=<optimized out>, to_do=4096) at fileops.c:430
#5  0x00007fa321354cef in _IO_new_file_xsputn (n=9, data=<optimized out>, f=0x7fa321495760 <_IO_2_1_stdout_>) at libioP.h:839
#6  _IO_new_file_xsputn (f=0x7fa321495760 <_IO_2_1_stdout_>, data=<optimized out>, n=9) at fileops.c:1204
#7  0x00007fa3213535a0 in __GI_fwrite_unlocked (buf=<optimized out>, size=1, count=9, fp=<optimized out>) at libioP.h:839
#8  0x000056405fbee87b in fold_file (filename=<optimized out>, width=8) at src/fold.c:210
#9  0x000056405fbee5bb in main (argc=3, argv=0x7ffd2bc533d8) at src/fold.c:297
(gdb) cont
# Stretch amd64 qemu VM 2019-01-24

#apt update
apt-get -o Acquire::Check-Valid-Until=false -o Acquire::Languages=none update
apt dist-upgrade

# /etc/apt/sources.list, enable backports
#apt update
apt-get -o Acquire::Check-Valid-Until=false -o Acquire::Languages=none update


# apt install linux-image-amd64=4.19+101~bpo9+1

apt install htop psmisc gdb apache2
a2enmod cgi
systemctl restart apache2



cat <<EOF > /usr/lib/cgi-bin/test
#!/bin/bash
echo "Content-Type: text/plain"
echo ""
tr -dc 'a-z0-9' </dev/urandom | fold -w 8 | head -n 1
EOF

chmod +x /usr/lib/cgi-bin/test



wget http://localhost/cgi-bin/test




################



Linux debian 4.9.0-8-amd64 #1 SMP Debian 4.9.130-2 (2018-10-27) x86_64




benutzer@debian:~$ wget http://localhost/cgi-bin/test
--2019-01-24 20:06:55--  http://localhost/cgi-bin/test
Auflösen des Hostnamens »localhost (localhost)« … ::1, 127.0.0.1
Verbindungsaufbau zu localhost (localhost)|::1|:80 … verbunden.
HTTP-Anforderung gesendet, auf Antwort wird gewartet … Keine Daten empfangen.
Erneuter Versuch.

--2019-01-24 20:11:56--  (Versuch: 2)  http://localhost/cgi-bin/test
Verbindungsaufbau zu localhost (localhost)|::1|:80 … verbunden.
HTTP-Anforderung gesendet, auf Antwort wird gewartet … 







htop

  1  [||||||||||||||||                                                                    17.1%]   5  [                                                                                     0.0%]
  2  [|                                                                                    0.7%]   6  [                                                                                     0.0%]
  3  [|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||100.0%]   7  [                                                                                     0.0%]
  4  [                                                                                     0.0%]   8  [                                                                                     0.0%]
  Mem[||||||||||                                                                    89.7M/2.93G]   Tasks: 31; 2 running
  Swp[                                                                                 0K/1021M]   Load average: 0.78 0.23 0.08 
                                                                                                   Uptime: 00:04:26

  PID USER      PRI  NI  VIRT   RES   SHR S CPU% MEM%   TIME+  Command
    1 root       20   0  199M  6728  5160 S  0.0  0.2  0:00.87 /sbin/init
 1251 root       20   0 77720  4228  2980 S  0.0  0.1  0:00.00 ├─ /usr/sbin/apache2 -k start
 1254 www-data   20   0  358M  6156  2520 S  0.0  0.2  0:00.04 │  ├─ /usr/sbin/apache2 -k start
 1253 www-data   20   0  358M  6156  2520 S  0.0  0.2  0:00.04 │  ├─ /usr/sbin/apache2 -k start
 1252 www-data   20   0 77452  3384  2140 S  0.0  0.1  0:00.00 │  └─ /usr/sbin/apache2 -k start
 1331 www-data   20   0 17956  2808  2548 S  0.0  0.1  0:00.00 │     └─ /bin/bash /usr/lib/cgi-bin/test
 1333 www-data   20   0  4204   704   636 S 19.3  0.0  0:11.42 │        ├─ fold -w 8
 1332 www-data   20   0  4224   692   620 R 99.1  0.0  1:00.98 │        └─ tr -dc a-z0-9
  507 benutzer   20   0 64860  6072  5240 S  0.0  0.2  0:00.01 ├─ /lib/systemd/systemd --user
  508 benutzer   20   0 82540  1552    12 S  0.0  0.1  0:00.00 │  └─ (sd-pam)
  498 root       20   0 69956  5492  4744 S  0.0  0.2  0:00.00 ├─ /usr/sbin/sshd -D
 1313 root       20   0 95216  6740  5772 S  0.0  0.2  0:00.02 │  ├─ sshd: benutzer [priv]
 1319 benutzer   20   0 95216  3704  2740 S  0.0  0.1  0:00.00 │  │  └─ sshd: benutzer@pts/1
 1320 benutzer   20   0 21052  4876  3248 S  0.0  0.2  0:00.05 │  │     └─ -bash
 1330 benutzer   20   0 46800  4896  4348 S  0.0  0.2  0:00.01 │  │        └─ wget http://localhost/cgi-bin/test
  505 root       20   0 95216  6712  5740 S  0.0  0.2  0:00.02 │  └─ sshd: benutzer [priv]
  514 benutzer   20   0 95216  3820  2852 S  0.0  0.1  0:00.05 │     └─ sshd: benutzer@pts/0
  515 benutzer   20   0 21052  4688  3072 S  0.0  0.2  0:00.04 │        └─ -bash
  524 root       20   0 50908  3120  2696 S  0.0  0.1  0:00.01 │           └─ su -
  525 root       20   0 21040  4696  3064 S  0.0  0.2  0:00.03 │              └─ -su
 1575 root       20   0 25476  4520  2980 R  0.7  0.1  0:00.03 │                 └─ htop
  491 root       20   0 14540  1736  1604 S  0.0  0.1  0:00.10 ├─ /sbin/agetty --noclear tty1 linux
  489 root       20   0  244M  7256  2508 S  0.0  0.2  0:00.01 ├─ /usr/sbin/rsyslogd -n
  488 root       20   0 35880  3168  2800 S  0.0  0.1  0:00.01 ├─ /usr/sbin/irqbalance --foreground
  484 messagebu  20   0 45124  3628  3184 S  0.0  0.1  0:00.13 ├─ /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation
  481 root       20   0 46428  4612  4052 S  0.0  0.2  0:00.13 ├─ /lib/systemd/systemd-logind
  479 root       20   0 29640  2688  2452 S  0.0  0.1  0:00.00 ├─ /usr/sbin/cron -f
  476 root       20   0 20360  1044     0 S  0.0  0.0  0:00.00 ├─ /sbin/dhclient -4 -v -pf /run/dhclient.ens3.pid -lf /var/lib/dhcp/dhclient.ens3.leases -I -df /var/lib/dhcp/dhclient6.ens3.leases ens
  338 systemd-t  20   0  124M  4104  3612 S  0.0  0.1  0:00.02 ├─ /lib/systemd/systemd-timesyncd
  271 root       20   0 45628  3320  2708 S  0.0  0.1  0:00.06 ├─ /lib/systemd/systemd-udevd
  242 root       20   0 41752  4572  4080 S  0.0  0.1  0:00.10 └─ /lib/systemd/systemd-journald









root@debian:~# gdb -q --pid $(pidof fold)
Attaching to process 1333
Reading symbols from target:/usr/bin/fold...(no debugging symbols found)...done.
Reading symbols from target:/lib/x86_64-linux-gnu/libc.so.6...Reading symbols from /usr/lib/debug/.build-id/aa/889e26a70f98fa8d230d088f7cc5bf43573163.debug...done.
done.
Reading symbols from target:/lib64/ld-linux-x86-64.so.2...Reading symbols from /usr/lib/debug/.build-id/26/3f909dbe11a66f7c6233e3ff0521148d9f8370.debug...done.
done.
0x00005579a20a8e09 in ?? ()
(gdb) generate-core-file ~/fold.core
warning: target file /proc/1333/cmdline contained unexpected null characters
Saved corefile /root/fold.core
(gdb) detach
Detaching from program: target:/usr/bin/fold, process 1333
(gdb) q



root@debian:~# gdb -q --pid $(pidof tr)
Attaching to process 1332
Reading symbols from target:/usr/bin/tr...(no debugging symbols found)...done.
Reading symbols from target:/lib/x86_64-linux-gnu/libc.so.6...Reading symbols from /usr/lib/debug/.build-id/aa/889e26a70f98fa8d230d088f7cc5bf43573163.debug...done.
done.
Reading symbols from target:/lib64/ld-linux-x86-64.so.2...Reading symbols from /usr/lib/debug/.build-id/26/3f909dbe11a66f7c6233e3ff0521148d9f8370.debug...done.
done.
0x00007ffb0800e730 in __write_nocancel () at ../sysdeps/unix/syscall-template.S:84
84      ../sysdeps/unix/syscall-template.S: Datei oder Verzeichnis nicht gefunden.
(gdb) generate-core-file ~/tr.core
warning: target file /proc/1332/cmdline contained unexpected null characters
Saved corefile /root/tr.core
(gdb) detach
Detaching from program: target:/usr/bin/tr, process 1332
(gdb) q







apt install coreutils-dbgsym



root@debian:~# pstree -p | grep -E "fold" -C 4
systemd(1)-+-agetty(491)
           |-apache2(1251)-+-apache2(1252)---test(1791)-+-fold(1793)
           |               |                            `-tr(1792)
           |               |-apache2(1253)-+-{apache2}(1257)
           |               |               |-{apache2}(1258)
           |               |               |-{apache2}(1260)




root@debian:~# gdb -q --pid $(pidof fold)
1333: Datei oder Verzeichnis nicht gefunden.
Attaching to process 1793
Reading symbols from target:/usr/bin/fold...Reading symbols from /usr/lib/debug/.build-id/25/d40ff6a46e2efb0b80c9111b75a6a32109979b.debug...done.
done.
Reading symbols from target:/lib/x86_64-linux-gnu/libc.so.6...Reading symbols from /usr/lib/debug/.build-id/aa/889e26a70f98fa8d230d088f7cc5bf43573163.debug...done.
done.
Reading symbols from target:/lib64/ld-linux-x86-64.so.2...Reading symbols from /usr/lib/debug/.build-id/26/3f909dbe11a66f7c6233e3ff0521148d9f8370.debug...done.
done.
0x00007f9d094006d0 in __read_nocancel () at ../sysdeps/unix/syscall-template.S:84
84      ../sysdeps/unix/syscall-template.S: Datei oder Verzeichnis nicht gefunden.
(gdb) cont
Continuing.

Program received signal SIGPIPE, Broken pipe.
0x00007f9d09400730 in __write_nocancel () at ../sysdeps/unix/syscall-template.S:84
84      ../sysdeps/unix/syscall-template.S: Datei oder Verzeichnis nicht gefunden.
(gdb) bt
#0  0x00007f9d09400730 in __write_nocancel () at ../sysdeps/unix/syscall-template.S:84
#1  0x00007f9d09397817 in _IO_new_file_write (f=0x7f9d096bf600 <_IO_2_1_stdout_>, data=0x55bb920ff100, n=4096) at fileops.c:1271
#2  0x00007f9d09396b62 in new_do_write (fp=0x7f9d096bf600 <_IO_2_1_stdout_>, 
    data=0x55bb920ff100 "dr1ogj7p\nn02g3iem\n6o9jr4mr\nzyc3s310\njh23y1ar\ns9f0l0m7\npoger3w5\nb41io6u3\n8zcwqoue\nysovb92s\nxo32mui8\n7phnzk09\n8yn9airo\n3anod1s4\nuomnklo9\nk2tfsrgp\n9a7rifqy\n1w3ljkxs\n4kfhfbwz\nruqrbxsi\noq3mwd8b\n3h4lwvg3\n00"..., to_do=to_do@entry=4096) at fileops.c:526
#3  0x00007f9d093988d9 in _IO_new_do_write (fp=<optimized out>, data=<optimized out>, to_do=4096) at fileops.c:502
#4  0x00007f9d09397eb6 in _IO_new_file_xsputn (f=0x7f9d096bf600 <_IO_2_1_stdout_>, data=<optimized out>, n=9) at fileops.c:1339
#5  0x00007f9d09396732 in __GI_fwrite_unlocked (buf=<optimized out>, size=1, count=9, fp=<optimized out>) at iofwrite_u.c:43
#6  0x000055bb90a97ec3 in fold_file (filename=0x55bb90a9bd22 "-", width=8) at src/fold.c:210
#7  0x000055bb90a97ba1 in main (argc=3, argv=0x7fffc782cc88) at src/fold.c:297
(gdb) cont
Continuing.

Program received signal SIGPIPE, Broken pipe.
0x00007f9d09400730 in __write_nocancel () at ../sysdeps/unix/syscall-template.S:84
84      in ../sysdeps/unix/syscall-template.S
(gdb) bt
#0  0x00007f9d09400730 in __write_nocancel () at ../sysdeps/unix/syscall-template.S:84
#1  0x00007f9d09397817 in _IO_new_file_write (f=0x7f9d096bf600 <_IO_2_1_stdout_>, data=0x55bb920ff100, n=4096) at fileops.c:1271
#2  0x00007f9d09396b62 in new_do_write (fp=0x7f9d096bf600 <_IO_2_1_stdout_>, 
    data=0x55bb920ff100 "2lxtge72\nm3wwn4d2\nylkbb5ht\nmkmag59k\n19t8e23t\n7jlsrzec\n3m1u0zw7\n3qzguem5\nrpkolpoh\n15qnkdd6\nihbtpfn6\nxxm11wxn\nta7ggx70\nyhpjh4c6\noq3iqay5\n124buksv\nhye25vv5\nqzu8zhlm\nyofjt5jq\nzkokcg6o\n3eje7ljd\napnghi7o\nb6"..., to_do=to_do@entry=4096) at fileops.c:526
#3  0x00007f9d093988d9 in _IO_new_do_write (fp=<optimized out>, data=<optimized out>, to_do=4096) at fileops.c:502
#4  0x00007f9d09397eb6 in _IO_new_file_xsputn (f=0x7f9d096bf600 <_IO_2_1_stdout_>, data=<optimized out>, n=9) at fileops.c:1339
#5  0x00007f9d09396732 in __GI_fwrite_unlocked (buf=<optimized out>, size=1, count=9, fp=<optimized out>) at iofwrite_u.c:43
#6  0x000055bb90a97ec3 in fold_file (filename=0x55bb90a9bd22 "-", width=8) at src/fold.c:210
#7  0x000055bb90a97ba1 in main (argc=3, argv=0x7fffc782cc88) at src/fold.c:297




--> Same with Stretch default kernel



###############



# Jessie amd64 qemu VM 2019-01-24

#apt update
apt-get -o Acquire::Check-Valid-Until=false -o Acquire::Languages=none update
apt dist-upgrade



apt install htop psmisc gdb apache2
a2enmod cgi
systemctl restart apache2



cat <<EOF > /usr/lib/cgi-bin/test
#!/bin/bash
echo "Content-Type: text/plain"
echo ""
tr -dc 'a-z0-9' </dev/urandom | fold -w 8 | head -n 1
EOF

chmod +x /usr/lib/cgi-bin/test



wget http://localhost/cgi-bin/test



benutzer@debian:~$ wget http://localhost/cgi-bin/test
--2019-01-24 20:26:57--  http://localhost/cgi-bin/test
Auflösen des Hostnamen »localhost (localhost)«... ::1, 127.0.0.1
Verbindungsaufbau zu localhost (localhost)|::1|:80... verbunden.
HTTP-Anforderung gesendet, warte auf Antwort... 200 OK
Länge: 9 [text/plain]
In »»test«« speichern.

test                                              100%[==============================================================================================================>]       9  --.-KB/s   in 0s     

2019-01-24 20:26:57 (1,26 MB/s) - »»test«« gespeichert [9/9]

benutzer@debian:~$ cat test
seli97jy

# cat /etc/debian_version 
8.11

root@debian:~# dpkg -l | grep -i -E "apache|linux-image|libc"
ii  apache2                        2.4.10-10+deb8u12                  amd64        Apache HTTP Server
ii  apache2-bin                    2.4.10-10+deb8u12                  amd64        Apache HTTP Server (modules and other binary files)
ii  apache2-data                   2.4.10-10+deb8u12                  all          Apache HTTP Server (common files)
ii  apache2-utils                  2.4.10-10+deb8u12                  amd64        Apache HTTP Server (utility programs for web servers)
ii  klibc-utils                    2.0.4-2                            amd64        small utilities built with klibc for early boot
ii  libapr1:amd64                  1.5.1-3                            amd64        Apache Portable Runtime Library
ii  libaprutil1:amd64              1.5.4-1                            amd64        Apache Portable Runtime Utility Library
ii  libaprutil1-dbd-sqlite3:amd64  1.5.4-1                            amd64        Apache Portable Runtime Utility Library - SQLite3 Driver
ii  libaprutil1-ldap:amd64         1.5.4-1                            amd64        Apache Portable Runtime Utility Library - LDAP Driver
ii  libc-bin                       2.19-18+deb8u10                    amd64        GNU C Library: Binaries
ii  libc6:amd64                    2.19-18+deb8u10                    amd64        GNU C Library: Shared libraries
ii  libc6-dbg:amd64                2.19-18+deb8u10                    amd64        GNU C Library: detached debugging symbols
ii  libcairo2:amd64                1.14.0-2.1+deb8u2                  amd64        Cairo 2D vector graphics library
ii  libcap-ng0:amd64               0.7.4-2                            amd64        An alternate POSIX capabilities library
ii  libcap2:amd64                  1:2.24-8                           amd64        POSIX 1003.1e capabilities (library)
ii  libcap2-bin                    1:2.24-8                           amd64        POSIX 1003.1e capabilities (utilities)
ii  libcgi-fast-perl               1:2.04-1                           all          CGI subclass for work with FCGI
ii  libcgi-pm-perl                 4.09-1                             all          module for Common Gateway Interface applications
ii  libclass-accessor-perl         0.34-1                             all          Perl module that automatically generates accessors
ii  libclass-c3-perl               0.26-1                             all          pragma for using the C3 method resolution order
ii  libclass-c3-xs-perl            0.13-2+b1                          amd64        Perl module to accelerate Class::C3
ii  libclass-isa-perl              0.36-5                             all          report the search path for a class's ISA tree
ii  libcomerr2:amd64               1.42.12-2+b1                       amd64        common error description library
ii  libcpan-meta-perl              2.142690-1                         all          Perl module to access CPAN distributions metadata
ii  libcryptsetup4:amd64           2:1.6.6-5                          amd64        disk encryption support - shared library
ii  libcups2:amd64                 1.7.5-11+deb8u4                    amd64        Common UNIX Printing System(tm) - Core library
ii  libcurl3-gnutls:amd64          7.38.0-4+deb8u13                   amd64        easy-to-use client-side URL transfer library (GnuTLS flavour)
ii  libcwidget3:amd64              0.5.17-2                           amd64        high-level terminal interface library for C++ (runtime files)
ii  libklibc                       2.0.4-2                            amd64        minimal libc subset for use with initramfs
ii  liblocale-gettext-perl         1.05-8+b1                          amd64        module using libc functions for internationalization in Perl
ii  linux-image-3.16.0-6-amd64     3.16.57-2                          amd64        Linux 3.16 for 64-bit PCs
ii  linux-image-3.16.0-7-amd64     3.16.59-1                          amd64        Linux 3.16 for 64-bit PCs
ii  linux-image-amd64              3.16+63+deb8u3                     amd64        Linux for 64-bit PCs (meta-package)



------------


approx:
debian-9-stretch-snapshot.debian.org                https://snapshot.debian.org/archive/debian/20150701T000000Z/
debian-9-stretch-debug-snapshot.debian.org          https://snapshot.debian.org/archive/debian-debug/20150701T000000Z/


sources.list:
# snapshot
deb     [check-valid-until=no] http://192.168.178.25:9999/debian-9-stretch-snapshot.debian.org/ stretch main
#deb-src [check-valid-until=no] http://192.168.178.25:9999/debian-9-stretch-snapshot.debian.org/ stretch main
#deb     [check-valid-until=no] http://192.168.178.25:9999/debian-9-stretch-debug-snapshot.debian.org/ stretch-debug main



rm /var/lib/apt/lists/192*

wget http://192.168.178.25:9999/debian-9-stretch-snapshot.debian.org/pool/main/l/linux-signed/linux-image-4.8.0-2-amd64_4.8.11-1_amd64.deb
dpkg -i linux-image-4.8.0-2-amd64_4.8.11-1_amd64.deb



#apt update
apt-get -o Acquire::Check-Valid-Until=false -o Acquire::Languages=none update
apt dist-upgrade



Jessie 8.0 26. April 2015
Jessie 8.11                                                  -> works
https://snapshot.debian.org/archive/debian/20150701T000000Z/ -> works
https://snapshot.debian.org/archive/debian/20150901T000000Z/ -> works
https://snapshot.debian.org/archive/debian/20151001T000000Z/ -> works
https://snapshot.debian.org/archive/debian/20160101T000000Z/ -> works
https://snapshot.debian.org/archive/debian/20160401T000000Z/ -> works @3.16.0-6-amd64 (regular kernel not booting)
https://snapshot.debian.org/archive/debian/20160701T000000Z/ -> works @3.16.0-7-amd64 (regular kernel not booting)
https://snapshot.debian.org/archive/debian/20161001T000000Z/ -> works @3.16.0-7-amd64 (regular kernel not booting)
https://snapshot.debian.org/archive/debian/20161001T000000Z/ -> works @4.8.0-2-amd64 (regular kernel not booting)
https://snapshot.debian.org/archive/debian/20161004T000000Z/ -> works @4.8.0-2-amd64 (regular kernel not booting)
https://snapshot.debian.org/archive/debian/20161008T000000Z/ -> works @4.8.0-2-amd64 (regular kernel not booting)
https://snapshot.debian.org/archive/debian/20161010T000000Z/ -> works @4.8.0-2-amd64 (regular kernel not booting)

https://snapshot.debian.org/archive/debian/20161011T000000Z/ -> fails @4.8.0-2-amd64 (regular kernel not booting)
https://snapshot.debian.org/archive/debian/20161012T000000Z/ -> fails @4.8.0-2-amd64 (regular kernel not booting)
https://snapshot.debian.org/archive/debian/20161101T000000Z/ -> fails @4.8.0-2-amd64 (regular kernel not booting)
https://snapshot.debian.org/archive/debian/20170101T000000Z/ -> fails @3.16.0-7-amd64 (just test to rule out kernel issue)
https://snapshot.debian.org/archive/debian/20170101T000000Z/ -> fails @4.8.0-2-amd64 (regular kernel in testing at that time)
https://snapshot.debian.org/archive/debian/20170601T000000Z/ -> fails
https://snapshot.debian.org/archive/debian/20170701T000000Z/ -> fails
https://snapshot.debian.org/archive/debian/20170801T000000Z/ -> fails
https://snapshot.debian.org/archive/debian/20170901T000000Z/ -> fails
https://snapshot.debian.org/archive/debian/20180101T000000Z/ -> fails


Entpacken von apache2 (2.4.23-5) über (2.4.23-4) ...
Entpacken von apache2-bin (2.4.23-5) über (2.4.23-4) ...
Entpacken von apache2-utils (2.4.23-5) über (2.4.23-4) ...
Entpacken von apache2-data (2.4.23-5) über (2.4.23-4) ...

# apt install libapt-pkg5.0=1.3 libapt-inst2.0=1.3 apt=1.3 apt-utils=1.3 apache2=2.4.23-4 apache2-bin=2.4.23-4 apache2-utils=2.4.23-4 apache2-data=2.4.23-4 readline-common=6.3-8 libreadline6=6.3-8+b4 libslang2=2.3.0-3 vim-tiny=2:8.0.0003-1+b1 xxd=2:8.0.0003-1+b1 vim-common=2:8.0.0003-1 bc=1.06.95-9+b1 dc=1.06.95-9+b1 libcups2=2.2.0-2 libnotmuch4=0.22.2-1+b1 libmnl0=1.0.4-1



#############


# Buster amd64 qemu VM 2019-01-25


htop:
  PID USER      PRI  NI  VIRT   RES   SHR S CPU% MEM%   TIME+  Command
    1 root       20   0  176M  9044  6840 S  0.0  0.3  0:01.56 /sbin/init
 1765 root       20   0  8500  4416  3188 S  0.0  0.1  0:00.00 ├─ /usr/sbin/apache2 -k start
 1768 www-data   20   0 1952M 12096  2372 S  0.0  0.4  0:00.00 │  ├─ /usr/sbin/apache2 -k start
 1767 www-data   20   0 1952M 12096  2372 S  0.0  0.4  0:00.00 │  ├─ /usr/sbin/apache2 -k start
 1766 www-data   20   0  8160  2704  1488 S  0.0  0.1  0:00.00 │  └─ /usr/sbin/apache2 -k start
 1836 www-data   20   0  3736  2764  2536 S  0.0  0.1  0:00.00 │     └─ /bin/bash /usr/lib/cgi-bin/test
 1838 www-data   20   0  2296   688   624 S 13.9  0.0  0:45.68 │        ├─ fold -w 8
 1837 www-data   20   0  2320   744   680 R 85.5  0.0  4:04.58 │        └─ tr -dc a-z0-9



root@debian:~# gdb -q --pid $(pidof fold)
Attaching to process 1838
Reading symbols from target:/usr/bin/fold...Reading symbols from /usr/lib/debug/.build-id/16/d7b1f01123d532d271bf8459c576cd4294ce84.debug...done.
done.
Reading symbols from target:/lib/x86_64-linux-gnu/libc.so.6...Reading symbols from /usr/lib/debug/.build-id/dd/2b8c469f69d0866039fcc75889451baca4e0f1.debug...done.
done.
Reading symbols from target:/lib64/ld-linux-x86-64.so.2...Reading symbols from /usr/lib/debug/.build-id/f6/8476632fe338d209f9536ad0ebe7cfde5b5f28.debug...done.
done.
0x00007fa3213c3731 in __GI___libc_read (fd=0, buf=0x5640611912b0, nbytes=4096) at ../sysdeps/unix/sysv/linux/read.c:26
26      ../sysdeps/unix/sysv/linux/read.c: Datei oder Verzeichnis nicht gefunden.
(gdb) cont
Continuing.

Program received signal SIGPIPE, Broken pipe.
0x00007fa3213c37d4 in __GI___libc_write (fd=1, buf=0x564061192350, nbytes=4096) at ../sysdeps/unix/sysv/linux/write.c:26
26      ../sysdeps/unix/sysv/linux/write.c: Datei oder Verzeichnis nicht gefunden.
(gdb) bt
#0  0x00007fa3213c37d4 in __GI___libc_write (fd=1, buf=0x564061192350, nbytes=4096) at ../sysdeps/unix/sysv/linux/write.c:26
#1  0x00007fa32135461d in _IO_new_file_write (f=0x7fa321495760 <_IO_2_1_stdout_>, data=0x564061192350, n=4096) at fileops.c:1183
#2  0x00007fa3213539bf in new_do_write (fp=0x7fa321495760 <_IO_2_1_stdout_>, data=0x564061192350 "n1yicbga\nbxya0ywh\ng20pc1ex\nfwbcji3y\nedbj1oxe\nrxjygw5p\nkq7ko8zl\npik7zbo2\nyxn4gzl9\niribr6wa\nfj91a3uu\nmiivy57y\n0zyffwwi\nyjh5rajm\ntytfc4mq\nkjoowq7i\n9cxibhud\n92u1qz8s\nlhhx5f9k\n7yctusal\nqvtata20\n7n51isnp\neg"..., to_do=to_do@entry=4096) at libioP.h:839
#3  0x00007fa321355769 in _IO_new_do_write (to_do=4096, data=<optimized out>, fp=<optimized out>) at fileops.c:430
#4  _IO_new_do_write (fp=<optimized out>, data=<optimized out>, to_do=4096) at fileops.c:430
#5  0x00007fa321354cef in _IO_new_file_xsputn (n=9, data=<optimized out>, f=0x7fa321495760 <_IO_2_1_stdout_>) at libioP.h:839
#6  _IO_new_file_xsputn (f=0x7fa321495760 <_IO_2_1_stdout_>, data=<optimized out>, n=9) at fileops.c:1204
#7  0x00007fa3213535a0 in __GI_fwrite_unlocked (buf=<optimized out>, size=1, count=9, fp=<optimized out>) at libioP.h:839
#8  0x000056405fbee87b in fold_file (filename=<optimized out>, width=8) at src/fold.c:210
#9  0x000056405fbee5bb in main (argc=3, argv=0x7ffd2bc533d8) at src/fold.c:297
(gdb) cont

Reply to: