This is a static archive of our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

GLib-CRITICAL segmentation fault with wireshark

0

After I made some changes to my plugin-dissector code (I added somme Libgcrypt related code), I get a segmentation fault. I got it even before Wireshark executes any of the libgcrypt code that I added. The error says: (lt-wireshark:4944): GLib-CRITICAL : g_hash_table_lookup: assertion `hash_table != NULL' failed Segmentation fault (core dumped)**

I'd like to know What went wrong? or How can I figure out what went wrong in this case? or what could such error mean?

Thanks. Flora

asked 26 Feb '15, 19:50

flora's gravatar image

flora
156313338
accept rate: 100%


One Answer:

1

This error means that you are trying to do a lookup on a NULL hash table pointer (so the hash table has not been initialized before the lookup). Ensure to create the hash table before.

answered 26 Feb '15, 23:23

Pascal%20Quantin's gravatar image

Pascal Quantin
5.5k1060
accept rate: 30%