Problem w/ c++,threads,static initializers

2003-06-07 Thread Rasmus Hahn
Hello, i am using cygwin on my Windows2000 and my c++ program segfaults when using pthread-mutexes. In particular i am using a lot of mutexes from within constructors of static objects. These constructors are called at a very early time of execution of the program and do calls of pthread_mutex_ini

Re: Problem w/ c++,threads,static initializers

2003-06-09 Thread Rasmus Hahn
main () { use_D (make_D ()); } // end of code On Sat, Jun 07, 2003 at 01:48:27PM -0400, Larry Hall wrote: > Rasmus Hahn wrote: > > > BTW i am using cygwin snapshot 20030602 compiled with gcc-3.3 since the > > out-of-the-box gcc from the cygwin-package is a prerelease and definitel

Re: Problem w/ c++,threads,static initializers

2003-06-10 Thread Rasmus Hahn
On Tue, Jun 10, 2003 at 09:25:43AM +0200, Thomas Pfaff wrote: > Rasmus Hahn wrote: > > > Hello, > > > > i am using cygwin on my Windows2000 and my c++ program segfaults > > when using pthread-mutexes. In particular i am using a lot of > > mutexes from within c

Re: Problem w/ c++,threads,static initializers

2003-06-10 Thread Rasmus Hahn
now this is fixed in version > 3.3, then we all have something to look forward to. ;-) If not, you may > want to report it to the gcc list. > > Larry > > > Rasmus Hahn wrote: > > However, the cygwin-gcc is not a 3.3 and is has some bugs. Since the cygwin > >

Re: Problem w/ c++,threads,static initializers

2003-06-11 Thread Rasmus Hahn
clude int main () { pthread_mutexattr_t attr; pthread_mutexattr_init (&attr); if (pthread_mutexattr_init (&attr)) { printf ("error should not happen\n"); } } Greetings - Rasmus > Rasmus Hahn wrote: > > On Tue, Jun 10, 2003 at 09:25:43AM +0200, Thomas Pf

Strange behaviour w/ read/write

2003-11-19 Thread Rasmus Hahn
Hi I am using the current cygwin version (dll version 1-5-5-1) and see some strange behaviour while using the read/write system calls. In short: I open a file with mode O_RDWR|O_CREAT, write exactly 1MB into it and then after seeking to position 0 read the Megabyte back. Strange things seem to hap