tmpfs doesn't support user_xattr on Linux. Therefore, if an user have its ~/.cache/epiphany on tmpfs, setting xattr::birthtime fails. When WebKit tries to read the value back in Source/WebKit2/NetworkProcess/cache/NetworkCacheFileSystemPosix.h, it will pass a null pointer to g_ascii_strtoull. This can cause segfault in WebKitNetworkProcess.
This problem also causes WebKitNetworkProcess to segfault on FreeBSD because it doesn't support xattr. Fortunately, FreeBSD has st_birthtime field in struct stat, so we can reuse PLATFORM(COCOA) code in NetworkCacheFileSystemPosix.h.
Created attachment 253035 [details] Patch
(In reply to comment #1) > This problem also causes WebKitNetworkProcess to segfault on FreeBSD because > it doesn't support xattr. Fortunately, FreeBSD has st_birthtime field in > struct stat, so we can reuse PLATFORM(COCOA) code in > NetworkCacheFileSystemPosix.h. Cool, that's a different issue, though. Could you file another bug report for that?
Committed r184330: <http://trac.webkit.org/changeset/184330>
(In reply to comment #3) > (In reply to comment #1) > > This problem also causes WebKitNetworkProcess to segfault on FreeBSD because > > it doesn't support xattr. Fortunately, FreeBSD has st_birthtime field in > > struct stat, so we can reuse PLATFORM(COCOA) code in > > NetworkCacheFileSystemPosix.h. > > Cool, that's a different issue, though. Could you file another bug report > for that? https://bugs.webkit.org/show_bug.cgi?id=144989