From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andi Kleen Subject: Re: libnuma: Problem with static library Date: Wed, 14 Dec 2011 12:37:45 -0800 Message-ID: References: Mime-Version: 1.0 Return-path: In-Reply-To: (Almaz Mirgasimov's message of "Fri, 11 Nov 2011 13:35:42 +0300") Sender: linux-numa-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Almaz Mirgasimov Cc: linux-numa@vger.kernel.org Almaz Mirgasimov writes: > I have some problem when running my program statically linked with libnuma. > When I try to run it I get following error message > > request to allocate mask for invalid number; abort > > I think the reason for such behavior is not initialized 'cpumask_sz', > because 'numa_init' was not called automatically. > > To solve this problem I slightly patched numactl sources and called > 'numa_init' in my program manually. > But is there any better way? That's a long standing regression from the 2.x changes. Should be fixed with http://permalink.gmane.org/gmane.linux.kernel.numa/688 -Andi -- ak@linux.intel.com -- Speaking for myself only