Current-Users archive

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

Problem in libcrypto?



With a build from sources updated on 2015-05-22 at 23:58:07 UTC, I am getting the following error when booting up under qemu-2.3.0


# /etc/rc.d/syslogd start
Starting syslogd.
[1]   Illegal instruction (core dumped) /usr/sbin/syslog...
# gdb /usr/sbin/syslogd
GNU gdb (GDB) 7.7.1
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64--netbsd".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/sbin/syslogd...(no debugging symbols found)...done.
(gdb) target core syslogd.core
[New process 1]
Core was generated by `syslogd'.
Program terminated with signal SIGILL, Illegal instruction.
#0  0x00007f7ff673ba87 in ?? () from /usr/lib/libcrypto.so.8
(gdb) bt
#0  0x00007f7ff673ba87 in ?? () from /usr/lib/libcrypto.so.8
#1  0xd29655ffd46280b6 in ?? ()
#2  0x00007f7ff7b530d0 in ?? ()
#3  0x00007f7ff7b530c4 in ?? ()
#4  0x00007f7ff7b53080 in ?? ()
#5  0x00007f7ff7b5309c in ?? ()
#6  0x0000000000000001 in ?? ()
#7  0x0000000000000000 in ?? ()
(gdb) disass 0x00007f7ff673ba87
No function contains specified address.
(gdb)


A little bit of investigation shows that the libcrypto function sha1_block_data_order exists at addresses 7f7ff673a940 - 7f7ff673ba2a

But I cannot determine what routine might be next in memory.

Here's a hexdump of 7f7ff673ba00 thru

(gdb) x/40 0x7f7ff673ba00
0x7f7ff673ba00 <sha1_block_data_order+4288>:
                0x10688945     0x01ea8349     0x40498d4d     0xefae850f
0x7f7ff673ba10: 0x8b48ffff     0x4c402474     0x8b4c2e8b     0x8b480866
0x7f7ff673ba20: 0x8b48106e     0x8d48185e     0xc3f32066     0x00401f0f
0x7f7ff673ba30: 0x54415553     0x24648d48     0xf88949c0     0x49f18949
0x7f7ff673ba40: 0xc149d289     0x014d06e2     0x1d8d4cca     0x00001c70
0x7f7ff673ba50: 0x41008b41     0x4104588b     0x4108488b     0x890c508b
0x7f7ff673ba60: 0x688b41de     0x0f416610     0x6640736f     0x0b6f0f45
0x7f7ff673ba70: 0x6f0f41f3     0x0f41f301     0xf310496f     0x516f0f41
0x7f7ff673ba80: 0x0f41f320     0x6630596f     0xc600380f     0x40c18349
0x7f7ff673ba90: 0x00380f66     0x380f66ce     0x0f66d600     0x66de0038



-------------------------------------------------------------------------
| Paul Goyette     | PGP Key fingerprint:     | E-mail addresses:       |
| (Retired)        | FA29 0E3B 35AF E8AE 6651 | paul at whooppee.com    |
| Kernel Developer | 0786 F758 55DE 53BA 7731 | pgoyette at netbsd.org  |
-------------------------------------------------------------------------


Home | Main Index | Thread Index | Old Index