bug-readline
[Top][All Lists]
Advanced

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

[Bug-readline] Bug when MULTIKEY mode


From: Luis Recuerda
Subject: [Bug-readline] Bug when MULTIKEY mode
Date: Wed, 20 Jan 2016 12:20:01 +0100

Hello,

I have got an segmentation fault in libreadline (version 6.3). Thanks to libSegFault I have been able to found error. Unfortunately I don't know the key sequence that have produced the fault and I can't reproduce it.

The error has happened in function '_rl_dispatch_callback' called from line 188 of file 'callback.c':

        eof = _rl_dispatch_callback (_rl_kscxt);        /* For now */

because '_rl_kscxt' is NULL. It seems that after RL_STATE_MULTIKEY has been set, '_rl_kscxt' has became NULL. I think that this has happened in line 755 of file 'readline.c':

        _rl_kscxt = cxt->ocxt;

Perhaps bug can be fixed adding an else clause after this line:

        if (_rl_kscxt)
                _rl_kscxt->childval = r;
        else
                RL_UNSETSTATE (RL_STATE_MULTIKEY);

But I don't know if this break another part of code.


Best regards

Luis,



--
Luis Recuerda Santiago

address@hidden
address@hidden

reply via email to

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