Summary: | (wine) False warnings for _strlen | ||
---|---|---|---|
Product: | [Developer tools] valgrind | Reporter: | Dan Kegel <dank> |
Component: | memcheck | Assignee: | Julian Seward <jseward> |
Status: | REPORTED --- | ||
Severity: | normal | CC: | njn |
Priority: | NOR | ||
Version First Reported In: | unspecified | ||
Target Milestone: | wanted3.6.0 | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: | Test case (.c, .exe, .pdb) |
Description
Dan Kegel
2009-04-25 21:04:46 UTC
Created attachment 33102 [details]
Test case (.c, .exe, .pdb)
For reference, the script to build Reiser's wine+valgrind stack is at http://kegel.com/valgrind/winegrind-20080706.tgz Incidentally, I looked at this test case because I ran into the warning Conditional jump or move depends on uninitialised value(s) at 0x6328F6: strlen (strlen.asm:88) when running base_unittests.exe from Chromium under valgrind and wine from svn. (Also: if you're going to try Reiser's wine script, it's best to do it on a pure 32 bit system.) The errors go away when the test app is linked with a debugging version of the C library using the flags /MDd or /MLd. This is consistent with Reiser's statement about spurious strcmp et al warnings coming from some optimization that confused valgrind. It also suggests a workaround for anyone who really needs one. |