Bug 335441 - unhandled ioctl 0x8905 (SIOCATMARK) when running wine under valgrind (patch)
Summary: unhandled ioctl 0x8905 (SIOCATMARK) when running wine under valgrind (patch)
Status: RESOLVED FIXED
Alias: None
Product: valgrind
Classification: Developer tools
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Julian Seward
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-05-27 21:25 UTC by Austin English
Modified: 2014-06-26 13:15 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
patch (5.05 KB, text/x-c)
2014-05-27 21:25 UTC, Austin English
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Austin English 2014-05-27 21:25:45 UTC
Created attachment 86869 [details]
patch

$ export WINESRC="$HOME/wine-valgrind"
$ export VALGRIND_OPTS="-q --trace-children=yes --track-origins=yes --gen-suppressions=all --suppressions=$WINESRC/tools/valgrind/valgrind-suppressions --suppressions=$WINESRC/tools/valgrind/valgrind-suppressions-ignore --suppressions=$WINESRC/tools/valgrind/valgrind-suppressions-external --suppressions=$WINESRC/tools/valgrind/valgrind-suppressions-known-bugs  --leak-check=full --num-callers=20  --workaround-gcc296-bugs=yes --vex-iropt-register-updates=allregs-at-mem-access"
$ export WINETEST_WRAPPER=/opt/valgrind/bin/valgrind
$ export WINE_HEAP_TAIL_REDZONE=32
$ export OANOCACHE=1

$ cd $WINESRC/dlls/ws2_32/tests/
$ make sock.ok
../../../tools/runtest -q -P wine -T ../../.. -M ws2_32.dll -p ws2_32_test.exe.so sock && touch sock.ok
preloader: Warning: failed to reserve range 00110000-68000000
preloader: Warning: failed to reserve range 7f000000-82000000
==16826== Warning: noted but unhandled ioctl 0x8905 with no size/direction hints
==16826==    This could cause spurious value errors to appear.
==16826==    See README_MISSING_SYSCALL_OR_IOCTL for guidance on writing a proper wrapper.
==16826== Warning: noted but unhandled ioctl 0x8905 with no size/direction hints
==16826==    This could cause spurious value errors to appear.
==16826==    See README_MISSING_SYSCALL_OR_IOCTL for guidance on writing a proper wrapper.
==16826== Warning: noted but unhandled ioctl 0x8905 with no size/direction hints
==16826==    This could cause spurious value errors to appear.
==16826==    See README_MISSING_SYSCALL_OR_IOCTL for guidance on writing a proper wrapper.

I've got a preliminary patch that gets past that warning, but I'm not sure that it's correct. Reviews apprecaited.
Comment 1 Tom Hughes 2014-06-26 13:15:03 UTC
Commited as r14112.