[Pkg-openssl-devel] Bug#793557: clamtk in testing

Carlos Kosloff ckosloff at hardwarealien.com
Mon Jul 27 17:48:53 UTC 2015


Dear maintainer,

Please look at the first line in the last debugging info (bolded).
This is the same CRC mismatch between the files I have already submitted.
Thank you,

*Carlos Kosloff*
Office: (954) 283-8828
Cell: (954) 464-8822
Fax: (888) 854-5440
------------------------------------------------------------------------
On 07/26/2015 05:42 PM, Andreas Cadhalpun wrote:
> Control: reassign -1 libssl1.0.0
> Control: retitle -1 libssl1.0.0: illegal instruction crash on amd64
>
> Hi Carlos,
>
> please keep the bug (793557 at bugs.debian.org) in CC.
>
> On 26.07.2015 19:44, Carlos Kosloff wrote:
>> Please find below requested info.
> Thanks.
>
>> 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.
> I don't think KDE is related to this problem.
>
>> On 07/26/2015 06:51 AM, Andreas Cadhalpun wrote:
>>> On 25.07.2015 04:10, Carlos Kosloff wrote:
>>>> * Specs
>>>>
>>>> Using KDE desktop, on a Toshiba laptop with amd64 architecture.
>>> Much more useful would be the information collected by reportbug:
>>> $ reportbug --template clamtk
> [...]
>> Package: clamtk
>> Version: 5.19-1
> [...]
>> -- 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
> Nothing suspicious here.
>
>>>> * What caused the problem
>>>>
>>>> After a dist-upgrade on 2015/07/24 clamtk does not launch.
>>> What packages were upgraded?
>>> Can you post the relevant parts of /var/log/dpkg.log from that upgrade?
>> 2015-07-24 21:59:13 upgrade clamtk:all 5.19-1 5.19-1
> 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?

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.
Please post syntax to check on last libssl1.0.0:amd64 upgrade.

>
>>>> * Steps taken to resolve the problem
>>>>
>>>> Reinstalled.
>>>> Rebooted computer.
>>>> Attempted to launch from CLI.
>>>> As user:
>>>> command clamtk reports "illegal instruction".
>>> 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
>> ckosloff at 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]
> This processor doesn't have e.g. avx2.
>
>>> 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
>> ckosloff at 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).
> This warning is suspicious. Is your file system corrupted? Try:
> $ dpkg --verify libc6:amd64 libc6-dbg:amd64 libssl1.0.0:amd64
>
ckosloff at notosh:~$ dpkg --verify libc6:amd64 lib6-dbg:amd64 
libssl1.0.0:amd64
dpkg: package 'lib6-dbg' is not installed
ckosloff at notosh:~$ su
Password:
root at notosh:/home/ckosloff# apt-get install libc6-dbg:amd64
Reading package lists... Done
Building dependency tree
Reading state information... Done
libc6-dbg is already the newest version.
libc6-dbg set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root at notosh:/home/ckosloff# dpkg --verify libc6:amd64 libc6-dbg:amd64 
libssl1.0.0:amd64
root at notosh:/home/ckosloff#

>> [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
> 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
root at notosh:/home/ckosloff# apt-get install libssl1.0.0-dbg:amd64
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
   libssl1.0.0-dbg
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 3,044 kB of archives.
After this operation, 3,522 kB of additional disk space will be used.
WARNING: The following packages cannot be authenticated!
   libssl1.0.0-dbg
Install these packages without verification? [y/N] y
Get:1 http://ftp.us.debian.org/debian/ testing/main libssl1.0.0-dbg 
amd64 1.0.2d-1 [3,044 kB]
Fetched 3,044 kB in 3s (822 kB/s)
Retrieving bug reports... Done
Parsing Found/Fixed information... Done
Selecting previously unselected package libssl1.0.0-dbg:amd64.
(Reading database ... 244194 files and directories currently installed.)
Preparing to unpack .../libssl1.0.0-dbg_1.0.2d-1_amd64.deb ...
Unpacking libssl1.0.0-dbg:amd64 (1.0.2d-1) ...
Setting up libssl1.0.0-dbg:amd64 (1.0.2d-1) ...

ckosloff at notosh:~$ gdb --batch -ex r -ex 'bt full' -ex disas -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).*

[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffebc09700 (LWP 23815)]

Program received signal SIGILL, Illegal instruction.
aesni_cbc_sha256_enc () at aesni-sha256-x86_64.s:29
29      aesni-sha256-x86_64.s: No such file or directory.
#0  aesni_cbc_sha256_enc () at aesni-sha256-x86_64.s:29
No locals.
#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
         key = 0x20f1500
         l = <optimized out>
         plen = 170
         iv = <optimized out>
         sha_off = <optimized out>
         aes_off = 0
         blocks = 1
