with my kernel (perhaps because i have CONFIG_NR_CPUS=4) i see this:

% cat /sys/devices/system/node/node0/cpumap
1

that "1\n" string isn't parsed properly by numa_parse_bitmap... as a
result the --cpunodebind option doesn't work.  this patch hacks around it.
not sure if it's the correct fix or not.

-dean


--- numactl-0.9.9/libnuma.c.orig	2006-07-06 16:14:34.000000000 -0700
+++ numactl-0.9.9/libnuma.c	2006-07-22 16:48:15.164253893 -0700
@@ -420,7 +420,7 @@ int numa_parse_bitmap(char *line, unsign
 		while (p > line && *p != ',')
 			--p;
 		/* Eat two 32bit fields at a time to get longs */
-		if (sizeof(unsigned long) == 8) {
+		if (p > line && sizeof(unsigned long) == 8) {
 			oldp--;
 			memmove(p, p+1, oldp-p+1);
 			while (p > line && *p != ',')
