bug-readline
[Top][All Lists]
Advanced

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

Re: [Bug-readline] sigsegv in terminal.c function get_term_capabilities(


From: Chet Ramey
Subject: Re: [Bug-readline] sigsegv in terminal.c function get_term_capabilities()
Date: Mon, 11 Feb 2019 15:28:06 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:60.0) Gecko/20100101 Thunderbird/60.5.0

On 2/6/19 10:31 PM, Dennis Clarke wrote:
> 
> This has been tricky to isolate but after building and trying bash 5.0.2
> and then bash 4.4.23 I get the exact same sigsegv in the same place with
> both :

I can't reproduce this on Solaris 10 in VirtualBox with bash4.4 or
bash-5.0.

> 
> address@hidden dbx
> /usr/local/build/bash-4.4.18-023_SunOS5.10_sparc64vii+.001/bash
> Reading bash
> Reading ld.so.1
> Reading libreadline.so.8
> Reading libhistory.so.8
> Reading libcurses.so.1
> Reading libintl.so.8.1.5
> Reading libiconv.so.2.6.0
> Reading libc.so.1
> Reading libsocket.so.1
> Reading libnsl.so.1
> Reading libdl.so.1
> (dbx) run
> Running: bash
> (process id 19243)
> Reading libc_psr.so.1
> signal SEGV (no mapping at the fault address) in strcpy at 0xffffffff7e13c2e8
> 0xffffffff7e13c2e8: strcpy+0x00e8:      ldx      [%o2 + %o3], %o1
> Current function is get_term_capabilities

You could try setting a breakpoint here and seeing which termcap
capability it's looking for when it gets the segv. Maybe the buffer
is too small (it's 2K) to hold all the string capabilities of the
terminal emulation you're using.

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    address@hidden    http://tiswww.cwru.edu/~chet/



reply via email to

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