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@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to