
libsmi-0.3.0 cygwin/VC++ 6.0 sp5
$ smilint IPMS-MIB.my ... IPMS-MIB.my:1328: identifier `ipms_traps' must not contain an underscore IPMS-MIB.my:1329: `DisplayString' should start with a lower case letter Segmentation fault (core dumped)
Also smiquery and smidump does crash!
IPMS-MIB.my
... 1326 1327 ipmsTrapServiceStart TRAP-TYPE 1328 ENTERPRISE ipms_traps 1329 VARIABLES { DisplayString } 1330 DESCRIPTION 1331 "This trap is generated when a ipms service started" 1332 ::= 1 1333 ...
I assumed that 1329 line cause smilint crashed. Removing 1329 line or replacing that with "VARIABLES { some object-type } " make no segmentation fault.
-- VC Call stack -- smiparse() line 4184 + 5 bytes loadModule(const char * 0x0096a481) line 3789 + 9 bytes smiLoadModule(const char * 0x0096a481) line 418 + 9 bytes
data.c ... 3659 smiDepth++; 3660 parser.line = 1; 3661 smiparse((void *)&parser); <-- this point 3662 smiLeaveLexRecursion(); 3663 smiDepth--; 3664 fclose(parser.file); ...
I know that IPMS-MIB.my has illegal VARIABLES clause. I wish NOT crash BUT warn or error Please, help me. -- !! This message is brought to you via the `libsmi' mailing list. !! Please do not reply to this message to unsubscribe. To subscribe or !! unsubscribe, send a mail message to libsmi-request@ibr.cs.tu-bs.de. !! See http://www.ibr.cs.tu-bs.de/projects/libsmi/ for more information.

Hi!
hanule> $ smilint IPMS-MIB.my hanule> ... hanule> IPMS-MIB.my:1328: identifier `ipms_traps' must not contain an underscore hanule> IPMS-MIB.my:1329: `DisplayString' should start with a lower case letter hanule> Segmentation fault (core dumped)
hanule> Also smiquery and smidump does crash! [...]
hanule> I know that IPMS-MIB.my has illegal VARIABLES clause. hanule> I wish NOT crash BUT warn or error
Thanks!
There has been some inappropriate treatment of illegal VARIABLES elements of SMIv1 TRAPs. I have just fixed it and commited the change to the anonymous CVS repository.
I case the segfault still occurs, please send me the whole MIB in question so that I can exactly reproduce the problem.
-frank -- !! This message is brought to you via the `libsmi' mailing list. !! Please do not reply to this message to unsubscribe. To subscribe or !! unsubscribe, send a mail message to libsmi-request@ibr.cs.tu-bs.de. !! See http://www.ibr.cs.tu-bs.de/projects/libsmi/ for more information.
participants (2)
-
Frank Strauss
-
강정원