From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 988 invoked by alias); 23 Mar 2011 08:45:08 -0000 Received: (qmail 900 invoked by uid 22791); 23 Mar 2011 08:45:06 -0000 X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org Received: from mail-qy0-f176.google.com (HELO mail-qy0-f176.google.com) (209.85.216.176) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 23 Mar 2011 08:45:01 +0000 Received: by qyk30 with SMTP id 30so7276971qyk.0 for ; Wed, 23 Mar 2011 01:45:00 -0700 (PDT) MIME-Version: 1.0 Received: by 10.229.12.193 with SMTP id y1mr5760034qcy.92.1300869899877; Wed, 23 Mar 2011 01:44:59 -0700 (PDT) Received: by 10.229.50.145 with HTTP; Wed, 23 Mar 2011 01:44:59 -0700 (PDT) Date: Wed, 23 Mar 2011 08:45:00 -0000 Message-ID: Subject: Huge pages and gdb From: Erez Zilber To: gdb@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes 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/msg00129.txt.bz2 Hi, 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 How can I solve this so I will be able to view the contents of the buffer? Thanks, Erez