https://bugs.kde.org/show_bug.cgi?id=452274

--- Comment #6 from Paul Floyd <pjfl...@wanadoo.fr> ---
Nick, could you try applying the following diff

diff --git a/coregrind/m_syswrap/syswrap-x86-freebsd.c
b/coregrind/m_syswrap/syswrap-x86-freebsd.c
index 0ba304952..1283f637b 100644
--- a/coregrind/m_syswrap/syswrap-x86-freebsd.c
+++ b/coregrind/m_syswrap/syswrap-x86-freebsd.c
@@ -863,7 +863,7 @@ static void fill_mcontext(ThreadState *tst, struct
vki_mcontext *sc)
    sc->es = tst->arch.vex.guest_ES;
    sc->fs = tst->arch.vex.guest_FS;
    sc->gs = tst->arch.vex.guest_GS;
-   sc->eflags = LibVEX_GuestX86_get_eflags(&tst->arch.vex);
+   sc->eflags = LibVEX_GuestX86_get_eflags(&tst->arch.vex) | 0x400000;
    /*
       not yet.
       VG_(memcpy)(&sc->fpstate, fpstate, sizeof(*fpstate));

0x400000 is not used, but it is also not an allowed user flag that can change.

Does this prevent the crash?

Running x86 on amd64 I get
pid 3067 (memcheck-x86-freebs): freebsd32_sigreturn eflags = 0x200091

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to