Assertion on exit

Ben Chan benchan at chromium.org
Fri Mar 3 18:37:17 UTC 2017


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.

On Fri, Mar 3, 2017 at 5:26 AM, <colin.helliwell at ln-systems.com> wrote:

> 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:
>
>
>
> “ModemManager[1014]: <info>  [1488547412.344036] [src/main.c:46]
> quit_cb(): Caught signal, shutting down...
>
> ModemManager[1014]: <debug> [1488547412.344290]
> [src/mm-base-manager.c:957] set_property(): Stopping connection in object
> manager server
>
> ModemManager[1014]: <debug> [1488547412.346586] [src/mm-device.c:235]
> unexport_modem(): [device LinMux] unexported modem from path
> '/org/freedesktop/ModemManager1/Modem/0'
>
> ModemManager[1014]: <debug> [1488547412.350570]
> [src/mm-port-serial.c:1477] port_serial_close_force(): (ttyMux0) forced to
> close port
>
>
>
> (ModemManager:1014): GLib-GObject-CRITICAL **: g_object_run_dispose:
> assertion 'G_IS_OBJECT (object)' failed
>
> ModemManager[1014]: <info>  [1488547412.361546] [src/main.c:217] main():
> ModemManager is shut down”
>
>
>
> 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.
>
>
>
> Thanks.
>
>
>
> _______________________________________________
> ModemManager-devel mailing list
> ModemManager-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/modemmanager-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/modemmanager-devel/attachments/20170303/f7c22ea8/attachment.html>


More information about the ModemManager-devel mailing list