<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Dear maintainer,<br>
    <br>
    Please look at the first line in the last debugging info (bolded).<br>
    This is the same CRC mismatch between the files I have already
    submitted.<br>
    Thank you,<br>
    <br>
    <div class="moz-signature"><strong>Carlos Kosloff</strong><br>
      Office: (954) 283-8828<br>
      Cell: (954) 464-8822<br>
      Fax: (888) 854-5440<br>
      <hr size="2" width="60%" color="blue"></div>
    <div class="moz-cite-prefix">On 07/26/2015 05:42 PM, Andreas
      Cadhalpun wrote:<br>
    </div>
    <blockquote cite="mid:55B55449.4060901@googlemail.com" type="cite">
      <pre wrap="">Control: reassign -1 libssl1.0.0
Control: retitle -1 libssl1.0.0: illegal instruction crash on amd64

Hi Carlos,

please keep the bug (<a class="moz-txt-link-abbreviated" href="mailto:793557@bugs.debian.org">793557@bugs.debian.org</a>) in CC.

On 26.07.2015 19:44, Carlos Kosloff wrote:
</pre>
      <blockquote type="cite">
        <pre wrap="">Please find below requested info.
</pre>
      </blockquote>
      <pre wrap="">
Thanks.

</pre>
      <blockquote type="cite">
        <pre wrap="">I have another computer more powerful than this one, 8 core CPU, same OS.
Clamtk works fine there.
For your information, KDE had major breakages after last upgrades, it is transitioning from version 4 to 5.
</pre>
      </blockquote>
      <pre wrap="">
I don't think KDE is related to this problem.

</pre>
      <blockquote type="cite">
        <pre wrap="">On 07/26/2015 06:51 AM, Andreas Cadhalpun wrote:
</pre>
        <blockquote type="cite">
          <pre wrap="">On 25.07.2015 04:10, Carlos Kosloff wrote:
</pre>
          <blockquote type="cite">
            <pre wrap="">* Specs

Using KDE desktop, on a Toshiba laptop with amd64 architecture.
</pre>
          </blockquote>
          <pre wrap="">Much more useful would be the information collected by reportbug:
$ reportbug --template clamtk
</pre>
        </blockquote>
      </blockquote>
      <pre wrap="">[...]
</pre>
      <blockquote type="cite">
        <pre wrap="">Package: clamtk
Version: 5.19-1
</pre>
      </blockquote>
      <pre wrap="">[...]
</pre>
      <blockquote type="cite">
        <pre wrap="">-- System Information:
Debian Release: stretch/sid
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.0.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages clamtk depends on:
ii  clamav                          0.98.7+dfsg-2
ii  clamav-freshclam [clamav-data]  0.98.7+dfsg-2
ii  cron [cron-daemon]              3.0pl1-128
ii  gnome-icon-theme                3.12.0-1
ii  libgtk2-perl                    2:1.2495-1
ii  libjson-perl                    2.90-1
ii  liblocale-gettext-perl          1.05-9
ii  liblwp-protocol-https-perl      6.06-2
ii  libtext-csv-perl                1.33-1
ii  libwww-perl                     6.13-1
ii  perl                            5.20.2-6

clamtk recommends no packages.

Versions of packages clamtk suggests:
ii  cabextract       1.6-1
pn  clamtk-nautilus  <none>

-- no debconf information
</pre>
      </blockquote>
      <pre wrap="">
Nothing suspicious here.

</pre>
      <blockquote type="cite">
        <blockquote type="cite">
          <blockquote type="cite">
            <pre wrap="">* What caused the problem

After a dist-upgrade on 2015/07/24 clamtk does not launch.
</pre>
          </blockquote>
          <pre wrap="">What packages were upgraded?
Can you post the relevant parts of /var/log/dpkg.log from that upgrade?
</pre>
        </blockquote>
        <pre wrap="">2015-07-24 21:59:13 upgrade clamtk:all 5.19-1 5.19-1
</pre>
      </blockquote>
      <pre wrap="">
This looks strange. The previous version was already 5.19-1?

