Bug 335441

Summary: unhandled ioctl 0x8905 (SIOCATMARK) when running wine under valgrind (patch)
Product: [Developer tools] valgrind Reporter: Austin English <austinenglish>
Component: generalAssignee: Julian Seward <jseward>
Status: RESOLVED FIXED    
Severity: normal CC: tom
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: patch

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.