OoO En ce  début de soirée du vendredi 18 décembre  2009, vers 21:58, je
disais:

>> starting wireshark causes a segfault  before the main window opens. it
>> happens durring the splash screen.

> Thanks for the strace!

> Comparing with  my system, I  see that the  problem resides in  the fact
> that you don't  have RFC1155-SMI MIB which is  needed by RFC1213-MIB. In
> this case, libsmi2  is very weak and build an  incomplete tree that will
> cause the  segfault. This  is not  easy to fix  since libsmi  builds its
> internal tree as the MIB is parsed and it cannot just undo those changes
> when there is a problem (like missing dependencies).

> I don't  know why you  don't have RFC1155-SMI.  I suppose that  your MIB
> were downloaded  by libsnmp-base (which is  not done any  more) and that
> RFC  was not  included in  the list.  As a  workaround,  please download
> RFC1155-SMI and apply smistrip on it to get the MIB :
>  wget -O - http://www.ietf.org/rfc/rfc1155.txt | smistrip

> You'll get RFC1155-SMI that you can put in /usr/share/mibs/ietf.

You can  also apply this patch  to wireshark. I think  this should solve
the issue (silently).

diff --git a/epan/oids.c b/epan/oids.c
index dcbaef8..704a055 100644
--- a/epan/oids.c
+++ b/epan/oids.c
@@ -583,6 +583,8 @@ void register_mibs(void) {
 		 smiModule = smiGetNextModule(smiModule)) {
 
 		D(3,("\tModule: %s", smiModule->name));
+		if (smiModule->conformance <= 1)
+			continue;
 
 		for (smiNode = smiGetFirstNode(smiModule, SMI_NODEKIND_ANY);
 			 smiNode;
-- 
I WILL NOT BELCH THE NATIONAL ANTHEM
I WILL NOT BELCH THE NATIONAL ANTHEM
I WILL NOT BELCH THE NATIONAL ANTHEM
-+- Bart Simpson on chalkboard in episode 7F15

Attachment: pgp8vmH9NTW0E.pgp
Description: PGP signature

Reply via email to