1

我在scratchbox中交叉编译了我的项目,它使用:---
1> WX-widget基类(即使用套接字、线程、字符串相关的类......没有GUI东西)(http://www.wxwidgets. org/ )
2> Libwebsocket ( http://libwebsockets.org/trac )

编译成功,没有错误。目标是 Debian Weezy,处理器是 Raspberry pi。

Scratchbox 使用 QEmu 来运行跨可执行文件。当我在 sb2(scratchbox)下运行可执行文件时。我收到以下错误

x$ sb2 -e vscpd
qemu: uncaught target signal 11 (Segmentation fault) - core dumped
Exit reason and status: signal 11 (core dumped)

----------------- Qemu GDB 日志 ------------------------

ignite@ignite:~/sbox2/rootfs/rfs-raspbian/home/pi/vscp_software/src/vscp/daemon/linux$ sb2 -t rfs-raspbian -eR 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/ignite/sbox2/rootfs/rfs-raspbian/home/pi/vscp_software/src/vscp/daemon/linux/vscpd...done.

===========================================================
Welcome to scratchbox2 enabled gdb!

Before starting target program you should run command
'sb2-prepare' that sets breakpoint which is used
to stop target before its main() gets called.  After
the breakpoint is hit, you are able to set furtherbreakpoints and do normal debugging actions.

If you are attaching to already running process or
examining a core dump, this step is not necessary.
===========================================================

(sb2-emulate-gdb) sb2-prepare 
Function "_dl_debug_state" not defined.
Temporary breakpoint 1 (_dl_debug_state) pending.
(sb2-emulate-gdb) run
Starting program: /home/ignite/sbox2/rootfs/rfs-raspbian/home/pi/vscp_software/src/vscp/daemon/linux/vscpd 
qemu: Unsupported syscall: 26
qemu: uncaught target signal 11 (Segmentation fault) - core dumped
qemu: Unsupported syscall: 26
During startup program terminated with signal SIGSEGV, Segmentation fault.
(sb2-emulate-gdb) 

请提出这个错误是因为什么?

//卡托赫

4

0 回答 0