bug-readline
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: crash in rl_prep_terminal() without rl_outstream


From: Nick Black
Subject: Re: crash in rl_prep_terminal() without rl_outstream
Date: Mon, 16 Nov 2020 12:26:41 -0500

Chet Ramey left as an exercise for the reader:
> Readline provides defaults for rl_instream and rl_outstream the first time
> it's called. These are in place before the first time rl_prep_terminal is
> called. If an application using readline decides to change the file pointer
> assigned to either of these variables, readline allows it.

Hrmmm. I definitely was crashing within rl_prep_terminal() (as
noted with valgrind) until I set this. I'll look deeper into how
this was happening, but gdb verified that rl_outstream was NULL
when the writeouts at the end of this function were hit.

-- 
nick black -=- https://www.nick-black.com
to make an apple pie from scratch,
you need first invent a universe.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]