The other upgrades look unrelated to the problem. Are you sure this were
all upgrades before the problem occurred?
In particular, when was your last libssl1.0.0:amd64 upgrade?</pre>
    </blockquote>
    <br>
    <font color="#006600">I am not sure. The fact that the KDE upgrade
      caused lots of issues, prompted me to check all launchers, KDE
      transition crashes are a known issue in the testing branch.<br>
      Please post syntax to check on last libssl1.0.0:amd64 upgrade. <br>
    </font><br>
    <blockquote cite="mid:55B55449.4060901@googlemail.com" type="cite">
      <pre wrap="">

</pre>
      <blockquote type="cite">
        <blockquote type="cite">
          <blockquote type="cite">
            <pre wrap="">* Steps taken to resolve the problem

Reinstalled.
Rebooted computer.
Attempted to launch from CLI.
As user:
command clamtk reports "illegal instruction".
</pre>
          </blockquote>
          <pre wrap="">This works fine here, thus I'm downgrading the severity.
clamtk is just a perl program, so any illegal instruction error is probably
caused by perl.

What instructions does your CPU support?
Please provide the output of:
$ cat /proc/cpuinfo
</pre>
        </blockquote>
        <pre wrap="">
ckosloff@notosh:~$ cat /proc/cpuinfo
processor       : 0
vendor_id       : AuthenticAMD
cpu family      : 22
model           : 48
model name      : AMD A6-6310 APU with AMD Radeon R4 Graphics
stepping        : 1
microcode       : 0x7030105
cpu MHz         : 1000.000
cache size      : 2048 KB
physical id     : 0
siblings        : 4
core id         : 0
cpu cores       : 4
apicid          : 0
initial apicid  : 0
fpu             : yes
fpu_exception   : yes
cpuid level     : 13
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good nopl nonstop_tsc extd_apicid aperfmperf eagerfpu pni pclmulqdq monitor ssse3 cx16 sse4_1 sse4_2 movbe popcnt aes xsave avx f16c rdrand lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt topoext perfctr_nb bpext perfctr_l2 arat cpb hw_pstate npt lbrv svm_lock nrip_save tsc_scale flushbyasid decodeassists pausefilter pfthreshold vmmcall bmi1 xsaveopt
bugs            : fxsave_leak
bogomips        : 3593.29
TLB size        : 1024 4K pages
clflush size    : 64
cache_alignment : 64
address sizes   : 40 bits physical, 48 bits virtual
power management: ts ttp tm 100mhzsteps hwpstate cpb [12] [13]
</pre>
      </blockquote>
      <pre wrap="">
This processor doesn't have e.g. avx2.

</pre>
      <blockquote type="cite">
        <blockquote type="cite">
          <pre wrap="">A backtrace of the crash would most certainly be helpful as well.
Please provide the output of the following command (after installing gdb):
$ gdb --batch -ex r -ex 'bt full' -ex q --args perl /usr/bin/clamtk
</pre>
        </blockquote>
        <pre wrap="">ckosloff@notosh:~$ gdb --batch -ex r -ex 'bt full' -ex q --args perl /usr/bin/clamtk
warning: the debug information found in "/lib64/ld-2.19.so" does not match "/lib64/ld-linux-x86-64.so.2" (CRC mismatch).
</pre>
      </blockquote>
      <pre wrap="">
This warning is suspicious. Is your file system corrupted? Try:
$ dpkg --verify libc6:amd64 libc6-dbg:amd64 libssl1.0.0:amd64

</pre>
    </blockquote>
    <font color="#ff0000">ckosloff@notosh:~$ dpkg --verify libc6:amd64
      lib6-dbg:amd64 libssl1.0.0:amd64<br>
      dpkg: package 'lib6-dbg' is not installed<br>
      ckosloff@notosh:~$ su<br>
      Password: <br>
      root@notosh:/home/ckosloff# apt-get install libc6-dbg:amd64<br>
      Reading package lists... Done<br>
      Building dependency tree       <br>
      Reading state information... Done<br>
      libc6-dbg is already the newest version.<br>
      libc6-dbg set to manually installed.<br>
      0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.<br>
      root@notosh:/home/ckosloff# dpkg --verify libc6:amd64
      libc6-dbg:amd64 libssl1.0.0:amd64<br>
      root@notosh:/home/ckosloff# </font><br>
    <br>
    <blockquote cite="mid:55B55449.4060901@googlemail.com" type="cite">
      <blockquote type="cite">
        <pre wrap="">[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffec018700 (LWP 6092)]

