Am 24.05.2012 00:38, schrieb Alex Barcelo: >>> Running it in a i386 machine works and gives an output of "0x0d\n0x20". >>> Running it in a qemu-i386 segfaults. Because the self-modifying code >>> raises a SIGSEGV in the qemu (I understand that it is the method used by >>> qemu to handle self-modifying code). But the sigprocmask disables the >>> SIGSEGV and the qemu-user... does nothing to avoid it. So the SIGSEGV is >>> unmanaged and breaks the program. >> >> Alex has the following SIGSEGV workaround queued for our openSUSE package: >> http://repo.or.cz/w/qemu/agraf.git/commit/0760e24b52ff20a328f168ed23b52c9b9c0fd28f >> >> Don't know if it fixes your specific problem. Peter had some ideas how >> to refactor signal handling but iirc didn't have time to work on it himself. > > Is it similar at all?
Peter answered that already: No, it isn't. Sorry for the confusion. Andreas -- SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg