Wed, 2 May 2018 21:26:56 +0200 Landry Breuil <lan...@openbsd.org> > On Wed, May 02, 2018 at 05:56:53PM +0300, li...@wrant.com wrote: > > Wed, 2 May 2018 07:15:45 +0200 Landry Breuil <lan...@openbsd.org> > > > On Wed, May 02, 2018 at 04:07:51AM +0300, li...@wrant.com wrote: > > > > > > > > Hi Landry, > > > > > > > > With the snapshot Build date: 1525207106 - Tue May 1 20:38:26 UTC 2018 > > > > firefox-60.0beta16 from https://packages.rhaalovely.net/snapshots/amd64 > > > > it progresses a bit further and aborts with pledge "fattr", syscall 124 > > > > using promises: 'stdio rpath wpath cpath inet proc exec prot_exec flock > > > > ps sendfd recvfd dns vminfo tty drm' results: Abort trap (core dumped). > > > > > > > > > > main process needs fattr & unix to save files here; i added them in > > > https://cgit.rhaalovely.net/mozilla-firefox/commit/?h=pledge&id=11f3f89db4c5cf973205c7a7d332ac52c9d70911 > > > > > > For a useful report; reproduce with ktrace -di, and mention/quote the > > > end of the trace (ie the syscall that triggers the abord should relate > > > to the file it was trying to act upon) > > > > > > > Hi Landry, > > > > Succeeds on stat & open places.sqlite, stat places.sqlite-wal & at it > > > > 68642 firefox CALL fchmod(37,0644<S_IRUSR|S_IWUSR|S_IRGRP|S_IROTH>) > > 68642 firefox PLDG fchmod, "fattr", errno 1 Operation not permitted > > 68642 firefox PSIG SIGABRT SIG_DFL > > 68642 firefox NAMI "firefox.core" > > So if i understand, in that case 37 is the fd for places.sqlite-wal > opened earlier in the ktrace ? >
Hi Landry, Yes, wiped that temp file, but generated a fresh one, different fd num: 50653 firefox CALL clock_gettime(CLOCK_MONOTONIC,0x7f7ffffe1d58) 50653 firefox STRU struct timespec { 44122.094371935 } 50653 firefox RET clock_gettime 0 50653 firefox CALL getpid() 50653 firefox RET getpid 50653/0xc5dd 50653 firefox CALL stat(0x7f7ffffe1b30,0x7f7ffffe18a0) 50653 firefox NAMI "/home/user/.mozilla/firefox/test/places.sqlite" 50653 firefox STRU struct stat { ... } 50653 firefox RET stat 0 50653 firefox CALL open(0xb1f8870275d,0x10202<O_RDWR|O_CREAT|O_CLOEXEC>,0644<S_IRUSR|S_IWUSR|S_IRGRP|S_IROTH>) 50653 firefox NAMI "/home/user/.mozilla/firefox/test/places.sqlite-wal" 50653 firefox RET open 40/0x28 50653 firefox CALL fstat(40,0x7f7ffffe1780) 50653 firefox STRU struct stat { ... } 50653 firefox RET fstat 0 50653 firefox CALL fchmod(40,0644<S_IRUSR|S_IWUSR|S_IRGRP|S_IROTH>) 50653 firefox PLDG fchmod, "fattr", errno 1 Operation not permitted 50653 firefox PSIG SIGABRT SIG_DFL 50653 firefox NAMI "firefox.core" 50653 firefox STRU struct pollfd [2] { fd=16, events=0x3<POLLIN|POLLPRI>, revents=0<> } { fd=37, events=0x3<POLLIN|POLLPRI>, revents=0<> } 50653 firefox STRU struct pollfd { fd=4, events=0x1<POLLIN>, revents=0<> } Collapsed the stats output, let me know if the details are significant. Please advise if you'd need further traces and how to obtain more info. Kind regards, Anton Lazarov