#2  0x00007ffff51b82d9 in tls1_enc (s=0x20d54c0, send=1) at t1_enc.c:880
         rec = 0x20d5c38
         ds = 0x20f4490
         l = 208
         bs = 16
         i = <optimized out>
         j = <optimized out>
         k = <optimized out>
         pad = <optimized out>
         ret = <optimized out>
         mac_size = 0
         enc = 0x7ffff5179080 <aesni_128_cbc_hmac_sha256_cipher>
#3  0x00007ffff51aad61 in do_ssl3_write (s=s at entry=0x20d54c0, 
type=type at entry=23, buf=buf at 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 at entry=0) at s3_pkt.c:1042
         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"
         plen = 0x20e54d6 ""
         i = <optimized out>
         mac_size = 0
         clear = <optimized out>
         prefix_len = <optimized out>
         eivlen = <optimized out>
         align = <optimized out>
         wr = 0x20d5c38
         wb = 0x20d5be8
         sess = <optimized out>
#4  0x00007ffff51ab175 in ssl3_write_bytes (s=0x20d54c0, type=23, 
buf_=0x20f2150, len=<optimized out>) at s3_pkt.c:830
         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"
         tot = 0
         n = 154
         nw = <optimized out>
         max_send_fragment = <optimized out>
         wb = 0x20d5be8
         i = <optimized out>
#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.
Dump of assembler code for function aesni_cbc_sha256_enc:
    0x00007ffff4ddb100 <+0>:     lea 0x3a8159(%rip),%r11        # 
0x7ffff5183260 <OPENSSL_ia32cap_P>
    0x00007ffff4ddb107 <+7>:     mov    $0x1,%eax
    0x00007ffff4ddb10c <+12>:    cmp    $0x0,%rdi
    0x00007ffff4ddb110 <+16>:    je     0x7ffff4ddb174 
<aesni_cbc_sha256_enc+116>
    0x00007ffff4ddb112 <+18>:    mov    (%r11),%eax
    0x00007ffff4ddb115 <+21>:    mov    0x4(%r11),%r10
    0x00007ffff4ddb119 <+25>:    bt     $0x3d,%r10
    0x00007ffff4ddb11e <+30>:    jb     0x7ffff4ddefe0 
<aesni_cbc_sha256_enc_shaext>
    0x00007ffff4ddb124 <+36>:    mov    %r10,%r11
    0x00007ffff4ddb127 <+39>:    shr    $0x20,%r11
    0x00007ffff4ddb12b <+43>:    test   $0x800,%r10d
    0x00007ffff4ddb132 <+50>:    jne    0x7ffff4ddb440 
<aesni_cbc_sha256_enc_xop>
    0x00007ffff4ddb138 <+56>:    and    $0x128,%r11d
    0x00007ffff4ddb13f <+63>:    cmp    $0x128,%r11d
    0x00007ffff4ddb146 <+70>:    je     0x7ffff4ddd580 
<aesni_cbc_sha256_enc_avx2>
    0x00007ffff4ddb14c <+76>:    and    $0x40000000,%eax
    0x00007ffff4ddb151 <+81>:    and    $0x10000200,%r10d
    0x00007ffff4ddb158 <+88>:    or     %eax,%r10d
    0x00007ffff4ddb15b <+91>:    cmp    $0x50000200,%r10d
    0x00007ffff4ddb162 <+98>:    je     0x7ffff4ddc440 
<aesni_cbc_sha256_enc_avx>
=> 0x00007ffff4ddb168 <+104>:   ud2
    0x00007ffff4ddb16a <+106>:   xor    %eax,%eax
    0x00007ffff4ddb16c <+108>:   cmp    $0x0,%rdi
    0x00007ffff4ddb170 <+112>:   je     0x7ffff4ddb174 
<aesni_cbc_sha256_enc+116>
    0x00007ffff4ddb172 <+114>:   ud2
    0x00007ffff4ddb174 <+116>:   repz retq
End of assembler dump.
A debugging session is active.

         Inferior 1 [process 23810] will be killed.

Quit anyway? (y or n) [answered Y; input not from terminal]
ckosloff at notosh:~$

>> #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.
> Best regards,
> Andreas

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pkg-openssl-devel/attachments/20150727/a477a9f8/attachment-0001.html>


More information about the Pkg-openssl-devel mailing list