Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

bin/21075: top: can't allocate sufficient memory

0 views
Skip to first unread message

l...@kru.ru

unread,
Sep 6, 2000, 4:00:35 AM9/6/00
to

>Number: 21075
>Category: bin
>Synopsis: top: can't allocate sufficient memory
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Wed Sep 06 01:00:04 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator: Andrey Lobov
>Release: 4.1-STABLE, 4.0-STABLE, 4.3-STABLE
>Organization:
KuzbassRazrezUgol
>Environment:
FreeBSD lan.xxx.tu 4.1-STABLE FreeBSD 4.1-STABLE #0: Sat Aug 12 11:14:35 KRAST 2000 l...@lan.xxx.ru:/usr/src/sys/compile/LAN i386
FreeBSD paul.yyy.ru 4.0-STABLE FreeBSD 4.0-STABLE #3: Tue Jul 18 18:18:09 GMT 2000 pa...@paul.yyy.ru:/usr/src/sys/compile/PAUL i386
FreeBSD proxy.zzz.ru 3.4-STABLE FreeBSD 3.4-STABLE #1: Fri Apr 21 12:10:45 KRAST 2000 l...@proxy.zzz.ru:/usr/src/sys/compile/LAN i386
>Description:
If to run /usr/bin/top in any Xterminal (kvt, konsole, xterm, Eterm)
and a size of the window of the terminal less or it is equal to six
strings on a vertical we receive error messages:
top: can't allocate sufficient memory.
At the greater size - without any errors.

>How-To-Repeat:
Reduce a vertical size of the window of the Xterminal up to six
strings (lines) and start /usr/bin/top.

>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majo...@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message

Sheldon Hearn

unread,
Sep 6, 2000, 6:10:12 AM9/6/00
to
The following reply was made to PR bin/21075; it has been noted by GNATS.

From: Sheldon Hearn <shel...@uunet.co.za>
To: l...@kru.ru
Cc: freebsd-gn...@freebsd.org
Subject: Re: bin/21075: top: can't allocate sufficient memory
Date: Wed, 06 Sep 2000 12:05:02 +0200

On Wed, 06 Sep 2000 00:50:48 MST, l...@kru.ru wrote:

> >Number: 21075
> >Category: bin
> >Synopsis: top: can't allocate sufficient memory

This happens because top needs 7 lines for headers. display_resize()
calculates that the number of lines available is -1 and returns this
value. As it happens, display_init() interprets this -1 return value as
a memory allocation error.

I'm downloading top-3.5beta9 to see whether this problem is fixed in
that version.

As a work-around, you can use top's -b (batch mode) option.

Ciao,
Sheldon.

shel...@freebsd.org

unread,
Sep 6, 2000, 7:00:16 AM9/6/00
to
Synopsis: top: can't allocate sufficient memory

Responsible-Changed-From-To: freebsd-bugs->sheldonh
Responsible-Changed-By: sheldonh
Responsible-Changed-When: Wed Sep 6 03:58:56 PDT 2000
Responsible-Changed-Why:
I'll manage this one.

http://www.freebsd.org/cgi/query-pr.cgi?pr=21075

0 new messages