bug-ncurses
[Top][All Lists]
Advanced

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

Re: Strange ncurses bug with getch() and window resize?


From: Simon Stelling
Subject: Re: Strange ncurses bug with getch() and window resize?
Date: Sat, 05 Aug 2006 12:14:01 +0200
User-agent: Thunderbird 1.5.0.5 (X11/20060731)

Hi Thomas,

Thanks for your fast answer.

Thomas Dickey wrote:
hmm. I downloaded the program (will do that _once_ - make a tar file of it if you want to pursue this), and tried running it. The program dumps core immediately. Here's the relevant chunk from valgrind:

Ugh, I would have happily provided a tarball if I knew you wanted to run the app :| Anyway, you can find a complete tarball of the source at: http://blubb.ch/temp/conf-update-resizebug.tar.bz2

==10384== 1 errors in context 1 of 1:
==10384== Invalid read of size 1
==10384==    at 0x421427D: fclose@@GLIBC_2.1 (iofclose.c:52)
==10384==    by 0x804AB93: sanity_checks (helpers.c:224)
==10384==    by 0x804B6EE: main (conf-update.c:29)
==10384==  Address 0x46 is not stack'd, malloc'd or (recently) free'd

Heh, forgot about that. It only occurs if you are running it as non-root. (The tool is meant to faciliate merging new versions of configuration files, therefore requires root). However, I think in the version you downloaded it will just segfault on the next occation. The tarball linked to above will work though.

Although the app has not yet done any harm to my installation, I'd suggest you use the sandbox included in the tarball:

cd conf-update
make
su
export SANDBOX=$(pwd)/sandbox # The path must be absolute
./conf-update

(Note that it leaves behind /var/lib/conf-update/md5sum_index, which you probably want to delete afterwards.)

--
Kind Regards,

Simon Stelling
Gentoo/AMD64 Developer




reply via email to

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