delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/05/24/09:18:51

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Mon, 24 May 2004 14:24:28 +0100
From: Roger Leigh <roger DOT leigh AT epictechnology DOT co DOT uk>
To: cygwin AT cygwin DOT com
Subject: Identifying pthread threading bug
Message-ID: <20040524132428.GA1462@system10>
Mime-Version: 1.0
X-GPG-Key: 0x25BFB848
X-Debian: testing/unstable
X-OS-Uptime: 14:14:07 up 3 min, 3 users, load average: 0.45, 0.25, 0.10
User-Agent: Mutt/1.5.5.1+cvs20040105i

I am building glib on cygwin, using this release:

http://ftp.gnome.org/pub/GNOME/desktop/2.6/2.6.1/sources/glib-2.4.1.tar.bz2

When I build with

  ./configure -C --prefix=/usr --enable-threads --with-libiconv \
                 --enable-shared --disable-static

the build succeeds, but the unit test test/child-test waits indefinitely
on a child.

When I build with

  ./configure -C --prefix=/usr --disable-threads --with-libiconv \
                 --enable-shared --disable-static
  
the test succeeds.

I infer that the problem is due to enabling threading, and since the
code works on most, if not all, other platforms supporting POSIX
threads, I think it's likely that it's doing something that Cygwin
doesn't like, or is racy.  Could anyone suggest how I might track down
the cause of the problem?  I'm not particularly familiar with the Cygwin
internals, or threading, but I'm OK with gdb and C.


Many thanks,
Roger

-- 
Roger Leigh

                Printing on GNU/Linux?  http://gimp-print.sourceforge.net/
                GPG Public Key: 0x25BFB848.  Please sign and encrypt your mail.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.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