Re: [OpenWrt-Devel] uci_lookup_ptr() seg fault

2016-02-20 Thread bkil
You can investigate a core dump file using gdb or an IDE to review the call stack and variables (extra useful if compiled with -g and -O0). You may need to enable core dumping like so: http://www.idimmu.net/2013/06/21/enable-linux-core-dump/ http://www.akadia.com/services/ora_enable_core.html By

Re: [OpenWrt-Devel] uci_lookup_ptr() seg fault

2016-02-17 Thread Jo-Philipp Wich
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 qu

[OpenWrt-Devel] uci_lookup_ptr() seg fault

2016-02-16 Thread Farid Farid
Hi All, 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.I appreciate if someone can help and guide me how to debug this issue.I have tried it with uci package from 2016-02-02 char * get