运行 - 交叉编译的可执行文件时出错

时间:2013-04-28 12:16:27

标签: cross-compiling libcrypto

我有交叉编译的vscpd程序 以下是GDB的回溯。在这里,我没有得到导致这个SIGILL的原因 它终止了程序。

此错误是否意味着 - > libcrypto.so.1.0.0 - >共享库文件包含非法指令?

pi@raspberrypi ~ $ gdb vscpd
GNU gdb (GDB) 7.4.1-debian
Copyright (C) 2012 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 "arm-linux-gnueabihf".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /home/pi/vscpd...done.


(gdb) break main
Breakpoint 1 at 0xee0c: file vscpd.cpp, line 99.


(gdb) run
Starting program: /home/pi/vscpd 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/arm-linux-gnueabihf/libthread_db.so.1".
Program received signal SIGILL, Illegal instruction.
0x400fc4c0 in ?? () from /usr/lib/arm-linux-gnueabihf/libcrypto.so.1.0.0



(gdb) bt
#0  0x400fc4c0 in ?? () from /usr/lib/arm-linux-gnueabihf/libcrypto.so.1.0.0
Cannot access memory at address 0x0
#1  0x400f8ee4 in OPENSSL_cpuid_setup ()
   from /usr/lib/arm-linux-gnueabihf/libcrypto.so.1.0.0
#2  0x4000f250 in ?? () from /lib/ld-linux-armhf.so.3
#3  0xbefff96e in ?? ()
Cannot access memory at address 0x0
#4  0xbefff96e in ?? ()
Cannot access memory at address 0x0
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

0 个答案:

没有答案