Bug 512571 - regtest problems with darwin dsymutil
Summary: regtest problems with darwin dsymutil
Status: RESOLVED FIXED
Alias: None
Product: valgrind
Classification: Developer tools
Component: general (other bugs)
Version First Reported In: 3.27 GIT
Platform: Compiled Sources macOS
: NOR minor
Target Milestone: ---
Assignee: Paul Floyd
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-11-24 21:33 UTC by Paul Floyd
Modified: 2025-11-25 09:04 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Floyd 2025-11-24 21:33:01 UTC
There are a few tests that create links (none allexec32 and allexec64) or copies (none cmd-with-special). Maybe some more?

On Darwin these tests fail first time round with a diff like

+run: /usr/bin/dsymutil "/Users/paulf/scratch/valgrind/none/none-amd64-darwin"

So when making the copy/link dsymutil should also be run afterwards. For the moment this isn't much of an issue (the test fails first time and then passes). If I get to having a darwin nightly this will be a bigger issue as there would just be one time round for these tests.

In addition the copied exec for cmd-with-special interferes somewhat with the vg_regtest script. When dsymutil runs on the copied 'a \<>b' exe it will create a directory 'a \<>b.dSYM'. vg_regtest runs the arch_test exe on each directory to see if it should recurse into that directory. There looks like there is a problem with quoting and arch_test gets two arguments, 'a' and '\<>b'. That causes arch_test to fail and print a message "usage: arch_test <arch-type>". Not serious, but it took me a while to work out what was causing it.
Comment 1 Paul Floyd 2025-11-25 09:04:49 UTC
commit 097cd6ccfc225c79b33d67b0f022f7179128b7cf (HEAD -> master, origin/master, origin/HEAD)
Author: Paul Floyd <pjfloyd@wanadoo.fr>
Date:   Tue Nov 25 08:20:06 2025 +0100

    Bug 512571 - regtest problems with darwin dsymuti

    There was alrwady a stderr filter for dsymutil, but only for DRD.
    So I moved that to tests/filter_stderr_basic.in

    I added single quotes around $dir in tests/vg_regtest.in for
    arch_test and os_test. That now prevents directory names containing
    spaces from being seen as more than one argument.