Package: lsyncd
Version: 1.34-1
Severity: minor
Steps to reproduce:
1) sudo apt-get install lsyncd
2) mkdir -p /tmp/x/w /tmp/y
3) cat > lsyncd.conf.xml <<EOF
<lsyncd version="1">
<settings>
<pidfile filename="/tmp/lsyncd.pid"/>
<stubborn/>
<scarce/>
<delay value="10"/>
<callopts>
<option text="-lptgoD%r"/>
<option text="--delete"/>
<option text="--numeric-ids"/>
<exclude-file/>
<source/>
<destination/>
</callopts>
</settings>
<directory>
<source path="/tmp/x/"/>
<target path="localhost:/tmp/y"/>
</directory>
</lsyncd>
EOF
4) lsyncd --conf lsyncd.conf.xml --log /tmp/log
5) strace -p $(pidof lsyncd) -f -tt -s256
Expected results:
5) strace does not disturb lsyncd
Actual results:
5) strace causes lscynd to die:
lindi1:~$ strace -p $(pidof lsyncd) -f -tt -s256
Process 29134 attached - interrupt to quit
16:13:14.203423 open("/tmp/log", O_WRONLY|O_CREAT|O_APPEND, 0666) = 4
16:13:14.203599 fstat(4, {st_mode=S_IFREG|0644, st_size=405, ...}) = 0
16:13:14.203685 mmap(NULL, 4096, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f850960f000
16:13:14.203746 fstat(4, {st_mode=S_IFREG|0644, st_size=405, ...}) = 0
16:13:14.203821 lseek(4, 405, SEEK_SET) = 405
16:13:14.203875 gettimeofday({1300371194, 203890}, NULL) = 0
16:13:14.203946 open("/etc/localtime", O_RDONLY) = 5
16:13:14.204001 fstat(5, {st_mode=S_IFREG|0644, st_size=1883, ...}) = 0
16:13:14.204076 fstat(5, {st_mode=S_IFREG|0644, st_size=1883, ...}) = 0
16:13:14.204153 mmap(NULL, 4096, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f850960e000
16:13:14.204201 read(5,
"TZif2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\5\0\0\0\5\0\0\0\0\0\0\0u\0\0\0\5\0\0\0\r\244so\30\313\316Q`\314\277\205\320\25#\335\200\26\23\316\200\27\3\277\200\27\363\260\200\30\343\257\220\31\323\240\220\32\303\221\220\33\274\275\20\34\254\256\20\35\234\237\20\36\214\220\20\37|\201\20
lr\20!\\c\20\"LT\20#<E\20$,6\20%\34'\20&\f\30\20'\5C\220'\3654\220(\345%\220)\325\26\220*\305\7\220+\264\370\220,\244\351\220-\224\332\220.\204\313\220/t\274\2200d\255\2201]\331\0202r\264\0203=\273\0204R\226\0205\35\235\02062x\0206\375\177\0208\33\224\2208\335a\0209\373v\220:\275C\20;\333X\220<\246_\220=\273:\220>\206A\220?\233\34\220@f#\220A\2049\20BF\5\220Cd\33\20"...,
4096) = 1883
16:13:14.204336 lseek(5, -1201, SEEK_CUR) = 682
16:13:14.204382 read(5,
"TZif2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\6\0\0\0\6\0\0\0\0\0\0\0v\0\0\0\6\0\0\0\21\377\377\377\377S\272&\230\377\377\377\377\244so\30\377\377\377\377\313\316Q`\377\377\377\377\314\277\205\320\0\0\0\0\25#\335\200\0\0\0\0\26\23\316\200\0\0\0\0\27\3\277\200\0\0\0\0\27\363\260\200\0\0\0\0\30\343\257\220\0\0\0\0\31\323\240\220\0\0\0\0\32\303\221\220\0\0\0\0\33\274\275\20\0\0\0\0\34\254\256\20\0\0\0\0\35\234\237\20\0\0\0\0\36\214\220\20\0\0\0\0\37|\201\20\0\0\0\0
lr\20\0\0\0\0!\\c\20\0\0\0\0\"LT\20\0\0\0\0#<E\20\0\0\0\0$,6\20\0\0\0\0%\34'\20\0\0\0\0&\f\30\20\0\0\0\0'\5C\220\0\0\0\0'\3654\220\0\0\0\0(\345%\220\0\0\0\0"...,
4096) = 1201
16:13:14.204511 close(5) = 0
16:13:14.204556 munmap(0x7f850960e000, 4096) = 0
16:13:14.204635 write(2, "ERROR: ", 7) = 7
16:13:14.204697 write(2, "failed to read from inotify (4:Interrupted system
call)", 55) = 55
16:13:14.204756 write(2, "\n", 1) = 1
16:13:14.204805 write(4, "Thu Mar 17 16:13:14 2011: ERROR: failed to read from
inotify (4:Interrupted system call)\n", 89) = 89
16:13:14.204882 close(4) = 0
16:13:14.204928 munmap(0x7f850960f000, 4096) = 0
16:13:14.205091 exit_group(0) = ?
Process 29134 detached
More info:
1) I originally used strace to debug a different bug which still needs
more investigation.
2) I've reproduce this on both real machines and machines running
under xen.
3) Please let me know if you are unable to reproduce the problem. I'm
happy to provide more information.
-- System Information:
Debian Release: 6.0
APT prefers squeeze-updates
APT policy: (500, 'squeeze-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.32-5-amd64 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=fi_FI (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/dash
Versions of packages lsyncd depends on:
ii libc6 2.11.2-10 Embedded GNU C Library: Shared lib
ii libxml2 2.7.8.dfsg-2 GNOME XML library
ii rsync 3.0.7-2 fast remote file copy program (lik
lsyncd recommends no packages.
lsyncd suggests no packages.
-- no debconf information
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]