qmi-proxy being deleted after use

Kasper Cheng kaspercheng77 at gmail.com
Wed Jan 22 17:44:36 UTC 2025


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.
Both logs show a call to unlinkat() at the end.
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?


On Wed, Jan 22, 2025 at 6:33 AM Dan Williams <dan at ioncontrol.co> wrote:

> 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?
> >
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libqmi-devel/attachments/20250122/bead25af/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: raspberry 1.32.2 trace.log
Type: application/octet-stream
Size: 25423 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/libqmi-devel/attachments/20250122/bead25af/attachment-0002.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: git latest 2024 12 31 21d0b6490841b9882514deee1447bce99a727d69 qmi-proxy.log
Type: application/octet-stream
Size: 24403 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/libqmi-devel/attachments/20250122/bead25af/attachment-0003.obj>


More information about the libqmi-devel mailing list