Red Hat Bugzilla – Bug 56670
ncurses mvgatch() function segfaults
Last modified: 2007-04-18 12:38:24 EDT
From Bugzilla Helper:
User-Agent: Mozilla/4.78 [en] (X11; U; Linux 2.4.9-13 i686)
Description of problem:
$ rpm -q --whatprovides /usr/lib/libncurses.so
$ cat broke.c
attr = 0;
mvchgat(0, 0, 40, attr, 0, NULL);
$ gcc -g -o broke broke.c -lm -lncurses
Well, there's the problem, alrlright!
If linked against the libncurses.so that was in RH 7.0, it works fine.
Version-Release number of selected component (if applicable):
Here's a workaround if you have the luxury of being able to recompile the
application... but it won't fix any applications that are binary-only...
// Busted in RH 7.2
mvchgat(y, x, wid, attr, 0, NULL);
for (i = 0; i < wid; ++i)
ch = mvinch(y, x+i);
ch &= 0xff;
ch |= attr;
mvaddch(y, x+i, ch);
Fixed in 5.2-13
I am confused. This library is fundamental to the proper operation of Curses
Why isn't the fix being made available to all Redhat 7.2 users via Update
Agent? Is it
Redhat's intent that binary applications must be statically linked with a
rather than with the broken dynamic library supplied in RH 7.2?