[cmake-developers] Rogue7 dashboards and clang undefined behaviour

Sean McBride sean at rogue-research.com
Tue Jun 4 13:30:07 EDT 2013


Hi all,

I recently tweaked my Rogue7 dashboard's undefined behaviour checks and now there are two test failures:
<http://open.cdash.org/viewTest.php?onlyfailed&buildid=2926604>

'ExternalProject' is a libarchive bug which I filed here:
<http://code.google.com/p/libarchive/issues/detail?id=320>

'CTestTestFdSetSize' is superficially happening in an OS header's macro:

static __inline int
__darwin_fd_isset(int _n, const struct fd_set *_p)
{
	return (_p->fds_bits[_n/__DARWIN_NFDBITS] & (1<<(_n % __DARWIN_NFDBITS)));
}

where right right-hand side of the << is apparently 31.  __DARWIN_NFDBITS is 32.

Alas, gdb refuses to give me a backtrace.  But there are only 9 FD_ISSET() in CMake, anyone familiar with this test/code?

Cheers,

-- 
____________________________________________________________
Sean McBride, B. Eng                 sean at rogue-research.com
Rogue Research                        www.rogue-research.com 
Mac Software Developer              Montréal, Québec, Canada





More information about the cmake-developers mailing list