[Top][All Lists]

[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: Wed, 9 May 2001 17:28:58 -0400
User-agent: Mutt/1.2.5i

On Wed, May 09, 2001 at 09:43:53AM -0700, David Ellement wrote:
> I built ncurses-5.2-20010505 using:
>     ncurses-5.2.tar.gz
>     patch-5.2-20010324.sh
>     ncurses-5.2-20010331.patch.gz
>     ncurses-5.2-20010407.patch.gz
>     ncurses-5.2-20010414.patch.gz
>     ncurses-5.2-20010421.patch.gz
>     ncurses-5.2-20010505.patch.gz
> 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).

-- I'll add a check for that case (the library should be ok though).

> GNU gdb 4.18
> Copyright 1998 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 "hppa2.0-hp-hpux10.20"...
> Core was generated by `ncurses'.
> Program terminated with signal 11, Segmentation fault.
> warning: The shared libraries were not privately mapped; setting a
> breakpoint in a shared library will not work until you rerun the program.
> Reading symbols from ncurses...done.
> Reading symbols from /usr/lib/libc.1...done.
> Reading symbols from /usr/lib/libdld.1...done.
> Reading symbols from /usr/lib/nls/loc/locales.1/en_US.iso88591...done.
> #0  0xe670 in attr_test () at ../test/ncurses.c:501
> 501                 if (!pairs[pair]) {
> (gdb) bt
> #0  0xe670 in attr_test () at ../test/ncurses.c:501
> #1  0x18334 in do_single_test (c=98 'b') at ../test/ncurses.c:3261
> #2  0x18d48 in main (argc=1, argv=0x7b03bdbc) at ../test/ncurses.c:3585
> -- 
> David Ellement
> _______________________________________________
> Bug-ncurses mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/bug-ncurses

Thomas E. Dickey <address@hidden>

reply via email to

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