<div dir="ltr">Attached is a trace log from raspberry 5's apt install of qmi-proxy 1.32.2, and a latest git build I made yesterday.<div>Both logs show a call to unlinkat() at the end.</div><div>Does it mean that it is expected for the user to copy qmi-proxy to a temp folder before use, and qmi-proxy clean itself up on exit?<br><div><div><br></div></div></div></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Wed, Jan 22, 2025 at 6:33 AM Dan Williams <<a href="mailto:dan@ioncontrol.co">dan@ioncontrol.co</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Mon, 2025-01-13 at 14:34 -0800, Kasper Cheng wrote:<br>
> I found that qmi-proxy deletes itself after I use it from the command<br>
> line.<br>
> e.g. I am copying it to my home folder first, to avoid the apt<br>
> installed version from being deleted. The executable file itself is<br>
> gone after I started it and broke out of it with CTRL+C<br>
<br>
That's quite odd; I don't believe there is any specific code to do<br>
that, nor can I think of a reason why it would. Two questions:<br>
<br>
1) Can you run "/usr/libexec/qmi-proxy --version" and let us know the<br>
version?<br>
<br>
2) Can you run "sudo strace ~/qmi-proxy" after copying to your home<br>
directory, and attach the resulting output to a reply? The strace<br>
should capture any file deletion done by qmi-proxy itself, if it is<br>
indeed qmi-proxy doing the delete.<br>
<br>
Thanks,<br>
Dan<br>
<br>
<br>
> <br>
> kcheng@kcrasp5:~ $ cp /usr/libexec/qmi-proxy .<br>
> kcheng@kcrasp5:~ $ sudo ~/qmi-proxy<br>
> ^C[13 Jan 2025, 14:28:09] -Warning ** Caught signal, stopping the<br>
> loop...<br>
> kcheng@kcrasp5:~ $ sudo ~/qmi-proxy<br>
> sudo: /home/kcheng/qmi-proxy: command not found<br>
> kcheng@kcrasp5:~ $ ls qmi-proxy<br>
> ls: cannot access 'qmi-proxy': No such file or directory<br>
> <br>
> I have seen this problem before but It's all OK suddenly so I gave up<br>
> looking at it. But it's back now.<br>
> I am using a Rasbperry 5 with Raspberry OS 12 bookworm, but I have<br>
> also seen it with ubuntu desktop PC, also with self built binary from<br>
> source.<br>
> <br>
> Am I using it wrong?<br>
> <br>
<br>
</blockquote></div>