github.com/swiftstack/ProxyFS@v0.0.0-20210203235616-4017c267d62f/DEBUG.md (about)

     1  # Debugging proxyfsd
     2  
     3  ## Logging
     4  Logs from proxyfsd are output to `proxyfsd.log`.
     5  
     6  ## Kill with trace data
     7  Find the daemon's pid: `ps -eaf | grep proxyfsd`
     8  
     9  Kill the process and get golang stack traces: `kill -ABRT <pid>`
    10  
    11  ## Using gdb
    12  Find the daemon's pid: `ps -eaf | grep proxyfsd`
    13  
    14  Tell gdb to attach to that pid: `gdb -p <pid>`
    15  
    16  ## Generating a core file
    17  If you want to generate a core file from within gdb: `(gdb) gcore`
    18  
    19  If you want to generate a core file without using gdb: `gcore <pid>`