martin.petz@onlinecontest.org
2007-Mar-19 18:45 UTC
[Wine] epoll_ctl: Operation not permitted
Hi, I am using wine-0.9.30 (self compiled) on a Debian 3.1 server. Wine is required for CUI-applications, so no X-Server is running. When I log in via ssh and start the application, wine is working fine. But whenever I try it from the webserver via php-script, wine doesn't start properly. It fills the errout with "epoll_ctl: Operation not permitted" unitl I send a SIGKILL to the process. Making me the web-server's user vi su, I can run wine and the application without problems. Using Xvfb or not makes no difference. I activated WINEDEBUG=+all, but it seems no dll is loaded. All I see is the subject failure. Would be great if someone has a hint. Thanks, Martin Petz
martin.petz@onlinecontest.org wrote:> I am using wine-0.9.30 (self compiled) on a Debian 3.1 server. Wine is > required for CUI-applications, so no X-Server is running. > When I log in via ssh and start the application, wine is working > fine. > But whenever I try it from the webserver via php-script, wine doesn't > start properly. It fills the errout with "epoll_ctl: Operation not > permitted" unitl I send a SIGKILL to the process.It seems epoll_ctl is used in only one file, server/fd.c. The only place where this messages can come from is line 427, 'else perror ( "epoll_ctl" );' According to epoll_ctl (2), "Operation not permitted" propably is 'EPERM' which in this context means the operation is not supported on the given file. The next step is to identify the file which is causing these problems. Please change line 427 to --- snip --- else { perror( "epoll_ctl" ); fprintf( stderr, "fd: %d\n", fd->unix_fd); } --- snip --- and recompile. Now, when you see this error again, keep the process running and take note of the numbers that are printed out behind "fd: ". Obtain the PID of wineserver, then # ls -l /proc/wineserverpid/fd/ This will allow you, if possible, to look up the mapping between the fd numbers and actual filenames. Post those filenames here, along with access permissions and the output of 'file' for these files. Daniel -- Read the Wine FAQ: http://winehq.org/site/docs/wine-faq/index Read the Wine User Guide: http://winehq.org/site/docs/wineusr-guide/index When you post: Which wine version? Self compiled or prepackaged?
Apparently Analagous Threads
- Login Fails: epoll_ctl(1, 7): Operation not permitted
- Fatal: imap-login: io_loop_handle_add: epoll_ctl(1, 4): Operation not permitted
- epoll_ctl: Operation not permitted
- v1.2.beta2: Fatal: io_loop_handle_add: epoll_ctl(1, 10): Bad file descriptor
- 1.2.beta4: Fatal: io_loop_handle_add: epoll_ctl(1, 11): Bad file descriptor