Program received signal SIGILL, Illegal instruction.
0x00007ffff4ddb168 in ?? () from /usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.0
</pre>
      </blockquote>
      <pre wrap="">
So the illegal instruction is in libcrypto, which is shipped in libssl1.0.0.
Thus reassigning there.

Please install libssl1.0.0-dbg:amd64 and then use the following gdb command to
get a more useful backtrace and the instruction causing the problem:
$ gdb --batch -ex r -ex 'bt full' -ex disas -ex q --args perl /usr/bin/clamtk</pre>
    </blockquote>
    <font color="#ff0000">root@notosh:/home/ckosloff# apt-get install
      libssl1.0.0-dbg:amd64<br>
      Reading package lists... Done<br>
      Building dependency tree       <br>
      Reading state information... Done<br>
      The following NEW packages will be installed:<br>
        libssl1.0.0-dbg<br>
      0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.<br>
      Need to get 3,044 kB of archives.<br>
      After this operation, 3,522 kB of additional disk space will be
      used.<br>
      WARNING: The following packages cannot be authenticated!<br>
        libssl1.0.0-dbg<br>
      Install these packages without verification? [y/N] y<br>
      Get:1 <a class="moz-txt-link-freetext" href="http://ftp.us.debian.org/debian/">http://ftp.us.debian.org/debian/</a> testing/main
      libssl1.0.0-dbg amd64 1.0.2d-1 [3,044 kB]<br>
      Fetched 3,044 kB in 3s (822 kB/s)            <br>
      Retrieving bug reports... Done<br>
      Parsing Found/Fixed information... Done<br>
      Selecting previously unselected package libssl1.0.0-dbg:amd64.<br>
      (Reading database ... 244194 files and directories currently
      installed.)<br>
      Preparing to unpack .../libssl1.0.0-dbg_1.0.2d-1_amd64.deb ...<br>
      Unpacking libssl1.0.0-dbg:amd64 (1.0.2d-1) ...<br>
      Setting up libssl1.0.0-dbg:amd64 (1.0.2d-1) ...<br>
    </font><br>
    <blockquote cite="mid:55B55449.4060901@googlemail.com" type="cite">
      <pre wrap="">
</pre>
    </blockquote>
    <font color="#ff0000">ckosloff@notosh:~$ gdb --batch -ex r -ex 'bt
      full' -ex disas -ex q --args perl /usr/bin/clamtk<br>
      <b>warning: the debug information found in "/lib64/ld-2.19.so"
        does not match "/lib64/ld-linux-x86-64.so.2" (CRC mismatch).</b><br>
      <br>
      [Thread debugging using libthread_db enabled]<br>
      Using host libthread_db library
      "/lib/x86_64-linux-gnu/libthread_db.so.1".<br>
      [New Thread 0x7fffebc09700 (LWP 23815)]<br>
      <br>
      Program received signal SIGILL, Illegal instruction.<br>
      aesni_cbc_sha256_enc () at aesni-sha256-x86_64.s:29<br>
      29      aesni-sha256-x86_64.s: No such file or directory.<br>
      #0  aesni_cbc_sha256_enc () at aesni-sha256-x86_64.s:29<br>
      No locals.<br>
      #1  0x00007ffff4e679bd in aesni_cbc_hmac_sha256_cipher
      (ctx=0x20f4490, out=0x20e54d8
      "VA\351\336\354\346\333\313\336\302\203\\\333m\002\346GET
      /dave_theunsub/clamtk/raw/master/latest HTTP/1.1\r\nTE:
      deflate,gzip;q=0.3\r\nConnection: TE, close\r\nHost:
      bitbucket.org\r\nUser-Agent: libwww-perl/6.13\r\n\r\n",
      in=0x20e54d8
      "VA\351\336\354\346\333\313\336\302\203\\\333m\002\346GET
      /dave_theunsub/clamtk/raw/master/latest HTTP/1.1\r\nTE:
      deflate,gzip;q=0.3\r\nConnection: TE, close\r\nHost:
      bitbucket.org\r\nUser-Agent: libwww-perl/6.13\r\n\r\n", len=208)
      at e_aes_cbc_hmac_sha256.c:506<br>
              key = 0x20f1500<br>
              l = <optimized out><br>
              plen = 170<br>
              iv = <optimized out><br>
              sha_off = <optimized out><br>
              aes_off = 0<br>
              blocks = 1<br>
      #2  0x00007ffff51b82d9 in tls1_enc (s=0x20d54c0, send=1) at
      t1_enc.c:880<br>
              rec = 0x20d5c38<br>
              ds = 0x20f4490<br>
              l = 208<br>
              bs = 16<br>
              i = <optimized out><br>
              j = <optimized out><br>
              k = <optimized out><br>
              pad = <optimized out><br>
              ret = <optimized out><br>
              mac_size = 0<br>
              enc = 0x7ffff5179080
      <aesni_128_cbc_hmac_sha256_cipher><br>
      #3  0x00007ffff51aad61 in do_ssl3_write (s=s@entry=0x20d54c0,
      type=type@entry=23, buf=buf@entry=0x20f2150 "GET
      /dave_theunsub/clamtk/raw/master/latest HTTP/1.1\r\nTE:
      deflate,gzip;q=0.3\r\nConnection: TE, close\r\nHost:
      bitbucket.org\r\nUser-Agent: libwww-perl/6.13\r\n\r\n", len=154,
      create_empty_fragment=create_empty_fragment@entry=0) at
      s3_pkt.c:1042<br>
              p = 0x20e54d8
      "VA\351\336\354\346\333\313\336\302\203\\\333m\002\346GET
      /dave_theunsub/clamtk/raw/master/latest HTTP/1.1\r\nTE:
      deflate,gzip;q=0.3\r\nConnection: TE, close\r\nHost:
      bitbucket.org\r\nUser-Agent: libwww-perl/6.13\r\n\r\n"<br>
              plen = 0x20e54d6 ""<br>
              i = <optimized out><br>
              mac_size = 0<br>
              clear = <optimized out><br>
              prefix_len = <optimized out><br>
              eivlen = <optimized out><br>
              align = <optimized out><br>
              wr = 0x20d5c38<br>
              wb = 0x20d5be8<br>
              sess = <optimized out><br>
      #4  0x00007ffff51ab175 in ssl3_write_bytes (s=0x20d54c0, type=23,
      buf_=0x20f2150, len=<optimized out>) at s3_pkt.c:830<br>
              buf = 0x20f2150 "GET
      /dave_theunsub/clamtk/raw/master/latest HTTP/1.1\r\nTE:
      deflate,gzip;q=0.3\r\nConnection: TE, close\r\nHost:
      bitbucket.org\r\nUser-Agent: libwww-perl/6.13\r\n\r\n"<br>
              tot = 0<br>
              n = 154<br>
              nw = <optimized out><br>
              max_send_fragment = <optimized out><br>
              wb = 0x20d5be8<br>
              i = <optimized out><br>
      #5  0x00007ffff5434769 in ?? () from
      /usr/lib/x86_64-linux-gnu/perl5/5.20/auto/Net/SSLeay/SSLeay.so<br>
      No symbol table info available.<br>
      #6  0x00000000004b2f6b in Perl_pp_entersub ()<br>
      No symbol table info available.<br>
      #7  0x00000000004ab8a6 in Perl_runops_standard ()<br>
      No symbol table info available.<br>
      #8  0x000000000043e10e in perl_run ()<br>
      No symbol table info available.<br>
      #9  0x000000000041bebb in main ()<br>
      No symbol table info available.<br>
      Dump of assembler code for function aesni_cbc_sha256_enc:<br>
         0x00007ffff4ddb100 <+0>:     lea   
      0x3a8159(%rip),%r11        # 0x7ffff5183260
      <OPENSSL_ia32cap_P><br>
         0x00007ffff4ddb107 <+7>:     mov    $0x1,%eax<br>
         0x00007ffff4ddb10c <+12>:    cmp    $0x0,%rdi<br>
         0x00007ffff4ddb110 <+16>:    je     0x7ffff4ddb174
      <aesni_cbc_sha256_enc+116><br>
         0x00007ffff4ddb112 <+18>:    mov    (%r11),%eax<br>
         0x00007ffff4ddb115 <+21>:    mov    0x4(%r11),%r10<br>
         0x00007ffff4ddb119 <+25>:    bt     $0x3d,%r10<br>
         0x00007ffff4ddb11e <+30>:    jb     0x7ffff4ddefe0
      <aesni_cbc_sha256_enc_shaext><br>
         0x00007ffff4ddb124 <+36>:    mov    %r10,%r11<br>
         0x00007ffff4ddb127 <+39>:    shr    $0x20,%r11<br>
         0x00007ffff4ddb12b <+43>:    test   $0x800,%r10d<br>
         0x00007ffff4ddb132 <+50>:    jne    0x7ffff4ddb440
      <aesni_cbc_sha256_enc_xop><br>
         0x00007ffff4ddb138 <+56>:    and    $0x128,%r11d<br>
         0x00007ffff4ddb13f <+63>:    cmp    $0x128,%r11d<br>
         0x00007ffff4ddb146 <+70>:    je     0x7ffff4ddd580
      <aesni_cbc_sha256_enc_avx2><br>
         0x00007ffff4ddb14c <+76>:    and    $0x40000000,%eax<br>
         0x00007ffff4ddb151 <+81>:    and    $0x10000200,%r10d<br>
         0x00007ffff4ddb158 <+88>:    or     %eax,%r10d<br>
         0x00007ffff4ddb15b <+91>:    cmp    $0x50000200,%r10d<br>
         0x00007ffff4ddb162 <+98>:    je     0x7ffff4ddc440
      <aesni_cbc_sha256_enc_avx><br>
      => 0x00007ffff4ddb168 <+104>:   ud2    <br>
         0x00007ffff4ddb16a <+106>:   xor    %eax,%eax<br>
         0x00007ffff4ddb16c <+108>:   cmp    $0x0,%rdi<br>
         0x00007ffff4ddb170 <+112>:   je     0x7ffff4ddb174
      <aesni_cbc_sha256_enc+116><br>
         0x00007ffff4ddb172 <+114>:   ud2    <br>
         0x00007ffff4ddb174 <+116>:   repz retq <br>
      End of assembler dump.<br>
      A debugging session is active.<br>
      <br>
              Inferior 1 [process 23810] will be killed.<br>
      <br>
      Quit anyway? (y or n) [answered Y; input not from terminal]<br>
      ckosloff@notosh:~$ <br>
      <br>
    </font>
    <blockquote cite="mid:55B55449.4060901@googlemail.com" type="cite">
      <pre wrap="">
