bash hangs infinitely; related to replace_history_data
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
bash (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: bash
I had it happen several times on my server that bash hung, when exiting from e.g. a "less" statement, before displaying the prompt again.
I've attached gdb then and it revealed the following backtrace. This was with bash from Feisty (3.2-0ubuntu7).
# gdb -p 10345
GNU gdb 6.6-debian
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i486-linux-gnu".
Attaching to process 10345
Reading symbols from /bin/bash...Reading symbols from /usr/lib/
Using host libthread_db library "/lib/tls/
done.
termsig_sighandler (sig=11) at ../bash/sig.c:429
429 ../bash/sig.c: No such file or directory.
in ../bash/sig.c
(gdb) bt
#0 termsig_sighandler (sig=11) at ../bash/sig.c:429
#1 <signal handler called>
#2 0x080ced45 in replace_
#3 0x080ca3d5 in rl_free_undo_list () at ../../.
#4 0x080c898b in rl_free_line_state () at ../../.
#5 0x080c8fb9 in rl_signal_handler (sig=2) at ../../.
#6 <signal handler called>
#7 _rl_dispatch_subseq (key=13, map=0x14, got_subseq=0) at ../../.
#8 0x080ba105 in _rl_dispatch (key=13, map=0x14) at ../../.
#9 0x080ba41c in readline_
#10 0x080ba7a5 in readline (
prompt=
33[0;33m\002[scr:1] \001\033[1;31m\002{ \001\033[
/lib/readline/
#11 0x080683d1 in yy_readline_get () at ../bash/
#12 0x08064098 in shell_getc (remove_
#13 0x0806538a in read_token (command=<value optimized out>) at ../bash/
#14 0x0806898d in yyparse () at ../bash/
#15 0x080ee0a4 in _DYNAMIC ()
#16 0x080ee084 in _DYNAMIC ()
#17 0x080ee06c in _DYNAMIC ()
#18 0x00000000 in ?? ()
(gdb)
Hi Daniel,
do you still experience this bug?
Any ideas as to how it can be reproduced?
Thanks,
Mika