This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

cygwin 1.5.20-1 problem writing to stdout


A program, which Iâve had for years and which has worked on many 
different Unix variants, stopped working when I upgraded to cygwin 
1.5.20-1. When I back-installed 1.5.19-4, it resumed working. 
Actually, the program functioned fine, but output to stdout was 
stifled. I was able to reduce the program to the following few lines, 
which exhibit the problem:

=========== xyz.c ================
#include <stdio.h>

static char b[4001];
static char *whoami;

int main (int argc, char *argv[])
{
   puts ("hello");
   return 0;
}
==================================

(The unreferenced variables are indeed referenced in the larger 
program and are required for this smaller program to exhibit the 
problem.)

I compiled with gcc (3.4.4-1) as follows: gcc xyz.c -o xyz

When run under 1.5.19-4, it works as expected, writing "hello" to 
stdout.

However, when run under 1.5.20-1, it does not output anything, but 
otherwise returns normally.

The problem is unrelated to terminal I/O because output is stifled
even when stdout is redirected to a file.

Removing either the b or whoami variables or reducing 4001 to 4000 
allows the program to work again.

I'd like to hear if anyone else can reproduce this problem.

Below, I copy my "cygcheck -s" output with my cygwin 1.5.19-4 
installation. The only change to this to get the program to fail is 
updating cygwin to 1.5.20-1.

--Ken Nellis

====================== cygcheck -s ========================
Cygwin Package Information
Package              Version            Status
_update-info-dir     00403-1            OK
alternatives         1.3.20a-2          OK
ash                  20040127-3         OK
base-files           3.7-1              OK
base-passwd          2.2-1              OK
bash                 3.1-6              OK
binutils             20050610-1         OK
bzip2                1.0.3-1            OK
ccrypt               1.7-1              OK
clear                1.0-2              OK
compface             1.5.2-1            OK
coreutils            5.94-1             OK
crypt                1.1-1              OK
ctags                5.6-1              OK
curl                 7.15.4-1           OK
cvs                  1.11.17-1          OK
cygrunsrv            1.17-1             OK
cygutils             1.3.0-1            OK
cygwin               1.5.19-4           OK
cygwin-doc           1.4-3              OK
diffutils            2.8.7-1            OK
e2fsprogs            1.35-3             OK
ed                   0.2-1              OK
editrights           1.01-1             OK
emacs                21.2-13            OK
enscript             1.6.4-1            OK
expat                1.95.8-1           OK
expect               20030128-1         OK
file                 4.16-1             OK
findutils            4.2.27-1           OK
fontconfig           2.2.2-1            OK
freetype2            2.1.9-1            OK
gawk                 3.1.5-4            OK
gcc-core             3.4.4-1            OK
gcc-g++              3.4.4-1            OK
gcc-mingw-core       20050522-1         OK
gcc-mingw-g++        20050522-1         OK
gdbm                 1.8.3-7            OK
gettext              0.14.5-1           OK
ghostscript          8.50-1             OK
ghostscript-base     8.50-1             OK
ghostscript-x11      8.50-1             OK
gmp                  4.1.4-2            OK
grep                 2.5.1a-2           OK
groff                1.18.1-2           OK
guile                1.6.7-4            OK
guile-devel          1.6.7-4            OK
guile-doc            1.6.7-4            OK
gzip                 1.3.5-2            OK
ioperm               0.4-1              OK
jbigkit              1.5-3              OK
less                 381-1              OK
lesstif              0.93.94-2          OK
libbz2_1             1.0.3-1            OK
libcharset1          1.9.2-2            OK
libcurl3             7.15.4-1           OK
libdb4.2             4.2.52-1           OK
libdb4.3             4.3.28-1           OK
libfontconfig1       2.2.2-1            OK
libfreetype26        2.1.9-1            OK
libgdbm              1.8.0-5            OK
libgdbm-devel        1.8.3-7            OK
libgdbm3             1.8.3-3            OK
libgdbm4             1.8.3-7            OK
libguile12           1.6.7-4            OK
libguile16           1.7.2-3            OK
libiconv             1.9.2-2            OK
libiconv2            1.9.2-2            OK
libintl              0.10.38-3          OK
libintl1             0.10.40-1          OK
libintl2             0.12.1-3           OK
libintl3             0.14.5-1           OK
libjpeg62            6b-11              OK
libkpathsea3         2.0.2-15           OK
libkpathsea4         3.0.0-3            OK
libncurses5          5.2-1              OK
libncurses6          5.2-8              OK
libncurses7          5.3-4              OK
libncurses8          5.5-2              OK
libnetpbm10          10.30-1            OK
libopenldap2_2_7     2.2.26-2           OK
libpcre0             6.3-1              OK
libpng               1.2.8-2            OK
libpng12             1.2.8-2            OK
libpopt0             1.6.4-4            OK
libreadline4         4.1-2              OK
libreadline5         4.3-5              OK
libreadline6         5.1-5              OK
libsasl2             2.1.19-3           OK
libtiff4             3.6.0-5            OK
libtiff5             3.7.3-1            OK
libXft               2.1.6-1            OK
libXft1              1.0.0-1            OK
libXft2              2.1.6-1            OK
login                1.9-7              OK
make                 3.80-1             OK
man                  1.5p-1             OK
mingw-runtime        3.10-1             OK
minires              1.00-1             OK
mktemp               1.5-3              OK
ncurses              5.5-2              OK
netpbm               10.30-1            OK
openssh              4.3p2-3            OK
openssl              0.9.8b-1           OK
openssl097           0.9.7j-1           OK
patch                2.5.8-8            OK
pcre                 6.3-1              OK
pcre-devel           6.3-1              OK
pcre-doc             6.3-1              OK
perl                 5.8.7-5            OK
ping                 1.0-1              OK
postgresql           8.0.7-1            OK
psmisc               21.5-2             OK
rsync                2.6.6-1            OK
run                  1.1.10-1           OK
rxvt                 20050409-3         OK
sed                  4.1.5-1            OK
tar                  1.15.1-4           OK
tcltk                20030901-1         OK
termcap              20050421-1         OK
terminfo             5.5_20060323-1     OK
tetex-base           3.0.0-3            OK
tetex-bin            3.0.0-3            OK
tetex-devel          3.0.0-3            OK
tetex-extra          3.0.0-3            OK
texinfo              4.8-3              OK
time                 1.7-1              OK
transfig             3.2.4-2            OK
tzcode               2005r-2            OK
util-linux           2.12r-2            OK
vim                  7.0.035-1          OK
w32api               3.7-1              OK
which                1.7-1              OK
X-startup-scripts    1.0.11-1           OK
Xaw3d                1.5D-5             OK
xemacs               21.4.19-1          OK
xorg-x11-base        6.8.2.0-1          OK
xorg-x11-bin         6.8.2.0-1          OK
xorg-x11-bin-dlls    6.8.2.0-1          OK
xorg-x11-bin-lndir   6.8.2.0-1          OK
xorg-x11-etc         6.8.2.0-1          OK
xorg-x11-fenc        6.8.1.0-2          OK
xorg-x11-fnts        6.8.1.0-3          OK
xorg-x11-libs-data   6.8.2.0-1          OK
xorg-x11-xwin        6.8.2.0-4          OK
xterm                202-1              OK
zlib                 1.2.3-1            OK
===========================================================

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]