On Sun, 7 Aug 2005, Daniel Burrows wrote:

I can see where the problem is, will make a fix in the next patch.
Other than the usual distractions, it took a few hours debugging due
to the large size of the trace when running aptitude (to see how to
get the information I needed).  It seems that aptitude creates a _lot_
of windows (my first cut of a trace got 300Mb of trace).  aptitude
would probably run faster if it didn't do that.

 I would expect only a dozen or so windows in the initial program state; no
more than two dozen, tops.  However, I am currently investigating a massive
resource leak in aptitude which leaked WINDOW *s among other things.  That
might have caused what you were seeing.

That could be.  I saw this happening during the initialization, had the
impression that it was creating the windows as a side-effect of reading
the package descriptions.  What it looks like in the trace was lots of
calls to derwin, e.g.:

called {derwin(0x8262aa0,23,80,1,0)
_nc_makenew(23,80,1,0)
create :window 0x82657a8
return }0x82657a8
called {keypad(0x82657a8,1)
return }0

I cut the trace down by telling it to start when I was entering KEY_RIGHT's, so that got past the initialization.

 Anyway, thanks for looking into this; I'm glad to hear that it's probably
fixed :).

soon (next patch is a week from yesterday). It's definitely a bug in ncurses though.

--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to