santoru / filewatcher

A simple auditing utility for macOS
GNU General Public License v3.0
282 stars 39 forks source link

Segmentation fault: 11 #9

Closed dingjie03 closed 6 years ago

dingjie03 commented 6 years ago

filewatcher - a simple auditing utility for macOS

Filtering by file.. (/Users/dingjie03/filewatcher/slides.pdf) [16:08:38] [dingjie03] Detected open/read event from Finder -> /Users/dingjie03/filewatcher/slides.pdf [16:08:38] [root] Detected open/read event from syspolicyd -> /Users/dingjie03/filewatcher/slides.pdf [16:08:38] [dingjie03] Detected open/read event from XprotectService -> /Users/dingjie03/filewatcher/slides.pdf [16:08:38] [dingjie03] Detected close event from XprotectService -> /Users/dingjie03/filewatcher/slides.pdf [16:08:38] [dingjie03] Detected open/read event from CoreServicesUIAgent -> /Users/dingjie03/filewatcher/slides.pdf [16:08:38] [dingjie03] Detected close event from CoreServicesUIAgent -> /Users/dingjie03/filewatcher/slides.pdf [16:08:38] [dingjie03] Detected open/read event from Preview -> /Users/dingjie03/filewatcher/slides.pdf [16:08:38] [root] Detected close event from revisiond -> /Users/dingjie03/filewatcher/slides.pdf [16:08:38] [dingjie03] Detected close event from Preview -> /Users/dingjie03/filewatcher/slides.pdf [16:08:38] [dingjie03] Detected access event from Preview -> /Users/dingjie03/filewatcher/slides.pdf [16:08:38] [dingjie03] Detected open/read event from Preview -> /Users/dingjie03/filewatcher/slides.pdf [16:08:38] [dingjie03] Detected close event from Preview -> /Users/dingjie03/filewatcher/slides.pdf [16:08:38] [dingjie03] Detected open/read event from Preview -> /Users/dingjie03/filewatcher/slides.pdf [16:08:38] [dingjie03] Detected close event from Preview -> /Users/dingjie03/filewatcher/slides.pdf [16:08:38] [dingjie03] Detected open/read event from Preview -> /Users/dingjie03/filewatcher/slides.pdf [16:08:38] [dingjie03] Detected close event from Preview -> /Users/dingjie03/filewatcher/slides.pdf [16:08:38] [root] Detected open/read event from filecoordinationd -> /Users/dingjie03/filewatcher/slides.pdf [16:08:38] [root] Detected open/read event from mds -> /Users/dingjie03/filewatcher/slides.pdf [16:08:38] [root] Detected close event from mds -> /Users/dingjie03/filewatcher/slides.pdf [16:08:39] [dingjie03] Detected open/read event from Finder -> /Users/dingjie03/filewatcher/slides.pdf [16:08:39] [dingjie03] Detected close event from Finder -> /Users/dingjie03/filewatcher/slides.pdf Segmentation fault: 11

meliot commented 6 years ago

Hi @dingjie03, I'm aware that there is a problem that can cause segmentation fault. Since I do not have too much time, I will leave this open and I will try to fix it in the future :)

melomac commented 6 years ago

I had a similar situation and bypassed the issue by commenting those lines: https://github.com/m3liot/filewatcher/blob/e4ce0f00641ed86a676e36dd2186289db8330280/lib/common.c#L82-L83

meliot commented 6 years ago

Should be closed in #10. Please check :) Thanks!