Eric Blake wrote:
> It could very well be a bug in qemu's user-mode emulation not handling
> stack overflow in the same way a native program would do.

Definitely. In my experience, qemu's user-mode emulation has the following
limitations:
- Catching stack overflow is not supported.
- ioctl() are not well supported (e.g. functions that deal with ttys).
  (except on arm64)
- glibc iconv modules are not installed (on Debian/Ubuntu).
- Spin lock tests hang. (on sparc64)
- SIGILL on some instructions used by glibc for <fenv.h> functions (on powerpc*)
- O_CLOEXEC is not well supported (e.g. in dup3, open). (on alpha)
- The emulation of floating-point operations is broken. (on m68k)
- Incorrect behaviour of floating-point exceptions. (on mips)
- Quiet NaNs behave like signalling NaNs and vice versa (on mips)

If you want to test catching stack overflow, you need to use qemu in
system-mode emulation.

Bruno




Reply via email to