Hi Emmanuel, Berthier, Emmanuel wrote: > Hi, > > I use ofono 0.25 and encounter a segmentation fault when > trying to put the modem OffLine (flight mode). > > The AT command sent to modem is: > > AT+CFUN=4 > > The modem replies with: > OK > +CREG=0 > > Then, in creg_notify(), the user_data points to uninitialized > (deallocated?) memory and access to “nd->vendor” causes the crash. >
I might know where is the problem. We should unregister all notifies from gatchat in at_netreg_remove. Same for gprs and other drivers as well. Currently, we don't do that well. I will send patches soon. > > Effectivelly, user_data pointer is the one set by > at_creg_set_cb(), and is freed by > g_at_chat_finish_command()/at_command_destroy(). > > So, it seems that ofono does not manage unsolicited +CREG command. > > > > What’s your feeing? > > > > Thanks. > > > > Emmanuel. > > > > --------------------------------------------------------------------- > Intel Corporation SAS (French simplified joint stock company) > Registered headquarters: "Les Montalets"- 2, rue de Paris, 92196 > Meudon Cedex, France Registration Number: 302 456 199 R.C.S. NANTERRE > Capital: 4,572,000 Euros > > This e-mail and any attachments may contain confidential material for > the sole use of the intended recipient(s). Any review or distribution > by others is strictly prohibited. If you are not the intended > recipient, please contact the sender and delete all copies. Regards, Zhenhua _______________________________________________ ofono mailing list [email protected] http://lists.ofono.org/listinfo/ofono
