public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Re: Failure with fork()
@ 2013-06-28  7:55 Alan W. Irwin
  2013-06-28  7:59 ` marco atzeri
                   ` (2 more replies)
  0 siblings, 3 replies; 34+ messages in thread
From: Alan W. Irwin @ 2013-06-28  7:55 UTC (permalink / raw)
  To: cygwin

I am getting absolutely nowhere.

A script run by setup.exe in the latter part of the install steps
appears to hang now with or without updating cygwin1.dll to the
fork-fixed version.  I got this result for two versions of
wine which I have heavily tested in other ways, wine-1.5.19, and
a wine-git version near wine-1.6.0-rc1.

Here are the last few messages before the hang:

Installing file cygfile:///usr/share/man/man1/xzfgrep.1.gz
AddAccessAllowedAce(, group) failed: 1337
Installing file cygfile:///usr/share/man/man1/xzgrep.1.gz
AddAccessAllowedAce(, group) failed: 1337
Installing file cygfile:///usr/share/man/man1/xzless.1.gz
AddAccessAllowedAce(, group) failed: 1337
Installing file cygfile:///usr/share/man/man1/xzmore.1.gz
AddAccessAllowedAce(, group) failed: 1337
AddAccessAllowedAce(, group) failed: 1337
Extracting from
file://Z:\home\wine\newstart\cygwin\packages/http%3a%2f%2fmirrors.kernel.org%2fsourceware%2fcygwin%2f/release/zlib/zlib0/zlib0-1.2.8-1.tar.bz2
Installing file cygfile:///usr/bin/cygz.dll
AddAccessAllowedAce(, group) failed: 1337
AddAccessAllowedAce(, group) failed: 1337
Visited: 51 nodes out of 2986 while creating dependency order.
Dependency order of packages: base-cygwin sed gzip libpcre0 gettext
grep libmpfr4 gawk tzcode libgmp3 libattr1 libncurses10 texinfo _update-info-dir
libreadline7 terminfo libstdc++6 libncursesw10 libiconv2
libintl8 bash coreutils cygwin libgcc1 dash rebase _autorebase
alternatives findutils base-files libbz2_1 bzip2 libpopt0 cygutils diffutils
dos2unix editrights zlib0 file groff ipc-utils less liblzma5 login xz man
mintty run tar vim-minimal which
running: Z:\home\wine\newstart\cygwin\bin\bash.exe --norc --noprofile
"/etc/postinstall/000-cygwin-post-install.sh"

There is no obvious chance that I can see before that hang where I can
overwrite cygwin1.dll with the corrected version.  However, if I exit
the hang, overwrite cygwin1.dll, and run the above script
by hand it still hung (no cpu activity and no change in the
cygwin tree that changes its total size as measured to
the nearest byte with "du -s --bytes cygwin") for ~20 minutes
before I gave up.

By the way, after exiting after the first hang, if I simply
overwrite cygwin1.dll with the corrected version, then
run setup.exe the install stage errors out immediately with
the message "Can't open package database for writing.  File exists."
It's for that reason that I tried to run the hanging script by hand
to see if I could get any further.

I didn't get these hangs a month ago when I tried all this
before with wine-1.5.19.  Instead, at that time I got the exact error
message when running the above script concerning an unhandled page
fault that others have described at
http://bugs.winehq.org/show_bug.cgi?id=24018 and which the fork-fixed
cygwin1.dll is supposed to fix.  So presumably Cygwin's
bash.exe or some application executed by the above script has
changed in the last month to cause the different wine symptoms.
Or I am inadvertently doing something different than I did a month
ago.

So unless someone can suggest a method to get around the "Can't open
package database for writing.  File exists." message, and assuming
that method doesn't subsequently run into the script hang (which is a
big if), then I think it is time for someone with a lot more wine and
cygwin expertise than me to take over here to attempt to try and
figure out a way to run setup.exe on Wine with fork-fixed cygwin1.dll
overwriting the buggy version.

Alan
__________________________
Alan W. Irwin

Astronomical research affiliation with Department of Physics and Astronomy,
University of Victoria (astrowww.phys.uvic.ca).

Programming affiliations with the FreeEOS equation-of-state
implementation for stellar interiors (freeeos.sf.net); the Time
Ephemerides project (timeephem.sf.net); PLplot scientific plotting
software package (plplot.sf.net); the libLASi project
(unifont.org/lasi); the Loads of Linux Links project (loll.sf.net);
and the Linux Brochure Project (lbproject.sf.net).
__________________________

Linux-powered Science
__________________________

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 34+ messages in thread
* Re: Failure with fork()
@ 2013-06-27 18:58 Alan W. Irwin
  2013-06-27 19:01 ` marco atzeri
  2013-06-27 19:13 ` Alan W. Irwin
  0 siblings, 2 replies; 34+ messages in thread
From: Alan W. Irwin @ 2013-06-27 18:58 UTC (permalink / raw)
  To: cygwin

I have been following this thread with great interest via the archive,
but now I have newly subscribed to this list to ask additional
questions.

Corinna said "Should be fixed in CVS.  Thanks (to Arjen) for the report."

