Wireshark-dev: Re: [Wireshark-dev] Segmentation fault on tshark
From: Pascal Quantin <pascal.quantin@xxxxxxxxx>
Date: Thu, 8 Jan 2015 21:10:28 +0100
2015-01-08 20:54 GMT+01:00 Alexis La Goutte <alexis.lagoutte@xxxxxxxxx>:
Hi,


There is a problem with commit
a323f0ce3ed46bba7f593790da2256180ac479f2
Author: Robert Grange <robionekenobi@xxxxxxxxxx>
Date:   Sat Dec 27 17:46:33 2014 +0100

    packet-mq: Add New Def, Reformat Lines, re-order val_str def
   
    Add missing definition, add new definition, Reformat some lines
    Re-order the value_string used with ext_value_string definition
    so they are in asc ASCII order as the ext_value_string is now
    sorted before first use
   
    renamed own tvb_get... funct to new tvb_get_guintxx funct
    and deleted own tvb_get... funct
    use ptvcursor_ funct instead of own macro to increment offset
    removed <epan/tvbuff.h> in *.c files
    correct [-Wunused-const-variable]

tshark don't launch after : Segmentation fault (see also buildbot)

it is coming from _try_mq_vals_sort(GET_VALS_EXTP(StructID));

Somebody, have a idea to fix ? or revert the change ?

(Also, i don't like the idea of "sort" value_string for all start of tshark/wireshark...)

Regards,


Hi Alexis,

I uploaded a fix here: https://code.wireshark.org/review/#/c/6420/
But I also dislike the systematic quicksort at each start...

Pascal.