-
-
Notifications
You must be signed in to change notification settings - Fork 532
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error while marshaling: string field contains invalid UTF-8 #467
Comments
good catch @shollingsworth ! I'll try to reproduce it. |
ok, reproduced, even with eBPF. It's invoked correctly: But sqsh rewrites in memory the parameter -P:
execsnoop-bpfcc catches correctly the original command line:
But when we read the command line of the PID, I can't recover the unmodified parameter. We should get it from kernel space ( Rewriting the arguments and name of your own process is a valid and expected operation, so we shouldn't trust what's written to /proc So far I haven't found a way to workaround this problem. strconv.IsPrint() and utf8.ValidRune() report "�3/4" as valid, while utf8.Valid() reports it as invalid, but also "ááá" ... so any parameters with unicode chars would be rewritten. |
Thanks for doing the digging on this @gustavo-iniguez-goya , I'm guessing we can just close this as a one off if there's no easy fix. |
Hello there,
Found a bug with a specific program (an interesting one IMO)
To Reproduce
sqsh
(a mssql client) on Ubuntu 20.04Prompt should popup after typing in password
Screenshots
OK Interaction
Error Interaction
OS (please complete the following information):
The text was updated successfully, but these errors were encountered: