Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 481102 - app-emulation/wine - add USE=valgrind support
Summary: app-emulation/wine - add USE=valgrind support
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal enhancement
Assignee: Wine Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-14 22:12 UTC by Luke-Jr
Modified: 2015-04-01 20:37 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Luke-Jr 2013-08-14 22:12:36 UTC
It would be excellent for debugging if this were supported: http://wiki.winehq.org/Wine_and_Valgrind
Comment 1 Franz Trischberger 2013-08-15 07:02:17 UTC
Aha! I came across an automagic dependency on valgrind from libdrm [*]. So until there is a dedicated USE-Flag you might simply want to install valgrind and reemerge wine.

[*] https://bugs.gentoo.org/show_bug.cgi?id=481120
Comment 2 Luke-Jr 2013-08-15 08:04:01 UTC
It requires a patch too.
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2013-08-15 13:57:10 UTC
There already is a dedicated USE=valgrind so that unsupported architectures can conveniently mask its use.
Comment 4 Alexandre Rostovtsev (RETIRED) gentoo-dev 2013-08-15 14:11:45 UTC
If I read this correctly, valgrind needs the patch from https://bugs.kde.org/show_bug.cgi?id=253657 to be useful with wine; that patch is only incompatible with valgrind-3.5; and the oldest version of valgrind we have in portage is 3.7

If you got valgrind working with wine manually, please describe exactly how you did it, so that we can see if it's possible to do the same in the ebuild.
Comment 5 Alexandre Rostovtsev (RETIRED) gentoo-dev 2013-08-15 14:13:23 UTC
(In reply to Alexandre Rostovtsev from comment #4)
> only incompatible with valgrind-3.5

Meant to say: "only compatible"
Comment 6 Luke-Jr 2013-08-15 16:17:37 UTC
I applied the patch in http://bugs.winehq.org/show_bug.cgi?id=24164 to wine 1.4.1.

Valgrind isn't working perfectly, but it's not a complete failure either.

http://bugs.winehq.org/show_bug.cgi?id=24164 seems amd64-specific. I run x86.
Comment 7 Luke-Jr 2013-08-16 21:10:06 UTC
To elaborate a bit, I get the correct addresses on the stack, but no symbols. I can correlate the addresses with those from objdump's disassembly.

So, it's not very nice, but it's usable.