My thanks to Arjen for getting this thread started, and
my thanks to Corinna for so swiftly finding the fix.

I would now like to test this fix from a broader perspective of
attempting to run the fixed setup.exe version on Wine.

My background is I have had considerable success with using the
combination of MinGW, MSYS, and Wine as a build and test platform for
free software.  I would like to similarly attempt to use the
combination of Cygwin and Wine as a build and test platform for free
software but I was stopped from doing that because the last stage of
running Cygwin setup.exe on Wine ran into this fork issue.

The only Windows platform available to me is Wine.  And I have
no Cygwin on Wine experience at this stage because this fork bug shut
me out.  But now that it is fixed in CVS, how do I get access to
the fixed version of setup.exe?

Are there daily snapshot builds of the CVS version I could access?

Or do I have to build the CVS version of Cygwin from scratch on (the
Wine version of) Windows using MinGW and MSYS, and if so is there a
website with directions for how to do that?

Sorry for the Cygwin newbie questions, but I am quite experienced with
the Unix command line and building software both on Linux and on the
bash.exe command line accessible with MinGW/MSYS/Wine so I hope I will
only need hints to get started with (a) building the CVS version
of Cygwin with the fork fix, and (b) building and testing software for
the Cygwin on Wine platform.

Alan
__________________________
Alan W. Irwin

Astronomical research affiliation with Department of Physics and Astronomy,
University of Victoria (astrowww.phys.uvic.ca).

Programming affiliations with the FreeEOS equation-of-state
implementation for stellar interiors (freeeos.sf.net); the Time
Ephemerides project (timeephem.sf.net); PLplot scientific plotting
software package (plplot.sf.net); the libLASi project
(unifont.org/lasi); the Loads of Linux Links project (loll.sf.net);
and the Linux Brochure Project (lbproject.sf.net).
__________________________

Linux-powered Science
__________________________

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 34+ messages in thread
* Failure with fork()
@ 2013-06-27 10:49 Arjen Markus
  2013-06-27 11:27 ` Ryan Johnson
  0 siblings, 1 reply; 34+ messages in thread
From: Arjen Markus @ 2013-06-27 10:49 UTC (permalink / raw)
  To: cygwin

Hello,

the bug I am reporting here on behalf of Alan Irwin surfaced in the
combination wine and Cygwin (Alan summarised it here:
http://www.winehq.org/pipermail/wine-devel/2013-June/100328.html). It
has to do with the way Cygwin handles forks.

The bug can be illustrated with this small program:

int main(void) {
    while(!fork());
    return 0;
}

It is meant to enable infinite forking, but on Cygwin it immediately
stops. I tried
it on both Cygwin (not via wine but simply Windows 7) and Linux:
- On Linux the program continues without any problem
- On Cygwin it stops immediately with an error message that the child process
  terminated unexpectedly with some weird return code.

Can anyone shed light on this? This bug is a showstopper for the
combination wine
and Cygwin.

Regards,

Arjen

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 34+ messages in thread

end of thread, other threads:[~2013-07-05 20:48 UTC | newest]

Thread overview: 34+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-06-28  7:55 Failure with fork() Alan W. Irwin
2013-06-28  7:59 ` marco atzeri
2013-06-28  8:52   ` Corinna Vinschen
2013-06-28 10:16     ` gmt
2013-06-28 10:20       ` Corinna Vinschen
2013-06-28 19:05         ` Alan W. Irwin
2013-07-04 20:39           ` Failure with fork() (Cygwin on Wine install now sort of works) Alan W. Irwin
2013-07-05 19:30             ` Alan W. Irwin
2013-07-05 21:25               ` Christopher Faylor
2013-06-28  8:42 ` Failure with fork() Alan W. Irwin
2013-06-28  9:40 ` gmt
  -- strict thread matches above, loose matches on Subject: below --
2013-06-27 18:58 Alan W. Irwin
2013-06-27 19:01 ` marco atzeri
2013-06-27 19:45   ` Alan W. Irwin
2013-06-27 20:17     ` Achim Gratz
2013-06-27 20:33     ` gmt
2013-06-27 19:13 ` Alan W. Irwin
2013-06-27 19:15   ` marco atzeri
2013-06-27 20:43     ` Alan W. Irwin
2013-06-27 20:47       ` Christopher Faylor
2013-06-27 20:48       ` Larry Hall (Cygwin)
2013-06-27 20:56         ` Thrall, Bryan
2013-06-28  1:28           ` Larry Hall (Cygwin)
2013-06-27 20:55       ` Peter Rosin
2013-06-27 21:52       ` Yaakov (Cygwin/X)
2013-06-27 21:58         ` Alan W. Irwin
2013-06-27 21:59           ` Yaakov (Cygwin/X)
2013-06-28  9:19             ` Corinna Vinschen
2013-06-27 10:49 Arjen Markus
2013-06-27 11:27 ` Ryan Johnson
2013-06-27 11:29   ` Corinna Vinschen
2013-06-27 12:19     ` Arjen Markus
2013-06-27 17:01       ` Corinna Vinschen
2013-06-27 17:03       ` Christopher Faylor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).