<div dir="ltr">It looks like clear_modem() was invoked twice, first from mm_device_remove_modem() and then from dispose(). As clear_modem() clears the modem object held by the device, and without a null check on `self->priv->modem', the G_IS_OBJECT check inside g_object_run_dispose() will fail on a null modem object.<br><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Mar 3, 2017 at 5:26 AM, <span dir="ltr"><<a href="mailto:colin.helliwell@ln-systems.com" target="_blank">colin.helliwell@ln-systems.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div lang="EN-GB" link="#0563C1" vlink="#954F72"><div class="m_-4528521983023780352WordSection1"><p class="MsoNormal">I’m doing a fair bit of debugging with MM, hence running it in the foreground from the command line. When I Ctrl-C it I get:<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">“ModemManager[1014]: <info> [1488547412.344036] [src/main.c:46] quit_cb(): Caught signal, shutting down...<u></u><u></u></p><p class="MsoNormal">ModemManager[1014]: <debug> [1488547412.344290] [src/mm-base-manager.c:957] set_property(): Stopping connection in object manager server<u></u><u></u></p><p class="MsoNormal">ModemManager[1014]: <debug> [1488547412.346586] [src/mm-device.c:235] unexport_modem(): [device LinMux] unexported modem from path '/org/freedesktop/<wbr>ModemManager1/Modem/0'<u></u><u></u></p><p class="MsoNormal">ModemManager[1014]: <debug> [1488547412.350570] [src/mm-port-serial.c:1477] port_serial_close_force(): (ttyMux0) forced to close port<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">(ModemManager:1014): GLib-GObject-CRITICAL **: g_object_run_dispose: assertion 'G_IS_OBJECT (object)' failed<u></u><u></u></p><p class="MsoNormal">ModemManager[1014]: <info> [1488547412.361546] [src/main.c:217] main(): ModemManager is shut down”<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Is this assertion serious, and/or indicative of something not closing down ‘formally’? Just need to know whether it may mean that anything might not have been de-initialised properly.<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Thanks.<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p></div></div><br>______________________________<wbr>_________________<br>
ModemManager-devel mailing list<br>
<a href="mailto:ModemManager-devel@lists.freedesktop.org">ModemManager-devel@lists.<wbr>freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/modemmanager-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/modemmanager-<wbr>devel</a><br>
<br></blockquote></div><br></div></div>