Bug#347537: squid: Dependency of 2.5.12-3 package on lsb-base

2006-01-11 Thread Eugene B. Berdnikov
Package: squid
Version: 2.5.12-3
Severity: normal


Squid 2.5.12-3 package from etch (testing) has no explicit
dependency on lsb-base, while /etc/init.d/squid script reads
function definitions from /lib/lsb/init-functions.



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#339364: vtun: Link timeout handling in UDP mode

2005-11-15 Thread Eugene B. Berdnikov
Package: vtun
Version: 2.6-4
Severity: normal



-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (500, 'testing'), (500, 'stable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.12-1-686
Locale: LANG=ru_RU.KOI8-R, LC_CTYPE=ru_RU.KOI8-R (charmap=KOI8-R)

Versions of packages vtun depends on:
ii  debconf   1.4.58 Debian configuration management sy
ii  libc6 2.3.5-6GNU C Library: Shared libraries an
ii  liblzo1   1.08-2 data compression library
ii  libssl0.9.7   0.9.7g-2   SSL shared libraries
ii  psmisc21.6-1 Utilities that use the proc filesy
ii  zlib1g1:1.2.3-4  compression library - runtime

vtun recommends no packages.

-- debconf information:
* vtun/passwords:


diff -ru vtun-2.6-orig/ChangeLog vtun-2.6/ChangeLog
--- vtun-2.6-orig/ChangeLog 2003-03-18 15:32:28.0 +0300
+++ vtun-2.6/ChangeLog  2005-11-15 23:07:35.0 +0300
@@ -1,4 +1,16 @@
-
+ver 2.6.1:
+   Fix bug in link timeout handling for "proto udp; кееpalive yes;"
+   (Eugene Berdnikov).
+   Previous concept of "idle" was inactivity on ALL file descriptors.
+   For the case of uni-directed data flow (ex. bridge "hello" BPDUs on
+   STP-disabled link, router advertisements or аsymmetric routing),
+   no checks for backword traffic were performed. Vital for UDP mode.
+   
+   Minor fixes in lfd_lzo.c to ensure correct type casting.
+   
+   Add description of "keepalive timeout:count;" syntax to man page
+   and sample vtund.conf.
+   
 Future (2.7):
SigINT should be heeded (Michael Tokarov)
support for connecting ssl to non-ssl vtuns (sslauth option) <[EMAIL 
PROTECTED]>
diff -ru vtun-2.6-orig/lfd_lzo.c vtun-2.6/lfd_lzo.c
--- vtun-2.6-orig/lfd_lzo.c 2002-04-25 13:19:50.0 +0400
+++ vtun-2.6/lfd_lzo.c  2005-11-12 00:18:28.0 +0300
@@ -35,6 +35,7 @@
 
 #ifdef HAVE_LZO
 
+#include "lzoutil.h"
 #include "lzo1x.h"
 
 static lzo_byte *zbuf;
@@ -53,7 +54,7 @@
 int alloc_lzo(struct vtun_host *host)
 {
  int zlevel = host->zlevel ? host->zlevel : 1;
- int mem;
+ lzo_uint mem;
 
  switch( zlevel ){
case 9:
diff -ru vtun-2.6-orig/linkfd.c vtun-2.6/linkfd.c
--- vtun-2.6-orig/linkfd.c  2002-12-15 22:23:03.0 +0300
+++ vtun-2.6/linkfd.c   2005-11-15 20:29:53.0 +0300
@@ -172,19 +172,37 @@
  linker_term = VTUN_SIG_HUP;
 }
 
-/* Statistic dump */
+/* Statistic dump and keep-alive monitor */
+static volatile sig_atomic_t ka_need_verify = 0;
+static time_t stat_timer = 0, ka_timer = 0; 
+
 void sig_alarm(int sig)
 {
- static time_t tm;
+ static time_t tm_old, tm = 0;
  static char stm[20];
-  
+ 
+ tm_old = tm;
  tm = time(NULL);
- strftime(stm, sizeof(stm)-1, "%b %d %H:%M:%S", localtime(&tm)); 
- fprintf(lfd_host->stat.file,"%s %lu %lu %lu %lu\n", stm, 
-   lfd_host->stat.byte_in, lfd_host->stat.byte_out,
-   lfd_host->stat.comp_in, lfd_host->stat.comp_out); 
- 
- alarm(VTUN_STAT_IVAL);
+
+ if( (lfd_host->flags & VTUN_KEEP_ALIVE) && (ka_timer -= tm-tm_old) <= 0){
+   ka_need_verify = 1;
+   ka_timer = lfd_host->ka_interval
+ + 1; /* We have to complete select() on idle */
+ }
+
+ if( (lfd_host->flags & VTUN_STAT) && (stat_timer -= tm-tm_old) <= 0){
+strftime(stm, sizeof(stm)-1, "%b %d %H:%M:%S", localtime(&tm)); 
+fprintf(lfd_host->stat.file,"%s %lu %lu %lu %lu\n", stm, 
+  lfd_host->stat.byte_in, lfd_host->stat.byte_out,
+  lfd_host->stat.comp_in, lfd_host->stat.comp_out); 
+   stat_timer = VTUN_STAT_IVAL;
+ }
+
+ if ( ka_timer*stat_timer ){
+   alarm( (ka_timer < stat_timer) ? ka_timer : stat_timer );
+ } else {
+   alarm( (ka_timer) ? ka_timer : stat_timer );
+ }
 }
 
 static void sig_usr1(int sig)
@@ -230,26 +248,27 @@
  break;
   else
  continue;
-   } 
-   
-   if( !len ){
-  /* We are idle, lets check connection */
-  if( lfd_host->flags & VTUN_KEEP_ALIVE ){
- if( ++idle > lfd_host->ka_failure ){
-vtun_syslog(LOG_INFO,"Session %s network timeout", 
lfd_host->host);
-break; 
- }
- /* Send ECHO request */
- if( proto_write(fd1, buf, VTUN_ECHO_REQ) < 0 )
-break;
+   }
+
+   if( ka_need_verify ){
+  if( idle > lfd_host->ka_failure ){
+ vtun_syslog(LOG_INFO,"Session %s network timeout", 
lfd_host->host);
+ break;
+  }
+  /* Send ECHO request */
+  if (idle++ > 0) {
+if( proto_write(fd1, buf, VTUN_ECHO_REQ) < 0 ){
+  vtun_syslog(LOG_ERR,"Failed to send ECHO_REQ");
+  break;
+}
   }
-  continue

Bug#737708: isync: Mailbox path corruption

2014-02-05 Thread Eugene B. Berdnikov
Package: isync
Version: 1.1.0-1
Severity: important
Justification: critical

 Hello. After upgrade from 1.0.4-2.2 to 1.1.0-1 isync tries to prepend
 a dot to a mailbox name. I have in my ~/.isyncrc:

-
Mailbox /var/mail/berd
Alias main

Mailbox /home/berd/Mail/is_spam
Box is_spam
Alias is_spam
-

 and running "strace isync -a -V" shows:

stat64("/var/.mail/.berd/", 0xbfd14f30) = -1 ENOENT (No such file or directory)
write(2, "Maildir error: mailbox '/var/.mail/.berd/' does not exist\n", 58) = 58
...
stat64("/home/berd/Mail/.is_spam/", 0xbfd14fb0) = -1 ENOENT (No such file or 
directory)
write(2, "Maildir error: mailbox '/home/berd/Mail/.is_spam/' does not exist\n", 
66) = 66
...

 Downgrading to 1.0.4-2.2 solves the problem.


-- System Information:
Debian Release: jessie/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 3.10-2-686-pae (SMP w/2 CPU cores)
Locale: LANG=ru_RU.KOI8-R, LC_CTYPE=ru_RU.KOI8-R (charmap=KOI8-R)
Shell: /bin/sh linked to /bin/bash

Versions of packages isync depends on:
ii  libc62.17-97
ii  libdb5.1 5.1.29-6
ii  libssl1.0.0  1.0.1f-1

isync recommends no packages.

Versions of packages isync suggests:
pn  mutt  

-- no debconf information


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#515603: Heap corruption in libmagic1 when parsing CDF files

2009-04-14 Thread Eugene B. Berdnikov
Package: file
Version: 5.00-1
Severity: critical


 Heap corruption happens on some Microsoft document files (including ".doc",
 ".mpp" and maybe others), while reading out-of-buffer in cdf.c, line 313.

 This bug is critical for mail processing, blocking mails on relay running
 amavisd as spam/virus filter. Symptoms:

% file /tmp/VTB_DWH_plan_v_091_090331_gleb.mpp
*** glibc detected *** file: munmap_chunk(): invalid pointer: 0x08c48aa8 ***
=== Backtrace: =
/lib/i686/cmov/libc.so.6[0xb7e231e4]
/usr/lib/libmagic.so.1(cdf_read_sat+0x23b)[0xb7f3e84b]
/usr/lib/libmagic.so.1(file_trycdf+0x6e)[0xb7f3ecce]
/usr/lib/libmagic.so.1(file_buffer+0x1ca)[0xb7f3c21a]
/usr/lib/libmagic.so.1[0xb7f2e092]
file[0x8048e3d]
file[0x804995c]
/lib/i686/cmov/libc.so.6(__libc_start_main+0xe5)[0xb7dca775]
file[0x8048ba1]
=== Memory map: 
08048000-0804b000 r-xp  03:0a 335446 /usr/bin/file
0804b000-0804c000 rw-p 2000 03:0a 335446 /usr/bin/file
08c22000-08c5b000 rw-p 08c22000 00:00 0  [heap]
b7989000-b7995000 r-xp  03:05 40203  /lib/libgcc_s.so.1
b7995000-b7996000 rw-p c000 03:05 40203  /lib/libgcc_s.so.1
b79a2000-b7a03000 rw-p b79a2000 00:00 0 
b7a03000-b7a05000 r-xp  03:0a 20213  /usr/lib/gconv/KOI8-R.so
b7a05000-b7a06000 r--p 1000 03:0a 20213  /usr/lib/gconv/KOI8-R.so
b7a06000-b7a07000 rw-p 2000 03:0a 20213  /usr/lib/gconv/KOI8-R.so
b7a07000-b7a0e000 r--s  03:0a 16392  
/usr/lib/gconv/gconv-modules.cache
b7a0e000-b7bbd000 rw-p  03:0a 228828 /usr/share/file/magic.mgc
b7bbd000-b7db3000 r--p  03:0a 47892  /usr/lib/locale/locale-archive
b7db3000-b7db4000 rw-p b7db3000 00:00 0 
b7db4000-b7f0e000 r-xp  03:05 44190  /lib/i686/cmov/libc-2.9.so
b7f0e000-b7f0f000 ---p 0015a000 03:05 44190  /lib/i686/cmov/libc-2.9.so
b7f0f000-b7f11000 r--p 0015a000 03:05 44190  /lib/i686/cmov/libc-2.9.so
b7f11000-b7f12000 rw-p 0015c000 03:05 44190  /lib/i686/cmov/libc-2.9.so
b7f12000-b7f16000 rw-p b7f12000 00:00 0 
b7f16000-b7f2a000 r-xp  03:0a 16369  /usr/lib/libz.so.1.2.3.3
b7f2a000-b7f2b000 rw-p 00013000 03:0a 16369  /usr/lib/libz.so.1.2.3.3
b7f2b000-b7f44000 r-xp  03:0a 17555  /usr/lib/libmagic.so.1.0.0
b7f44000-b7f45000 rw-p 00019000 03:0a 17555  /usr/lib/libmagic.so.1.0.0
b7f5-b7f53000 rw-p b7f5 00:00 0 
b7f53000-b7f54000 r-xp b7f53000 00:00 0  [vdso]
b7f54000-b7f7 r-xp  03:05 40274  /lib/ld-2.9.so
b7f7-b7f71000 r--p 0001b000 03:05 40274  /lib/ld-2.9.so
b7f71000-b7f72000 rw-p 0001c000 03:05 40274  /lib/ld-2.9.so
bfc5c000-bfc71000 rw-p bffeb000 00:00 0  [stack]
/tmp/VTB_DWH_plan_v_091_090331_gleb.mpp: [2]17253 abort  file 
/tmp/VTB_DWH_plan_v_091_090331_gleb.mpp

 If an assertion like this

--
--- cdf.c.orig  2009-04-14 12:47:33.0 +0400
+++ cdf.c   2009-04-14 12:48:48.0 +0400
@@ -310,6 +310,7 @@
goto out2;
}
for (k = 0; k < (ss / sizeof(mid)) - 1; k++, i++)
+   assert(i <= sat->sat_len);
if (cdf_read_sector(fd, sat->sat_tab, ss * i, ss, h,
CDF_TOLE4(msa[k])) != (ssize_t)ss) {
DPRINTF(("Reading sector %d",
--

 added to the source, no corruption happens, but file aborts with message
 "cdf_read_sat: Assertion `i <= sat->sat_len' failed."

 I do not understand what this code is doing, so I do not try to patch it.


-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-1-686 (SMP w/1 CPU core)
Locale: LANG=ru_RU.KOI8-R, LC_CTYPE=ru_RU.KOI8-R (charmap=KOI8-R)
Shell: /bin/sh linked to /bin/bash

Versions of packages file depends on:
ii  libc6  2.9-4 GNU C Library: Shared libraries
ii  libmagic1  5.00-1File type determination library us
ii  zlib1g 1:1.2.3.3.dfsg-12 compression library - runtime

file recommends no packages.

file suggests no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#420974: xterm-225: copy-&-paste for national chars is broken

2007-04-25 Thread Eugene B. Berdnikov
Package: xterm
Version: 225-1
Severity: normal


Xterm-225-1, LANG=ru_RU.KOI8-R (cyrillic).

Cyrillic characters are substituted by hashes (#) on copy-and-paste.
Xterm 222-1etch2 works fine with cyrillic on the same system.

Symptoms:

1. "Copy" operation works on xterm-225: buffer can be successfully pasted
   to any X application, except xterm-225.

2. If cyrillic is selected on xterm-225, and just after that operation
   focus is switched to other xterm (by left-mouse-click), and then
   back to original xterm-225, then buffer contents become paste-able
   to xterm-225, but not to any other X application.


-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.18-4-686 (SMP w/1 CPU core)
Locale: LANG=ru_RU.KOI8-R, LC_CTYPE=ru_RU.KOI8-R (charmap=KOI8-R)
Shell: /bin/sh linked to /bin/bash

Versions of packages xterm depends on:
ii  libc6   2.3.6.ds1-13 GNU C Library: Shared libraries
ii  libfontconfig1  2.4.2-1.2generic font configuration library
ii  libice6 1:1.0.3-2X11 Inter-Client Exchange library
ii  libncurses5 5.5-5Shared libraries for terminal hand
ii  libsm6  1:1.0.2-2X11 Session Management library
ii  libx11-62:1.0.3-7X11 client-side library
ii  libxaw7 1:1.0.2-4X11 Athena Widget library
ii  libxext61:1.0.1-2X11 miscellaneous extension librar
ii  libxft2 2.1.12-2 FreeType-based font drawing librar
ii  libxmu6 1:1.0.2-2X11 miscellaneous utility library
ii  libxt6  1:1.0.5-2X11 toolkit intrinsics library
ii  xbitmaps1.0.1-2  Base X bitmaps

Versions of packages xterm recommends:
ii  xutils  1:7.1.ds.3-1 X Window System utility programs

-- no debconf information



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#339364: [Vtun-devel] Question about old patch proposed

2007-10-18 Thread Eugene B. Berdnikov
  Hi, MartМn.

On Wed, Oct 17, 2007 at 01:25:15PM -0300, MartМn Ferrari wrote:
> >  Thank you for this reference. As a Debian maintainer you can update URL
> >  in the "vtun" package description block, and I ask you to do that.
> 
> The homepage in the description is correct. Only that the download
> section doesn't list the last version. That is correctly pointed in
> the watch file.

 It's a pity, but I do not know what the "watch file" is... :-)
 I simply run "apt-cache show" for vtun-3.0.1, follow URL and see
 no source for it in download page. Well, I do know other ways to
 get source, but it's annoying... Thanks Bishop for fixing it.

> >  I'll make a look at this code in a couple of days.
> 
> Great, I'll wait for your follow-up. Please, also send steps to
> reproduce the problem, because nor upstream nor me had reproduced it
> yet.

 The bug scenario is very simple:

 1. Connect client A to server B in mode udp.
 2. Run ping A->B through tunnel.
 3. Drop return udp packets on path B->A, say, via filter on side A:
iptables -A INPUT -p udp -d  -s  --sport 5000 -j DROP

 You will see that ping receives no replies, but client on A does not
 detect that path B->A is broken, because it thinks link is OK if it
 can send something to it. :-)

 Path A->B is NOT the same as path B->A: in Internet it may be different
 chain of hosts, different hop count, different path MTU and so on
 (so-called asymmetric routing). Even on 100Base-TX Ethernet, it is
 different pair of wires, one of them can be broken and other one connected.
 So path A->B must ALWAYS be verified independently from path B->A.

 The original concept of "link idle" in vtun was conceptionally broken,
 because it was programmed as "link_idle = idle(input) AND idle(output)".
 So, if there were something to output, vtund never checks for input.
 This behaviour can be reproduced with vtund from 2.6 up to 3.0.1.
 With my patch any side detect link damage correctly.

 Note that in mode TCP this problem also exists, but not exactly in
 this form: TCP is bidirectional by its nature. With TCP, dead link
 detection works only on kernel level, via standart TCP timeout,
 but "keepalive" parameter of VTUN does not work as it should.
-- 
 Eugene Berdnikov





Bug#515727: /etc/ppp/ip-up.d/exim4: Run queue in background /etc/ppp/ip-up.d/exim4

2009-02-17 Thread Eugene B. Berdnikov
Package: exim4-config
Version: 4.69-9
Severity: normal
File: /etc/ppp/ip-up.d/exim4
Tags: patch



Queue run from /etc/ppp/ip-up.d/exim4 should be done in background,
because pppd waits for termination of this script, and other scripts
in ip-up.d are blocked.

It should also flush frozen messages, so "-qqf" is changed to "-qqff".


--- /etc/ppp/ip-up.d/exim4.dpkg-orig2007-06-18 11:16:25.0 +0400
+++ /etc/ppp/ip-up.d/exim4  2009-02-17 11:07:56.0 +0300
@@ -10,6 +10,9 @@
 [ -f /etc/default/exim4 ] && . /etc/default/exim4
 
 if [ "${QUEUERUNNER}" != "no" ] ; then
-# Flush exim queue
-   /usr/sbin/exim4 -qqf ${QUEUERUNNEROPTIONS} ${COMMONOPTIONS}
+# Start queue runner in backgroud
+  (
+   /usr/sbin/exim4 -qqff ${QUEUERUNNEROPTIONS} ${COMMONOPTIONS} \
+   < /dev/null > /dev/null 2>&1 &
+  )
 fi





-- Package-specific info:
Exim version 4.69 #1 built 30-Sep-2008 18:26:44
Copyright (c) University of Cambridge 2006
Berkeley DB: Berkeley DB 4.6.21: (September 27, 2007)
Support for: crypteq iconv() IPv6 PAM Perl Expand_dlfunc GnuTLS 
move_frozen_messages Content_Scanning Old_Demime
Lookups: lsearch wildlsearch nwildlsearch iplsearch cdb dbm dbmnz dnsdb dsearch 
ldap ldapdn ldapm mysql nis nis0 passwd pgsql sqlite
Authenticators: cram_md5 cyrus_sasl dovecot plaintext spa
Routers: accept dnslookup ipliteral iplookup manualroute queryprogram redirect
Transports: appendfile/maildir/mailstore/mbx autoreply lmtp pipe smtp
Fixed never_users: 0
Size of off_t: 8
Configuration file is /var/lib/exim4/config.autogenerated

-- System Information:
Debian Release: 5.0
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-1-686 (SMP w/1 CPU core)
Locale: LANG=ru_RU.KOI8-R, LC_CTYPE=ru_RU.KOI8-R (charmap=KOI8-R)
Shell: /bin/sh linked to /bin/bash

Versions of packages exim4-config depends on:
ii  adduser   3.110  add and remove users and groups
ii  debconf [debconf-2.0] 1.5.24 Debian configuration management sy

exim4-config recommends no packages.

exim4-config suggests no packages.

-- debconf information excluded



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#898553: grub-legacy 0.97-73 segfaults

2018-05-13 Thread Eugene B. Berdnikov
Package: grub-legacy
Version: 0.97-73
Severity: important
Justification: critical

 In grub-legacy 0.97-73 binary /usr/sbin/grub segfaults on start.
 Binary from 0.97-72 works as expected.

# ldd /usr/sbin/grub
linux-gate.so.1 (0xb7fc4000)
libncurses.so.6 => /lib/i386-linux-gnu/libncurses.so.6 (0xb7f8c000)
libtinfo.so.6 => /lib/i386-linux-gnu/libtinfo.so.6 (0xb7f65000)
libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0xb7d8c000)
libdl.so.2 => /lib/i386-linux-gnu/libdl.so.2 (0xb7d87000)
/lib/ld-linux.so.2 (0xb7fc6000)
#

 Part of strace follows:

execve("/usr/sbin/grub", ["/usr/sbin/grub"], 0xbfdb6388 /* 25 vars */) = 0
brk(NULL)   = 0x8a11000
access("/etc/ld.so.nohwcap", F_OK)  = -1 ENOENT (No such file or directory)
mmap2(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0xb7f7e000
access("/etc/ld.so.preload", R_OK)  = -1 ENOENT (No such file or directory)

...

stat64("/usr/share/terminfo", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
access("/etc/terminfo/x/xterm", R_OK)   = -1 ENOENT (No such file or directory)
access("/lib/terminfo/x/xterm", R_OK)   = 0
openat(AT_FDCWD, "/lib/terminfo/x/xterm", O_RDONLY|O_LARGEFILE) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=3455, ...}) = 0
read(3, "\32\1)\0&\0\17\0\235\1\270\5xterm|xterm-debian|X"..., 32768) = 3455
read(3, "", 28672)  = 0
close(3)= 0
ioctl(1, TCGETS, {B38400 opost isig icanon echo ...}) = 0
ioctl(1, TCGETS, {B38400 opost isig icanon echo ...}) = 0
ioctl(1, TCGETS, {B38400 opost isig icanon echo ...}) = 0
ioctl(1, TCGETS, {B38400 opost isig icanon echo ...}) = 0
ioctl(1, TIOCGWINSZ, {ws_row=38, ws_col=125, ws_xpixel=1269, ws_ypixel=764}) = 0
ioctl(1, TCGETS, {B38400 opost isig icanon echo ...}) = 0
ioctl(1, TIOCGWINSZ, {ws_row=38, ws_col=125, ws_xpixel=1269, ws_ypixel=764}) = 0
ioctl(1, TCGETS, {B38400 opost isig icanon echo ...}) = 0
ioctl(1, TCGETS, {B38400 opost isig icanon echo ...}) = 0
ioctl(1, SNDCTL_TMR_STOP or TCSETSW, {B38400 opost isig -icanon echo ...}) = 0
ioctl(1, TCGETS, {B38400 opost isig -icanon echo ...}) = 0
ioctl(1, TCGETS, {B38400 opost isig -icanon echo ...}) = 0
ioctl(1, SNDCTL_TMR_STOP or TCSETSW, {B38400 opost isig -icanon -echo ...}) = 0
ioctl(1, TCGETS, {B38400 opost isig -icanon -echo ...}) = 0
rt_sigaction(SIGTSTP, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGTSTP, {sa_handler=0xb7f61f10, sa_mask=[], sa_flags=SA_RESTART}, 
NULL, 8) = 0
rt_sigaction(SIGINT, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGINT, {sa_handler=0xb7f61e10, sa_mask=[], sa_flags=SA_RESTART}, 
NULL, 8) = 0
rt_sigaction(SIGTERM, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGTERM, {sa_handler=0xb7f61e10, sa_mask=[], sa_flags=SA_RESTART}, 
NULL, 8) = 0
rt_sigaction(SIGWINCH, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGWINCH, {sa_handler=0xb7f61df0, sa_mask=[], sa_flags=0}, NULL, 
8) = 0
ioctl(1, TCGETS, {B38400 opost isig -icanon -echo ...}) = 0
ioctl(1, TCGETS, {B38400 opost isig -icanon -echo ...}) = 0
ioctl(1, SNDCTL_TMR_STOP or TCSETSW, {B38400 opost isig -icanon -echo ...}) = 0
ioctl(1, TCGETS, {B38400 opost isig -icanon -echo ...}) = 0
write(1, "\33[?1049h\33[22;0;0t\33[1;38r\33(B\33[m\33["..., 46) = 46
rt_sigaction(SIGWINCH, {sa_handler=SIG_IGN, sa_mask=[WINCH], 
sa_flags=SA_RESTART}, {sa_handler=0xb7f61df0, sa_mask=[], sa_flags=0}, 8) = 0
sync()  = 0
--- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0xee8} ---
+++ killed by SIGSEGV +++



-- System Information:
Debian Release: buster/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 4.15.0-1-686-pae (SMP w/2 CPU cores)
Locale: LANG=ru_RU.KOI8-R, LC_CTYPE=ru_RU.KOI8-R (charmap=KOI8-R), 
LANGUAGE=ru_RU.KOI8-R (charmap=KOI8-R)
Shell: /bin/sh linked to /bin/bash
Init: sysvinit (via /sbin/init)

Versions of packages grub-legacy depends on:
ii  grub-common  2.02+dfsg1-4
ii  libc62.27-3
ii  libncurses5  6.1+20180210-2
ii  libtinfo56.1+20180210-2

grub-legacy recommends no packages.

Versions of packages grub-legacy suggests:
ii  grub-legacy-doc  0.97-72
pn  mdadm
ii  multiboot0.6.96+20101113-2

-- no debconf information