</pre>
      <blockquote type="cite">
        <pre wrap="">#0  0x00007ffff4ddb168 in ?? () from /usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.0
No symbol table info available.
#1  0x00007ffff4e679bd in ?? () from /usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.0
No symbol table info available.
#2  0x00007ffff51b82d9 in ?? () from /usr/lib/x86_64-linux-gnu/libssl.so.1.0.0
No symbol table info available.
#3  0x00007ffff51aad61 in ?? () from /usr/lib/x86_64-linux-gnu/libssl.so.1.0.0
No symbol table info available.
#4  0x00007ffff51ab175 in ?? () from /usr/lib/x86_64-linux-gnu/libssl.so.1.0.0
No symbol table info available.
#5  0x00007ffff5434769 in ?? () from /usr/lib/x86_64-linux-gnu/perl5/5.20/auto/Net/SSLeay/SSLeay.so
No symbol table info available.
#6  0x00000000004b2f6b in Perl_pp_entersub ()
No symbol table info available.
#7  0x00000000004ab8a6 in Perl_runops_standard ()
No symbol table info available.
#8  0x000000000043e10e in perl_run ()
No symbol table info available.
#9  0x000000000041bebb in main ()
No symbol table info available.
A debugging session is active.
</pre>
      </blockquote>
      <pre wrap="">
Best regards,
Andreas
</pre>
    </blockquote>
    <br>
  </body>
</html>