[OpenWrt-Devel] uci_lookup_ptr() seg fault

Jo-Philipp Wich jow at openwrt.org
Wed Feb 17 04:13:49 EST 2016


Hi.
> I am getting seg fault sometimes on the uci_lookup_ptr() call. here is
> the way I call this function:
> It happens I would say once every couple of hundred calls.

My gut feeling is that one of the "file_name", "section_name",
"section_value" or "option_name" pointers becomes stale.

Your quoted code looks correct, the issue is most likely in another part
of your application using the "get_uci_option_api()" function.

~ Jow
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list