Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754115Ab0DUKmp (ORCPT ); Wed, 21 Apr 2010 06:42:45 -0400 Received: from mail.agmk.net ([91.192.224.71]:60992 "EHLO mail.agmk.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754044Ab0DUKmo convert rfc822-to-8bit (ORCPT ); Wed, 21 Apr 2010 06:42:44 -0400 Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes To: "Peter Zijlstra" Cc: libc-help@sourceware.org, linux-kernel@vger.kernel.org Subject: Re: mprotect() failed: Cannot allocate memory References: <201004210105.20942.pluto@agmk.net> <1271845010.1776.72.camel@laptop> Date: Wed, 21 Apr 2010 12:42:40 +0300 MIME-Version: 1.0 Content-Transfer-Encoding: 8BIT From: =?utf-8?B?UGF3ZcWCIFNpa29yYQ==?= Message-ID: In-Reply-To: <1271845010.1776.72.camel@laptop> User-Agent: Opera Mail/10.51 (Win32) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1077 Lines: 31 Dnia 21-04-2010 o 13:16:50 Peter Zijlstra napisał(a): > On Wed, 2010-04-21 at 01:05 +0200, Paweł Sikora wrote: >> hi, >> >> i'm trying to debug an ugly application with ElectricFence. >> in fact, on x86-64 box with 8GB ram and 16GB swap i'm getting following >> error: >> >> "ElectricFence Exiting: mprotect() failed: Cannot allocate memory" >> >> the program has been compiled with gcc-4.5, glibc-2.11.1, kernel-2.6.32. >> did you ever come across such (kernel/glibc) limitations? >> >> here's a simple testcase which triggs -ENOMEM in mprotect(). > > You probably depleted the max map count, see: > /proc/sys/vm/max_map_count yes, that is the clue :) the limit in /proc/sys/vm/max_map_count was set to 65530. with `echo 128000 > /proc/sys/vm/max_map_count` the testcase passes. thanks for hint. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/