
Puls, Henrik wrote:
[...] I've send you a sample application where the error occurs, maybe this can help.
Along with your sample code and your set of MIBs I could reconstruct the segmentation fault easily (on Linux). I found that two of your MIB modules contain not only "minor" warnings, but also real errors (close to the end of the "bba" and the "bca" modules, a second "--" closes the comment and makes the rest of the line syntactically incorrect.
If you use libsmi to do more with your MIB modules than just checking them (i.e., developing your own applications, like you do) you should first ensure that the MIB modules are error-free. The tool smilint helps you to ensure this.
Of course, libsmi should be robust enough even to handle incorrect modules without crashing. But unfortunately, it is not. Your suggested patch would fix a symptom, but not the cause, so I prefer not to apply it.