bug-ncurses
[Top][All Lists]
Advanced

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

Re: segmentation fault in test 'ncurses'


From: Thomas Dickey
Subject: Re: segmentation fault in test 'ncurses'
Date: Thu, 10 May 2001 16:36:59 -0400
User-agent: Mutt/1.2.5i

On Thu, May 10, 2001 at 10:19:51AM -0700, David Ellement wrote:
> On 010509, at 17:28:58, Thomas Dickey wrote
> > On Wed, May 09, 2001 at 09:43:53AM -0700, David Ellement wrote:
> > > I got a segmentation fault when I tried running 'ncurses' in the
> > > test directory (test 'b', cycling with 'f').  Here's the gdb output:
> > 
> > well, if it's a bug in ncurses.c that would be something to do with the
> > terminal description (for instance, COLOR_PAIRS isn't the product of
> > COLORS*COLORS e.g., colors=8, pairs=8, which I've seen in a few cases -
> > incorrect for an ANSI color model, but possible for hpterm).
> 
> For what it's worth, I was using xterm (XFree86 4.0.3(156)) and a
> local terminfo data compiled from the xterm package.

hmm - but the most likely cause of a failure at the indicated point
(other than bad object code, e.g., from some versions of gcc), is
a problem allocating the 'pairs' array.  I'd check/see if it was
a null pointer, etc., with the debugger.  Other than that, an
out-of-range value for its subscript seemed a good guess.

-- 
Thomas E. Dickey <address@hidden>
http://dickey.his.com
ftp://dickey.his.com



reply via email to

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