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

--- Comment #4 from Paul Floyd <pjfl...@wanadoo.fr> ---
I've tried a GCC 12 build of Valgrind with both a GCC 4.8.2 and GCC 12 built
versions of signal2 and they both crash. So it's not a change in the
compilation of the testcase that's the problem.

Next, in gdb I get the segfault here in syswrap-solaris.c:


│      534    /* Clear uc->vki_uc_signo.  This slot is used by the signal
machinery to
│      535       store a signal number. */
│      536    VKI_UC_SIGNO(uc) = 0;
│      537
│      538    /* Sigmask */
│  >   539    uc->uc_sigmask = tst->sig_mask;
│      540    VG_TRACK(post_mem_write, part, tid, (Addr)&uc->uc_sigmask,
│      541             sizeof(uc->uc_sigmask));

If I compile syswrap-solaris.c without -O2 then the signal2 test works. And in
fact the problem exists with -O1 and not with -O0.

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

Reply via email to