Comments (6)
I think it would be quite easy. Maybe it could use a prefix to mark failed operations, like
!r|non-existing-path
I'll see how it goes.
from fsatrace.
Hi @jacereda, @snowleopard asked me to try it on linux and I can confirm that with a fresh build from the report-failures
branch the tracking of missing files works:
$ fsatrace verwmdq! 1.out -- gcc 1.c
argv[0]=gcc
argv[1]=1.c
gcc: error: 1.c: No such file or directory
gcc: fatal error: no input files
compilation terminated.
fsatrace(24275): error: command failed with code 1
argv[0]=gcc
argv[1]=1.c
And now 1.out
reports 1.c
being missing as expected:
r|/usr/bin/gcc-5
!q|1.out;/snap/bin/gcc
!q|/home/geo2a/.ghc/gcc
!q|/home/geo2a/gems/bin/gcc
!q|/home/geo2a/.opam/coq-8.8/bin/gcc
!q|/home/geo2a/bin/gcc
!q|/home/geo2a/.local/bin/gcc
!q|/usr/local/sbin/gcc
!q|/usr/local/bin/gcc
!q|/usr/sbin/gcc
q|/usr/bin/gcc-5
!q|1.out;/snap/bin/gcc
!q|/home/geo2a/.ghc/gcc
!q|/home/geo2a/gems/bin/gcc
!q|/home/geo2a/.opam/coq-8.8/bin/gcc
!q|/home/geo2a/bin/gcc
!q|/home/geo2a/.local/bin/gcc
!q|/usr/local/sbin/gcc
!q|/usr/local/bin/gcc
!q|/usr/sbin/gcc
q|/usr/bin/gcc-5
*** !q|1.c ***
q|/usr/lib/gcc/x86_64-linux-gnu/5
!q|/usr/lib/gcc/x86_64-linux-gnu/5/specs
!q|/usr/lib/gcc/x86_64-linux-gnu/5/../../../../x86_64-linux-gnu/lib/x86_64-linux-gnu/5/specs
!q|/usr/lib/gcc/x86_64-linux-gnu/5/../../../../x86_64-linux-gnu/lib/specs
!q|/usr/lib/gcc/x86_64-linux-gnu/specs
q|/usr/lib/gcc/x86_64-linux-gnu/5
q|/usr/lib/gcc/x86_64-linux-gnu/5/lto-wrapper
Thanks!
from fsatrace.
Can you try the report-failures
branch?
from fsatrace.
I only tested on Windows, most probably won't build on Unix.
from fsatrace.
@jacereda I've tried this on Windows but it doesn't seem to work. I tried both
fsatrace verwmdq 1.out -- gcc 1.c
and
fsatrace verwmdq! 1.out -- gcc 1.c
but 1.c
was not listed in the result.
Here is the output:
argv[0]=gcc
argv[1]=1.c
composed=gcc "1.c"
gcc: error: 1.c: No such file or directory
gcc: fatal error: no input files
compilation terminated.
fsatrace.EXE(11324): error: command failed with code 1
original="D:\tools\fsatrace\fsatrace.EXE" verwmdq! 1.out -- gcc 1.c
argv[0]=gcc
argv[1]=1.c
composed=gcc "1.c"
... and 1.out
:
r|C:\msys\mingw64\bin\gcc.exe
r|C:\WINDOWS\SYSTEM32\ntdll.dll
r|C:\WINDOWS\System32\KERNEL32.DLL
r|C:\WINDOWS\System32\KERNELBASE.dll
r|C:\WINDOWS\System32\msvcrt.dll
r|C:\msys\mingw64\bin\libwinpthread-1.dll
r|D:\tools\fsatrace\fsatrace64.dll
r|C:\WINDOWS\System32\PSAPI.DLL
r|C:\WINDOWS\System32\USER32.dll
r|C:\WINDOWS\System32\win32u.dll
r|C:\WINDOWS\System32\GDI32.dll
r|C:\WINDOWS\System32\gdi32full.dll
r|C:\WINDOWS\System32\msvcp_win.dll
r|C:\WINDOWS\System32\ucrtbase.dll
r|C:\WINDOWS\System32\IMM32.DLL
r|C:\WINDOWS\SYSTEM32\tzres.dll
from fsatrace.
Can you try with the linux/mac version?
from fsatrace.
Related Issues (20)
- sh.exe test fails on Windows
- Doesn't trace execution on Windows HOT 4
- Make a release HOT 1
- Output file even on non-zero exit code HOT 1
- Tracing multiple subprocesses doesn't work on Windows HOT 8
- Can't trace Go code on Linux HOT 2
- Can't trace gcc on Mac HOT 2
- fsatrace isn't recording executable being run as a "read". HOT 6
- Clarify (or clean up) the Windows makefile HOT 1
- Can't spawn a 32bit process from a .bat file HOT 3
- Corruption of PATH HOT 2
- failures on ubuntu 20.04 HOT 6
- Quantifying fsatrace's coverage HOT 2
- Consider ETW on Windows HOT 3
- Removing a symlink looks like removing its target HOT 8
- segfault in emiting op HOT 8
- Tracing mkdir syscalls
- Basic tracing does not appear to work on macOS Monterey Version 12.5.1 HOT 3
- Fails to compile on GitHub Mac runners (incompatible architecture) HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fsatrace.