title: QEmu error --- when running executable
body: <p>I have cross compiled my project in scratchbox, it uses :---<br>
  1> WX-widget base class (i.e uses socket, thread, string related classes..... no GUI stuff)  (<a href="http://www.wxwidgets.org/" rel="nofollow">http://www.wxwidgets.org/</a>)<br>
  2> Libwebsocket (<a href="http://libwebsockets.org/trac" rel="nofollow">http://libwebsockets.org/trac</a>)</p>
  
  <p>Compilation is successfull without error. Target is Debian Weezy &amp; Processor is Raspberry pi.</p>
  
  <p>Scratchbox uses QEmu for running cross executables.
  When i run executable under sb2( scratchbox ). I get following error</p>
  
  <pre><code>x$ sb2 -e vscpd
  qemu: uncaught target signal 11 (Segmentation fault) - core dumped
  Exit reason and status: signal 11 (core dumped)
  </code></pre>
  
  <p>----------------- Qemu GDB log ------------------------</p>
  
  <pre><code>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 &lt;http://gnu.org/licenses/gpl.html&gt;
  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:
  &lt;http://www.gnu.org/software/gdb/bugs/&gt;...
  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) 
  </code></pre>
  
  <p>Please suggest this error is because of what ?</p>
  
  <p>//Katoch</p>