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]

Identifying pthread threading bug


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/


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