Bug 208217

Summary: "Warning: noted but unhandled ioctl 0x2000747b" on Mac OS X
Product: [Developer tools] valgrind Reporter: Sean <cwatson>
Component: memcheckAssignee: Rhys Kidd <rhyskidd>
Status: RESOLVED FIXED    
Severity: normal CC: tom
Priority: NOR    
Version: 3.5.0   
Target Milestone: ---   
Platform: Unlisted Binaries   
OS: macOS   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Sean 2009-09-22 23:13:44 UTC
valgrind 3.5 on Mac OS X 10.5.8 is giving me this message:

==9399== Warning: noted but unhandled ioctl 0x2000747b with no size/
direction hints
==9399==    This could cause spurious value errors to appear.
==9399==    See README_MISSING_SYSCALL_OR_IOCTL for guidance on writing
a proper wrapper.
==9399== Warning: noted but unhandled ioctl 0x2000747a with no size/
direction hints
==9399==    This could cause spurious value errors to appear.

A user on the mailing list provided this useful info:

----
$ grep "'t', 123" */*.h
sys/ttycom.h:#define	TIOCSBRK	 _IO('t', 123)		/* set break bit */

That is decoded from 0x2000747b as follows:
	_IO(...)	0x20000000
	't'		0x74
	123		0x7b

Since no data is moving into or out of the kernel (that would use _IOR (...) or _IOW(...) or _IOWR(...) wrapping, its just as easy to ignore the error as anything else.
----

Can this ioctl be 'wrapped' on OS X?

I am working on a minimal test case....
Comment 1 Sean 2009-10-02 22:29:05 UTC
The following will trigger the warning in valgrind:

int main (int argc, char * const argv[])
{
	(void)tcsendbreak(1, 0);

	return 0;
}
Comment 2 Rhys Kidd 2015-05-17 07:31:48 UTC
Resolved in r15246.