Skip to content

(Debian Bug 344248): R segfaults when pressing Delete (PR#8422)

3 messages · Brian Ripley, Dirk Eddelbuettel

#
On Wed, 21 Dec 2005 edd at debian.org wrote:

            
This seems to be a readline 5.1 error.  I was unable to reproduce it with
4.3 or 5.0.

gdb) bt
#0  0xb7f4c942 in _rl_dispatch_callback () from 
/usr/local/lib/libreadline.so.5
#1  0xb7f5fd82 in rl_callback_read_char () from 
/usr/local/lib/libreadline.so.5
#2  0x0816b98b in Rstd_ReadConsole (prompt=0xb7f6fafc "", buf=0xbf8bb1ec "", len=1024,
     addtohistory=0) at /users/ripley/R/svn/R-devel/src/unix/sys-std.c:663

Switching the link from libreadline.so.5 back to libreadline.so.5.0 made 
this behave again.

Can you confirm you are running rl5.1?  Given the segfault is readline not 
in R itself, it is at the very least a change in behaviour in a supposedly 
compatible version of a dynamic library so it seems to me the bug should 
be assigned to readline not R.

Brian

  
    
#
<ripley <at> stats.ox.ac.uk> writes:
Yes: readline 5.1, just like the bug submitter (see at the very bottom).
Looks like it, yes. And from looking at http://bugs.debian.org/libreadline5
it seems that the same behaviour was just found with gdb.

Thanks for the quick replies!

Dirk
run-time
run-time
developm
and env
language
2 days later
#
On Wed, Dec 21, 2005 at 02:48:25PM +0000, Dirk Eddelbuettel wrote:
And a new Debian version libreadline5.1-3 (and now 5.1-4) fixes it. I assume
the patch makes it upstream too.

Dirk