delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/10/16/20:36:38

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Date: Tue, 16 Oct 2001 20:36:56 -0400
From: Christopher Faylor <cygwin AT cygwin DOT com>
To: Nemeth Marton <nm127 AT hszk DOT bme DOT hu>
Cc: cygwin AT cygwin DOT com
Subject: Re: pthread: thread switching bug?
Message-ID: <20011016203656.A30680@redhat.com>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: Nemeth Marton <nm127 AT hszk DOT bme DOT hu>, cygwin AT cygwin DOT com
References: <3BCCB65E DOT 77D66FE2 AT hszk DOT bme DOT hu>
Mime-Version: 1.0
In-Reply-To: <3BCCB65E.77D66FE2@hszk.bme.hu>
User-Agent: Mutt/1.3.21i

Please check out the project web page for links to available information
and ports:  http://cygwin.com/ .

If you don't see what you need there, then the cygwin mailing list is
the best place to make observations or get questions answered.
Information on the mailing list is available at the project web page.

For your convenience, I've reset the Reply-To: address to point to the
cygwin mailing list.  I've also Cc'ed this reply there.

On Wed, Oct 17, 2001 at 12:36:14AM +0200, Nemeth Marton wrote:
>Hi!
>
>I have written a little program using threads. If I complie with gcc &
>run it under Linux, it works fine.
>
>But when I complied with cygwin's gcc (used versions bellow), and run it
>there was some run where not all the newline characters were on the
>right place, like this:
>
>I'm thread #0, i=0, shared_data=0I'm thread #1, i=0, shared_data=1
>
>I'm thread #0, i=1, shared_data=2
>I'm thread #1, i=1, shared_data=3
>I'm thread #1, i=2, shared_data=4
>I'm thread #0, i=2, shared_data=5
>I'm thread #0, i=3, shared_data=6
>I'm thread #1, i=3, shared_data=7
>I'm thread #0, i=4, shared_data=8
>I'm thread #1, i=4, shared_data=9
>I'm thread #0, i=5, shared_data=10
>I'm thread #1, i=5, shared_data=11
>I'm thread #0, i=6, shared_data=12
>I'm thread #1, i=6, shared_data=13
>I'm thread #0, i=7, shared_data=14
>I'm thread #1, i=7, shared_data=15
>I'm thread #0, i=8, shared_data=16
>I'm thread #1, i=8, shared_data=17
>I'm thread #0, i=9, shared_data=18
>I'm thread #1, i=9, shared_data=19
>I'm thread #0, i=10, shared_data=20
>I'm thread #1, i=10, shared_data=21
>
>-------------------------------------
>
>I used the fallowing versions:
>$ gcc --version
>2.95.3-5
>
>$ /lib/gcc-lib/i686-pc-cygwin/2.95.3-5/cc1.exe -version
>GNU C version 2.95.3-5 (cygwin special) (i686-pc-cygwin) compiled by GNU
>C version 2.95.3-5 (cygwin specia
>l).
>options passed:
>options enabled:  -fpeephole -ffunction-cse -fkeep-static-consts
> -freg-struct-return -fsched-interblock -fsched-spec -fsjlj-exceptions
> -fcommon -fgnu-linker -fgcc-struct -fargument-alias -fident -m80387
> -mhard-float -mno-soft-float -mieee-fp -mfp-ret-in-387
>-mschedule-prologue
> -mstack-arg-probe -mcpu=pentiumpro -march=pentium
>
>$ /lib/gcc-lib/i686-pc-cygwin/2.95.3-5/collect2.exe -version
>GNU ld 2.11.92
>Copyright 2001 Free Software Foundation, Inc.
>This program is free software; you may redistribute it under the terms
>of
>the GNU General Public License.  This program has absolutely no
>warranty.
>  Supported emulations:
>   i386pe
>
>$ ld -version
>GNU ld 2.11.92
>Copyright 2001 Free Software Foundation, Inc.
>This program is free software; you may redistribute it under the terms
>of
>the GNU General Public License.  This program has absolutely no
>warranty.
>  Supported emulations:
>   i386pe
>
>
>$ cygcheck
>
>Cygnus Win95/NT Configuration Diagnostics
>Current System Time: Tue Oct 16 22:04:32 2001
>
>Win95 Ver 4.0 build 67109975  B
>
>Path:   /usr/local/bin
>        /usr/bin
>        /bin
>        /cygdrive/c/WINDOWS
>        /cygdrive/c/WINDOWS/COMMAND
>        /cygdrive/d/PROGRA~1/MICROS~2/OFFICE
>        /cygdrive/c/WINDOWS
>        /cygdrive/c/WINDOWS/COMMAND
>        /cygdrive/c/PROGRA~1/BORLAND/CBUILDER/BIN
>
>SysDir: C:\WINDOWS\SYSTEM
>WinDir: C:\WINDOWS
>
>PWD = `/home/samba'
>USER = `samba'
>MAKE_MODE = `unix'
>HOME = `/home/samba'
>
>PROMPT = `$p$g'
>COMSPEC = `C:\WINDOWS\COMMAND.COM'
>!C: = `C:\prg\cygwin\bin'
>CMDLINE = `bash --login -i'
>HOSTNAME = `NEMETH'
>CONFIG = `win95'
>WINDIR = `C:\WINDOWS'
>WINBOOTDIR = `C:\WINDOWS'
>PS1 = `\[\033]0;\w\007
>\033[32m\]\u@\h \[\033[33m\w\033[0m\]
>$ '
>BLASTER = `A220 I5 D1 T4'
>MACHTYPE = `i686-pc-cygwin'
>OLDPWD = `/usr/bin'
>TEMP = `/cygdrive/c/tmp'
>TMP = `/cygdrive/c/tmp'
>SHLVL = `1'
>WXWIN = `D:\PROGRA~1\WX2'
>SHELL = `/bin/bash'
>HOSTTYPE = `i686'
>OSTYPE = `cygwin'
>TERM = `cygwin'
>_ = `/usr/bin/cygcheck.exe'
>
>HKEY_CURRENT_USER\Software\Cygnus Solutions
>HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin
>HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2
>  (default) = `/cygdrive'
>  cygdrive flags = 0x00000022
>HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\Program Options
>HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions
>HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin
>HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2
>HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/
>  (default) = `C:/prg/cygwin'
>  flags = 0x0000000a
>HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/bin
>  (default) = `C:/prg/cygwin/bin'
>  flags = 0x0000000a
>HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/lib
>  (default) = `C:/prg/cygwin/lib'
>  flags = 0x0000000a
>HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\Program Options
>
>a:  fd           N/A    N/A                    
>c:  hd  FAT     2047Mb  92% CP    UN           SYS_WIN95
>d:  hd  FAT     2013Mb  92% CP    UN           
>e:  cd           N/A    N/A                    
>
>C:\prg\cygwin\bin  /usr/bin  system  binmode
>C:\prg\cygwin\lib  /usr/lib  system  binmode
>C:\prg\cygwin  /        system  binmode
>c:    /cygdrive/c  user    binmode,noumount
>d:    /cygdrive/d  user    binmode,noumount
>
>Found: C:\prg\cygwin\bin\bash.exe
>Found: C:\prg\cygwin\bin\cat.exe
>Found: C:\prg\cygwin\bin\cpp.exe
>Found: C:\prg\cygwin\bin\find.exe
>Found: c:\WINDOWS\COMMAND\find.exe
>Warning: C:\prg\cygwin\bin\find.exe hides c:\WINDOWS\COMMAND\find.exe
>Found: C:\prg\cygwin\bin\gcc.exe
>Found: C:\prg\cygwin\bin\gdb.exe
>Found: C:\prg\cygwin\bin\ld.exe
>Found: C:\prg\cygwin\bin\ls.exe
>Found: C:\prg\cygwin\bin\make.exe
>Found: C:\prg\cygwin\bin\sh.exe
>
>  701k 2001/09/13 C:\WINDOWS\SYSTEM\cygwin1.dll - os=4.0 img=1.0 sys=4.0
>                  "cygwin1.dll" v0.0 ts=2001/9/13 3:54
>    Cygwin DLL version info:
>        dll major: 1003
>        dll minor: 3
>        dll epoch: 19
>        dll bad signal mask: 19005
>        dll old termios: 5
>        dll malloc env: 28
>        api major: 0
>        api minor: 46
>        shared data: 3
>        dll identifier: cygwin1
>        mount registry: 2
>        cygnus registry name: Cygnus Solutions
>        cygwin registry name: Cygwin
>        program options name: Program Options
>        cygwin mount registry name: mounts v2
>        cygdrive flags: cygdrive flags
>        cygdrive prefix: cygdrive prefix
>        cygdrive default prefix: 
>        build date: Wed Sep 12 23:54:31 EDT 2001
>        shared id: cygwin1S3
>
>   56k 2000/12/03 C:\prg\cygwin\bin\cygbz21.0.dll - os=4.0 img=1.0
>sys=4.0
>                  "cygbz21.0.dll" v0.0 ts=2000/11/20 23:53
>   81k 2000/12/05 C:\prg\cygwin\bin\cygitcl30.dll - os=4.0 img=1.0
>sys=4.0
>                  "cygitcl30.dll" v0.0 ts=2000/11/26 1:43
>   35k 2000/12/05 C:\prg\cygwin\bin\cygitk30.dll - os=4.0 img=1.0
>sys=4.0
>                  "cygitk30.dll" v0.0 ts=2000/11/26 1:43
>  390k 2000/12/05 C:\prg\cygwin\bin\cygtcl80.dll - os=4.0 img=1.0
>sys=4.0
>                  "cygtcl80.dll" v0.0 ts=2000/11/26 1:39
>    5k 2000/12/05 C:\prg\cygwin\bin\cygtclpip80.dll - os=4.0 img=1.0
>sys=4.0
>   10k 2000/12/05 C:\prg\cygwin\bin\cygtclreg80.dll - os=4.0 img=1.0
>sys=4.0
>                  "cygtclreg80.dll" v0.0 ts=2000/11/26 1:39
>  623k 2000/12/05 C:\prg\cygwin\bin\cygtk80.dll - os=4.0 img=1.0 sys=4.0
>                  "cygtk80.dll" v0.0 ts=2000/11/26 1:43
>   45k 2001/04/25 C:\prg\cygwin\bin\cygform5.dll - os=4.0 img=1.0
>sys=4.0
>                  "cygform5.dll" v0.0 ts=2001/4/25 5:28
>   26k 2001/04/25 C:\prg\cygwin\bin\cygmenu5.dll - os=4.0 img=1.0
>sys=4.0
>                  "cygmenu5.dll" v0.0 ts=2001/4/25 5:27
>  156k 2001/04/25 C:\prg\cygwin\bin\cygncurses++5.dll - os=4.0 img=1.0
>sys=4.0
>                  "cygncurses++5.dll" v0.0 ts=2001/4/25 5:29
>  226k 2001/04/25 C:\prg\cygwin\bin\cygncurses5.dll - os=4.0 img=1.0
>sys=4.0
>                  "cygncurses5.dll" v0.0 ts=2001/4/25 5:17
>   15k 2001/04/25 C:\prg\cygwin\bin\cygpanel5.dll - os=4.0 img=1.0
>sys=4.0
>                  "cygpanel5.dll" v0.0 ts=2001/4/25 5:27
>   34k 2001/09/30 C:\prg\cygwin\bin\cygform6.dll - os=4.0 img=1.0
>sys=4.0
>                  "cygform6.dll" v0.0 ts=2001/9/30 2:43
>   19k 2001/09/30 C:\prg\cygwin\bin\cygmenu6.dll - os=4.0 img=1.0
>sys=4.0
>                  "cygmenu6.dll" v0.0 ts=2001/9/30 2:43
>  175k 2001/09/30 C:\prg\cygwin\bin\cygncurses++6.dll - os=4.0 img=1.0
>sys=4.0
>                  "cygncurses++6.dll" v0.0 ts=2001/9/30 2:45
>  201k 2001/09/30 C:\prg\cygwin\bin\cygncurses6.dll - os=4.0 img=1.0
>sys=4.0
>                  "cygncurses6.dll" v0.0 ts=2001/9/30 2:42
>   12k 2001/09/30 C:\prg\cygwin\bin\cygpanel6.dll - os=4.0 img=1.0
>sys=4.0
>                  "cygpanel6.dll" v0.0 ts=2001/9/30 2:43
>   49k 2001/02/03 C:\prg\cygwin\bin\cygz.dll - os=4.0 img=1.0 sys=4.0
>                  "cygz.dll" v0.0 ts=2001/2/3 20:35
>Use -h to see help about each section

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019