
Setup:
Redhat Linux 9 x86 libsmi 0.4.3 gcc 3.2.2
To trigger problem: smidump --format=mosy CISCO-IETF-FRR-CAPABILITY.my
File CISCO-IETF-FRR-CAPABILITY.my attached. Cisco does not provide a copy of the CISCO-IETF-FRR-MIB referenced in CISCO-IETF-FRR-CAPABILITY.my. Segmentation fault is a bit cryptic as a diagnostic, though :-).
I had to compile without -O2 in order to get a reasonable looking stack trace, which is as follows:
Program received signal SIGSEGV, Segmentation fault. 0x4001f0cb in findObjectByModuleAndNode (modulePtr=0x80981f0, nodePtr=0x0) at data.c:2084 2084 for (objectPtr = nodePtr->firstObjectPtr; objectPtr; (gdb) where #0 0x4001f0cb in findObjectByModuleAndNode (modulePtr=0x80981f0, nodePtr=0x0) at data.c:2084 #1 0x40027336 in smiGetParentNode (smiNodePtr=0x8098928) at smi.c:1090 #2 0x080555d8 in getOidString (smiNode=0x8098928, importedParent=0) at dump-mosy.c:101 #3 0x0805628f in dumpMosy (modc=1, modv=0x8093330, flags=0, output=0x0) at dump-mosy.c:499 #4 0x0804a74c in main (argc=2, argv=0xbffff824) at smidump.c:378 #5 0x4009fa67 in __libc_start_main () from /lib/i686/libc.so.6
-- ***************************************************************** -- CISCO-IETF-FRR-CAPABILITY.my: Capability statement for Cisco's -- implementation of the IETF's MPLS Traffic Engineering Fast -- Reroute MIB (CISCO-IETF-FRR-MIB.my) -- -- April 25, 2003 - Adrien Grise -- -- Copyright (c) 2003 by cisco Systems, Inc. -- All rights reserved.