qmi-proxy being deleted after use

Dan Williams dan at ioncontrol.co
Wed Jan 22 14:33:16 UTC 2025


On Mon, 2025-01-13 at 14:34 -0800, Kasper Cheng wrote:
> I found that qmi-proxy deletes itself after I use it from the command
> line.
> e.g. I am copying it to my home folder first, to avoid the apt
> installed version from being deleted. The executable file itself  is
> gone after I started it and broke out of it with CTRL+C

That's quite odd; I don't believe there is any specific code to do
that, nor can I think of a reason why it would. Two questions:

1) Can you run "/usr/libexec/qmi-proxy --version" and let us know the
version?

2) Can you run "sudo strace ~/qmi-proxy" after copying to your home
directory, and attach the resulting output to a reply? The strace
should capture any file deletion done by qmi-proxy itself, if it is
indeed qmi-proxy doing the delete.

Thanks,
Dan


> 
> kcheng at kcrasp5:~ $ cp /usr/libexec/qmi-proxy .
> kcheng at kcrasp5:~ $ sudo ~/qmi-proxy
> ^C[13 Jan 2025, 14:28:09] -Warning ** Caught signal, stopping the
> loop...
> kcheng at kcrasp5:~ $ sudo ~/qmi-proxy
> sudo: /home/kcheng/qmi-proxy: command not found
> kcheng at kcrasp5:~ $ ls qmi-proxy
> ls: cannot access 'qmi-proxy': No such file or directory
> 
> I have seen this problem before but It's all OK suddenly so I gave up
> looking at it. But it's back now.
> I am using a Rasbperry 5 with Raspberry OS 12 bookworm, but I have
> also seen it with ubuntu desktop PC, also with self built binary from
> source.
> 
> Am I using it wrong?
> 



More information about the libqmi-devel mailing list