Wireshark-dev: Re: [Wireshark-dev] Wmem has reached feature-parity with emem
From: Michal Labedzki <[email protected]>
Date: Wed, 19 Jun 2013 16:50:26 +0200
I have a problem. For example packet-btavctp.c, I created emem tree in proto_register_btavctp(). And it is ok. But after switch to wmem Wireshark fails (cannot run) with:
"ERROR:wmem_scopes.c:96:wmem_file_scope: assertion failed: (in_file_scope)"

This is my change:
- reassembling = se_tree_create(EMEM_TREE_TYPE_RED_BLACK, "btavctp reassembling");
+ reassembling = wmem_tree_new(wmem_file_scope());

Or maybe should I do that in register_init_routine() now? (I do not try)

By the way: switch from emem tree to wmem tree seems to be only done by replace all "emem_tree" and "se_tree" by "wmem_tree", expect function create tree, right?