From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24681 invoked by alias); 3 Jul 2013 08:42:16 -0000 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 Received: (qmail 24671 invoked by uid 89); 3 Jul 2013 08:42:15 -0000 X-Spam-SWARE-Status: No, score=-6.1 required=5.0 tests=AWL,BAYES_00,RCVD_IN_HOSTKARMA_W,RCVD_IN_HOSTKARMA_WL,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS,TW_LR,TW_RW,TW_WX,TW_XR autolearn=no version=3.3.1 Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Wed, 03 Jul 2013 08:42:15 +0000 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r638gDNs022818 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 3 Jul 2013 04:42:13 -0400 Received: from host2.jankratochvil.net (ovpn-116-40.ams2.redhat.com [10.36.116.40]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id r638g8bQ029706 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Wed, 3 Jul 2013 04:42:12 -0400 Date: Wed, 03 Jul 2013 08:42:00 -0000 From: Jan Kratochvil To: vijay nag Cc: gdb@sourceware.org Subject: Re: vdso Message-ID: <20130703084207.GA598@host2.jankratochvil.net> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-IsSubscribed: yes X-SW-Source: 2013-07/txt/msg00010.txt.bz2 On Wed, 03 Jul 2013 10:34:43 +0200, vijay nag wrote: > cat /proc/15896/smaps | grep vdso > 778:b7fff000-b8000000 r-xp b7fff000 00:00 0 [vdso] > > Does vdso come with symbols ? For basic ELF symbols it does. Try: dump memory /tmp/vdso.so 0xb7fff000 0xb8000000 readelf -Ws /tmp/vdso.so and .dynsym section there should contain the symbols: 4: ffffffffff700ba0 404 FUNC GLOBAL DEFAULT 15 __vdso_gettimeofday@@LINUX_2.6 5: ffffffffff700d60 61 FUNC GLOBAL DEFAULT 15 __vdso_getcpu@@LINUX_2.6 etc. Then there are also DWARF symbols to see even filenames / line numbers but those .debug_* sections at least Fedora ships only on disk in kernel-debuginfo rpm. The symbols get loaded automatically by GDB: lrwxrwxrwx 1 root root 61 Jul 2 00:43 /usr/lib/debug/.build-id/92/0bba09195bde2b45a7a4eaec1dc78c3157c0f5 -> ../../../../../lib/modules/3.9.8-200.fc18.x86_64/vdso/vdso.so* lrwxrwxrwx 1 root root 58 Jul 2 00:43 /usr/lib/debug/.build-id/92/0bba09195bde2b45a7a4eaec1dc78c3157c0f5.debug -> ../../lib/modules/3.9.8-200.fc18.x86_64/vdso/vdso.so.debug -rwxr-xr-x 1 root root 4856 Jun 28 16:56 /lib/modules/3.9.8-200.fc18.x86_64/vdso/vdso.so* -r--r--r-- 1 root root 104848 Jun 28 16:56 /usr/lib/debug/lib/modules/3.9.8-200.fc18.x86_64/vdso/vdso.so.debug $ rpm -qf /lib/modules/3.9.8-200.fc18.x86_64/vdso/vdso.so /usr/lib/debug/lib/modules/3.9.8-200.fc18.x86_64/vdso/vdso.so.debug kernel-3.9.8-200.fc18.x86_64 kernel-debuginfo-3.9.8-200.fc18.x86_64 You should check first /tmp/vdso.so to see whether your Linux kernel or GDB is the problem. Jan