http://bugs.winehq.org/show_bug.cgi?id=19615
Summary: Can't compile Inkscape with mingw on wine: fd leak? Product: Wine Version: 1.1.26 Platform: PC URL: http://kegel.com/wine/inkscape-download-and-build.sh.t xt OS/Version: Linux Status: NEW Keywords: download Severity: normal Priority: P2 Component: wineserver AssignedTo: wine-bugs@winehq.org ReportedBy: dank@kegel.com
http://kegel.com/wine/inkscape-download-and-build.sh.txt is a simple script that downloads all of the prerequisites for building inkscape on windows, grabs the source from svn, and builds it. Read the comments at the top to see how to run it in cygwin (and in cygwin on wine).
This script runs to completion on Windows, but on Wine, it failed for me with
Make error line 291: executeProgram: could not create pipe
when compiling src/xml/subtree.cpp (the 770th file out of 844).
Oddly, rerunning the script in the same wineconsole window failed quickly with various symptoms, including "ld.exe: crt2.o: No such file: Too many open files"
Even more oddly, problem persisted even in a new wineconsole window; bash just wasn't happy.
wineserver -k elicited the following messages:
... 0x8833cc0:1: Fd unix_fd=474 user=0x877ec68 options=00000010 0x882e3b8:1: Fd unix_fd=-1 user=0x877ec68 options=00000010 0x877ec68:4: Named pipe server pipe=0x8824608 state=3 0x8824608:1: Named pipe name=L"Win32.Pipes.00000012.00000739" 0x8833c48:1: Fd unix_fd=473 user=0x8816378 options=00000010 0x882b138:1: Fd unix_fd=-1 user=0x8816378 options=00000010 0x8816378:4: Named pipe server pipe=0x8833f80 state=3 0x8833f80:1: Named pipe name=L"Win32.Pipes.00000012.00000736" 0x8813520:1: Fd unix_fd=472 user=0x87dcfb8 options=00000010 0x8833f08:1: Fd unix_fd=-1 user=0x87dcfb8 options=00000010 0x87dcfb8:4: Named pipe server pipe=0x87d9038 state=3 0x87d9038:1: Named pipe name=L"Win32.Pipes.00000012.00000733" 0x882eeb8:1: Fd unix_fd=471 user=0x87dae30 options=00000010 0x8833fd0:1: Fd unix_fd=-1 user=0x87dae30 options=00000010 0x87dae30:4: Named pipe server pipe=0x87e2418 state=3 0x87e2418:1: Named pipe name=L"Win32.Pipes.00000012.00000730" 0x882f3b0:1: Fd unix_fd=470 user=0x880c2a8 options=00000010 0x880ba30:1: Fd unix_fd=-1 user=0x880c2a8 options=00000010 ...
After that, starting a new wineconsole let me run cygwin.bat again, and running ink.sh again picked up the build more or less where it left off.
So it appears wine(server) has an fd leak related to pipes?
http://bugs.winehq.org/show_bug.cgi?id=19615
--- Comment #1 from Dan Kegel dank@kegel.com 2009-08-07 00:55:50 --- Completed second time around, btw.
(The resulting binary doesn't run because it can't find a bunch of dlls, but I think that's the case on windows, too...)
http://bugs.winehq.org/show_bug.cgi?id=19615
--- Comment #2 from Dan Kegel dank@kegel.com 2009-08-07 01:06:41 --- I take that back. To start it on Wine, you need to run
set MINGW_BIN=c:\mingw\bin set GTKDOS=c:\devlibs set PATH=%MINGW_BIN%;%GTKDOS%\bin;%PATH% cd build inkscape
and then it starts up nicely. So we're one leak away from having a successful build.
http://bugs.winehq.org/show_bug.cgi?id=19615
--- Comment #3 from Dan Kegel dank@kegel.com 2009-08-07 02:40:32 --- Workaround: sudo bash ulimit -n 10000 su YOURNAME This raises the limit on file descriptors, and lets the build finish.
http://bugs.winehq.org/show_bug.cgi?id=19615
André H. nerv@dawncrow.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |nerv@dawncrow.de
http://bugs.winehq.org/show_bug.cgi?id=19615
Bruno Jesus 00cpxxx@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |00cpxxx@gmail.com
--- Comment #4 from Bruno Jesus 00cpxxx@gmail.com 2012-01-25 16:49:22 CST --- Friendly reminder of over 2 years without new posts. Dan, is this still a problem?
https://bugs.winehq.org/show_bug.cgi?id=19615
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |ABANDONED
--- Comment #5 from Austin English austinenglish@gmail.com --- (In reply to Bruno Jesus from comment #4)
Friendly reminder of over 2 years without new posts. Dan, is this still a problem?
The urls in the script are dead, and no reply. If you revisit and it's still an issue, reopen, but I think it should be closed.
https://bugs.winehq.org/show_bug.cgi?id=19615
austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #6 from austinenglish@gmail.com --- Closing.