Closed mexicarne closed 9 years ago
Well, NVList constructor is defined as follows:
def __init__(self, uintptr_t nvlist=0, otherdict=None):
so you are trying to access NVList located at 0x1. Segfault is obvious in that case :) What we are going to do is to hide nvpair implementation completely and make libzfs routines accept pure Python dicts. It will be cleaner and make it harder to shoot yourself in the foot.
Yep, I wasn't sure what I'm trying to accomplish, but since I was able to trigger segfault, I decided to report it for the case.
This should be fixed now - NVList is gone! Now all py-libzfs methods accept plain dicts instead :)
Great, thank you!
It's easy to reproduce:
I'm using latest port version in FreeBSD (github tag c0100ab)