zsh-workers
 help / color / mirror / code / Atom feed
* Bug in beta21
@ 1996-06-20  9:43 Bruce Stephens
  1996-06-20 13:06 ` Zoltan Hidvegi
  0 siblings, 1 reply; 6+ messages in thread
From: Bruce Stephens @ 1996-06-20  9:43 UTC (permalink / raw)
  To: zsh-workers

This was also in beta20.  (It's these darned bug checks that were added,
I never get these messages in beta19!)

In the zsh Src directory, expanding things starting with zl:

11.36am, Thursday 20 June bommel% echo zlBUG: useheap in doexpandhist()ta21/Src
e

(I pressed TAB after the zl.)

The options:
alwaystoend autocd autopushd autoresume bgnice braceccl completeinword
correct correctall extendedglob hashcmds hashdirs hashlistall
histignoredups interactive listambiguous listtypes longlistjobs
magicequalsubst noclobber notify numericglobsort rcquotes shinstdin

This is using gcc on a Solaris (SunOS 5.4) machine.
-- 
Bruce Stephens			| email: B.Stephens@math.ruu.nl
Utrecht University              | telephone: +31 30 2534630
Department of Mathematics       | telefax:   +31 30 2518394
P.O. Box 80010, 3508 TA Utrecht |
The Netherlands                 |



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Bug in beta21
  1996-06-20  9:43 Bug in beta21 Bruce Stephens
@ 1996-06-20 13:06 ` Zoltan Hidvegi
  1996-06-20 14:03   ` Bruce Stephens
  0 siblings, 1 reply; 6+ messages in thread
From: Zoltan Hidvegi @ 1996-06-20 13:06 UTC (permalink / raw)
  To: Bruce Stephens; +Cc: zsh-workers

> This was also in beta20.  (It's these darned bug checks that were added,
> I never get these messages in beta19!)

But these bugs were there anyway.  Each time you see this a potential
memory leak may occur.

> 
> In the zsh Src directory, expanding things starting with zl:
> 
> 11.36am, Thursday 20 June bommel% echo zlBUG: useheap in doexpandhist()ta21/Src
> e
> 
> (I pressed TAB after the zl.)
> 
> The options:
> alwaystoend autocd autopushd autoresume bgnice braceccl completeinword
> correct correctall extendedglob hashcmds hashdirs hashlistall
> histignoredups interactive listambiguous listtypes longlistjobs
> magicequalsubst noclobber notify numericglobsort rcquotes shinstdin

I cannot reproduce it.  You may have some compctl's which may cause that.
Please try to reproduce it starting with zsh -f, with a minimal set of
options.

Zoltan



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Bug in beta21
  1996-06-20 13:06 ` Zoltan Hidvegi
@ 1996-06-20 14:03   ` Bruce Stephens
  1996-06-20 14:47     ` Erwin J. van Eijk
  1996-06-20 17:00     ` Bart Schaefer
  0 siblings, 2 replies; 6+ messages in thread
From: Bruce Stephens @ 1996-06-20 14:03 UTC (permalink / raw)
  To: Zoltan Hidvegi; +Cc: zsh-workers

>>>>> "Zoltan" == Zoltan Hidvegi <hzoli@cs.elte.hu> writes:

>> This was also in beta20.  (It's these darned bug checks that were
>> added, I never get these messages in beta19!)

> But these bugs were there anyway.  Each time you see this a
> potential memory leak may occur.

I know.  It's my British dry humour.

> I cannot reproduce it.  You may have some compctl's which may cause
> that.  Please try to reproduce it starting with zsh -f, with a
> minimal set of options.

Of course, I should have done that in the first place.  It appears
that it's not the options, but something I have in my .zshrc file to
set the titlebar of xterms.  It's something I don't like all that much
anyway (it's annoying when I'm using the scrollbar and every five
seconds zsh thwarts me because I have whatever xterm option it is
(scrollttyoutput?) set).

Here's the offending fragment:

if [[ "$TERM" = xterm || "$TERM" = aixterm ]]
then
        typeset -l titlebartime
	set-titlebar() {
		titlebartime=$(print -Pn "%D{%r}")
		print -Pn "\E]0;%~@%m   $titlebartime, %D{%A %d %B %Y}\C-g"
        }
	trap set-titlebar ALRM
	TMOUT=5
fi

I get the bug with zsh -f, and after typing in the above.  It's a bit
intermittent, but not difficult to reproduce.

-- 
Bruce Stephens			| email: B.Stephens@math.ruu.nl
Utrecht University              | telephone: +31 30 2534630
Department of Mathematics       | telefax:   +31 30 2518394
P.O. Box 80010, 3508 TA Utrecht |
The Netherlands                 |



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Bug in beta21
  1996-06-20 14:03   ` Bruce Stephens
