Adding gnulib, for Bruno's help in debugging a stack overflow question: On Thu, May 15, 2025 at 12:33:58PM +0200, Andreas Schwab wrote: > $ echo 'define(a,a(a))a' | qemu-x86_64 src/m4 > src/m4: internal error detected; please report this bug to <bug...@gnu.org>: > Segmentation fault
Thanks for the report. Was that version of m4 compiled with libsigsegv linked in, or with just the code in gnulib? Are you able to run this scenario under gdb and get a stack trace at the point where src/m4.c:fault_handler() is reached? Which in turn makes me wonder if it be better to use gdb on the qemu-x86_64 emulator, instead of attaching gdb to the emulated execution of src/m4? 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. -- Eric Blake, Principal Software Engineer Red Hat, Inc. Virtualization: qemu.org | libguestfs.org