Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Subject: Bug: rsync cannot be started as a service under Windows XP To: cygwin AT cygwin DOT com Message-ID: From: Christian DOT Poellmann AT dachser DOT com Date: Fri, 26 Sep 2003 11:11:19 +0200 MIME-Version: 1.0 Content-type: text/plain; charset=us-ascii Hi, I want to run rsync as a service on a Windows XP box. I have installed the service by using cygrunsrv: (The variable $sm_base points to D:/tmp ): cygrunsrv.exe -I "rsyncd" -p "$sm_base/install/rsync.exe" \ -a "--config=$sm_base/config/rsyncd.conf --daemon --no-detach" \ -d "rsyncd" -c "$sm_base/install" \ -1 D:/tmp/svc_stdout.txt -2 D:/tmp/svc_stderr.txt The binaries (cygwin1.dll, cygpopt.dll and rsync.exe ) are in place (D:/tmp/sys-mgmt/server/install) . After starting the service, I find this dump in D:/tmp/stderr.txt (see the -2 option in cygrunsrv): ----------------- snap --------------------------------------- Exception: STATUS_ACCESS_VIOLATION at eip=610BFC2E eax=0022E578 ebx=0040C1E9 ecx=00000000 edx=00000000 esi=00000000 edi=0022F95C ebp=0022F988 esp=0022E500 program=D: \tmp\sys-mgmt\server\install\rsync.exe cs=001B ds=0023 es=0023 fs=0038 gs=0000 ss=0023 Stack trace: Frame Function Args 0022F988 610BFC2E (610CB020, 00000000, 0040C1E9, 0022F9D8) 0022F9A8 610BFB44 (00000000, 0040C1E9, 0022F9D8, 61125B38) 0022F9C8 610B326F (00000000, 0040C1E9, 00431150, 00000C78) 0022F9F8 0040C263 (00000006, 0022FA50, 0022FDB8, 61079A39) 0022FA28 0040C4E0 (00000002, 0022FA50, 00000035, 0022FE78) 0022FE68 0040C6D2 (00000002, 0041EFB0, 0041EF9B, 00000369) 0022FEA8 0041F0C5 (00000000, 00000000, 00000001, 77E5A730) 0022FEE0 0040A275 (00000000, 00000000, 10020330, 0022FF14) 0022FF30 61005018 (610CFEE0, FFFFFFFE, 000007F0, 610CFE04) 0022FF80 610052ED (00000000, 00000000, 00000001, 00000006) 0022FFA0 0042BBA0 (00409FF0, E2576090, 77F664A6, 77E614C4) 0022FFC0 0040103D (00000001, 0000534E, 7FFDF000, ED352CF0) 0022FFF0 77E614C7 (00401000, 00000000, 78746341, 00000020) End of stack trace ----------------- snap --------------------------------------- Is this a known bug of rsync? Will there be help? Is there a workaround? Christian ----------------------- output of cygcheck ----------------- Cygwin Win95/NT Configuration Diagnostics Current System Time: Fri Sep 26 08:29:35 2003 Windows XP Professional Ver 5.1 Build 2600 Service Pack 1 Path: C:\Programme\cygwin\usr\local\bin C:\Programme\cygwin\bin C:\Programme\cygwin\bin C:\Programme\cygwin\usr\X11R6\bin c:\WINDOWS\system32 c:\WINDOWS c:\WINDOWS\System32\Wbem c:\PROGRA~1\IBM\CLIENT~1 c:\PROGRA~1\IBM\CLIENT~1\Shared c:\PROGRA~1\IBM\CLIENT~1\Emulator c:\WINDOWS\system32\nls c:\WINDOWS\system32\nls\ENGLISH Output from C:\Programme\cygwin\bin\id.exe (nontsec) UID: 1017(poellmann_adm) GID: 513(Kein) 513(Kein) Output from C:\Programme\cygwin\bin\id.exe (ntsec) UID: 1017(poellmann_adm) GID: 513(Kein) 513(Kein) 544(Administratoren) 545(Benutzer) SysDir: C:\WINDOWS\System32 WinDir: C:\WINDOWS HOME = `C:\Programme\cygwin\home\poellmann_adm' MAKE_MODE = `unix' PWD = `/cygdrive/d/chris/Sicherheit/Projekte/Infrastruktur Sys-Mgmt/src/server' USER = `poellmann_adm' ALLUSERSPROFILE = `D:\Profiles\All Users' COMMONPROGRAMFILES = `C:\Programme\Gemeinsame Dateien' COMPUTERNAME = `PC041533' COMSPEC = `C:\WINDOWS\system32\cmd.exe' CVS_RSH = `/bin/ssh' DACHSERDIR = `C:\DACHSER' HOMEDRIVE = `C:' HOMEPATH = `\Programme\cygwin\home\poellmann_adm' HOSTNAME = `PC041533' INFOPATH = `/usr/local/info:/usr/info:/usr/share/info:/usr/autotool/devel/info:/usr/autotool/stable/info:' LOGONSERVER = `\\PC041533' MANPATH = `/usr/local/man:/usr/man:/usr/share/man:/usr/autotool/devel/man::/usr/ssl/man' NUMBER_OF_PROCESSORS = `1' OLDPWD = `/cygdrive/d/chris' OS = `Windows_NT' PATHEXT = `.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH' PERLDB_OPTS = `RemotePort=127.0.0.1:2000' PROCESSOR_ARCHITECTURE = `x86' PROCESSOR_IDENTIFIER = `x86 Family 6 Model 11 Stepping 1, GenuineIntel' PROCESSOR_LEVEL = `6' PROCESSOR_REVISION = `0b01' PROGRAMFILES = `C:\Programme' PROMPT = `$P$G' PS1 = `\[\033]0;\w\007 \033[32m\]\u@\h \[\033[33m\w\033[0m\] $ ' SHLVL = `1' SYSTEMDRIVE = `C:' SYSTEMROOT = `C:\WINDOWS' TEMP = `d:\Profiles\POELLM~2\LOKALE~1\Temp' TERM = `cygwin' TMP = `d:\Profiles\POELLM~2\LOKALE~1\Temp' USERDOMAIN = `PC041533' USERNAME = `poellmann_adm' USERPROFILE = `D:\Profiles\poellmann_adm' WINDIR = `C:\WINDOWS' _ = `/usr/bin/cygcheck' HKEY_CURRENT_USER\Software\Cygnus Solutions HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2 HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\Program Options HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2 (default) = `/cygdrive' cygdrive flags = 0x00000022 HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/ (default) = `C:\Programme\cygwin' flags = 0x0000000a HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/bin (default) = `C:\Programme\cygwin/bin' flags = 0x0000000a HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/lib (default) = `C:\Programme\cygwin/lib' flags = 0x0000000a HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\Program Options c: hd NTFS 5004Mb 88% CP CS UN PA FC SYSTEM d: hd NTFS 5004Mb 25% CP CS UN PA FC DATEN e: cd N/A N/A C:\Programme\cygwin / system binmode C:\Programme\cygwin/bin /usr/bin system binmode C:\Programme\cygwin/lib /usr/lib system binmode . /cygdrive system binmode,cygdrive Found: C:\Programme\cygwin\bin\awk.exe Found: C:\Programme\cygwin\bin\bash.exe Found: C:\Programme\cygwin\bin\cat.exe Found: C:\Programme\cygwin\bin\cp.exe Found: C:\Programme\cygwin\bin\cpp.exe Found: C:\Programme\cygwin\bin\find.exe Found: C:\Programme\cygwin\bin\gcc.exe Not Found: gdb Found: C:\Programme\cygwin\bin\grep.exe Found: C:\Programme\cygwin\bin\ld.exe Found: C:\Programme\cygwin\bin\ls.exe Found: C:\Programme\cygwin\bin\make.exe Found: C:\Programme\cygwin\bin\mv.exe Found: C:\Programme\cygwin\bin\rm.exe Found: C:\Programme\cygwin\bin\sed.exe Found: C:\Programme\cygwin\bin\sh.exe Found: C:\Programme\cygwin\bin\tar.exe 61k 2003/08/09 C:\Programme\cygwin\bin\cygbz2-1.dll - os=4.0 img=1.0 sys=4.0 "cygbz2-1.dll" v0.0 ts=2003/8/9 8:35 849k 2003/08/11 C:\Programme\cygwin\bin\cygcrypto-0.9.7.dll - os=4.0 img=1.0 sys=4.0 "cygcrypto-0.9.7.dll" v0.0 ts=2003/8/11 10:58 645k 2003/04/11 C:\Programme\cygwin\bin\cygcrypto.dll - os=4.0 img=1.0 sys=4.0 "cygcrypto.dll" v0.0 ts=2003/4/11 12:37 45k 2001/04/25 C:\Programme\cygwin\bin\cygform5.dll - os=4.0 img=1.0 sys=4.0 "cygform5.dll" v0.0 ts=2001/4/25 7:28 35k 2002/01/09 C:\Programme\cygwin\bin\cygform6.dll - os=4.0 img=1.0 sys=4.0 "cygform6.dll" v0.0 ts=2002/1/9 7:03 48k 2003/08/09 C:\Programme\cygwin\bin\cygform7.dll - os=4.0 img=1.0 sys=4.0 "cygform7.dll" v0.0 ts=2003/8/9 11:25 28k 2003/07/20 C:\Programme\cygwin\bin\cyggdbm-3.dll - os=4.0 img=1.0 sys=4.0 "cyggdbm-3.dll" v0.0 ts=2003/7/20 9:58 30k 2003/08/11 C:\Programme\cygwin\bin\cyggdbm-4.dll - os=4.0 img=1.0 sys=4.0 "cyggdbm-4.dll" v0.0 ts=2003/8/11 4:12 19k 2003/03/22 C:\Programme\cygwin\bin\cyggdbm.dll - os=4.0 img=1.0 sys=4.0 "cyggdbm.dll" v0.0 ts=2002/2/20 4:05 15k 2003/07/20 C:\Programme\cygwin\bin\cyggdbm_compat-3.dll - os=4.0 img=1.0 sys=4.0 "cyggdbm_compat-3.dll" v0.0 ts=2003/7/20 10:00 15k 2003/08/11 C:\Programme\cygwin\bin\cyggdbm_compat-4.dll - os=4.0 img=1.0 sys=4.0 "cyggdbm_compat-4.dll" v0.0 ts=2003/8/11 4:13 69k 2003/08/10 C: \Programme\cygwin\bin\cyggettextlib-0-12-1.dll - os=4.0 img=1.0 sys=4.0 "cyggettextlib-0-12-1.dll" v0.0 ts=2003/8/11 0:10 12k 2003/08/10 C:\Programme\cygwin\bin\cyggettextpo-0.dll - os=4.0 img=1.0 sys=4.0 "cyggettextpo-0.dll" v0.0 ts=2003/8/11 0:11 134k 2003/08/10 C: \Programme\cygwin\bin\cyggettextsrc-0-12-1.dll - os=4.0 img=1.0 sys=4.0 "cyggettextsrc-0-12-1.dll" v0.0 ts=2003/8/11 0:10 17k 2001/06/28 C:\Programme\cygwin\bin\cyghistory4.dll - os=4.0 img=1.0 sys=4.0 "cyghistory4.dll" v0.0 ts=2001/1/7 5:34 29k 2003/08/10 C:\Programme\cygwin\bin\cyghistory5.dll - os=4.0 img=1.0 sys=4.0 "cyghistory5.dll" v0.0 ts=2003/8/11 1:16 958k 2003/08/10 C:\Programme\cygwin\bin\cygiconv-2.dll - os=4.0 img=1.0 sys=4.0 "cygiconv-2.dll" v0.0 ts=2003/8/10 22:57 22k 2001/12/13 C:\Programme\cygwin\bin\cygintl-1.dll - os=4.0 img=1.0 sys=4.0 "cygintl-1.dll" v0.0 ts=2001/12/13 10:28 37k 2003/08/10 C:\Programme\cygwin\bin\cygintl-2.dll - os=4.0 img=1.0 sys=4.0 "cygintl-2.dll" v0.0 ts=2003/8/10 23:50 26k 2001/04/25 C:\Programme\cygwin\bin\cygmenu5.dll - os=4.0 img=1.0 sys=4.0 "cygmenu5.dll" v0.0 ts=2001/4/25 7:27 20k 2002/01/09 C:\Programme\cygwin\bin\cygmenu6.dll - os=4.0 img=1.0 sys=4.0 "cygmenu6.dll" v0.0 ts=2002/1/9 7:03 29k 2003/08/09 C:\Programme\cygwin\bin\cygmenu7.dll - os=4.0 img=1.0 sys=4.0 "cygmenu7.dll" v0.0 ts=2003/8/9 11:25 156k 2001/04/25 C:\Programme\cygwin\bin\cygncurses++5.dll - os=4.0 img=1.0 sys=4.0 "cygncurses++5.dll" v0.0 ts=2001/4/25 7:29 175k 2002/01/09 C:\Programme\cygwin\bin\cygncurses++6.dll - os=4.0 img=1.0 sys=4.0 "cygncurses++6.dll" v0.0 ts=2002/1/9 7:03 226k 2001/04/25 C:\Programme\cygwin\bin\cygncurses5.dll - os=4.0 img=1.0 sys=4.0 "cygncurses5.dll" v0.0 ts=2001/4/25 7:17 202k 2002/01/09 C:\Programme\cygwin\bin\cygncurses6.dll - os=4.0 img=1.0 sys=4.0 "cygncurses6.dll" v0.0 ts=2002/1/9 7:03 224k 2003/08/09 C:\Programme\cygwin\bin\cygncurses7.dll - os=4.0 img=1.0 sys=4.0 "cygncurses7.dll" v0.0 ts=2003/8/9 11:24 15k 2001/04/25 C:\Programme\cygwin\bin\cygpanel5.dll - os=4.0 img=1.0 sys=4.0 "cygpanel5.dll" v0.0 ts=2001/4/25 7:27 12k 2002/01/09 C:\Programme\cygwin\bin\cygpanel6.dll - os=4.0 img=1.0 sys=4.0 "cygpanel6.dll" v0.0 ts=2002/1/9 7:03 19k 2003/08/09 C:\Programme\cygwin\bin\cygpanel7.dll - os=4.0 img=1.0 sys=4.0 "cygpanel7.dll" v0.0 ts=2003/8/9 11:24 67k 2003/09/10 C:\Programme\cygwin\bin\cygpcre-0.dll - os=4.0 img=1.0 sys=4.0 "cygpcre-0.dll" v0.0 ts=2003/9/10 16:25 63k 2003/04/11 C:\Programme\cygwin\bin\cygpcre.dll - os=4.0 img=1.0 sys=4.0 "cygpcre.dll" v0.0 ts=2003/4/11 10:31 15k 2003/09/10 C:\Programme\cygwin\bin\cygpcreposix-0.dll - os=4.0 img=1.0 sys=4.0 "cygpcreposix-0.dll" v0.0 ts=2003/9/10 16:25 61k 2003/04/11 C:\Programme\cygwin\bin\cygpcreposix.dll - os=4.0 img=1.0 sys=4.0 "cygpcreposix.dll" v0.0 ts=2003/4/11 10:31 22k 2002/06/09 C:\Programme\cygwin\bin\cygpopt-0.dll - os=4.0 img=1.0 sys=4.0 "cygpopt-0.dll" v0.0 ts=2002/6/9 7:45 108k 2001/06/28 C:\Programme\cygwin\bin\cygreadline4.dll - os=4.0 img=1.0 sys=4.0 "cygreadline4.dll" v0.0 ts=2001/1/7 5:34 148k 2003/08/10 C:\Programme\cygwin\bin\cygreadline5.dll - os=4.0 img=1.0 sys=4.0 "cygreadline5.dll" v0.0 ts=2003/8/11 1:16 176k 2003/08/11 C:\Programme\cygwin\bin\cygssl-0.9.7.dll - os=4.0 img=1.0 sys=4.0 "cygssl-0.9.7.dll" v0.0 ts=2003/8/11 10:58 165k 2003/04/11 C:\Programme\cygwin\bin\cygssl.dll - os=4.0 img=1.0 sys=4.0 "cygssl.dll" v0.0 ts=2003/4/11 12:37 60k 2003/08/09 C:\Programme\cygwin\bin\cygz.dll - os=4.0 img=1.0 sys=4.0 "cygz.dll" v0.0 ts=2003/8/9 8:28 949k 2003/09/20 C:\Programme\cygwin\bin\cygwin1.dll - os=4.0 img=1.0 sys=4.0 "cygwin1.dll" v0.0 ts=2003/9/20 22:31 Cygwin DLL version info: DLL version: 1.5.5 DLL epoch: 19 DLL bad signal mask: 19005 DLL old termios: 5 DLL malloc env: 28 API major: 0 API minor: 94 Shared data: 3 DLL identifier: cygwin1 Mount registry: 2 Cygnus registry name: Cygnus Solutions Cygwin registry name: Cygwin Program options name: Program Options Cygwin mount registry name: mounts v2 Cygdrive flags: cygdrive flags Cygdrive prefix: cygdrive prefix Cygdrive default prefix: Build date: Sat Sep 20 16:31:15 EDT 2003 CVS tag: cr-0x9b Shared id: cygwin1S3 Cygwin Package Information Last downloaded files to: D:\chris\lokal\install_media\cygwin Last downloaded files from: ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/sources.redhat.com/cygwin Package Version _update-info-dir 00221-1 ash 20020731-3 base-files 2.6-1 base-passwd 1.1-1 bash 2.05b-15 binutils 20030901-1 bzip2 1.0.2-5 cygrunsrv 0.96-2 cygutils 1.2.1-2 cygwin 1.5.5-1 cygwin-doc 1.3-6 diffutils 2.8.4-1 fileutils 4.1-2 findutils 4.1.7-4 gawk 3.1.3-3 gcc 3.3.1-2 gcc-mingw 20030911-2 gcc2 2.95.3-10 gdbm 1.8.3-7 grep 2.5-1 groff 1.18.1-2 gzip 1.3.5-1 less 381-1 libbz2_1 1.0.2-5 libgdbm 1.8.0-5 libgdbm-devel 1.8.3-7 libgdbm3 1.8.3-3 libgdbm4 1.8.3-7 libgettextpo0 0.12.1-3 libiconv2 1.9.1-3 libintl1 0.10.40-1 libintl2 0.12.1-3 libncurses5 5.2-1 libncurses6 5.2-8 libncurses7 5.3-4 libpcre 4.1-1 libpcre0 4.4-2 libpopt0 1.6.4-4 libreadline4 4.1-2 libreadline5 4.3-5 login 1.9-7 make 3.80-1 man 1.5j-2 mingw-runtime 3.1-1 mktemp 1.5-3 ncurses 5.3-4 openssh 3.7.1p2-1 openssl 0.9.7b-3 openssl096 0.9.6j-1 rcs 5.7-3 readline 4.3-5 rsync 2.5.6-2 sed 4.0.7-3 sh-utils 2.0.15-4 tar 1.13.25-3 termcap 20021106-2 terminfo 5.3_20030726-1 texinfo 4.2-4 textutils 2.0.21-1 w32api 2.4-1 which 1.5-2 zlib 1.1.4-4 Use -h to see help about each section -- 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/