Bug 349129 - memcheck/tests/wrap6 fails on OS X
Summary: memcheck/tests/wrap6 fails on OS X
Status: RESOLVED WORKSFORME
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:
 
Reported: 2015-06-14 03:25 UTC by Rhys Kidd
Modified: 2023-11-20 20:22 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
wrap6.stdout.diff (1.31 KB, patch)
2015-06-14 03:27 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-06-14 03:25:43 UTC
Wrapper functions are not being successfully called. An extract from the diff file:

 fn_0  ...
-fn_0  wrapper pre ()
-fn_0  wrapper post1 = 0
-fn_0  wrapper post2 = 0
       ...  0

Reproducible: Always

Steps to Reproduce:
1. Apply preliminary patch set from bz#348909
2. $ ./autogen.sh
3. $ ./configure
4. $ make
5. $ make check
6. $ perl tests/vg_regtest memcheck/tests/wrap6

Actual Results:  
$ perl tests/vg_regtest memcheck/tests/wrap6
wrap6:           valgrind   -q ./wrap6 
*** wrap6 failed (stdout) ***

== 1 test, 0 stderr failures, 1 stdout failure, 0 stderrB failures, 0 stdoutB failures, 0 post failures ==
memcheck/tests/wrap6                     (stdout)

Expected Results:  
No regression test failure.
Comment 1 Rhys Kidd 2015-06-14 03:27:11 UTC
Created attachment 93162 [details]
wrap6.stdout.diff
Comment 2 Julian Seward 2015-07-07 13:11:53 UTC
Is this specific to 10.11 ?  Does it work in 10.10 ?
Comment 3 Rhys Kidd 2015-07-08 11:30:30 UTC
I believe I mis diagnosed this regression, as it is now happening reliably on OS X 10.10.

Have removed this as a blocker to bz#348909, and will address on current Darwin platforms. It should be reasonably easy to trace this back to a specific commit.
Comment 4 Julian Seward 2015-09-06 14:03:16 UTC
I can't reproduce this on 10.10.5 (64 bit).  Rhys, can you?
Comment 5 Rhys Kidd 2015-09-12 06:16:41 UTC
I am still able to reproduce this on OS X 10.10.5 (64 bit).

$ perl tests/vg_regtest memcheck/tests/wrap6
wrap6:           valgrind   -q ./wrap6 
*** wrap6 failed (stdout) ***

== 1 test, 0 stderr failures, 1 stdout failure, 0 stderrB failures, 0 stdoutB failures, 0 post failures ==
memcheck/tests/wrap6                     (stdout)
Comment 6 Paul Floyd 2022-06-07 15:59:04 UTC
When I have a moment I'll take a look.

Often these are functions being inlined or optimized away.
Comment 7 Paul Floyd 2023-11-20 20:22:57 UTC
This passes with macOS 10.13m which is the oldest that I can reasonably work on.