Also you attached gdb to the osquery> shell pid...
# general
p
Also you attached gdb to the osquery> shell pid? How did you run the full query if it doesn't recognize --csv --separator ?