NetBSD Problem Report #52595

From www@NetBSD.org  Thu Oct  5 13:55:42 2017
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id E38CB7A1FF
	for <gnats-bugs@gnats.NetBSD.org>; Thu,  5 Oct 2017 13:55:41 +0000 (UTC)
Message-Id: <20171005135541.3557B7A28C@mollari.NetBSD.org>
Date: Thu,  5 Oct 2017 13:55:41 +0000 (UTC)
From: n54@gmx.com
Reply-To: n54@gmx.com
To: gnats-bugs@NetBSD.org
Subject: /proc/pid/map(s) not usable for Firefox
X-Send-Pr-Version: www-1.0

>Number:         52595
>Category:       kern
>Synopsis:       /proc/pid/map(s) not usable for Firefox
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Oct 05 14:00:00 +0000 2017
>Last-Modified:  Thu Oct 05 14:55:00 +0000 2017
>Originator:     Kamil Rytarowski
>Release:        NetBSD 8.99.1 amd64
>Organization:
TNF
>Environment:
NetBSD rugged 8.99.1 NetBSD 8.99.1 (GENERIC) #7: Mon Jul  3 15:56:30 CEST 2017  root@chieftec:/public/netbsd-root/sys/arch/amd64/compile/GENERIC amd64
>Description:
Files /proc/pid/map and /proc/pid/maps cannot be read for large applications.

pmap(1) works.

$ pmap -p 1039|wc -l
    3960
>How-To-Repeat:
Determine the pid of Firefox.

$ cat /proc/1039/map                                                                                                           
cat: /proc/1039/map: Cannot allocate memory

$ cat /proc/1039/maps
cat: /proc/1039/maps: Cannot allocate memory
>Fix:
N/A

It would be nice to remove the limit at all.

>Audit-Trail:
From: Joerg Sonnenberger <joerg@bec.de>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: kern/52595: /proc/pid/map(s) not usable for Firefox
Date: Thu, 5 Oct 2017 16:50:48 +0200

 On Thu, Oct 05, 2017 at 02:00:00PM +0000, n54@gmx.com wrote:
 > Files /proc/pid/map and /proc/pid/maps cannot be read for large applications.

 Try dd with a large block size. See procfs_map.c, line 99.

 Joerg

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.