@ 1996-06-20 14:47     ` Erwin J. van Eijk
  1996-06-20 17:00     ` Bart Schaefer
  1 sibling, 0 replies; 6+ messages in thread
From: Erwin J. van Eijk @ 1996-06-20 14:47 UTC (permalink / raw)
  To: zsh-workers

Bruce wrote:
>Here's the offending fragment:
>if [[ "$TERM" = xterm || "$TERM" = aixterm ]]
>then
>        typeset -l titlebartime
>	set-titlebar() {
>		titlebartime=$(print -Pn "%D{%r}")
>		print -Pn "\E]0;%~@%m   $titlebartime, %D{%A %d %B %Y}\C-g"
>        }
>	trap set-titlebar ALRM
>	TMOUT=5
>fi

You can abbreviate this to:

print -Pn "\E]0;%m:%~   %D{%A %d %B %Y}\C-g"

And it gives some other errors when expanding a dir:

~percy/BUG: permanent allocation in parsestr
BUG: permanent allocation in prefork
terb/

I was expanding on ~pe

--
       +--------------------+
 \     | Erwin J.  van Eijk | Standard Disclaimer applies
  \ /\ | eijk@cs.utwente.nl |
  ( )  | eijk@corner.iaf.nl | A single death is a tragedy,
_( * )_+--------------------+ A million deaths is a statistic - Josef Stalin



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Bug in beta21
  1996-06-20 14:03   ` Bruce Stephens
  1996-06-20 14:47     ` Erwin J. van Eijk
@ 1996-06-20 17:00     ` Bart Schaefer
  1996-06-21  9:14       ` Bruce Stephens
  1 sibling, 1 reply; 6+ messages in thread
From: Bart Schaefer @ 1996-06-20 17:00 UTC (permalink / raw)
  To: Bruce Stephens, zsh-workers

On Jun 20,  4:03pm, Bruce Stephens wrote:
} Subject: Re: Bug in beta21
}
} Of course, I should have done that in the first place.  It appears
} that it's not the options, but something I have in my .zshrc file to
} set the titlebar of xterms.  It's something I don't like all that much
} anyway (it's annoying when I'm using the scrollbar and every five
} seconds zsh thwarts me because I have whatever xterm option it is
} (scrollttyoutput?) set).

} 	trap set-titlebar ALRM
} 	TMOUT=5

Do you really need the title updated every 5 seconds?  I use:

        precmd() { TMOUT=600 ; title }
	TRAPALRM() { TMOUT=60 ; title }

where "title" is a function pretty much like your "set-titlebar".  This
updates the title bar between commands if I'm using the shell regularly,
otherwise it waits for 10 minutes of inactivity and then begins updating
the title bar once per minute.  The 10 minutes is enough for me to scroll
back or spend a while editing a command line without having things start
jumping around on me, and since TMOUT doesn't have any effect during the
execution of commands (only while waiting at the prompt), using precmd
actually gets the title updated more regularly than using a short TMOUT.

-- 
Bart Schaefer                             Brass Lantern Enterprises
http://www.well.com/user/barts            http://www.nbn.com/people/lantern

New male in /home/schaefer:
>N  2 Justin William Schaefer  Sat May 11 03:43  53/4040  "Happy Birthday"



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Bug in beta21
  1996-06-20 17:00     ` Bart Schaefer
@ 1996-06-21  9:14       ` Bruce Stephens
  0 siblings, 0 replies; 6+ messages in thread
From: Bruce Stephens @ 1996-06-21  9:14 UTC (permalink / raw)
  To: schaefer; +Cc: zsh-workers

>>>>> "Bart" == Bart Schaefer <schaefer@candle.brasslantern.com> writes:


> Do you really need the title updated every 5 seconds?  I use:

>         precmd() { TMOUT=600 ; title } 
>         TRAPALRM() { TMOUT=60 ; title }

> where "title" is a function pretty much like your "set-titlebar".
> This updates the title bar between commands if I'm using the shell
> regularly, otherwise it waits for 10 minutes of inactivity and then
> begins updating the title bar once per minute.

That's probably better.  Since I have a clock on my screen anyway,
having the time in every xterm is probably unnecessary.  Probably
using periodic and PERIOD would be better!  I used to use chpwd, but
there was some problem with that, probably the way it messed up things
like "(cd /foo; tar cf - bbb) | tar xf -".



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~1996-06-21  9:30 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1996-06-20  9:43 Bug in beta21 Bruce Stephens
1996-06-20 13:06 ` Zoltan Hidvegi
1996-06-20 14:03   ` Bruce Stephens
1996-06-20 14:47     ` Erwin J. van Eijk
1996-06-20 17:00     ` Bart Schaefer
1996-06-21  9:14       ` Bruce Stephens

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).