Okay, I'm getting it again.
I'm doing some debugging now. Setting a bp in gdb where the error is generated:
Breakpoint 1, ril_cops_list_cb (message=<optimized out>, user_data=0xf4e98) at drivers/rilmodem/network-registration.c:231 231 drivers/rilmodem/network-registration.c: No such file or directory. (gdb) print ops $1 = (struct ofono_network_operator *) 0x0 (gdb) print reply $2 = (struct reply_avail_ops *) 0xf5c10 (gdb) print reply->num_ops $3 = 0
From the glib documentation for g_try_new0: The function returns NULL when n_structs is 0 of if an overflow occurs.
So the error here is that reply->num_ops is 0.
Okay, I'm getting it again.
I'm doing some debugging now. Setting a bp in gdb where the error is generated:
Breakpoint 1, ril_cops_list_cb (message=<optimized out>, user_data=0xf4e98) rilmodem/ network- registration. c:231 rilmodem/ network- registration. c: No such file or directory. operator *) 0x0
at drivers/
231 drivers/
(gdb) print ops
$1 = (struct ofono_network_
(gdb) print reply
$2 = (struct reply_avail_ops *) 0xf5c10
(gdb) print reply->num_ops
$3 = 0
From the glib documentation for g_try_new0: The function returns NULL when n_structs is 0 of if an overflow occurs.
So the error here is that reply->num_ops is 0.