Calling qmi from Python

Aleksander Morgado aleksander at aleksander.es
Fri Aug 28 07:23:59 UTC 2020


Hey!

> I'm trying to use the qmi interface via the Go introspection library, and having issues.
> Some calls are reliable. The get_capabilities() in the simple-tester.py is stable. But get_ids is not. If I call it, and immediately call the unref(), all is good. If I access any of the members using the API - like get_imei() - then I get "double free detected in tcache 2" as soon as I call the unref(). It seems like it is trying to release the string twice. I get similar issues with get_system_info() which fails if I try to access the lte results.
>
> Any ideas?
>

Looks like we may need explicit (transfer none) labels in the output
string parameters.
Would you be able to test with this patch applied?
https://gitlab.freedesktop.org/mobile-broadband/libqmi/-/merge_requests/152

-- 
Aleksander
https://aleksander.es


More information about the libqmi-devel mailing list