From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17197 invoked by alias); 23 Mar 2011 17:09:59 -0000 Received: (qmail 17137 invoked by uid 22791); 23 Mar 2011 17:09:57 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE X-Spam-Check-By: sourceware.org Received: from mail-out.m-online.net (HELO mail-out.m-online.net) (212.18.0.10) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 23 Mar 2011 17:09:51 +0000 Received: from frontend1.mail.m-online.net (frontend1.mail.intern.m-online.net [192.168.8.180]) by mail-out.m-online.net (Postfix) with ESMTP id 8CC661800158; Wed, 23 Mar 2011 18:09:49 +0100 (CET) Received: from localhost (dynscan1.mnet-online.de [192.168.8.164]) by mail.m-online.net (Postfix) with ESMTP id AD7601C0010F; Wed, 23 Mar 2011 18:09:49 +0100 (CET) Received: from mail.mnet-online.de ([192.168.8.180]) by localhost (dynscan1.mail.m-online.net [192.168.8.164]) (amavisd-new, port 10024) with ESMTP id D3wWMaAq7yCB; Wed, 23 Mar 2011 18:09:49 +0100 (CET) Received: from igel.home (ppp-88-217-111-182.dynamic.mnet-online.de [88.217.111.182]) by mail.mnet-online.de (Postfix) with ESMTP; Wed, 23 Mar 2011 18:09:48 +0100 (CET) Received: by igel.home (Postfix, from userid 501) id 87297CA2A0; Wed, 23 Mar 2011 18:09:48 +0100 (CET) From: Andreas Schwab To: Erez Zilber Cc: gdb@sourceware.org Subject: Re: Huge pages and gdb References: X-Yow: I own seven-eighths of all the artists in downtown Burbank! Date: Wed, 23 Mar 2011 17:09:00 -0000 In-Reply-To: (Erez Zilber's message of "Wed, 23 Mar 2011 10:44:59 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2011-03/txt/msg00133.txt.bz2 Erez Zilber writes: > My application (running on RHEL 6) calls mmap() to map huge pages. > After it crashed, I opened gdb with the core file and tried to take a > look in the huge-pages buffer that was mmapped. I got the following > error: > > gdb) p pool->mem > $2 = 0x7f3201400000
> (gdb) p pool->mem[0] > Cannot access memory at address 0x7f3201400000 If gdb cannot access the memory then it is not part of the core file. Please check with "info target" whether one of the segments cover the address range. If not, then either the address really is invalid, or it is an issue with the core producer and gdb cannot do anything about that. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."