Bug 208217 - "Warning: noted but unhandled ioctl 0x2000747b" on Mac OS X
Summary: "Warning: noted but unhandled ioctl 0x2000747b" on Mac OS X
Status: RESOLVED FIXED
Alias: None
Product: valgrind
Classification: Developer tools
Component: memcheck (show other bugs)
Version: 3.5.0
Platform: Unlisted Binaries macOS
: NOR normal
Target Milestone: ---
Assignee: Rhys Kidd
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-22 23:13 UTC by Sean
Modified: 2015-05-17 07:31 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.