xiqingongzi / sersync

Automatically exported from code.google.com/p/sersync
3 stars 0 forks source link

添加 attrib 监控导致程序异常退出。 #63

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
bug重现:

1. 配置文件:
<inotify>
    <delete start="false"/>
    <createFolder start="true"/>
    <createFile start="false"/>
    <closeWrite start="true"/>
    <moveFrom start="true"/>
    <moveTo start="true"/>
    <attrib start="true"/>
    <modify start="true"/>
    </inotify>

2. 启动sersync
3. 改动被监控的文件,如:touch * 
(目录下包括许多文件与目录)
4. sersync死掉了。

抛出错误如下所示:
terminate called after throwing an instance of 'std::out_of_range'
  what():  basic_string::substr
terminate called recursively

版本:
sersync2.5.4_64bit_binary_stable_final
系统:
Ubuntu 10.04 server LTS 64bit

Original issue reported on code.google.com by yeguango...@gmail.com on 26 Apr 2012 at 10:24