-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Segfault in CRUDService.read() #535
Comments
Thanks for catching these bugs, you can enabled logging following steps in documentation here. Please use DEBUG level:
|
And also, the common causes for segfault would be:
To reproduce segfault caused by the first reason, you could modify CMakeList.txt, add customized tests here. And use lldb/gdb for debugging. |
debug log attached. |
I had a go at running the unit tests but got stuck. The C++ instructions say to "cd ydk-gen/sdk/cpp/ydk" but that directory does not exist.
|
Thanks for the log, but it seems like it is not helpful for this segfault issue, not sure the reason for segfault. The last log entry comes from Sorry, that C++ instructions seems outdated. Sharing my workflow: # first install bundle you want to debug(xe)
$ cd sdk/cpp/core
$ mkdir build
$ cd build
$ cmake .. && sudo make install # install in libydk in debugging mode
$ cd ../../tests
# edit test files and CMakeLists.txt
$ mkdir build
$ cd build && cmake .. && make
$ lldb ./ydk_bundle_test <new-test-case-name> |
#640) * Fix yang case when two containers with same name , but different namespaces, augment one container * Fix golang naming to be consistent with other langs * Updated samples and tests * address #535 * Add more debug msgs and throw exceptions to avoid segfaults * tcp server start/stop * Fix golang struct member issue * Codacy * Address review * Fixes #612
Unable to reproduce on |
Hi. I'm seeing a segmentation fault in CRUDService.read() if I call this method multiple times in the same script:
The above script seg faults:
However, if I reverse the order of operations and call crud.read() against the IF_MIB first, the script runs fine:
I appologize, but I don't know how or where to start debugging this.
YDK-Py 0.6.0
libydk 0.6.0
Python 2.7.10
macOS 10.11.6
Python modules:
ncclient (0.5.3)
pip (9.0.1)
pybind11 (2.1.1)
setuptools (36.3.0)
six (1.10.0)
wheel (0.29.0)
ydk (0.6.0)
ydk-models-cisco-ios-xe (16.6.1)
ydk-models-cisco-ios-xr (6.2.2)
ydk-models-ietf (0.1.3)
ydk-models-openconfig (0.1.3)
The text was updated successfully, but these errors were encountered: