
Hi,
The following crash was encountered accidentally, when I was trying to load a bunch of arbitrary MIB files. I have nailed this down to this sequence:
1. smiLoadModule(UCD-DLMOD-MIB.txt) 2. smiLoadModule(UCD-SNMP-MIB.txt)
The first call completes successfully. In the second call, libSMI crashes.
The call stack at the crash time:
strcmp(..) findObjectByModuleAndName(..) smiparse(..) loadModule(..) smiLoadModule(..) ...
If changing the order in which the both MIB files are called, the crash disappears. But this, of course, is unacceptable as a solution.
Please find the two involved MIB files attached.
Thank you, Arie.
<<UCD-DLMOD-MIB.txt>> <<UCD-SNMP-MIB.txt>>

Hi!
Arie> The following crash was encountered accidentally, when I was Arie> trying to load a bunch of arbitrary MIB files. I have nailed Arie> this down to this sequence:
Arie> 1. smiLoadModule(UCD-DLMOD-MIB.txt) Arie> 2. smiLoadModule(UCD-SNMP-MIB.txt)
Arie> The first call completes successfully. Arie> In the second call, libSMI crashes.
I could not reconstruct your problem.
Please ensure that - the smiLoadModule() calls are successful (rc != NULL), and - the modules contain valid SMI code (e.g. using smilint beforehand).
Maybe, some of the required modules cannot be found in your module search path.
-frank
participants (2)
-
Arie Trost
-
Frank Strauss