Bug 353471 - memcheck/tests/x86/xor-undef-x86 fails on OS X 10.11
Summary: memcheck/tests/x86/xor-undef-x86 fails on OS X 10.11
Status: CONFIRMED
Alias: None
Product: valgrind
Classification: Developer tools
Component: general (show other bugs)
Version: 3.10 SVN
Platform: macOS (DMG) macOS
: NOR normal
Target Milestone: ---
Assignee: Paul Floyd
URL:
Keywords:
Depends on:
Blocks: 348909
  Show dependency treegraph
 
Reported: 2015-10-02 21:01 UTC by Rhys Kidd
Modified: 2023-12-29 21:14 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Failing test report (467 bytes, patch)
2015-10-02 21:01 UTC, Rhys Kidd
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Rhys Kidd 2015-10-02 21:01:17 UTC
Created attachment 94817 [details]
Failing test report

On OS X 1.11 Valgrind does not report conditional jump or move in one test.

Reproducible: Always

Steps to Reproduce:
1. $ make check
2. $ perl tests/vg_regtest memcheck/tests/x86/xor-undef-x86

Actual Results:  
The above tests fails on OS X 10.11 but does not on the predecessor OS X 10.10.

Expected Results:  
Test passes, per OS X 10.10.
Comment 1 Paul Floyd 2023-12-29 09:23:35 UTC
On macOS 10.13 stderr contains

+valgrind: m_syswrap/syswrap-darwin.c:9826 (void vgSysWrap_darwin_csrctl_before(ThreadId, SyscallArgLayout *, SyscallArgs *, SyscallStatus *, UWord *)): Assertion 'sizeof(user_addr_t) <= sizeof(RegWord)' failed.
 
Might be an easy fix.
Comment 2 Paul Floyd 2023-12-29 20:53:11 UTC
If I get past the assert then I just get

vex x86->IR: unhandled instruction bytes: 0x66 0xF 0x3A 0x22
==19671== valgrind: Unrecognised instruction at address 0x18038d.
==19671==    at 0x18038D: ??? (in /usr/lib/system/libdispatch.dylib)

which is an unsupported (on x86) sse4 instruction.

I'll probably mark this as wontfix as we're not going to add sse4 to x86 and macOS dropped x86 with 10.15 Catalina in 2019.
Comment 3 Paul Floyd 2023-12-29 21:14:29 UTC
the opcode is pinsrd, see
https://bugs.kde.org/show_bug.cgi?id=282910