Hello,

my bash-3.2.48 (uses readline-6.2) on AIX computer produces stange errors,
that I could trace back:

SIGWINCH->
signals.c:rl_sigwinch_handler ->
terminal.c:rl_resize_terminal ->
terminal.c:_rl_get_screen_size ->
shell.c:sh_set_lines_and_columns ->
libc:setenc ->
libc:putenv ->
libc: realloc

And finally realloc overwrites an unrelated data area (bash's variables.c:export_env),
which causes bash to get SIGSEGV

My documentations suggest that one shouldn't call (directly or indirectly) malloc/free/realloc from signal handler, so I think there should be a way to let these setenv/putenv calls to be delayed until the next readline-operation.

Yours: Lőrinczy Zsigmond



_______________________________________________
Bug-readline mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-readline

Reply via email to