http://bugs.winehq.org/show_bug.cgi?id=24018
--- Comment #17 from Andrey Turkin andrey.turkin@gmail.com 2013-08-10 03:52:11 CDT ---
first postinstall script created an empty /etc/fstab file rather than what was intended (presumably because of some Wine bug or regression) and that may have had a snowball effect on everything else resulting in the many "Read-only file system" error messages above.
This turned out to be an issue with Wine which makes "unlink" syscall to not work which is really bad, and in particular it makes bash's heredoc (and probably all tmpfile operations) to fail. Wine needs to implement FileDispositionInformation class; there is a bug 30397 for that already, already filled (as usual) excellent description from Anastasius Focht. I suggest to close this bug (about the crash - investigated and fixed in Cygwin) and move to that bug (probably bump its importance and mark as blocker to Cygwin too).